This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[nrf52840 zigbee] How to know packet is via router or not ?

Hi,

I am developing sensor products with zigbee (nrf52840).

I have successfully test that sensor data is received by coordinator.

Network is as follows.

ZC(1)                                               ZED(sensor)

                   ZR

1. How to know that data path?

ZED --> ZR -->ZC 

or

ZED --> ZC ?

I want know that at ZC site, packet is routed to ZC.

2.

If Persistent Config Erase are all FALSE, then

data path from ZED to ZC is fixed or dynamic according to  ZR location ?

Thanks.

Parents Reply
  • Hi.

    The data path in ZigBee is dynamic, the path between routers is found by Route Request/Response packets, but for ZED the path always goes through a parent node that is selected upon bootup and each disconnection. As a result - ZED does not know the full path, only the single-hop destination. The same applies for routers along the data path. For routers there is one exception though - if the destination node uses source routing. In such situation you may see the whole data path at the collector node.

    I will recommend that if you want to see the path packets take throught the network you should use a packet sniffer and Wireshark. If you only care about a particular end device it should be sufficient to check its parent node.

    Best regards,

    Andreas

Children
No Data
Related