[Bug]: Power Resuming after deep sleep
Category
Hardware Compatibility
Hardware
T-Beam v1.2 with AXP2101
Firmware Version
2.5.18.89ebafc
Description
System: t-beam with latest firmware Powering with battery and charging with solar panel over USB
For meshtastic a good node coverage is crucial and there fore exposed placed solar powered nodes are often physical hard accessible. Once the AXP2101 chip detects a low battery the MCU puts the device into deep sleep! here is the place in the code: https://github.com/meshtastic/firmware/blob/cdcbf4c61550e45c125e17a20aff4275e9389655/src/PowerFSM.cpp#L65
Unfortunately only pressing a button let the node resume to life. Pushing RST resets the device and pushing the GPIO38 button wakes from deep sleep and lets the device resume to power.
Repowering over USB DOES NOT exit the deep sleep state, since interrups from the AXP are ignored in firmware: https://github.com/meshtastic/firmware/blob/cdcbf4c61550e45c125e17a20aff4275e9389655/src/Power.cpp#L776
So once the device is in deep sleep you have to drive to the node and push a button, this imho contradicts the spirit of meshtastic and self-sufficient systems.
Suggestion: Shutting the device always down on client mode! Then a repowering of the USB brings the device back to life...
Relevant log output
No response
Thanks for the report.
After reading, I'm not sure what we can do in firmware to assist this. It might be simpler to solve in hardware....
Why Not schutting off the device in lowBattSDSEnter() as in shutdownEnter()?
In which scenario and configuration is the deep sleep advantageous?
Maybe a way to be able to turn off the deep sleep? Would be useful. Why 0 is one mimute?
I am dealing with the same issue with a device placed on the roof of a building powered by a small solar panel. Physical access to the device is very hard and depends on other people. I was wondering If the device could not go to this deep power saving state, or if it could read the battery state and resume when battery reaches let us say 50% or any other value.
Is a way to turn off the deep sleep? Have Ing all other enabled?
is it why my c6l UNIT in sensor role, and deep sleep, drained all my batteries in few days? If it doesn't go to sleep again.