Closed Bosemani closed 9 months ago
@Bosemani So are there two questions here?
1) Deep sleep example cannot join the network where the coordinator is located 2) When the network connection is not successful, resetting the device will crash
However, based on the environment you provided, using ESP32H2 as the coordinator, the deep sleep example can successfully connect to the network without crashing, but we haven't tried using Zigbee2mqtt as a Coordinator.
So can you provide a packet capture file using Wireshark when runing the deep sleep example?
Hai @kelin6
I tested using esp-idf stable release, at that time crash was happen. Now I Changed to Master Branch. Now there is no crash. Its working Fine.
Thank you.
Edit: One suggestion, if you include Light sleep & Deep sleep. It will be good for battery operated devices.
Answers checklist.
IDF version.
v5.1.2
esp-zigbee-lib version.
V.1.0.5
esp-zboss-lib version.
V.1.0.5
Espressif SoC revision.
ESP32-H2
What is the expected behavior?
As per Readme File
I (414) sleep: Configure to isolate all GPIO pins in sleep state I (420) sleep: Enable automatic switching of GPIO sleep configuration I (427) main_task: Started on CPU0 I (427) main_task: Calling app_main() I (437) ESP_ZB_DEEP_SLEEP: Not a deep sleep reset I (437) ESP_ZB_DEEP_SLEEP: Enabling timer wakeup, 20s
I (447) phy: phy_version: 211,0, 5857fe5, Nov 1 2023, 11:31:09 I (447) phy: libbtbb version: ce629d6, Nov 1 2023, 11:31:19 I (457) main_task: Returned from app_main() I (587) ESP_ZB_DEEP_SLEEP: ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL I (587) ESP_ZB_DEEP_SLEEP: Zigbee stack initialized I (587) ESP_ZB_DEEP_SLEEP: Start network steering I (10557) ESP_ZB_DEEP_SLEEP: Joined network successfully (Extended PAN ID: 60:55:f9:ff:fe:f7:2f:3e, PAN ID: 0xe4c4, Channel:13, Short Address: 0x5e1c) I (10567) ESP_ZB_DEEP_SLEEP: Start one-shot timer for 5s to enter the deep sleep I (15567) ESP_ZB_DEEP_SLEEP: Enter deep sleep
What is the actual behavior?
On the First Boot Crash was not Happening but Not Joining the network Here is the Log I'm using Zigbee2mqtt as a Coordinator. In V1.0.5 I'm Facing this issue.
Then I Reset the device. Now Crash was happening. Here is the Log
Steps to reproduce.
"examples\esp_zigbee_sleep\deep_sleep"
exampleMore Information.
No response