# End device not routing through router to connect to coordinator

**URL:** <https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372>\
**Category:** XBee Programamble (S2C & 900 HP)\
**Tags:** device, coordinator, end-device, xbee-coordinator-rou, xbee\
**Created:** [September 9, 2016, 7:54am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372 "2016-09-09T07:54:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinayatsusten](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vinayatsusten](https://forums.digi.com/u/vinayatsusten)\
**Post date:** [September 9, 2016, 7:54am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/1 "2016-09-09T07:54:29Z")

</div>

I have 3 modules of xbee pro s2b and I’ve configured one as coordinator, router and 3rd one as end-device. I managed to put end-device out of the range from coordinator but in the range of router and router is in the range of coordinator. Both router and end-device are having destination address as source address of coordinator. Now communication route is expected to be

router \>\>\> coordinator  
and  
end-device \>\>\> router \>\>\> coordinator

I have carefully configured PAN ID and SC parameters and tested that router and end-device communicate to coordinator individually when in range. But as soon as I take end-device out of range from coordinator, end-device stops communication with the coordinator and does not connect to router even after waiting for some time. Coordinator AR parameter is configured with AR = 0xFE, so that I have routing table being updated and packet is routed. I restarted end-devices with turning power off/on and did wait for more than an hour but no luck. End device is not routing packet through router to coordinator. Then I configured end-device as router and repeated above process but still no luck, as device is not routing packet through router to coordinator. I understand that routing via router should be automatic but I have no luck in observing such a behavior. What am I missing?

---

<div class="post-metadata">

**Author:** ![csreddy](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@csreddy](https://forums.digi.com/u/csreddy)\
**Post date:** [September 9, 2016, 11:03am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/2 "2016-09-09T11:03:46Z")

</div>

put your router in broadcast mode and test once it will work (DH=0,DL=FFFF for router)

---

<div class="post-metadata">

**Author:** ![vinayatsusten](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vinayatsusten](https://forums.digi.com/u/vinayatsusten)\
**Post date:** [September 9, 2016, 11:16am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/3 "2016-09-09T11:16:05Z")

</div>

So, all the routers in the network should be in broadcast mode and end devices be in unicast with destination as coordinator source address for may to one protocol to work?

---

<div class="post-metadata">

**Author:** ![csreddy](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@csreddy](https://forums.digi.com/u/csreddy)\
**Post date:** [September 9, 2016, 11:30pm UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/4 "2016-09-09T23:30:25Z")

</div>

yes it should like that other both is going to be unicast and your end device is going to be out of range

---

<div class="post-metadata">

**Author:** ![vinayatsusten](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vinayatsusten](https://forums.digi.com/u/vinayatsusten)\
**Post date:** [September 12, 2016, 8:06am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/5 "2016-09-12T08:06:57Z")

</div>

Hi @csreddy, I have followed your answer but still no luck in establishing connection through router. I thought xbee series 2 devices route data through their neighbours without being configured as broadcast device. Is it true? Also as I’m trying to establish many-to-one routing protocol in the network I have configured coordinator with AR = 1 now i.e. routing tables are updated every 10 secs. Should I configure router as well with AR = 1? Nothing like that is mentioned in the manual though.

---

<div class="post-metadata">

**Author:** ![csreddy](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@csreddy](https://forums.digi.com/u/csreddy)\
**Post date:** [September 13, 2016, 12:06am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/6 "2016-09-13T00:06:16Z")

</div>

scan the network and see once. if the end module is connected or not in the network

---

<div class="post-metadata">

**Author:** ![vinayatsusten](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vinayatsusten](https://forums.digi.com/u/vinayatsusten)\
**Post date:** [September 13, 2016, 8:06am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/7 "2016-09-13T08:06:16Z")

</div>

I have solved issue. The problem was one of my friend had configured router in sleep mode 4 and which is why XBee module was acting as end device though configured as router. I reconfigured sleep mode to 0 and now everything is working fine. Also it does not matter if router is in broadcast or unicast mode. Everything works in either case. @csreddy thanks for taking out time to help me.

---

<div class="post-metadata">

**Author:** ![vinayatsusten](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vinayatsusten](https://forums.digi.com/u/vinayatsusten)\
**Post date:** [September 13, 2016, 12:50am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/8 "2016-09-13T00:50:35Z")

</div>

Issue was that router was configured in sleep mode 4 in which case it is as good as end device and won’t allow any children to connect to it as NC = 0 when SM \>0. So configure SM = 0 and NC will be 0x0C(max no of children that can connect) for router of XBee pro series 2.

---

<div class="post-metadata">

**Author:** ![hwjang11](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@hwjang11](https://forums.digi.com/u/hwjang11)\
**Post date:** [October 11, 2016, 7:57am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/9 "2016-10-11T07:57:09Z")

</div>

You said that all the routers in the network should be in broadcast mode and end devices be in unicast with destination as coordinator source address for may to one protocol to work.  
What does it mean? you mean that DL of router is 0xFFFF?

---

<div class="post-metadata">

**Author:** ![csreddy](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@csreddy](https://forums.digi.com/u/csreddy)\
**Post date:** [October 13, 2016, 3:40am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/10 "2016-10-13T03:40:25Z")

</div>

yes the dl=ffff and dh=0

---

<div class="post-metadata">

**Author:** ![hwjang11](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@hwjang11](https://forums.digi.com/u/hwjang11)\
**Post date:** [October 13, 2016, 9:03am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/11 "2016-10-13T09:03:36Z")

</div>

I have to set the router’s DL FFFF in general. Is it right?

In my case, some end device/router will send the message to coordinator and also communicate each other. Then routers’s DL FFFF is proper also in that case?

---

<div class="post-metadata">

**Author:** ![someshwara](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@someshwara](https://forums.digi.com/u/someshwara)\
**Post date:** [December 26, 2019, 9:55am UTC](https://forums.digi.com/t/end-device-not-routing-through-router-to-connect-to-coordinator/17372/12 "2019-12-26T09:55:14Z")

</div>

dear vinayatsusten  
please send parameters you have set for coordinator  
router and end device  
function set of coordinator  
router and end device  
DL PANID ID  
IAM UNABLE TO COMMUNICATE END DEVICE TO ROUTER TO COORDINATOR
