Running the following python 2.7 code to receive UDP packets from the S6B and echo the packet back:
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((“”, 9750))
while True:
data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes
print “received message:”, repr(data), addr
sock.sendto(data, addr)
I am receiving data from the S6B:
received message: ‘\x0e \x81\x9d@\x00\x00\x00\x07\x00\x00\x00\x00’ (‘20.10.10.101’, 9750)
received message: ‘\x0e \x81\x9d@\x00\x00\x00\xf017L870\x00\x00’ (‘20.10.10.101’, 9750)
received message: ‘\x0e \x81\x9d@\x00\x00\x00\xf017L870\x00\x00’ (‘20.10.10.101’, 9750)
received message: ‘\x0e \x81\x9d@\x00\x00\x00\x07\x00\x00\x00\x00’ (‘20.10.10.101’, 9750
But the S6B is not giving any output that indicates it is receiving UDP packets. I have tried monitoring the radio but in my embedded environments and in XCTU I have confirmed via wireshark that the packets are being sent to the correct port via wireshark.
Setting file:
XB2B-WF-2026.xml
4
2
2
almond
2
0
0
64
258
3
devicecloud.digi.com
20.10.10.254
255.255.255.255
0x20
0x20
0x20
0x20
2616
2616
20.10.10.254
255.255.255.0
20.10.10.101
3
0
0
3
7F3
2
2
1
0
0
0
0
1
0
1
1
1
1
0
0
1
1
7FFF
7FFF
0
0
0
0
28
0
0
1
0
7FFF
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2710
0
100
1F4
1388
0
2B
64
3E8
Has anyone had luck receiving UDP packets with the S6B? Am I not supposed to send the packets to the port specified by DE? The manual talks about the XBee application service on port 0xBEE but I am unsure if I have to use that in API escaped mode.