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

Getting lag in ESP_ZB_CORE_SET_ATTR_VALUE_CB_ID (TZ-1521) #555

Open
mundevx opened this issue Feb 4, 2025 · 8 comments
Open

Getting lag in ESP_ZB_CORE_SET_ATTR_VALUE_CB_ID (TZ-1521) #555

mundevx opened this issue Feb 4, 2025 · 8 comments
Labels

Comments

@mundevx
Copy link

mundevx commented Feb 4, 2025

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

@github-actions github-actions bot changed the title Getting lag in ESP_ZB_CORE_SET_ATTR_VALUE_CB_ID Getting lag in ESP_ZB_CORE_SET_ATTR_VALUE_CB_ID (TZ-1521) Feb 4, 2025
@mundevx
Copy link
Author

mundevx commented Feb 4, 2025

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 .

@mundevx
Copy link
Author

mundevx commented Feb 4, 2025

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));
I am getting signal status "ZB_NWK_COMMAND_STATUS_PARENT_LINK_FAILURE". What will be the cause? My zigbee device is very near to gateway Home Assistant.

@mundevx
Copy link
Author

mundevx commented Feb 6, 2025

Hi @xieqinan

Any update?

@xieqinan
Copy link
Contributor

xieqinan commented Feb 6, 2025

The ZB_NWK_COMMAND_STATUS_PARENT_LINK_FAILURE indicates that the end device is expired and cannot maintain a connection with its parent. I have tested the examples/esp_zigbee_HA_sample/HA_on_off_light example with Home Assistant, and it works fine without encountering this issue. It would be helpful if you could provide an example to reproduce the issue along with the .pcap file for further investigation.

@mundevx
Copy link
Author

mundevx commented Feb 6, 2025

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.
When home assistant send some command to turn on/off light, then Zigbee attribute callback executed. Then sometime i got this message and got stuck for some time for callback. Means there is lag between data send by home assistant and data received by zigbee callaback.

@xieqinan
Copy link
Contributor

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.

@mundevx
Copy link
Author

mundevx commented Feb 21, 2025

homeassistant_espressif.zip

@xieqinan ,

The devices with short address 0x8ad3, 0x5787, 0x74ef, 0xd18d are creating lag and displaying signal code 0x09.
I attached the .pcapng file.

@mundevx
Copy link
Author

mundevx commented Feb 21, 2025

new_capture_0x0b79.zip
@xieqinan ,

Above capture file is for a single device 0x0b79. This can be helpful for you.

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