Hi All
I would like to know when i receive a packet in ZStack, where can I get the radius value (how many hops the packet taked from the destination to source).
Regards
JVELL
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi jvell,
afaik, a standard ZigBee packet does not carry a hop count as it traverses the network. On the other hand it probably does not need to because ZigBee network topology is not expected to change and in such a network just find the path from a source to a destination once is enough.
so an alternative is to actually trace the route a packet goes through by sending ZDO_MGMT_RTG_REQ to the source node, find out in the returned routing table which node is the next hop for the interested destination; then sending ZDO_MGMT_RTG_REQ to this next hop to find out yet the next hop, so on until reaching the interested destination.
btw, because of how aodv works, a route for a source to a destination may not be the same as the route from the same destination to the same source...
lj