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

GPIO Wakeup (TZ-1122) #422

Open
sbusceti opened this issue Sep 8, 2024 · 1 comment
Open

GPIO Wakeup (TZ-1122) #422

sbusceti opened this issue Sep 8, 2024 · 1 comment
Labels

Comments

@sbusceti
Copy link

sbusceti commented Sep 8, 2024

Question

Good morning everyone,
I have a doubt regarding the GPIO wakeup mode combined with Zigbee light sleep using the command esp_zb_sleep_now();.
Is it possible to wake up the ESP32-H2 with GPIO (without using EXT1)?
I have done some tests, but I couldn't get it to work, while I have no issues with EXT1.
Reading the documentation, I found this:
https://docs.espressif.com/projects/esp-idf/en/stable/esp32h2/api-reference/system/sleep_modes.html#gpio-wakeup
My goal is to wake up the ESP32-H2 when one of N pins changes state and then invert the condition for wakeup.
For example:

  • pin12 and pin13 are configured to wake up on a low level.
  • pin12 goes low, pin13 remains high, so the ESP wakes up and inverts the wakeup condition only for pin12.

So the new configuration for the next wakeup will be:

  • pin12 wakes up with HIGH, pin13 wakes up with LOW, and so on...

Is this possible?
Thanks!

Additional context.

No response

@github-actions github-actions bot changed the title GPIO Wakeup GPIO Wakeup (TZ-1122) Sep 8, 2024
@lpy4105
Copy link
Contributor

lpy4105 commented Sep 20, 2024

Hi @sbusceti

It sounds like a question that is not related to the zigbee stack. Could please raise a question to IDF project?

Personally, it seems to be feasible, you could find some examples for light sleep/wakeup here:https://github.com/espressif/esp-idf/tree/master/examples/system/light_sleep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants