Is it possible to trace the route a packet travelled from the end-device to the coordinator?

I am trying to build a ZigBee network using XBee Pro S2 devices (API Mode). Setting up the network and sending packets is easy enough.

Is it possible to trace the route a packet travelled from the end-device to the coordinator?

Example:
I have 2 routers, one in area A connected to the coordinator, and the other in area B connected to the router in area A. End-device enters area B, and transmits a packet to the coordinator.
Path: end-device->routerB->routerA->Coordinator.
Is it possible to know the end-device is in area B as it is the first router device the packet travelled through?

Sure, you can use Source Routing which will provide you with the path a data pack takes from one node to the destination node.

1 Like

How is that possible please?

You issue the AR command. Once a node then responds, a rout packet is provided.