Some problem about xbee's Pin Hibernate

Hi
I’m doing a project, 200 pcs end devices, 1 pcs coordinator and several router.
The MCU wakes the end device every 10 sec to 15 min by the way of pin hibernate and sends the datas to the coordinator. The communication between them uses API mode. The coordinator uses AT mode communication with PC .

Parameters of xbee:
end device API :
SC = 408
ID =432
SD=0
SM=1
another are defaults

router AT :
SC = 408
ID =432
SD=0
SM=0
ST=1388
SD=7D0
SN=3C

coordinator AT:
SC = 408
ID =432
SD=0
SM=0
SD=7D0
SN=3C

The question is that the network is not stable enough,some end device can 't join into the network or easy to swap network(the router is enough).
My quesion :

  1. How long should the mcu delay from waking the xbee to transmitting the datas to the xbee?(In program,I de-asserted the SLEEP_RQ first ,and then delay 20msec, send the data to the xbee finally to make sure the xbee can easily join the network)
  2. Does the xbee go to sleep immediately when the SLEEP_RQ is asserted.
  3. Are the Parameters of xbee configured correctly?

I’m sorry for my poor English.

Are you using the S2B or the S2C? (first has 20 pins, second is SMT)

Check out this wiki page - your SN/SP in the routers and coordinators should be large enough to support 15 minutes of sleep time. http://www.digi.com/wiki/developer/index.php/XBee_Sleeping_Problems

You are aware that each router can only support 12 end-devices? So if you have 200 end-devcies, you’ll need at least 17 ‘parents’, but I tend to suggest trying to limit it to more 6 to 8 per parent, so 25 routers might be a better number.

If you are using the S2 or S2B (the 20-pins), then you can also look at this Blog page, where you’ll find the experimental ‘AT wall-router’ firmware which supports 20 children per router: http://lynndia.blogspot.com/2012/04/correct-xbee-zbzigbee-firmware.html