I am currently trying to establish a communication between s5 pro nodes and a connectPort X2 868.
To do so I have set my gateway as a coordinator and my nodes as end-devices. I have assigned the same PAN ID to each one of them (the nodes are detected by the gateway under Xbee Network) and the DH and DL of the nodes are set to the mac address of the gateway.
Sending data to the nodes works well but I can't receive any answer from them (I use XCTU to send packets).
Here is the python code I run on the gateway:
print "Starting Application"
# Check platform of gateway. it's either NDS or Digi Embedded Linux
if sys.version_info < (2, 6):
print "Running NDS"
sock = socket.socket(socket.AF_ZIGBEE, socket.SOCK_DGRAM, socket.ZBS_PROT_TRANSPORT)
print "Running DBL"
sock = socket.socket(socket.AF_ZIGBEE, socket.SOCK_DGRAM, socket.XBS_PROT_TRANSPORT)
# Determine if the xbee modem in the Digi gateway is using 'Zigbee' or
# 'DigiMesh' firmware. Then bind accordingly.
if ord(xbee.ddo_get_param(None, 'VR')) == 0x10:
print "Binding to Digi Mesh"
sock.bind(("", 0x00, 0, 0))
print "Binding to Zigbee"
sock.bind(("", 0xe8, 0, 0))
DESTINATION = ('00:13:a2:00:40:8b:cf:5b!',0,0,0)
sock.sendto('Hello World!', 0, DESTINATION)
payload, src_addr = sock.recvfrom(255)
Any help would be much appreciated!