# problem connecting two XBee modules

**URL:** <https://forums.digi.com/t/problem-connecting-two-xbee-modules/21163>\
**Category:** XBee & XBee Gateway\
**Tags:** xb24-zb, usb-serial-adapter, xctu, xbee\
**Created:** [March 3, 2020, 9:18am UTC](https://forums.digi.com/t/problem-connecting-two-xbee-modules/21163 "2020-03-03T09:18:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Jalili](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Amir\_Jalili](https://forums.digi.com/u/Amir_Jalili)\
**Post date:** [March 3, 2020, 9:18am UTC](https://forums.digi.com/t/problem-connecting-two-xbee-modules/21163/1 "2020-03-03T09:18:35Z")

</div>

Hello everyone,  
I searched and didn’t find a similar question in the forum.  
I have a pair of XB24-Z7WIT-004 modules. I have connected them both to my laptop through USB adapters.  
This is product family, function set, and firmware version I’ve flashed into them using XCTU:  
XBee #1: XB24-ZB, ZigBee Router AT, 22A7  
Xbee #2: XB24-ZB, ZigBee coordinator AT, 20A7  
The configuration values for the coordinator are:  
ID(PAN ID) = D161  
SC(scan channels) = F  
NJ(node join time) = FF  
CH(operating channel) = E  
SH(serial number high) = 13A200  
SL(serial number low) = 40CAB14B  
DH(destination address high) = 13A200  
DL(destination address low) = 40CAB136  
The configuration values for the router are:  
ID(PAN ID) = D161  
SC(scan channels) = F  
OP(operating PAN ID) = 0  
SC(scan channels) = F  
CH(operating channel) = 0  
SH(serial number high) = 13A200  
SL(Serial number low) = 40CAB136  
MY(16-bit network address0 = FFFE  
DH(Destination address high) = 13A200  
DL(destiantion address low) = 40CAB14B  
They both have their power level set to 4 (highest) and they are both turned on. But as you can see, router’s network address is 0xFFFE which to my knowledge means it’s not joined a network. And the communication doesn’t take place when I open up two serial connections in XCTU. What am I doing wrong? Is this setup even supposed to work? Any help would be appreciated.

---

<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:** [March 3, 2020, 9:43am UTC](https://forums.digi.com/t/problem-connecting-two-xbee-modules/21163/2 "2020-03-03T09:43:21Z")

</div>

Amir,

That is incorrect. You need to look at the AI command as well as the OP and ID values.

In this case I can tell you are not associated based off of the channel value as well as the OP. Try doing an ATNR0 on your coordinator and then see what channel it comes up on and then check your router.

Digi Support

---

<div class="post-metadata">

**Author:** ![Amir\_Jalili](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Amir\_Jalili](https://forums.digi.com/u/Amir_Jalili)\
**Post date:** [March 4, 2020, 9:00am UTC](https://forums.digi.com/t/problem-connecting-two-xbee-modules/21163/3 "2020-03-04T09:00:24Z")

</div>

Thanks for answering  
I issued these commands on a serial session with coordinator:  
+++OK  
ATNR0  
OK  
ATCH  
C  
ATWR  
OK  
ATCN  
OK  
after that I read the configuration parameters on the router. No change. OP is still 0 and AI has value FF. Also on coordinator AI has value 0

---

<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:** [March 4, 2020, 9:03am UTC](https://forums.digi.com/t/problem-connecting-two-xbee-modules/21163/4 "2020-03-04T09:03:51Z")

</div>

Now issue an ATNR0 on your router. But make sure both have antennas, are powered up and within range of each other.

---

<div class="post-metadata">

**Author:** ![Amir\_Jalili](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Amir\_Jalili](https://forums.digi.com/u/Amir_Jalili)\
**Post date:** [March 9, 2020, 8:33am UTC](https://forums.digi.com/t/problem-connecting-two-xbee-modules/21163/5 "2020-03-09T08:33:37Z")

</div>

I went through the procedure over again. I issued the commands for coordinator. This time it obtained channel E. While coordinator was still on, I issued ATNR0 on router and got response OK. But ATCH is returning 0. AI value is still the same as before for both.  
But one thing I noticed was that RSSI LED on my usb-serial-adapter connected to coordinator was blinking about every six seconds. I disconnected the router from my laptop and the LED on coordinator stopped blinking. I Connected the router again and it started blinking. Then it stopped blinking after a few seconds although router was powered up. I issued ATNR0 on the router and coordinator started blinking again. But configuration parameters like AI, OP and are the same as before.

---

<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:** [March 9, 2020, 8:37am UTC](https://forums.digi.com/t/problem-connecting-two-xbee-modules/21163/6 "2020-03-09T08:37:10Z")

</div>

Try restoring both to defaults (ATRE, WR). Also make sure that the antenna is connected on both units.

---

<div class="post-metadata">

**Author:** ![Amir\_Jalili](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Amir\_Jalili](https://forums.digi.com/u/Amir_Jalili)\
**Post date:** [March 10, 2020, 10:32am UTC](https://forums.digi.com/t/problem-connecting-two-xbee-modules/21163/7 "2020-03-10T10:32:33Z")

</div>

After issuing (ATRE,WR) and then doing network reset on both, problem solved. So thanks a lot!
