I’m using 3 xbee s2 and 1 arduino. Xbee A as coordinator API, Xbee B&C as router AT. they communicate point to multipoint. I want to get the rssi from coordinator & i’m using this code:
If I have two end-devices which send packets to Coordinator, how to know which RSSI value belongs to which end-device? I can parse an API frame to find the source of the received packet and intermediatly read pin6 (or use DB command) to get RSSI but it seems my technique is NOT good enough to conclude the read RSSI really belongs to that data frame.
The DB command and RSSI value only report the value for the last packet received. Unless the End devices are directly associated with your Coordinator, the value you will get will be the value of the Parent router sending the data to the Coordinator.
In my case, MULTIPLE end-devices are directly associated with Coordinator, so it’s OK to use DB command to get RSSI. But how do I know the reported RSSI value comes from which end-devices?
You are going to need to use either API mode which gives you the 64 bit address of who sent the data or you will need to add some sort of address to your payload indicating who sent it.