WiFi reconnection problem after Interrupt WakeUp (Light Sleep)

GustavoGB
Posts: 18
Joined: Fri Jan 15, 2021 1:46 am

WiFi reconnection problem after Interrupt WakeUp (Light Sleep)

Postby GustavoGB » Thu Jun 17, 2021 6:02 pm

Good day. I'm making a program that collects data every certain amount seconds and does publish MQTT.
In the intervals between data collection the system goes to sleep (Light Sleep). When the predetermined number of seconds is completed the system has no problems in reconnect WiFi.
The problem arises when I Interrupt the Light Sleep with some GPIO. Then, the system becomes very unstable and most of the time it will not reconnect the WiFi connection.

Code: Select all

I (189309) wifi:bcn_timout,ap_probe_send_start
I (191809) wifi:ap_probe_send over, resett wifi status to disassoc
I (191809) wifi:state: run -> init (c800)
I (191809) wifi:pm stop, total sleep time: 238250422 us / 284130248 us
W (191819) wifi:<ba-del>idx
I (191819) wifi:new:<11,0>, old:<11,2>, ap:<255,255>, sta:<11,2>, prof:1
I (201839) wifi:flush txq
I (201839) wifi:stop sw txq
I (201839) wifi:lmac stop hw txq
I'm sure it has something to do with incorrect counting of time during Light Sleep. So there is an inconsistency in the expected beacon.

Do you know any way to fix this? Can I get a good count in Light Sleep? Should I modify any configuration? Thanks

Gustavo

Who is online

Users browsing this forum: Google [Bot] and 115 guests