# xbee sleep mode

**URL:** <https://forums.digi.com/t/xbee-sleep-mode/1023>\
**Category:** XBee - Zigbee\
**Created:** [March 11, 2013, 9:23am UTC](https://forums.digi.com/t/xbee-sleep-mode/1023 "2013-03-11T09:23:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![demetris](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@demetris](https://forums.digi.com/u/demetris)\
**Post date:** [March 11, 2013, 9:23am UTC](https://forums.digi.com/t/xbee-sleep-mode/1023/1 "2013-03-11T09:23:31Z")

</div>

Hello

I have 3 xbee series 2 end device on 3 arduino mega and i would like to put them in sleep mode. But because i have a temperature sensor i want them to wake when there is a temperature to send. Is that an issue of xbee’s configuration or is it a program on arduino. is there any example to see?

Thank you  
Demetris

---

<div class="post-metadata">

**Author:** ![fgilmar](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@fgilmar](https://forums.digi.com/u/fgilmar)\
**Post date:** [March 16, 2013, 5:43pm UTC](https://forums.digi.com/t/xbee-sleep-mode/1023/2 "2013-03-16T17:43:11Z")

</div>

Hello

I don’t know how arduino interfaces the XBees, but you can wake up the moduel through the SLEEP\_RQ pin if it is in SP=4 or SP=5. Consult the module documentation on sleep modes.

---

<div class="post-metadata">

**Author:** ![demetris](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@demetris](https://forums.digi.com/u/demetris)\
**Post date:** [March 21, 2013, 7:17am UTC](https://forums.digi.com/t/xbee-sleep-mode/1023/3 "2013-03-21T07:17:34Z")

</div>

which pin on xbee is SLEEP\_RQ on the xbee series 2?

---

<div class="post-metadata">

**Author:** ![demetris](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@demetris](https://forums.digi.com/u/demetris)\
**Post date:** [March 21, 2013, 5:45pm UTC](https://forums.digi.com/t/xbee-sleep-mode/1023/4 "2013-03-21T17:45:14Z")

</div>

thank you very much for your answers.

I have another question. How can I configure Sleep\_RQ (DTR) pin on xbee because there is no command in the xbee manual.

---

<div class="post-metadata">

**Author:** ![fgilmar](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@fgilmar](https://forums.digi.com/u/fgilmar)\
**Post date:** [March 21, 2013, 11:03am UTC](https://forums.digi.com/t/xbee-sleep-mode/1023/5 "2013-03-21T11:03:00Z")

</div>

On S2B (THT, 20 pins) it’s Pin 9 and in S2C (SMT, 37 pins) it’s Pin 10. Consult [the module’s documentation](http://www.digi.com/products/wireless-wired-embedded-solutions/zigbee-rf-modules/zigbee-mesh-module/xbee-zb-module#docs). Regards,

---

<div class="post-metadata">

**Author:** ![edpi](https://avatars.discourse-cdn.com/v4/letter/e/dfb087/32.png) [@edpi](https://forums.digi.com/u/edpi)\
**Post date:** [March 21, 2013, 12:59pm UTC](https://forums.digi.com/t/xbee-sleep-mode/1023/6 "2013-03-21T12:59:49Z")

</div>

Just one correction to fgilmar answer:

in order to use SLEEP\_RQ pin, parameter to be configured is SM (Sleep Mode), not SP (Sleep Period). And values for pin enabled are 1 (wake only based on interruptions) or 5 (wake cyclic or based on interruptions). SM=4 implies only cyclic wake).
