-->
Page 1 of 1

Sleep

PostPosted: Mon Aug 01, 2016 11:20 am
by lew247
I've been reading the specs of the ESP8266
Code: Select allPower Management
Chip can tune into the following states:

off (OFF): CHIP_PD pin is in a low power state. RTC failure. All registers are emptied.
deep sleep (DEEP_SLEEP): RTC open, other parts of the chip are closed. RTC internal recovery memory to save the basic WiFi connection information.
sleep (SLEEP): Only RTC running. Crystal oscillator stops. Any part of the wake (MAC, host, RTC timer, external interrupt) will make the wake of the chip.
Wake (WAKEUP): In this state, the system from a sleep state to start (PWR) status. Crystal oscillator and PLL are converted enabled state.
* on state (ON): High-speed clock can run, And sent to each clock control register is enabled Modules. Each module, including the CPU, including the implementation of relatively low-level clock gating. When the system works, you can WAITI instructions to turn off the CPU's internal clock.


Is it possible to have the 2 different sleep patterns?
deep sleep and sleep?
Reading what is said above literally, it could go into sleep and the RTC keeps working and can be woken at specific times? wouldn't this mean the esp wouldn't go through a reboot on waking up?

Reading the V3 manual it states: Things to note. Sleep mode will cause a full reboot of the device

Re: Sleep

PostPosted: Mon Aug 01, 2016 12:54 pm
by Oldbod
I think at the moment the only sleep function available via basic is deep sleep with full reboot of the device. This does get in the way a little bit of using it for some vey low power things.

To me, the esp8266 is a great device, but the documentation last time I looked was not so good. The developers do answer questions though, big point in their favour. If only having spent a fortune on creating the thing, they'd spent a decent chunk on creating proper documentation it would be even easier to use...