user2904: 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? 

user2904: It is done by using Source Routing
The 16-bit addresses of the hopped devices are added to the RF payload space, thus it will reduce the number of bytes that can be sent in one RF packet.

2904: <p>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.</p>

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

<p>Example: 
<br/>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. <br><strong>Path: end-device->routerB->routerA->Coordinator</strong>. 
<br/>Is it possible to know the end-device is in area B as it is the first router device the packet travelled through? </p>
 2904: <p>It is done by using <a href="https://www.digi.com/wiki/developer/index.php/Large_ZigBee_Networks_and_Source_Routing" rel="nofollow">Source Routing</a></p>

<p>The 16-bit addresses of the hopped devices are added to the RF payload space, thus it will reduce the number of bytes that can be sent in one RF packet.</p>
