Hi all,
I am new to ConnectPort X4. I would like to receive all 802.15.4 radios data on it.
How to configure it to receive from another socs?
How to set panid,channel in it?
Please help me.
Thanks in advance.
The below is the code was i write to transmit and receive.
I am successfully transmitted the data but didn’t get any data on it.
from socket import *
import time
import xbee
DESTINATION=(“aa:bb:cc:dd:00:00:00:01!”,
0xe8, 0xc105, 0x11)
sd = socket(AF_XBEE, SOCK_DGRAM, XBS_PROT_APS)
sd.bind((“”,0x00, 0, 0))
while 1:
sd.sendto(“Hello, World!”, 0, DESTINATION)
localtime = time.asctime(time.localtime(time.time()))
print 'local current time:',localtime,'success'
time.sleep(0.5)
data,status = sd.recvfrom(72)
print status
print data