# XBee 3 End Device Extended Sleep Problem

**URL:** <https://forums.digi.com/t/xbee-3-end-device-extended-sleep-problem/21744>\
**Category:** XBee - Zigbee\
**Tags:** xbee-sleep, long-sleep-end-devic, xbee3\
**Created:** [September 8, 2020, 8:22am UTC](https://forums.digi.com/t/xbee-3-end-device-extended-sleep-problem/21744 "2020-09-08T08:22:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brkns](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@brkns](https://forums.digi.com/u/brkns)\
**Post date:** [September 8, 2020, 8:22am UTC](https://forums.digi.com/t/xbee-3-end-device-extended-sleep-problem/21744/1 "2020-09-08T08:22:32Z")

</div>

Hello, everyone.

I use an XBee 3 device as an ADC server. It is configured as an sleepy end device that takes samples of a pin and send it to coordinator of the network which is an XBee 3 also.

The problem is even though I set the SM=0x04, SP=0x0AF0, SN=0x40 and SO=0x06 the sleep period is always 0x0AF0. That means end device wakes every 28 seconds, takes samples of the ADC pin and directs them to coordinator. The expected behavior is sleeping for entire SP\*SN time and then wake and take samples. I use this configuration successfully for a long time and this is the first time I encounter a problem like this.

I tried to set the SO option to 0, 2 and 4 also but no luck.

I register the end device using Register Joining Device frame with Install Code. Firmware version 100A is used for both coordinator and end device.

So, how to enable extended sleep that satisfies our expectation?

---

<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 8, 2020, 8:39am UTC](https://forums.digi.com/t/xbee-3-end-device-extended-sleep-problem/21744/2 "2020-09-08T08:39:33Z")

</div>

[https://www.digi.com/resources/documentation/digidocs/90001539/#reference/r\_extended\_sleep.htm?Highlight=extended%20sleep](https://www.digi.com/resources/documentation/digidocs/90001539/#reference/r_extended_sleep.htm?Highlight=extended%20sleep)

[https://www.digi.com/resources/documentation/digidocs/90001539/#reference/r\_cmd\_so.htm?Highlight=extended%20sleep](https://www.digi.com/resources/documentation/digidocs/90001539/#reference/r_cmd_so.htm?Highlight=extended%20sleep)

---

<div class="post-metadata">

**Author:** ![brkns](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@brkns](https://forums.digi.com/u/brkns)\
**Post date:** [September 8, 2020, 8:53am UTC](https://forums.digi.com/t/xbee-3-end-device-extended-sleep-problem/21744/3 "2020-09-08T08:53:03Z")

</div>

Yes I saw documentation. What is your suggestion? I have already set the registers according to links that you send. Am I doing something wrong?

---

<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 8, 2020, 10:33am UTC](https://forums.digi.com/t/xbee-3-end-device-extended-sleep-problem/21744/4 "2020-09-08T10:33:44Z")

</div>

Try without encryption enabled.

---

<div class="post-metadata">

**Author:** ![brkns](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@brkns](https://forums.digi.com/u/brkns)\
**Post date:** [September 9, 2020, 8:44am UTC](https://forums.digi.com/t/xbee-3-end-device-extended-sleep-problem/21744/5 "2020-09-09T08:44:54Z")

</div>

I tried without enabling encryption but behavior did not change. It still does not sleep for entire SP\*SN period.

---

<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 9, 2020, 9:32am UTC](https://forums.digi.com/t/xbee-3-end-device-extended-sleep-problem/21744/6 "2020-09-09T09:32:40Z")

</div>

I believe that is a know issue that is being worked on
