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
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?