Feature Request: Using the RTC memory for telemetry / crash data #1839
Labels
Status: Needs Info
Needs more info before action can be taken
Type: Feature Request
Add a completely new feature (e.g. controller/plugin)
As far as I know the RTC memory currently only used for keeping track of the flash cycles per day. But it can do much more. Debugging for example
Howto: Using the RTC memory:
https://www.youtube.com/watch?v=r-hEOL007nw
Its 512 bytes arranged in multiples of 4. Survives DeepSleep and Reset, Read/Write as often as you like.
Beware: if you write it you have to write it all at once. You must not update individual bytes.
as soon as I find the time, I will play with it to implement the new %previousUptime% system variable. It will hold the uptime before the latest reset/crash. Also a lot of other variables could be stored in here to survive a crash or so.
My suggestion for the RTC memory would be :
8-18. CallStack (maybe only when debug output is enabled, requires a exception decoder compatible output)
...
If an email service is configured, that could allow for a small real-time crash-report.
It can also hold measuring values so that the ESP waking up from deep sleep does not necessarily need to transmit values after each wake up.
If all four (previous) uptimes are <10s, that could indicate a boot loop and trigger a start with a default configuration.
You see, lots of possibilities.
As a first step I would suggest so collect your thoughts on the matter and maybe assemble a conclusive list of data that should survive a reset / deepsleep and what to do with it on reboot / wakeup.
The text was updated successfully, but these errors were encountered: