Closed cdealti closed 8 years ago
I agree that the discovery would need some love. One additional thing would be to share list of already discovered nodes between all discovery modes.
Discovery has been re-implemented for Simple ZigBee API which is currently under experimental status. For details see ZigBeeNetworkDiscoverer.
I believe the discovery process is too chatty. In the log below (a network only composed by the dongle) look for occurrences of Waiting for other request to complete. It looks like too many requests are issued concurrently and some are probably not needed. Among the others:
At 11:09:39 698. ZDO_IEEE_ADDR_REQ is issued to get the IEEE address of the node and the nwk address of the associated nodes. This is actually not needed because, if the discovery starts from the coordinator, we already know its IEEE address (from ZB_GET_DEVICE_INFO_RSP). The list of associated nodes (with their IEEE addresses) can be derived from ZDO_MGMT_LQI_RSP.
So I don't see the need for ZDO_IEEE_ADDR_REQ. What do you think?