# I cannot send the message from router to the coordinator

**URL:** <https://forums.digi.com/t/i-cannot-send-the-message-from-router-to-the-coordinator/15482>\
**Category:** XBee - 802.15.4\
**Tags:** xbee-coordinator, xbee-router, connectxport2\
**Created:** [September 30, 2015, 3:17pm UTC](https://forums.digi.com/t/i-cannot-send-the-message-from-router-to-the-coordinator/15482 "2015-09-30T15:17:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adfadf](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@adfadf](https://forums.digi.com/u/adfadf)\
**Post date:** [September 30, 2015, 3:17pm UTC](https://forums.digi.com/t/i-cannot-send-the-message-from-router-to-the-coordinator/15482/1 "2015-09-30T15:17:22Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [October 7, 2015, 3:21pm UTC](https://forums.digi.com/t/i-cannot-send-the-message-from-router-to-the-coordinator/15482/2 "2015-10-07T15:21:56Z")

</div>

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.
