-
Notifications
You must be signed in to change notification settings - Fork 674
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
SD card basic R/W check + folder/file presence check #2085
Conversation
Yes, we should do this, as this is a basic need of the firmware.
It does make sense and we can write a problem into the log file. I would not stop the firmware in this case |
Thanks for your feedback. Implementation completed:
|
We could instead show a basic website (contained in the firmware) which documents the issue. And like an idea I had before, we also could contain a basic OTA page so one could still update in case the web UI got deleted. |
I actually already implemented this for the index page: https://github.com/jomjol/AI-on-the-edge-device/blob/rolling/code/main/server_main.cpp#L236 |
keep in mind, if the web UI does not initialized, the users can only check the log using USB! |
@caco3: Thanks for reminding to the reduced web interface. I wasn't thinking about this during design, but I like the idea to have the chance to get remote visual feedback in error case. If we do not get to this point, we still have at least local indication (console log and board status LED). @caco3, @jomjol: The updated design approach could be to following:
|
I think we could keep the reduced web page minimalistic (to save flash memory). With just working read we could continue with the normal UI, but I would not as it could be misleading.
I would also just go to a reduced web page. Files which IMO should be available (resp. checked for):
and should we check for at least one tfl file each (analog/digit)? |
@caco3: Thanks for your input. I revised the logic to benefit from reduced web interface.
/sdcard/config |
Implement a basic SD card check at boot to ensure proper SD card functionaliy -> feature request #1886
check function 1:
--> After error occured it boots to reduced WebUI show and error code
check function 2:
/sdcard/config
/sdcard/html
/sdcard/demo --> created automatically in firmware
/sdcard/firmware --> created automatically in firmware
/sdcard/img_tmp --> created automatically in firmware
/sdcard/log --> created automatically in firmware
/sdcard/wlan.ini
/sdcard/config/config.ini
/sdcard/html/index.html
/sdcard/html/ota_page.html
/sdcard/html/log.html
/sdcard/html/common.js
/sdcard/html/gethost.js
/sdcard/html/version.txt
--> If one or more are not present -> load reduced WebUI and show error code
Check indication in boot log (all OK):
LED indication for the respective error cases:
###################################################
Questions:
--> Load reduced web interface and show error code
--> Load reduced web interface and show error code
TODO: