Home/Support/Support Forum/Coordinator sends data to Router, but Router can't send back

Coordinator sends data to Router, but Router can't send back

0 votes
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(" +
+\n")

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
asked Oct 19, 2020 in RF Solutions and XBee by elizabeth.farrell New to the Community (3 points)

Please log in or register to answer this question.

2 Answers

0 votes
Try setting the DL and DH to the MAC address of the coordinator instead.
answered Oct 21, 2020 by mvut Veteran of the Digi Community (15,223 points)
0 votes
This turned out to be an issue with the data I was trying to send (needed MESSAGE = str(payload.decode()) instead of just MESSAGE = str(payload) for the return data). The big issue though is that as soon as this error happens you have to power cycle, switch back to AT mode, then return to micro python. The devices will not communicate again until you do so (maybe there's a better way?).
answered Oct 21, 2020 by elizabeth.farrell New to the Community (3 points)
...