firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Bug]: Heltec tracker (or ESP32-S3 in general?) user button doesn't work while in light sleep

Open geeksville opened this issue 1 year ago • 5 comments

Category

Hardware Compatibility

Hardware

Heltec Wireless Tracker

Firmware Version

2.5.? (a private build from today's master)

Description

While working on #4154 I noticed that the heltec tracker board is not automatically waking from light sleep when the user presses a button.

For instance (if board is configured as a router so that it sleeps and turns the screen off often), the last log messages seen before light sleep are:

DEBUG | ??:??:?? 7 [Screen] haveGlyphs=1
DEBUG | ??:??:?? 8 [Screen] haveGlyphs=1
INFO  | ??:??:?? 8 [PowerFSM] Turning off screen
INFO  | ??:??:?? 9 [PowerFSM] lsEnter begin, ls_secs=86400
INFO  | ??:??:?? 10 [PowerFSM] setup LORA_DIO1 (GPIO14) with wakeup by external source

The radio is able to wake the board (good), but also the user button on the board should also be sufficient for wake. The wake does not occur if you press the button. I suspect that something is wrong on the esp32-s3 gpio config for that button. It should be configured to generate an interrupt to wake the CPU from sleep (so we can then run our regular button processing)

Alas, I don't think I'll have time to investigate this problem before I leave town. So recording it so that it is known and perhaps someone else can dig into it as needed.

Relevant log output

No response

geeksville avatar Aug 28 '24 17:08 geeksville

Just as an initial report: I checked Heltec Wireless Paper with 2.5.0.d6dac17 from the web flasher, and the user button is waking from light-sleep as expected, so this might be version specific or device specific. I'll try building master later on and see if anything changes.

Update: not seeing any issues with current master (2.5.0.5bc17a9)

todd-herbert avatar Aug 29 '24 03:08 todd-herbert

I am seeing this on my nodes with cardkbs while in lite sleep. User button no longer allows the node to wake, only wakes when I press the keyboard

HarukiToreda avatar Oct 07 '24 05:10 HarukiToreda

@HarukiToreda With Heltec V3, right?

todd-herbert avatar Oct 07 '24 09:10 todd-herbert

Seems like they're coming out of Deep Sleep just fine with the user button interrupt. Been using this on my V3 and Tracker. I wonder if we just need to A/B compare those.

thebentern avatar Oct 07 '24 12:10 thebentern

(btw: it is taking a bit longer to setup our new rental apartment than expected, so I won't be back to recreational github meshtastic futzing until about 10/17 :-( )

On Mon, Oct 7, 2024 at 8:01 PM Ben Meadors @.***> wrote:

Seems like they're coming out of Deep Sleep just fine with the user button interrupt. Been using this on my V3 and Tracker. I wonder if we just need to A/B compare those.

— Reply to this email directly, view it on GitHub https://github.com/meshtastic/firmware/issues/4579#issuecomment-2396732533, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABXB2OY4JUBY7HNILQROL3Z2JZY3AVCNFSM6AAAAABNIZJZGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJWG4ZTENJTGM . You are receiving this because you were assigned.Message ID: @.***>

geeksville avatar Oct 10 '24 02:10 geeksville