My coordinator successfully transmits data to my router, but my router cannot send data back. I’m working in AT mode, the pan ID, AI, and channel all match. DH/DL on the coordinator is set to 0/FFFF, DH/DL on the router is set to 0/0. This has to be something basic…what am I missing? Baud rate, firmware version, AP mode all match.
import xbee
TODO: replace with the 64-bit address of your target device.
TARGET_64BIT_ADDR = b’\x00\x13\xA2\x00\x41\xAE\x9D\xC8’
MESSAGE = “Hello XBee!”
print(" ±--------------------------------------+“)
print(” | XBee MicroPython Transmit Data Sample |“)
print(” ±--------------------------------------+
")
print(“Sending data to %s >> %s” % (‘’.join(‘{:02x}’.format(x).upper() for x in TARGET_64BIT_ADDR),
MESSAGE))
try:
xbee.transmit(TARGET_64BIT_ADDR, MESSAGE)
print(“Data sent successfully”)
except Exception as e:
print(“Transmit failure: %s” % str(e))
Result:
Sending data to 0013A20041AE9DC8 >> Hello XBee!
Transmit failure: [Errno 7107] ENOTCONN