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

Zigbee Sleepy End Device Example #9962

Closed
1 task done
felipejfc opened this issue Jun 29, 2024 · 3 comments
Closed
1 task done

Zigbee Sleepy End Device Example #9962

felipejfc opened this issue Jun 29, 2024 · 3 comments
Assignees
Labels
Type: Feature request Feature request for Arduino ESP32

Comments

@felipejfc
Copy link

felipejfc commented Jun 29, 2024

Related area

Zigbee

Hardware specification

ESP32-C6

Is your feature request related to a problem?

We currently lack an example of working sleepy end device.

Describe the solution you'd like

We should have a working example, I did try to make it by myself, however I don't ever receive "ESP_ZB_COMMON_SIGNAL_CAN_SLEEP", also, I can't configure PM cause it causes a crash. Reference project: https://github.com/espressif/esp-zigbee-sdk/tree/main/examples/esp_zigbee_sleep/light_sleep

EDIT:

I actually receive the signal, however current consumption keeps super high even when I call esp_zb_sleep_now()

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@felipejfc felipejfc added the Type: Feature request Feature request for Arduino ESP32 label Jun 29, 2024
@P-R-O-C-H-Y
Copy link
Member

Hi @felipejfc, I have added a sleepy example #10551. Deep sleep is used so there is no need to set up PM.
I am closing this issue as solved. If you have any questions feel free to reopen or text here :)

@felipejfc
Copy link
Author

Thx for that!! Super cool.
Is light sleep also supported though? For some applications, deep sleeping will be less power efficient because it takes much longer to bootstrap radio signal etc after one than if light sleeping

@P-R-O-C-H-Y
Copy link
Member

The light sleep is currently not possible, as the Power Management would need to be enabled in sdk config which is not currently. Also what is used for Zigbee in the official light sleep example (what you have linked in the description) is the FreeRTOS tickles idle, which may bring some unexpected behavior (CONFIG_FREERTOS_USE_TICKLESS_IDLE).

We may add the PM in the future releases, when we do I will test the light sleep with Zigbee and if its doable, I will implement it and add another example :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature request Feature request for Arduino ESP32
Projects
None yet
Development

No branches or pull requests

2 participants