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 signal quality (TZ-754) #314

Closed
acha666 opened this issue Apr 10, 2024 · 5 comments
Closed

Getting signal quality (TZ-754) #314

acha666 opened this issue Apr 10, 2024 · 5 comments
Labels

Comments

@acha666
Copy link

acha666 commented Apr 10, 2024

Question

Hi,

Is there a API to get the signal quality(maybe LQI or RSSI) of current connection?

Additional context.

No response

@github-actions github-actions bot changed the title Getting signal quality Getting signal quality (TZ-754) Apr 10, 2024
@xieqinan
Copy link
Contributor

@acha666

No, there isn't a single API specifically for obtaining the RSSI. However, the general command response (ESP_ZB_CORE_CMD_READ_ATTR_RESP_CB_ID, ESP_ZB_CORE_CMD_WRITE_ATTR_RESP_CB_ID) includes RSSI information. You can try sending a read or write attribute packet to the remote device; it will respond with the esp_zb_zcl_cmd_read_attr_resp_message_t, which contains the RSSI member.

@acha666
Copy link
Author

acha666 commented Apr 11, 2024

@xieqinan

Thank you. However, it seems that this method is for coordinator devices only. Could you advise how to get the signal quality in an end device application?

@xieqinan
Copy link
Contributor

@acha666 ,

Why do you think this method can only be used in the coordinator? Is it because the coordinator does not include any cluster? I believe any device capable of sending read/write commands can use it to retrieve signal quality.

@simonborje
Copy link

@xieqinan
A related question: When I read the info.header.rssi value in the ESP_ZB_CORE_CMD_READ_ATTR_RESP_CB_ID callback handler on the coordinator side, the value is always 0 no matter the distance between the devices. Is there anything else I need to do to get the rssi value?
This is with SDK version 1.2.3 and IDF 5.1.3.

@xieqinan
Copy link
Contributor

@simonborje, @acha666 ,

The issue has bee resolved in esp-zigbee-sdk v1.3.0, could you please update the version and test again?

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

3 participants