Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot detect SD card after battery runs out #69

Open
mingyuzhuu opened this issue Sep 9, 2024 · 3 comments
Open

Cannot detect SD card after battery runs out #69

mingyuzhuu opened this issue Sep 9, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mingyuzhuu
Copy link

mingyuzhuu commented Sep 9, 2024

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.

@oscgonfer oscgonfer self-assigned this Sep 10, 2024
@oscgonfer oscgonfer added the bug Something isn't working label Sep 10, 2024
@oscgonfer
Copy link
Contributor

oscgonfer commented Sep 10, 2024

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.

@mingyuzhuu
Copy link
Author

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.

@oscgonfer
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants