# Xbee ZB and very long association times (\> 15s)

**URL:** <https://forums.digi.com/t/xbee-zb-and-very-long-association-times-15s/15091>\
**Category:** XBee Programamble (S2C & 900 HP)\
**Tags:** zb, xbee, zigbee\
**Created:** [July 8, 2015, 12:23pm UTC](https://forums.digi.com/t/xbee-zb-and-very-long-association-times-15s/15091 "2015-07-08T12:23:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![irvingd](https://avatars.discourse-cdn.com/v4/letter/i/e480ec/32.png) [@irvingd](https://forums.digi.com/u/irvingd)\
**Post date:** [July 8, 2015, 12:23pm UTC](https://forums.digi.com/t/xbee-zb-and-very-long-association-times-15s/15091/1 "2015-07-08T12:23:18Z")

</div>

Hi,

I have 2 XBee-ZB modules. One co-ordinator in API mode, and the other a router in API mode. Both using the latest firmware.  
For some reason association is taking up to 18seconds.  
I have written a small script to spit out the value of the ATAI command. It starts with “FF” for several seconds, then begins returning 0x25 (which according to your docs means: ‘Unexpected state, node should not be attempting to join at this time’).  
It then reverts back to 0xFF: searching for a PAN for another 10-15 seconds, until finally getting a “0” value (joined). The whole process takes up to 18 seconds.

Why is this happening?? My understanding is that the association should take up to maybe 7 seconds if the gateway has ‘forgotten’ the module, and much quicker if its within the timeout period.  
I have enabled ATJV1 on the router module. Would this cause any issues?

Irving

---

<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:** [September 3, 2015, 3:04pm UTC](https://forums.digi.com/t/xbee-zb-and-very-long-association-times-15s/15091/2 "2015-09-03T15:04:12Z")

</div>

Yes, Join verification can cause the module to take longer to associate.
