Jump to content

johanvdw

Members
  • Posts

    23
  • Joined

  • Last visited

Reputation Activity

  1. Like
    johanvdw reacted to Heisath in recommendations for low power sbc   
    Arduino solutions will be the only more efficent way going forward. I mean, reading RS232 to SD card is super simple. 
     
    Untested code below, it would watch Serial and SoftSerial for incoming data, write it to a file on sd card (in 100 char chunks or on every newline, syncing sd card after every chunk). 
    Should be simple enough to adjust for some power down mechanism (and maybe add a button to manually sync data before removing sd card)...
     
    #include <SoftwareSerial.h> #include <SD.h> char buffer[100]; int buffer_pos = 0; uint8_t sdavail; #define CurrentBaudrate 115200 SoftwareSerial softSerial = SoftwareSerial(5, 4, false); void setup() { sdavail = SD.begin(SDC_CS); setupScreen(); Serial.begin(CurrentBaudrate); softSerial.begin(CurrentBaudrate); softSerial.listen(); } uint32_t lastTouched = millis(); char msg; void loop() { while (Serial.available() || softSerial.available()) { msg = Serial.available() ? (char)Serial.read() : (char)softSerial.read(); buffer[buffer_pos++] = msg; if (buffer_pos >= sizeof(buffer)) break; } if (msg == '\n' || buffer_pos >= sizeof(buffer)) { writeBuffer(); } } void writeBuffer() { if (sdavail) { File dataFile = SD.open("datalog.txt", FILE_WRITE); if (dataFile) { dataFile.write(buffer, buffer_pos); dataFile.close(); } } buffer_pos = 0; }  
  2. Like
    johanvdw got a reaction from Igor in AMD Threadripper 3990X Armbian Build Server Review   
    A final note in case someone else bumps on something similar: stability problems persisted, so we returned the computer and the shop switched both CPU and motherboard. We have been running without issues since that.
  3. Like
    johanvdw reacted to VDenisov in Orangepi 3 h6 allwiner chip   
    Hello.
    Is that possible to check if PCIe-to-SATA native controller (like the one based on ASM1061 chip) works?
    Does it work out-of-the-box or it requires driver rework? Is the rework even possible? Who could do it?
    I'm aware of a broken PCIe implementation.
    I think that such device in companion with SSD could be a perfect solution for Quad-Core A53 providing both performance and storage capacity.
  4. Like
    johanvdw reacted to martinayotte in H6 Famous Reboot problem   
    If you read my previous posts, it require to recompile the kernel with DWMAC-SUN8I as module.
    Since I've done it and tested succesffuly, I've just committed the change in Armbian, so simply redo a new build ...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines