Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
geeksville opened this issue Aug 28, 2024 · 5 comments
Assignees
Labels
bug Something isn't working Stale

Comments

@geeksville
Copy link
Member

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 geeksville added the bug Something isn't working label Aug 28, 2024
@geeksville geeksville changed the title [Bug]: Heltec (or ESP32-S3 in general?) tracker user button doesn't work while in light sleep [Bug]: Heltec tracker (or ESP32-S3 in general?) user button doesn't work while in light sleep Aug 28, 2024
@todd-herbert
Copy link
Contributor

todd-herbert commented Aug 29, 2024

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)

@HarukiToreda
Copy link
Contributor

HarukiToreda commented Oct 7, 2024

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

@todd-herbert
Copy link
Contributor

@HarukiToreda With Heltec V3, right?

@thebentern
Copy link
Contributor

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.

@geeksville
Copy link
Member Author

geeksville commented Oct 10, 2024 via email

@github-actions github-actions bot added the Stale label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

4 participants