Using System.sleep(SLEEP_MODE_DEEP) w/ Hybrid-0.9.0

boron
Tags: #<Tag:0x00007f1ca2d5d750>

#1

Hello All,

This might be a silly question but how do I wake up the BoronLTE from Deep-Sleep?
On the Electron3G I use the time argument passed to System.sleep(SLEEP_MODE_DEEP) but the doc’s for BoronLTE mention the following:

The Gen 3 devices (Argon, Boron, Xenon) can only wake from SLEEP_MODE_DEEP by rising D8. It’s not possible to exit SLEEP_MODE_DEEP based on time because the clock does not run in standby sleep mode on the nRF52.

Does that mean I need external circuit with timer that triggers D8 by setting it High after the desired sleep time? Thanks again for any help!


#2

Yes - But the other sleep mode (System.sleep(pin, edge, timout)) doesn’t consume that much more power than deep sleep on the nRF based devices.
So it depends on your prime target ease of implementation vs. “marginal” power preservation.


#3

Oh that’ll do , can you link me to the reference in docs to System.sleep(pin, edge, timout) please?
Having a hard timing finding it in the reference docs.


#4

It’s actually there where deep sleep is documented too
https://docs.particle.io/reference/device-os/firmware/boron/#sleep-sleep-

And the doc’s search feature does help :wink:

And at the top of this forum page you have a link to the DOCS


#5

you’re awesome!
If we ever cross paths in the bay area, I’d like to buy you a brew! :slight_smile: