To obtain the associated devices of a router or coordinator i use the Nwk_addr_req.
ZDO_NwkAddrReq_t.reqType = 0x01; // extended response
The response is not what i expected in regard to the standard.
- The nwkAddrAssocDevList holds only very recently joined devices!
- After a second Nwk_addr_req the nwkAddrAssocDevList is empty?!
Maybe the child/ parent relationship between nodes is is a reason for that?
For example two ZDO_Mgmt_lqi requests for the coordinator and one of the childs shows that the response NeighborTableList_t.relationship is set to 0x0 (neighbor is parent) correctly but in each other case it always is 0x3 (not exactly specified).
It seems that the childs know the parent but the parent doesn't know the neighbour relationships (or it doesn't treat routers as childs?).
Any ideas? In the moment I use the ZDO_Mgmt_lqi_req to discover the nodes of a network but the ZDO_Nwk_addr_req would be nicer. :)