Wake up interrupt from deep sleep

systemsconnect
Posts: 11
Joined: Tue Jan 20, 2015 3:47 pm

Wake up interrupt from deep sleep

Postby systemsconnect » Thu Feb 19, 2015 7:04 pm

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);

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

Re: Wake up interrupt from deep sleep

Postby costaud » Wed Feb 25, 2015 9:38 pm

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.

pirlouwi
Posts: 4
Joined: Sun Dec 13, 2015 12:25 am

Re: Wake up interrupt from deep sleep

Postby pirlouwi » Sun Dec 13, 2015 12:30 am

What is the way to enter the light-sleep state ?
I only saw a deep_sleep() API in the documentation.

pirlouwi
Posts: 4
Joined: Sun Dec 13, 2015 12:25 am

Re: Wake up interrupt from deep sleep

Postby pirlouwi » Tue Dec 15, 2015 5:21 pm

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 ?

ESP_Faye
Posts: 1641
Joined: Mon Oct 27, 2014 11:08 am

Re: Wake up interrupt from deep sleep

Postby ESP_Faye » Fri Dec 18, 2015 3:20 pm

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 ?

Who is online

Users browsing this forum: No registered users and 6 guests