-
Notifications
You must be signed in to change notification settings - Fork 737
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
Why lqi value in device info is different from it in topology? #2606
Comments
The topology is done with requesting all routers neighbors and the links to them. |
|
I want to know why the values on the page are different from those in the topology diagram. As far as I know, the value of lqi comes from two places, but it has three values that are different from each other. |
As @MattWestb already described, they come from 3 different sources. For the topology, the two LQI between the routers are requested from those routers. For the device info, the LQI is provided by the coordinator firmware and, depending on the firmware, could actually be the LQI of the last hop (i.e. between the coordinator and the nearest router) |
Thank you for your answer. But in the connection between the router and coordinator, the neighbor table only has one value, and to my knowledge, the other value is the connection quality of the last message determined by the coordinator firmware |
Every value in the topology graph comes from the neighbor tables. It could be the neighbor table of the coordinator itself if the coordinator supports loopback ZDO frames. Two devices would give two values for the link between them. See https://github.com/zigpy/zigpy/blob/50bb2171341bd44239898cfd3dd77b22ac49a03e/zigpy/appdb.py#L332 And the device info (and the zha network card) comes from the coordinator firmware with the last received packet, see I would not rely on the value in the device info because it is only for the last hop (and you would probably be more interested in the first hop). |
@Shulyaka What is the LQI / RSSI coming for the https://github.com/dmulcahey/zha-network-card ? |
It comes from the device attributes (i.e. from the coordinator firmware), not the neighbor scan. |
@dmulcahey is your https://github.com/dmulcahey/zha-network-card#zha-network-card using neighbor scans or the last hope to the coordinator ? |
The table is last hop set by zigpy on a per message basis. Neighbors are not used to build the table. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions. |
I know what these two lqi values represent in the topology.But i want to know it in the device info.Why two device (coordinater and router)have 3 lqi value?
The text was updated successfully, but these errors were encountered: