Home/Support/Support Forum/I cannot send the message from router to the coordinator

I cannot send the message from router to the coordinator

0 votes
Hello I'm a new user with this technology,

I have one digi connectxport2 ZB and one ZB router AT.
I can send message from coordinator to the router,
but I cannot send the message from router to the coordinator.
I used this code to receive message in the coordinator:
_______________________________________________________________
import xbee
from socket import *

# Create the socket, datagram mode, proprietary transport:
sd = socket(AF_XBEE, SOCK_DGRAM, XBS_PROT_TRANSPORT)
#if I use 0xe8 I will have an exception
sd.bind(("", 0x00, 0, 0))

# Block until a single frame is received, up to 255 bytes:
print "Waitting For New Packet"
#sd.recvfrom(packetSize)

data, src_addr = sd.recvfrom(255)

print "the data :"
print data
print "src"
print src_addr
______________________________________________________________
This is the main setting of router:

ID= ID of coordinator
SC= FFFF
DH= dh of coordinator
DL= dl of coordinator
OI= oi of coordinator
CH= ch of coordinator
______________________________________________________________

Why do not I have comunication from router to the coordinator? Did I do
something wrong?
asked Sep 30, 2015 in IEEE 802.15.4 by adfadf New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
First try setting the SC to 1FFE on both. Then issue an ATNR0 on the router so that it re-joins the Coordinator.

Next I would recommend doing a set traces state = on mask = xbee:* to see if you get the receive packet back or not.

Keep in mind that the router does need to have its UART connected to something in order to respond with data.
answered Oct 7, 2015 by mvut Veteran of the Digi Community (11,298 points)
...