I'm working on a project that involves the XBee Series 2B radios and could use some advice in regards to determining what end device the data packets are coming from. The setup includes a Python 2.7 application running on a Raspberry Pi Model B.
The Python-XBee 2.1.0 documentation states: ZigBee devices extend this behavior to include automatic parsing of βNDβ, Node Discover, AT command responses. The parameter field of a ND AT response will assume the following format:
{"source_addr": two bytes,
"source_addr_long": eight bytes,
"node_identifier": string,
"parent_address": two bytes,
"device_type": one byte,
"status": one byte,
"profile_id": two bytes,
"manufacturer": two bytes,
}
I take this to mean that the I/O sample messages for the ZigBee's contains the above parameter field.
Is source_addr == the 16 bit MY parameter of the end point radio?
Can it be gotten with:
ser = serial.Serial('/dev/ttyUSB0', 9600)
xbee = ZigBeer(ser)
myID = xbee.source_addr
Thanks!