I am a new beginer with Digi ESP. I am trying to do a simple test using ESP python sample XbeeHello.py to establish communication between two ConnectPort Xfamily devices.
As wirten from the Python Programing Guid, I want to send “Hello, world!” to a fixed node address. I loaded below python example into ConnectPort X4 to run with DESTINATION address modified, and sent the"Hello world" to my ConnectPortX2 device.
import sys, os
from socket import *
DESTINATION=(“00:13:a2:00:40:4a:3b:5c!”, 0xe8, 0xc105, 0x11)
sd = socket(AF_XBEE, SOCK_DGRAM, XBS_PROT_TRANSPORT)
sd.bind((“”, 0xe8, 0, 0))
sd.sendto(“Hello, World!”, 0, DESTINATION)
After that I want to receive "Hello world " from my desitination address which is the ConnectPortX2 device. what should I do? Should I use the reading and wirting example to receive and payload back? I am not sure how to do next step. I tried many time from theTelnet, however, it doesn’t work.
Can any one help me?
Thank in advance…