pimoroni / enviro

MIT License
101 stars 79 forks source link

Log stopped, board kept running #93

Open MrDrem opened 1 year ago

MrDrem commented 1 year ago

So, I tried leaving my board out with nothing connected, and seeing what happened, to see if the RTC would fall over as per #79.

I got something new instead. I've started taking readings every 4 minutes, to try and force errors to appear faster, last nights log runs to 01:32:55, and misses readings at 01:24 & 01:28. io.adafruit.com shows readings went on until 02:20.

2022-09-14 00:52:16 [info     /  91kB]   - setting alarm to wake at 00:56am
2022-09-14 00:52:16 [info     /  88kB]   - shutting down
2022-09-14 00:56:02 [debug    / 114kB] > performing startup
2022-09-14 00:56:02 [info     / 121kB]   - wake reason: unknown
2022-09-14 00:56:02 [debug    / 119kB]   - turn on activity led
2022-09-14 00:56:02 [info     / 117kB]   - Config Good
2022-09-14 00:56:02 [info     / 115kB]   - Clock set
2022-09-14 00:56:02 [info     / 113kB]   - space good
2022-09-14 00:56:02 [info     / 110kB]   - Wind sensor inital state set
2022-09-14 00:56:03 [info     / 104kB]   - Wind direction read
2022-09-14 00:56:03 [info     / 102kB]   - sensor data collected
2022-09-14 00:56:04 [info     /  98kB]   - reading cached
2022-09-14 00:56:04 [info     /  96kB] > 1 cache files need uploading
2022-09-14 00:56:04 [info     /  93kB] > connecting to wifi network 'Celestia'
2022-09-14 00:56:06 [debug    / 123kB]   - connecting
2022-09-14 00:56:09 [debug    / 109kB]   - connecting
2022-09-14 00:56:11 [info     /  99kB]   - ip address:  192.168.1.208
2022-09-14 00:56:12 [info     / 116kB]   - uploaded 2022-09-14T00:56:04Z.json to adafruit_io
2022-09-14 00:56:12 [info     / 114kB]   - upload successful
2022-09-14 00:56:12 [info     / 112kB] > going to sleep
2022-09-14 00:56:12 [debug    / 110kB]   - clearing and disabling timer and alarm
2022-09-14 00:56:12 [info     / 108kB]   - setting alarm to wake at 01:00am
2022-09-14 00:56:12 [info     / 105kB]   - shutting down
2022-09-14 01:00:02 [debug    / 114kB] > performing startup
2022-09-14 01:00:02 [info     / 121kB]   - wake reason: unknown
2022-09-14 01:00:02 [debug    / 119kB]   - turn on activity led
2022-09-14 01:00:02 [info     / 117kB]   - Config Good
2022-09-14 01:00:02 [info     / 115kB]   - Clock set
2022-09-14 01:00:02 [info     / 113kB]   - space good
2022-09-14 01:00:02 [info     / 110kB]   - Wind sensor inital state set
2022-09-14 01:00:03 [info     / 104kB]   - Wind direction read
2022-09-14 01:00:03 [info     / 102kB]   - sensor data collected
2022-09-14 01:00:03 [info     /  98kB]   - reading cached
2022-09-14 01:00:04 [info     /  96kB] > 1 cache files need uploading
2022-09-14 01:00:04 [info     /  93kB] > connecting to wifi network 'Celestia'
2022-09-14 01:00:06 [debug    / 123kB]   - connecting
2022-09-14 01:00:09 [debug    / 109kB]   - connecting
2022-09-14 01:00:09 [info     / 105kB]   - ip address:  192.168.1.208
2022-09-14 01:00:10 [info     /  87kB]   - uploaded 2022-09-14T01:00:03Z.json to adafruit_io
2022-09-14 01:00:10 [info     /  85kB]   - upload successful
2022-09-14 01:00:10 [info     / 122kB] > going to sleep
2022-09-14 01:00:10 [debug    / 120kB]   - clearing and disabling timer and alarm
2022-09-14 01:00:10 [info     / 118kB]   - setting alarm to wake at 01:04am
2022-09-14 01:00:10 [info     / 116kB]   - shutting down
2022-09-14 01:04:02 [debug    / 114kB] > performing startup
2022-09-14 01:04:02 [info     / 121kB]   - wake reason: unknown
2022-09-14 01:04:02 [debug    / 119kB]   - turn on activity led
2022-09-14 01:04:02 [info     / 117kB]   - Config Good
2022-09-14 01:04:02 [info     / 115kB]   - Clock set
2022-09-14 01:04:02 [info     /  99kB]   - space good
2022-09-14 01:04:03 [info     /  96kB]   - Wind sensor inital state set
2022-09-14 01:04:04 [info     /  89kB]   - Wind direction read
2022-09-14 01:04:04 [info     / 121kB]   - sensor data collected
2022-09-14 01:04:04 [info     / 118kB]   - reading cached
2022-09-14 01:04:04 [info     / 115kB] > 1 cache files need uploading
2022-09-14 01:04:04 [info     / 113kB] > connecting to wifi network 'Celestia'
2022-09-14 01:04:06 [debug    / 107kB]   - connecting
2022-09-14 01:04:09 [debug    /  93kB]   - connecting
2022-09-14 01:04:11 [info     /  84kB]   - ip address:  192.168.1.208
2022-09-14 01:04:12 [info     / 106kB]   - uploaded 2022-09-14T01:04:04Z.json to adafruit_io
2022-09-14 01:04:12 [info     / 104kB]   - upload successful
2022-09-14 01:04:12 [info     / 102kB] > going to sleep
2022-09-14 01:04:12 [debug    / 100kB]   - clearing and disabling timer and alarm
2022-09-14 01:04:13 [info     /  98kB]   - setting alarm to wake at 01:08am
2022-09-14 01:04:13 [info     /  96kB]   - shutting down
2022-09-14 01:08:02 [debug    / 114kB] > performing startup
2022-09-14 01:08:02 [info     / 121kB]   - wake reason: unknown
2022-09-14 01:08:02 [debug    / 119kB]   - turn on activity led
2022-09-14 01:08:02 [info     / 117kB]   - Config Good
2022-09-14 01:08:02 [info     / 115kB]   - Clock set
2022-09-14 01:08:02 [info     / 113kB]   - space good
2022-09-14 01:08:02 [info     / 110kB]   - Wind sensor inital state set
2022-09-14 01:08:03 [info     / 104kB]   - Wind direction read
2022-09-14 01:08:03 [info     / 102kB]   - sensor data collected
2022-09-14 01:08:03 [info     /  98kB]   - reading cached
2022-09-14 01:08:04 [info     /  96kB] > 1 cache files need uploading
2022-09-14 01:08:04 [info     /  94kB] > connecting to wifi network 'Celestia'
2022-09-14 01:08:06 [debug    / 123kB]   - connecting
2022-09-14 01:08:09 [debug    / 109kB]   - connecting
2022-09-14 01:08:11 [info     /  99kB]   - ip address:  192.168.1.208
2022-09-14 01:08:12 [info     / 116kB]   - uploaded 2022-09-14T01:08:03Z.json to adafruit_io
2022-09-14 01:08:12 [info     / 114kB]   - upload successful
2022-09-14 01:08:12 [info     / 111kB] > going to sleep
2022-09-14 01:08:12 [debug    / 109kB]   - clearing and disabling timer and alarm
2022-09-14 01:08:12 [info     / 107kB]   - setting alarm to wake at 01:12am
2022-09-14 01:08:12 [info     / 105kB]   - shutting down
2022-09-14 01:12:02 [debug    / 114kB] > performing startup
2022-09-14 01:12:02 [info     / 121kB]   - wake reason: unknown
2022-09-14 01:12:02 [debug    / 119kB]   - turn on activity led
2022-09-14 01:12:02 [info     / 117kB]   - Config Good
2022-09-14 01:12:02 [info     / 115kB]   - Clock set
2022-09-14 01:12:02 [info     / 113kB]   - space good
2022-09-14 01:12:02 [info     / 110kB]   - Wind sensor inital state set
2022-09-14 01:12:03 [info     / 104kB]   - Wind direction read
2022-09-14 01:12:03 [info     / 102kB]   - sensor data collected
2022-09-14 01:12:04 [info     /  98kB]   - reading cached
2022-09-14 01:12:04 [info     /  96kB] > 1 cache files need uploading
2022-09-14 01:12:04 [info     /  93kB] > connecting to wifi network 'Celestia'
2022-09-14 01:12:06 [debug    / 122kB]   - connecting
2022-09-14 01:12:09 [debug    / 109kB]   - connecting
2022-09-14 01:12:11 [info     /  99kB]   - ip address:  192.168.1.208
2022-09-14 01:12:12 [info     / 115kB]   - uploaded 2022-09-14T01:12:03Z.json to adafruit_io
2022-09-14 01:12:12 [info     / 113kB]   - upload successful
2022-09-14 01:12:12 [info     / 111kB] > going to sleep
2022-09-14 01:12:13 [debug    / 109kB]   - clearing and disabling timer and alarm
2022-09-14 01:12:13 [info     / 106kB]   - setting alarm to wake at 01:16am
2022-09-14 01:12:13 [info     / 104kB]   - shutting down
2022-09-14 01:16:02 [debug    / 114kB] > performing startup
2022-09-14 01:16:02 [info     / 121kB]   - wake reason: unknown
2022-09-14 01:16:02 [debug    / 119kB]   - turn on activity led
2022-09-14 01:16:02 [info     / 117kB]   - Config Good
2022-09-14 01:16:02 [info     / 115kB]   - Clock set
2022-09-14 01:16:02 [info     /  98kB]   - space good
2022-09-14 01:16:03 [info     /  96kB]   - Wind sensor inital state set
2022-09-14 01:16:04 [info     /  89kB]   - Wind direction read
2022-09-14 01:16:04 [info     / 121kB]   - sensor data collected
2022-09-14 01:16:04 [info     / 118kB]   - reading cached
2022-09-14 01:16:04 [info     / 115kB] > 1 cache files need uploading
2022-09-14 01:16:04 [info     / 113kB] > connecting to wifi network 'Celestia'
2022-09-14 01:16:06 [debug    / 106kB]   - connecting
2022-09-14 01:16:09 [debug    /  93kB]   - connecting
2022-09-14 01:16:11 [info     /  83kB]   - ip address:  192.168.1.208
2022-09-14 01:16:12 [info     / 107kB]   - uploaded 2022-09-14T01:16:04Z.json to adafruit_io
2022-09-14 01:16:12 [info     / 105kB]   - upload successful
2022-09-14 01:16:12 [info     / 103kB] > going to sleep
2022-09-14 01:16:13 [debug    / 100kB]   - clearing and disabling timer and alarm
2022-09-14 01:16:13 [info     /  98kB]   - setting alarm to wake at 01:20am
2022-09-14 01:16:13 [info     /  96kB]   - shutting down
2022-09-14 01:20:02 [debug    / 114kB] > performing startup
2022-09-14 01:20:02 [info     / 121kB]   - wake reason: unknown
2022-09-14 01:20:02 [debug    / 119kB]   - turn on activity led
2022-09-14 01:20:02 [info     / 117kB]   - Config Good
2022-09-14 01:20:02 [info     / 115kB]   - Clock set
2022-09-14 01:20:02 [info     / 113kB]   - space good
2022-09-14 01:20:02 [info     / 110kB]   - Wind sensor inital state set
2022-09-14 01:20:03 [info     / 104kB]   - Wind direction read
2022-09-14 01:20:03 [info     / 102kB]   - sensor data collected
2022-09-14 01:20:03 [info     /  98kB]   - reading cached
2022-09-14 01:20:04 [info     /  96kB] > 1 cache files need uploading
2022-09-14 01:20:04 [info     /  94kB] > connecting to wifi network 'Celestia'
2022-09-14 01:20:06 [debug    / 123kB]   - connecting
2022-09-14 01:20:09 [debug    / 109kB]   - connecting
2022-09-14 01:20:11 [info     / 100kB]   - ip address:  192.168.1.208
2022-09-14 01:20:12 [info     /  82kB]   - uploaded 2022-09-14T01:20:03Z.json to adafruit_io
2022-09-14 01:20:12 [info     / 118kB]   - upload successful
2022-09-14 01:20:12 [info     / 116kB] > going to sleep
2022-09-14 01:20:12 [debug    / 114kB]   - clearing and disabling timer and alarm
2022-09-14 01:20:12 [info     / 112kB]   - setting alarm to wake at 01:24am
2022-09-14 01:20:12 [info     / 110kB]   - shutting down
2022-09-14 01:32:51 [debug    / 114kB] > performing startup
2022-09-14 01:32:51 [debug    / 114kB] > performing startup
2022-09-14 01:32:51 [info     / 121kB]   - wake reason: unknown
2022-09-14 01:32:51 [debug    / 119kB]   - turn on activity led
2022-09-14 01:32:51 [info     / 117kB]   - Config Good
2022-09-14 01:32:51 [info     / 115kB]   - Clock set
2022-09-14 01:32:51 [info     / 113kB]   - space good
2022-09-14 01:32:51 [info     / 110kB]   - Wind sensor inital state set
2022-09-14 01:32:52 [info     / 104kB]   - Wind direction read
2022-09-14 01:32:53 [info     / 102kB]   - sensor data collected
2022-09-14 01:32:53 [info     /  98kB]   - reading cached
2022-09-14 01:32:53 [info     /  96kB] > 1 cache files need uploading
2022-09-14 01:32:53 [info     /  93kB] > connecting to wifi network 'Celestia'
2022-09-14 01:32:55 [debug    / 123kB]   - connecting

Adafruit voltage log:

2022/09/14 2:20:03AM | 4.132
2022/09/14 2:16:04AM | 4.125
2022/09/14 2:12:03AM | 4.132
2022/09/14 2:08:03AM | 4.131
2022/09/14 2:04:04AM | 4.13 
2022/09/14 2:00:03AM | 4.128 
2022/09/14 1:56:04AM | 4.125 
2022/09/14 1:52:04AM | 4.13
2022/09/14 1:48:04AM | 4.133
2022/09/14 1:44:04AM | 4.13
2022/09/14 1:40:04AM | 4.132 
2022/09/14 1:36:04AM | 4.131
2022/09/14 1:32:03AM | 4.139

Having just (at 08:57) rerun main.py from Thonny, I do see that the RTC has also stopped:

2022-09-14 02:06:34 [debug    / 120kB] > performing startup
2022-09-14 02:06:34 [info     / 111kB]   - wake reason: unknown
2022-09-14 02:06:34 [debug    / 109kB]   - turn on activity led

This seems odd given the readings in Adafruit.