UART logs before and after Deep Sleep

Posts: 14
Joined: Thu Nov 10, 2016 8:56 pm

UART logs before and after Deep Sleep

Postby russus » Wed Jan 11, 2017 8:39 pm

Hi All,

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: Select all

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
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 5
connected with dev, channel 4
dhcp client start...
tcp connected
tcp sent
deep sleep...
ets Jan  8 2013,rst cause:5, boot mode:(3,7)

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)

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

Posts: 104
Joined: Tue Sep 27, 2016 5:42 pm

Re: UART logs before and after Deep Sleep

Postby ESP_Xutao » Wed Jan 18, 2017 8:00 pm

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. can use system_deep_sleep(uint32 time_in_us) function set you sleep time.

You can consult this doc: ... ons_en.pdf

Who is online

Users browsing this forum: Google [Bot], pipi61 and 8 guests