ESP8266 Developer Zone The Official ESP8266 Forum 2017-01-18T20:00:55+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=3256 2017-01-18T20:00:55+08:00 2017-01-18T20:00:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3256&p=11132#p11132 <![CDATA[Re: UART logs before and after Deep Sleep]]> 1.In Deep-sleep mode, GPIO16 (XPD_DCDC) can be connected to EXT_RSTB. When the time for sleep is up, the chip can be woken up and initialized by a low-level pulse generated on the EXT_RSTB pin via GPIO16.
2.you can use system_deep_sleep(uint32 time_in_us) function set you sleep time.

You can consult this doc: http://espressif.com/sites/default/file ... ons_en.pdf

Statistics: Posted by ESP_Xutao — Wed Jan 18, 2017 8:00 pm


]]>
2017-01-11T20:39:23+08:00 2017-01-11T20:39:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3256&p=11089#p11089 <![CDATA[UART logs before and after Deep Sleep]]>
I have been trying to use Deep Sleep for my project. The idea is simple - esp wakes up,connects to wifi, establishes TCP connection, sends data and goes back to deep sleep. After initial turn on it goes to sleep and after it wakes up this is what I see on UART:

Code:

ets Jan  8 2013,rst cause:2, boot mode:(3,7)
 
load 0x40100000, len 32744, room 16
tail 8
chksum 0x3a
load 0x3ffe8000, len 1992, room 0
tail 8
chksum 0x13
load 0x3ffe87d0, len 2076, room 0
tail 12
chksum 0xb3
csum 0xb3
rf[112mode : sta(18:fe:34:a3:25:31)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 5
cnt
 
connected with dev, channel 4
dhcp client start...
ip:192.168.1.90,mask:255.255.255.0,gw:192.168.1.1
tcp connected
tcp sent
deep sleep...
 
ets Jan  8 2013,rst cause:5, boot mode:(3,7)
 
ets_main.c


Some lines as "tcp connected","tcp sent","deep sleep..." introduced by my code, of course.

Is this a normal output when esp goes to deep sleep? The last two lines:

ets Jan 8 2013,rst cause:5, boot mode:(3,7)
ets_main.c

appear 1-2 sec after the "deep sleep..." shows up on the screen. Does it mean that the chip is awake?

Statistics: Posted by russus — Wed Jan 11, 2017 8:39 pm


]]>