# SLEEP\_NETWORK\_STANDBY with Cellular.off()?

**URL:** <https://community.particle.io/t/sleep-network-standby-with-cellular-off/22138>\
**Category:** Firmware\
**Created:** [April 15, 2016, 9:54pm UTC](https://community.particle.io/t/sleep-network-standby-with-cellular-off/22138 "2016-04-15T21:54:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gjaman](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@gjaman](https://community.particle.io/u/gjaman)\
**Post date:** [April 15, 2016, 9:54pm UTC](https://community.particle.io/t/sleep-network-standby-with-cellular-off/22138/1 "2016-04-15T21:54:05Z")

</div>

Currently I’m calling Cellular.off() before calling deep sleep. My understanding is I need to call Cellular.off() before deep sleeping to be in the lowest power state.

I want to try out the new network\_standby option:  
System.sleep(SLEEP\_MODE\_DEEP, 30, SLEEP\_NETWORK\_STANDBY);

I’m assuming I should no longer call Cellular.off() before deep sleeping in network standby mode?

Thanks.

---

<div class="post-metadata">

**Author:** ![mdma](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mdma/32/1924_2.png) [@mdma](https://community.particle.io/u/mdma)\
**Post date:** [April 15, 2016, 11:10pm UTC](https://community.particle.io/t/sleep-network-standby-with-cellular-off/22138/2 "2016-04-15T23:10:56Z")

</div>

That’s correct. The default action in 0.5.0 is to turn off the cellular module (Cellular.off()) so you no longer need to specify that yourself. And if you don’t want to turn off the cellular module (to keep the GPRS attachement) you can use the network standby flag.

---

<div class="post-metadata">

**Author:** ![gjaman](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@gjaman](https://community.particle.io/u/gjaman)\
**Post date:** [April 18, 2016, 5:16am UTC](https://community.particle.io/t/sleep-network-standby-with-cellular-off/22138/3 "2016-04-18T05:16:07Z")

</div>

Thanks.  
I did a quick test with SLEEP\_NETWORK\_STANDBY. My connection time went from ~30s to 11s. The time I was measuring was from the start of Cellular.on to when Particle.connected is true.

Do you have any numbers for the deep sleep current when in standby mode is enabled?

---

<div class="post-metadata">

**Author:** ![gjaman](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@gjaman](https://community.particle.io/u/gjaman)\
**Post date:** [April 20, 2016, 4:43am UTC](https://community.particle.io/t/sleep-network-standby-with-cellular-off/22138/4 "2016-04-20T04:43:31Z")

</div>

I measured:

- 160uA in SLEEP\_MODE\_DEEP without SLEEP\_NETWORK\_STANDBY
- 1.8mA in SLEEP\_MODE\_DEEP with SLEEP\_NETWORK\_STANDBY

I haven’t seen any numbers published with network standby yet. I’m curious if sleep in the low mA is expected in standby mode?

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [April 20, 2016, 2:42pm UTC](https://community.particle.io/t/sleep-network-standby-with-cellular-off/22138/5 "2016-04-20T14:42:56Z")

</div>

Thanks for the deep sleep power consumption numbers.

I’m using SLEEP\_NETWORK\_STANDBY + System.sleep mode and it works great.

Can you measure the current consumption for System.sleep + SLEEP\_NETWORK\_STANDBY ?

I would greatly appreciate it!

---

<div class="post-metadata">

**Author:** ![autolib](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@autolib](https://community.particle.io/u/autolib)\
**Post date:** [May 1, 2016, 7:22pm UTC](https://community.particle.io/t/sleep-network-standby-with-cellular-off/22138/6 "2016-05-01T19:22:29Z")

</div>

So what is the bottom line to save the most power, SLEEP\_NETWORK\_STANDBY or not?

For twelve hours during the day I wake up from sleep for a minute read my sensor and then sleep for ( one hour) System.sleep(SLEEP\_MODE\_DEEP,3600);`The rest of the time I sleep for 12 hours System.sleep(SLEEP_MODE_DEEP,43200);` I was thinking of adding the `SLEEP_NETWORK_STANDBY` for the continuous twelve hour sleep cycle. Does it really matter in terms of battery life? Cellular usage?

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [May 1, 2016, 10:00pm UTC](https://community.particle.io/t/sleep-network-standby-with-cellular-off/22138/7 "2016-05-01T22:00:15Z")

</div>

The latest 0.5.0 Electron firmware now automatically turns the cellular radio off when you call SLEEP\_MODE\_DEEP. I'm pretty sure that is the lowest power consumption mode possible.

With the modem off network standby will not work.

Also check this out:

> [@Electron Sleep Mode Clarification](https://community.particle.io/t/electron-sleep-mode-clarification/22575/2):
>
> Currently stop mode sleep (the 2nd one) will use less data since it doesn’t have to resync with the cloud. This will be addressed in 0.6 which will also avoid needing to resync with the cloud after waking up from deep sleep.

---

<div class="post-metadata">

**Author:** ![autolib](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@autolib](https://community.particle.io/u/autolib)\
**Post date:** [May 1, 2016, 10:14pm UTC](https://community.particle.io/t/sleep-network-standby-with-cellular-off/22138/8 "2016-05-01T22:14:48Z")

</div>

Thanks @RWB.
