Enviro Indoor locking up

Dear Pimoroni,

I have two of your Indoor Pico W sensors running side-by-side on the same network with most recent firmware. One somewhat randomly fails. It seems to lock up, with the green light on steady, no pulse, and the log file looks like this…

2024-05-31 23:17:10 [info / 103kB] > IP: 192.168.0.60, Subnet: 255.255.255.0, Gateway: 192.168.0.1, DNS: 192.168.0.28
2024-05-31 23:17:10 [info / 128kB] > Elapsed: 7031ms
2024-05-31 23:17:10 [warning / 126kB] - took 7.031 seconds to connect to wifi
2024-05-31 23:17:11 [info / 119kB] > uploading cached readings to Adafruit.io: Seth_Hardy
2024-05-31 23:17:11 [info / 130kB] - uploaded 2024-05-31T22_30_04Z.json
2024-05-31 23:17:12 [info / 112kB] - uploaded 2024-05-31T22_45_04Z.json
2024-05-31 23:17:13 [info / 93kB] - uploaded 2024-05-31T23_00_04Z.json
2024-05-31 23:17:13 [info / 122kB] - uploaded 2024-05-31T23_15_04Z.json
2024-05-31 23:17:13 [info / 120kB] > Disconnecting wireless after upload
2024-05-31 23:17:13 [info / 117kB] > going to sleep
2024-05-31 23:17:14 [debug / 115kB] - clearing and disabling previous alarm
2024-05-31 23:17:14 [info / 113kB] - setting alarm to wake at 23:30pm
2024-05-31 23:17:14 [info / 111kB] - shutting down
2024-06-01 15:29:34 [info / 145kB] > performing startup
2024-06-01 15:29:34 [debug / 142kB] - running Enviro 0.0.10, MicroPython v1.22.2, enviro v1.22.2 on 2024-03-06
2024-06-01 15:29:34 [info / 137kB] - wake reason: rtc_alarm
2024-06-01 15:29:34 [debug / 135kB] - turn on activity led
2024-06-01 15:29:34 [debug / 130kB] > 98 blocks free out of 212
2024-06-01 15:29:34 [debug / 128kB] > taking new reading
2024-06-01 15:29:34 [info / 124kB] - seconds since last reading: 58471
2024-06-01 15:29:35 [debug / 118kB] > caching reading for upload
2024-06-01 15:29:35 [info / 113kB] > 1 cache file(s) not being uploaded. Waiting until there are 5 file(s)
2024-06-01 15:29:35 [info / 145kB] > going to sleep

I can’t tell if it is failing to shut down from the final cycle, or early in the startup, but it will reset properly with a push of that button.

Any suggestions?
Thanks,
Seth

I am having a similar issue on the Enviro Urban. There are no errors in the log, it simply says:

“2024-12-29 14:51:59 [info / 126kB] - shutting down”

Then nothing until I go and hit the reset button on the device. It will run for a while, usually less than 24 hours total, but occasionally for a couple days, and then hang again. I’ve seen this issue in this post and some other, similar issues in the forums and on GitHub - but I haven’t seen a solution, other than a couple of references to it being fixed in previous software/firmware versions. I am currently using v1.22.2.

If I had to guess, it looks like something is failing in the shutdown command so the board is never off when the RTC tries to wake it? I added a debug line after the shutdown command just to see if maybe it just kept running, but nothing gets logged.

Oh, and I’m not sure if it is related, but when I am looking through the logs and such on USB power, it never takes a new reading unless I manually run the main.py or do a reset.

I’m going to try the watchdog timer proposed here:
[0.0.9 - Enviro Urban - Exception while uploading - Caused board to hang fro 2hrs · Issue #119 · pimoroni/enviro · GitHub](GitHub: Enviro Issue #119)

Here’s the log (the Watchdog doesn’t appear to have helped):

2024-12-31 15:30:14 [info / 137kB] > Disconnecting wireless after upload
2024-12-31 15:30:14 [info / 135kB] > going to sleep
2024-12-31 15:30:14 [debug / 133kB] - clearing and disabling previous alarm
2024-12-31 15:30:14 [info / 131kB] - setting alarm to wake at 15:45pm
2024-12-31 15:30:14 [info / 128kB] - shutting down
2024-12-31 23:23:59 [info / 142kB] > performing startup
2024-12-31 23:23:59 [debug / 140kB] - running Enviro 0.0.10, MicroPython v1.22.2, enviro v1.22.2 on 2024-03-06
2024-12-31 23:23:59 [info / 134kB] - wake reason: rtc_alarm

While wake reason says rtc_alarm, it’s because I hit the reset button on the back of the board.