What is saved where, and when to unplug#
Where things live#
128 MB NAND: the drive logs, and the clock file
Flash files: what R.E.V learned, the settings files and the Wi-Fi list
Internal settings: the pairing with the desktop app, the saved networks, the settings, the model choice and the session counter. Flashing a new firmware image erases these (see Desktop app and updates).
There is no SD card. Without a working NAND, the board logs to the flash as before.
Stop logging and Turn off#
A drive ends by itself about 15 seconds after the car stops answering, when you switch the engine off. To stop logging yourself, hold End drive for 1 second, or use Settings > Stop logging or Turn off. All three take the same steps, and a sheet shows them:
Stopping the car link: the board stops asking the car for data and starts no new drive. Up to 15 seconds, the time one slow request to the car can take.
Saving the drive: the drive summary is written, what R.E.V learned is saved, and the drive files are closed. Up to 10 seconds.
Checking that everything is saved: the battery log pauses, everything is flushed, and the board waits until nothing has been written for 1.5 seconds. Up to 10 seconds.
Then the sheet says Safe to unplug in green. If a step runs out of time, it says Not safe to unplug yet in red with the reason, for example that the drive files did not close because the storage was busy. Logging stays off in both cases. Tap Try again, or wait and look again before you unplug.
After a stop, logging stays off until you tap Start logging (on the sheet, on Home, or in Settings), or the board restarts. A car that still answers does not start a new drive. In OpenCarMind EdgeOS 2.1.0 before this fix, End drive saved the drive and then let the next drive start straight away, so logging seemed to keep going.
The events list also shows the green Safe to turn off line after every periodic save. When it is not safe, a red “Not safe” line gives the reason.
Warning
The POWER key cuts power at once
The key on the back of the ESP-Mosaico switches the whole board off or on at a single press (Espressif’s user guide). It does not wait for the board to save. Stop logging or Turn off first, wait for Safe to unplug, then press POWER or unplug.
The board saves its last known time at most once a minute. After a power cut it starts from that time, and Wi-Fi corrects it later.
Storage that repairs itself#
Before every restart the board finishes its writes. At start it checks its storage and repairs a damaged copy from the good one. It never formats a store that holds data on its own. If a store will not open, use Settings > Format storage.
Format storage erases the 128 MB NAND in about 15 seconds and removes drive logs left on the flash. What R.E.V learned and your settings stay. Import your drives first.
The battery#
The board has a small 3.7 V, 65 mAh cell with a fuel gauge, and it is meant to run on the car’s USB power. The status bar shows the cell’s voltage. The Board page shows its current and temperature and marks the gauge as uncalibrated, because the gauge is not set up for this cell yet.
Battery protection is on (Health checks and messages). Running on the battery when the car’s USB power drops, and finishing the save before turning off, is prepared but switched off in this release.
Note
Dark saves power on an AMOLED
On an AMOLED every lit pixel draws current and black pixels almost none. So at the same brightness the Light theme costs more battery than Dark. Nobody has measured how much yet. To make the screen use less power, choose Dark, lower the brightness or set Screen off.