spectraphilic / wasp_sketches

Waspmote sketches develoded by our group
1 stars 0 forks source link

SD weird filenames #26

Closed jdavid closed 5 years ago

jdavid commented 5 years ago

From the rssimap sketch:

DATA
'|è⌠┴┼{`Σ.╜ñr'
'═%Q ?⌐~.√═'
QSTART.BIN
TMP.TXT
t╨ß┐║~.b·▒
'╖αO╛^z:π.a┤║'

This has also been observed in the Thomas Station mote running the main sketch with code from March 2018.

jdavid commented 5 years ago

Problems found:

Didn't found anything searching for similar problems by other with the waspmote.

To address this issue we need to reproduce this, best chance with the rssimap sketch, or maybe John with that other sketch.

ArcticSnow commented 5 years ago

Testing

Run the Finse program on a wasmote with GPS/without GPS, with network/without network

  1. with GPS, sampling battery every 1min, GPS 1:30h, and network every 10min. Result: SD file corrupted at the end. The SD was clean, formated to 0 everywhere in FAT 32 from Linux Mint. The mote has rebooted multiple times when GPS was suppose to trigger. Not trace of update from GPS , or failure to do so in the log.
  2. without GPS, sampling battery every 1min, and network every 10min. Result: SD file corrupted after second reboot. Checked SD a first time with no problem. Reinstall the SD as it is in the reader and runed the mote ON. At the second check, the SD was corrupted. The mote was still running fine until I stopped it to extract the SD card.
  3. without Network, with GPS sampling battery every 1min, GPS 1:30h. Result:
  4. without Network, without GPS sampling battery every 1min. Result: SD card files corrupted at the second check of the SD. First check , everythong was fine. This time I used a windows machine to read the SD.

Two more test to do. format card with windows.

ArcticSnow commented 5 years ago

Read theArduino page of SD cards before anything: here

For Mac OS or Windows, download SDFormatter

For Linux: (Te Be Found)

# find path to the SD device
df

# unmount SD card, replace <device_id> by path to SD
sudo umount /dev/<device_id>

# format command, replace <device_id> by path to SD
sudo mkdosfs -F 16 /dev/<device_id>

If possible format in FAT16