Hi,
I'm noticing a very high variance for the time it needs to reconnect to a known network. It is sometimes done in 3 secs, but it can also take 15 secs, 30 secs or 9 secs, completely unpredictable.
What I'm doing in a loop is:
1) Scan and upload
2) Go to forced MODEM_SLEEP for around 30 secs
3) Wake up and restart from 1)
The transmission is always done within several milliseconds, but the reconnect to the wifi network is what concerns me, because it makes the entire cycle completely unpredictable.
While watching the output of Serial.setDebugOutput(true) I see endless sequences like this, which repeat in a second interval:
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (29)
reconnect
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (29)
What does state: 3 -> 0 (29) mean? It seems to be a fallback to DISCONNECTED, but what means 29?
What can I do against this?
High variance in wifi reconnects
Re: High variance in wifi reconnects
Postby ESP_Faye » Fri Mar 24, 2017 1:39 pm
Hi,
Can wifi_set_event_handler_cb help you? Event EVENT_STAMODE_GOT_IP means that ESP8266 station connects to the router successfully.
Thanks for your interest in ESP8266!
Can wifi_set_event_handler_cb help you? Event EVENT_STAMODE_GOT_IP means that ESP8266 station connects to the router successfully.
Thanks for your interest in ESP8266!
Who is online
Users browsing this forum: No registered users and 337 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.