# Electron Sleep Modes Overview

**URL:** <https://community.particle.io/t/electron-sleep-modes-overview/28366>\
**Category:** Hardware\
**Created:** [January 5, 2017, 4:07pm UTC](https://community.particle.io/t/electron-sleep-modes-overview/28366 "2017-01-05T16:07:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beck](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@beck](https://community.particle.io/u/beck)\
**Post date:** [January 5, 2017, 4:07pm UTC](https://community.particle.io/t/electron-sleep-modes-overview/28366/1 "2017-01-05T16:07:16Z")

</div>

Howdy! Been reading into electron sleep modes in the datasheet and was looking for a little clarity.

From what I understand:

- System.sleep(long seconds) puts the cell modem in standby while application code keeps running? Or is this only for photon? The datasheet is not clear on electron behavior. Is it equivalent to Cellular.on() and Cellular.off()?

- System.sleep(uint16\_t wakeUpPin, uint16\_t edgeTriggerMode, long seconds) stops application code (but will resume where it left off when it leaves sleep mode). This also turns the cell modem off. When SLEEP\_NETWORK\_STANDBY is given, the cell modem is left on but in standby for higher idle consumption but quicker cloud reconnection.

- System.sleep(SLEEP\_MODE\_DEEP, long seconds) puts the uC into standby, stopping application code, losing memory and restarting from the beginning. This also turns the cell modem off. When SLEEP\_NETWORK\_STANDBY is given, the cell modem is left on but in standby for higher idle consumption but quicker cloud reconnection.

Is that right?

Also the datasheet is not clear on which of these call results in which power consumption in the table. Am I correct in saying:

Operating Current (uC on, Cellular OFF) == just a Cellular.Off()  
Sleep Current (4.2V LiPo, Cellular OFF) == System.sleep(uint16\_t wakeUpPin, uint16\_t edgeTriggerMode, long seconds)  
Deep Sleep Current (4.2V LiPo, Cellular OFF) == System.sleep(SLEEP\_MODE\_DEEP, long seconds)

And that in the currents where 4.2V LiPo is specified, I won’t get these draws when powering via Vin?

Thanks!

---

<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:** [January 6, 2017, 6:57am UTC](https://community.particle.io/t/electron-sleep-modes-overview/28366/2 "2017-01-06T06:57:35Z")

</div>

Check this out 😃

> [@Electron SLEEP\_MODE\_DEEP tips and examples](https://community.particle.io/t/electron-sleep-mode-deep-tips-and-examples/27823):
>
> It’s a little confusing getting an Electron to go into deep sleep, using the 130 µA that it should. These six annotated code examples should hopefully clear things up. All tests were run on 0.6.0 on a Electron G350. AUTOMATIC, no system thread #include "Particle.h" void setup() { } void loop() { // Results in 133 uA power consumption // Modem is turned off, full cellular resync after restart (blinking green, blinking cyan, fast blinking cyan), 5-6K of data usage System.sleep(SLEEP\_MODE\_DE…

---

<div class="post-metadata">

**Author:** ![beck](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@beck](https://community.particle.io/u/beck)\
**Post date:** [January 6, 2017, 2:40pm UTC](https://community.particle.io/t/electron-sleep-modes-overview/28366/3 "2017-01-06T14:40:14Z")

</div>

Thanks, gave that one a read. It only really addresses SLEEP\_MODE\_DEEP, whereas I’m more interested in the stop mode or just plain old System.sleep(long seconds)
