-
Notifications
You must be signed in to change notification settings - Fork 41
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
Getting lag in ESP_ZB_CORE_SET_ATTR_VALUE_CB_ID (TZ-1521) #555
Comments
I am getting this lag and data skip in "zb_attribute_handler" when this message "ZDO signal: NLME Status Indication (0x32), status: ESP_OK" displayed on Terminal . |
On printing printf("%s, status: 0x%x\n", esp_zb_zdo_signal_to_string(sig_type), *(uint8_t *)esp_zb_app_signal_get_params(p_sg_p)); |
Hi @xieqinan Any update? |
The |
My example code is same as "examples/esp_zigbee_HA_sample/HA_on_off_light". I am testing it with Home Assistant and i am getting this message not at all time but getting when attribute callback executed. |
Please try to capture the communication message by the sniffer, it can let's know the root of this issue rather than discussing the surface phenomenon. |
The devices with short address 0x8ad3, 0x5787, 0x74ef, 0xd18d are creating lag and displaying signal code 0x09. |
new_capture_0x0b79.zip Above capture file is for a single device 0x0b79. This can be helpful for you. |
Hi @xieqinan , Any update please. |
@mundevx , #555 (comment), Please also attach the network key; otherwise, I cannot parse the file. |
Read by function "esp_zb_secur_primary_network_key_get" Also pre-configured 64-bit encryption keys entered in Wireshark are If your network key is not listed here, then let me know please. |
Hi,
Based on the Wireshark analysis, the issue may be caused by a large number of route requests generated by Home Assistant. It appears that HA's neighbor table size is limited to 19, and it is filled with the around devices, it cannot store additional network addresses of newly joined devices. As a result, HA has to send a route request each time it attempts to communicate with these devices. Please double-check this. |
Hi @xieqinan , Thanks for the answer. But actually point to be noted that the other third parties zigbee lights are working fine with no lag that are connected to same network that Espressif zigbee lights have. Now what i have to do to make it proper functional. Please help me for that. |
First, update the esp-zigbee-sdk to version 1.6.3 or later, as it includes a fix for the unnecessary route request issue. Then, use Wireshark to capture frames. Next, try re-forming the network and ensure that ESP devices join the network before third-party devices. Finally, send commands from the coordinator to both the ESP device and the third-party device to check if the issue still exists. If it does, please provide the By the way, how long is the lag? |
Thank you very much @xieqinan , Actually sometime i got a lag of maximum 8 seconds and sometimes i got no lag. When i got lag, my code stuck and i got attribute callback after that passed lag time. |
Hi @xieqinan , I updated the esp-zigbee-sdk to version 1.6.3 , update my devices firmware, and result is the same. i am still getting lag. |
Please follow the steps: #555 (comment), if this issue still exists, please share the wireshark |
I re-form the network and joined third-party device in the last to Home Assistant. Espressif devices zb addresses: 0xf1dd, 0x81c2 I am sharing you the .pacp file. Please find the attachment. Read by function "esp_zb_secur_primary_network_key_get" Also pre-configured 64-bit encryption keys entered in Wireshark are |
Question
I connected Home Assistant to zigbee network. All my Espressif Zigbee nodes are getting lag in receiving data from home assistant. Sometimes i am getting irregular "zb_attribute_handler" callback data receptions.
I compare my Espressif Zigbee light node with GLEDOPTO Zigbee light. The GLEDOPTO Zigbee light is continuously running without any lag with home assistant.
I then checked simple Zigbee Example "examples/esp_zigbee_HA_sample/HA_on_off_light", my issue is same.
What will be the issue? Can anyone please let me know?
Additional context.
No response
The text was updated successfully, but these errors were encountered: