Page 1 of 1

Wake up interrupt from deep sleep

Posted: Thu Feb 19, 2015 7:04 pm
by systemsconnect
I've enabled the wake up interrupt on GPIO pin 4 at hi level. The interrupt is working during runtime at deep sleep (option 1) it does not wakeup, why?

Code: Select all

gpio_pin_wakeup_enable(GPIO_ID_PIN(4), GPIO_PIN_INTR_HILEVEL);

Re: Wake up interrupt from deep sleep

Posted: Wed Feb 25, 2015 9:38 pm
by costaud
systemsconnect wrote:I've enabled the wake up interrupt on GPIO pin 4 at hi level. The interrupt is working during runtime at deep sleep (option 1) it does not wakeup, why?

Code: Select all

gpio_pin_wakeup_enable(GPIO_ID_PIN(4), GPIO_PIN_INTR_HILEVEL);


This API is just for light sleep wake-up.

After set to high-level interrupt, the chip would NOT get into light-sleep if there is a high level on gpio4.

In deep sleep mode, there are only 2 ways to wake up the chip: 1. deep sleep timer(via GPIO16) 2. trigger pin rstb.

Re: Wake up interrupt from deep sleep

Posted: Sun Dec 13, 2015 12:30 am
by pirlouwi
What is the way to enter the light-sleep state ?
I only saw a deep_sleep() API in the documentation.

Re: Wake up interrupt from deep sleep

Posted: Tue Dec 15, 2015 5:21 pm
by pirlouwi
I really need a response concerning power saving states and GPIO, because the documentation does not cover it in detail.
In particular, I want to wake-up the chip by GPIO input signals.

This is a major feature whenever we speak of IoT, because nowadays, IoT platforms are often battery-powered and therefore need absolutely to be performant in terms of power savings.

This makes me asking why is there so few information in the SDK documentation about power saving modes ?!! :( :( :( :( :( :( :( :(

In particular, I did not see any clear methods to enter light-sleep mode. What are we supposed to do to put the chip in light-sleep mode ?

Re: Wake up interrupt from deep sleep

Posted: Fri Dec 18, 2015 3:20 pm
by ESP_Faye
Hi,

Documentation 9B-ESP8266__Sleep__Function Description.

Documentation 2C-ESP8266__SDK__Programming Guide chapter "3.7 Force Sleep APIs" and chapter "9.5 Low-power solution".

Could them help ?