espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
169 stars 28 forks source link

GPIO Wakeup (TZ-1122) #422

Open sbusceti opened 2 months ago

sbusceti commented 2 months ago

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:

So the new configuration for the next wakeup will be:

Is this possible? Thanks!

Additional context.

No response

lpy4105 commented 1 month ago

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