firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Bug]: Power Resuming after deep sleep

Open mentanah opened this issue 11 months ago • 4 comments

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

mentanah avatar Jan 07 '25 07:01 mentanah

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....

fifieldt avatar Jan 07 '25 08:01 fifieldt

Why Not schutting off the device in lowBattSDSEnter() as in shutdownEnter()?

mentanah avatar Jan 07 '25 10:01 mentanah

In which scenario and configuration is the deep sleep advantageous?

mentanah avatar Jan 16 '25 14:01 mentanah

Maybe a way to be able to turn off the deep sleep? Would be useful. Why 0 is one mimute?

Ccz119 avatar Feb 08 '25 18:02 Ccz119

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.

gustavoulyssea avatar Feb 25 '25 16:02 gustavoulyssea

Is a way to turn off the deep sleep? Have Ing all other enabled?

Ccz119 avatar Mar 26 '25 06:03 Ccz119

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.

neopiccolorat avatar Dec 10 '25 21:12 neopiccolorat