ESP8266 Developer Zone The Official ESP8266 Forum 2015-03-14T00:26:53+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=259 2015-03-14T00:26:53+08:00 2015-03-14T00:26:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=259&p=1023#p1023 <![CDATA[Re: Wake up from deep sleep by interrupt?]]>
slaff wrote:
Actually, esp8266 can be waked-up by an external GPIO by connecting the reset pin of esp8266 to the external MCU gpio.
In SDK , the deep-sleep API is system_deep_sleep(uint32 time_in_us);
If the parameter time_in_us==0 , esp8266 will never wake up until an external signal trigger the reset pin.
If time_in_us!=0, GPIO16(connect to the reset pin) will generate a pulse to wake up the chip.
You can use a Wired logic to involve both mode.


But won't the reset pin trigger a full reset of the device? I am quite new to electronics. Would it be possible to provide a picture diagram with the connection of the pins so that I can for example wake up the device using a magnetic reed switch?


Deep sleep close all the modules,so the entire sleep-wake process is almost the same as reset.
If you want to maintain the connection with router, use light-sleep,which can be waken up via GPIO0-15.

Statistics: Posted by costaud — Sat Mar 14, 2015 12:26 am


]]>
2015-03-11T20:06:23+08:00 2015-03-11T20:06:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=259&p=1000#p1000 <![CDATA[Re: Wake up from deep sleep by interrupt?]]>

Actually, esp8266 can be waked-up by an external GPIO by connecting the reset pin of esp8266 to the external MCU gpio.
In SDK , the deep-sleep API is system_deep_sleep(uint32 time_in_us);
If the parameter time_in_us==0 , esp8266 will never wake up until an external signal trigger the reset pin.
If time_in_us!=0, GPIO16(connect to the reset pin) will generate a pulse to wake up the chip.
You can use a Wired logic to involve both mode.


But won't the reset pin trigger a full reset of the device? I am quite new to electronics. Would it be possible to provide a picture diagram with the connection of the pins so that I can for example wake up the device using a magnetic reed switch?

Statistics: Posted by slaff — Wed Mar 11, 2015 8:06 pm


]]>
2015-03-11T01:47:54+08:00 2015-03-11T01:47:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=259&p=983#p983 <![CDATA[Re: Wake up from deep sleep by interrupt?]]>
slaff wrote:
As far as I understand at the moment with the current SDK it is not possible to wake up from deep sleep using GPIO, or any other interrupts? Is this shortcoming of the current SDK or the hardware, ESP8266, cannot do this? If it is only the SDK are there any plans to add this feature soon?


Actually, esp8266 can be waked-up by an external GPIO by connecting the reset pin of esp8266 to the external MCU gpio.
In SDK , the deep-sleep API is system_deep_sleep(uint32 time_in_us);
If the parameter time_in_us==0 , esp8266 will never wake up until an external signal trigger the reset pin.
If time_in_us!=0, GPIO16(connect to the reset pin) will generate a pulse to wake up the chip.
You can use a Wired logic to involve both mode.

Statistics: Posted by costaud — Wed Mar 11, 2015 1:47 am


]]>
2015-03-09T17:49:59+08:00 2015-03-09T17:49:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=259&p=976#p976 <![CDATA[Wake up from deep sleep by interrupt?]]> Statistics: Posted by slaff — Mon Mar 09, 2015 5:49 pm


]]>