espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
174 stars 29 forks source link

Monitoring RSSI for Zigbee Gateway Devices (TZ-1286) #476

Open renatomotorline opened 1 week ago

renatomotorline commented 1 week ago

Question

What is the best way to keep the RSSI of gateway devices updated? I noticed that esp_zb_zcl_cmd_read_attr_resp_message_t contains RSSI information, but esp_zb_zcl_report_attr_message_t does not. Shouldn't the RSSI information also be included in esp_zb_zcl_report_attr_message_t to facilitate continuous monitoring?

Additional context.

No response

xieqinan commented 1 week ago

What is the best way to keep the RSSI of gateway devices updated?

The Zigbee specification does not define a specific application command to retrieve the RSSI of devices, so I think the good way depend on your application, there isn’t an ideal method for monitoring device RSSI directly. However, esp_zb_zdo_mgmt_lqi_req() provides a way to obtain basic information, including the LQI, from the neighbor table of a local or remote device—this may meet your requirements. Alternatively, you can use esp_zb_nwk_get_next_neighbor() to check the RSSI of devices listed in the gateway's neighbor table.