# Newbie: Xbee Sleep

**URL:** <https://forums.digi.com/t/newbie-xbee-sleep/15542>\
**Category:** XBee - Zigbee\
**Tags:** sleep, xbee\
**Created:** [October 9, 2015, 9:22am UTC](https://forums.digi.com/t/newbie-xbee-sleep/15542 "2015-10-09T09:22:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rolland](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Rolland](https://forums.digi.com/u/Rolland)\
**Post date:** [October 9, 2015, 9:22am UTC](https://forums.digi.com/t/newbie-xbee-sleep/15542/1 "2015-10-09T09:22:28Z")

</div>

Dear,  
I’m trying to sleep/wake up one xbee.  
I’m using X2e Wifi, Router, 5 EP.  
All S2C Pro; API2. EP are SM5 on Arduino Uno, (DTR/Xbee \<–\> Pin 9/Uno)  
X2e sent a packet to each EP (one after one) to get data.  
I’m looking for sleep one EP, and after wake to to anderstand how it’s work.

I’m trying this:

```auto
void setup(){
	pinMode(XBEE_sleepPin, OUTPUT);
}

void xbeesleep() {
  digitalWrite(XBEE_sleepPin,HIGH);  
}

void xbeewake() {
  digitalWrite(XBEE_sleepPin,LOW); 
}

```

But there is no effect, no change: EP can receive and Send data. Why ?  
Best regards.

---

<div class="post-metadata">

**Author:** ![Rolland](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Rolland](https://forums.digi.com/u/Rolland)\
**Post date:** [October 9, 2015, 4:55pm UTC](https://forums.digi.com/t/newbie-xbee-sleep/15542/2 "2015-10-09T16:55:46Z")

</div>

For detail :  
I would like to sleep/wake : ZigBee S2C TH Pro (Firmware 4059)  
Please, somebody could be help me ?

---

<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:** [October 12, 2015, 2:09pm UTC](https://forums.digi.com/t/newbie-xbee-sleep/15542/3 "2015-10-12T14:09:24Z")

</div>

Sounds like you don’t have the XBee module set for Pin sleep (SM command) or you are not controlling the proper Pin. Most Arduino boards simply don’t connect the DTR line through. I would suggest starting there. That is make sure that the modules sleep request line (DTR) is connected to the correct pin at the right voltages on the arduino and your code is controlling the line as expected.
