# End Device Sleep Mode keeps reverting to SM=1

**URL:** <https://forums.digi.com/t/end-device-sleep-mode-keeps-reverting-to-sm-1/11269>\
**Category:** XBee Programamble (S2C & 900 HP)\
**Created:** [April 1, 2013, 12:39am UTC](https://forums.digi.com/t/end-device-sleep-mode-keeps-reverting-to-sm-1/11269 "2013-04-01T00:39:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jefffhaynes](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jefffhaynes](https://forums.digi.com/u/jefffhaynes)\
**Post date:** [April 1, 2013, 12:39am UTC](https://forums.digi.com/t/end-device-sleep-mode-keeps-reverting-to-sm-1/11269/1 "2013-04-01T00:39:21Z")

</div>

I’m having (another) frustrating problem with my programmable XBee (S2B). In order to use the power management features, I want to use the device in Sleep Mode 5 (CYCLIC SLEEP PIN-AWAKE). However, every time I upload new firmware to the Freescale, it seems to reset to Mode 1, which means that the gpio interrupt is working but it no longer wakes on packets. What gives??

---

<div class="post-metadata">

**Author:** ![jefffhaynes](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jefffhaynes](https://forums.digi.com/u/jefffhaynes)\
**Post date:** [April 4, 2013, 4:15pm UTC](https://forums.digi.com/t/end-device-sleep-mode-keeps-reverting-to-sm-1/11269/2 "2013-04-04T16:15:40Z")

</div>

Bumping this because I’m seriously stuck. I can provide screenshots if Digi doesn’t believe me 🙂

---

<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:** [April 4, 2013, 6:07pm UTC](https://forums.digi.com/t/end-device-sleep-mode-keeps-reverting-to-sm-1/11269/3 "2013-04-04T18:07:59Z")

</div>

jeffhaynes,

In prgroammable XBees it is recommended to use the provided API to configure the SM modes. Did you check the provided examples? Are you using [the latest SDK version](http://www.digi.com/progxbee)?

---

<div class="post-metadata">

**Author:** ![jefffhaynes](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jefffhaynes](https://forums.digi.com/u/jefffhaynes)\
**Post date:** [April 5, 2013, 12:40am UTC](https://forums.digi.com/t/end-device-sleep-mode-keeps-reverting-to-sm-1/11269/4 "2013-04-05T00:40:05Z")

</div>

Ok, still not 100% what happened but I think maybe I had the Sleep Cycle setting on the coord too low. It seems to be working now. Thanks for your help!
