# How to set-up  end device to sleep for 6 hours ?

**URL:** <https://forums.digi.com/t/how-to-set-up-end-device-to-sleep-for-6-hours/17795>\
**Category:** XBee - Zigbee\
**Tags:** sleep\
**Created:** [December 13, 2016, 2:14pm UTC](https://forums.digi.com/t/how-to-set-up-end-device-to-sleep-for-6-hours/17795 "2016-12-13T14:14:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orcino\_Borges](https://avatars.discourse-cdn.com/v4/letter/o/65b543/32.png) [@Orcino\_Borges](https://forums.digi.com/u/Orcino_Borges)\
**Post date:** [December 13, 2016, 2:14pm UTC](https://forums.digi.com/t/how-to-set-up-end-device-to-sleep-for-6-hours/17795/1 "2016-12-13T14:14:04Z")

</div>

Hello, I am in doubt on how to configure the “SO” for the end device and the coordinator.

The end device should sleep for 6 hours.

When wake up, a uC will detect through pin on-sleep and send data.

The XBEE is model XBP24C

The current setting is:

End Device:

```
SM = 5
SP = 0X7D0 ( 20s )
SN = 0X438 ( 1080)
SO = 1 

```

What is the correct setting ?

Thanks

Orcino

---

<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:** [December 14, 2016, 9:59am UTC](https://forums.digi.com/t/how-to-set-up-end-device-to-sleep-for-6-hours/17795/2 "2016-12-14T09:59:08Z")

</div>

That looks about right but the SO should be 0x10 instead of 1.

---

<div class="post-metadata">

**Author:** ![Orcino\_Borges](https://avatars.discourse-cdn.com/v4/letter/o/65b543/32.png) [@Orcino\_Borges](https://forums.digi.com/u/Orcino_Borges)\
**Post date:** [December 16, 2016, 11:49am UTC](https://forums.digi.com/t/how-to-set-up-end-device-to-sleep-for-6-hours/17795/3 "2016-12-16T11:49:14Z")

</div>

Thank you mvut,

A doubt.

The XTCU says that it references BIT 0 and bit 1.

The remainder should be left as 0.

In SO = 0X10 is OB 00010000

Is that correct? Or the correct one is 2 = 0b10

Orcino

---

<div class="post-metadata">

**Author:** ![DystopianFerret](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@DystopianFerret](https://forums.digi.com/u/DystopianFerret)\
**Post date:** [December 22, 2016, 12:21pm UTC](https://forums.digi.com/t/how-to-set-up-end-device-to-sleep-for-6-hours/17795/4 "2016-12-22T12:21:59Z")

</div>

You will enter “10” for the SO setting
