smartcitizen-kit-21 icon indicating copy to clipboard operation
smartcitizen-kit-21 copied to clipboard

Cannot detect SD card after battery runs out

Open mingyuzhuu opened this issue 1 year ago • 3 comments

PROBLEM :

The kit is set to SD mode and collects data properly. Next, the kit is left to run using its battery until it completely drains out and the kit is off.

Next, charge the battery and turn the kit back on. The sensor cannot detect the SD card. Light showing ⚠️ Warning. Collecting data but not storing it in sdcard

SOLUTION :

  1. Connect the kit with the shell

  2. SCK > outlevel 2

  3. Take the SD card out, and re-insert.

Problem solved, data is written into the SD card. Firstly historical data, gradually catches up with real-time data.

mingyuzhuu avatar Sep 09 '24 18:09 mingyuzhuu

Hi @mingyuzhuu

can you indicate:

  • how long was the device left without power?
  • what was the configuration (reading interval) if not the default one?

If it's possible to repeat the test, I would suggest to do the following before running it:

  1. Enable debugging onto sdcard messages:
debug -sdcard
  1. Increase verbosity level:
outlevel 2

And in the sd-card there should be a DEBUG.txt file that we can inspect, at least with the information from before the misdetection.

oscgonfer avatar Sep 10 '24 09:09 oscgonfer

Thanks @oscgonfer

Update :

  1. The sensor was unplugged for more than five days.
  2. The reading interval is every minute.

New Solution procedure:

After more trials, here are the new observations.

  1. After re-plugging, the sensor first shows '❌ Error. Not collecting data'.
  2. Push the power button once, '👍 Ready to be setup'. Click start logging on the phone.
  3. The sensor then shows '⚠️ Warning. Collecting data but not storing it in sdcard'.
  4. Extract the sdcard and re-insert, everything then works perfectly fine.

No increasing verbosity level is done during the whole process.

mingyuzhuu avatar Sep 23 '24 09:09 mingyuzhuu

Hi @mingyuzhuu

Thank you for the update. I have repeated your steps but I am still unable to reproduce it.

One question: was the sd-card extracted at some point and put into a computer? If so, can you check the "dirty bit"? https://www.partitionwizard.com/clone-disk/dirty-bit.html

oscgonfer avatar Sep 26 '24 09:09 oscgonfer