# NJ commands on routers and coordinators

**URL:** <https://forums.digi.com/t/nj-commands-on-routers-and-coordinators/14844>\
**Category:** XBee - Zigbee\
**Tags:** zigbee, join, nj, bee, rejoin\
**Created:** [May 11, 2015, 9:01am UTC](https://forums.digi.com/t/nj-commands-on-routers-and-coordinators/14844 "2015-05-11T09:01:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alanp](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@alanp](https://forums.digi.com/u/alanp)\
**Post date:** [May 11, 2015, 9:01am UTC](https://forums.digi.com/t/nj-commands-on-routers-and-coordinators/14844/1 "2015-05-11T09:01:13Z")

</div>

Hi Forum,  
I am a little confused by the methods around NJ command.

I set NJ to 0xFF while I configuring end devices on network.

If I want to "lock my network I set NJ to 0 on the coordinator.  
Is it necessary to also set NJ to 0 on all routers on same network or does the coordinator prevent joining anywhere on network?

At the same time sleeping device rejoins should be possible in event of power outage etc. even if NJ is 0.

BTW I am running 1 coord, 3 routers with XBee Pro and 32 cyclic sleep end nodes using Xbee SMD  
ZS set to 0.

thanks

---

<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:** [May 11, 2015, 9:03am UTC](https://forums.digi.com/t/nj-commands-on-routers-and-coordinators/14844/2 "2015-05-11T09:03:31Z")

</div>

If you want to lock a network down, then you need to set NJ to 0 on ALL nodes.

This will not keep an End device from re-joining a network in the event of a power failure or power cycle.

---

<div class="post-metadata">

**Author:** ![alanp](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@alanp](https://forums.digi.com/u/alanp)\
**Post date:** [May 11, 2015, 10:40am UTC](https://forums.digi.com/t/nj-commands-on-routers-and-coordinators/14844/3 "2015-05-11T10:40:34Z")

</div>

Thanks for response mvut.

When you say all nodes you mean sleeping nodes as well?

---

<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:** [May 12, 2015, 8:11am UTC](https://forums.digi.com/t/nj-commands-on-routers-and-coordinators/14844/4 "2015-05-12T08:11:30Z")

</div>

That is correct. Just understand that for the sleep nodes the value of the NJ is to tell them what the joining time is of the parents.
