Open will-emmerson opened 3 years ago
I realised some of the logs are set to WARN only, here are the logs again of it not connecting properly, if that helps:
I (66715533) wifi:<connect>csa, newchan=6, old=10, csa_count:15
W (66715543) [EVENT_LOOP, 120]: MWIFI_CHANNEL_SWITCH [channel=6]
W (66718323) wifi:Haven't to connect to a suitable AP now!
I (66731543) wifi:switch to channel 6
I (66731543) wifi:ap channel adjust o:10,2 n:6,2
I (66731543) wifi:new:<6,2>, old:<10,2>, ap:<6,2>, sta:<10,2>, prof:10
I (66731543) wifi:new:<6,2>, old:<6,2>, ap:<6,2>, sta:<6,2>, prof:10
I (66731553) wifi:state: init -> auth (b0)
I (66731573) wifi:state: auth -> assoc (0)
I (66731613) wifi:state: assoc -> run (10)
I (66731623) wifi:connected with TP-Link_07FC, aid = 1, channel 6, 40D, bssid = 00:31:92:f3:07:fc
I (66731623) wifi:security: WPA2-PSK, phy: bgn, rssi: -29
I (66731623) wifi:pm start, type: 0
W (66731633) wifi:Next TBTT incorrect! last beacon:2289794917, offset:52481, next beacon:2300239717, beacon interval:102400, dtim period:0, dtim count:0, listen interval:3, now:2305943390
I (66731643) mesh: [scan]new scanning time:600ms, beacon interval:300ms
I (66731663) mesh: <flush>upstream packets, connections(max):6, waiting:0, upQ:0
I (66731663) [mwifi, 175]: Parent is connected
I (66731663) wifi:I (66731663) mesh: <flush>root AP's beacon interval = 102400 us, DTIM period = 1
I (66731663) mesh: [TXQ]<max:32>up(0, be:0), down(0, be:0), mgmt:0, xon(req:0, rsp:0), bcast:0, wnd(0, parent:00:00:00:00:00:00)
I (66731663) [mwifi, 258]: State represents: 0
I (66731683) mesh: [RXQ]<max:32 = cfg:32 + extra:0>self:0, <max:32 = cfg:32 + extra:0>tods:6
I (66731673) [EVENT_LOOP, 47]: MWIFI_PARENT_CONNECTED [mac=07FC, channel=6, type=1, layer=1, rssi=-31, ssid=TP-Link_07FC]
I (66731713) [EVENT_LOOP, 143]: MWIFI_TODS_STATE [connected=false]
I (66731713) [EVENT_LOOP, 149]: MWIFI_ROOT_ADDRESS [mac=A9C5]
Have there been any developments with this issue? I am having similar issues in that I am using another ESP32-WROOM Development board as the AP. When it goes off line for a period of time and then comes back on line, the Root indicates that it has reconnected to the AP, but fails to create a socket with the AP server... I get Error 113 (No Route to Host)...
esp-idf v4.3.1 fixes related problems, but it is not exactly the same as this problem. It is recommended that you update esp-idf under ESP-MDF to v4.3.1 to verify whether the problem is resolved
Environment
Problem Description
I have a mesh root device which is using code similar to the mwifi example in sdk. When the wifi router is turned off, left for a few minutes then turned on again, the device reconnects ok:
But when the wifi router is turn off for 24 hours or so then turned back on, the mesh device doesn't connect properly:
It appears to reconnect but it doesn't seem to be getting an ip address. Is there some kind of timeout which is longer than 1-2 hours but less than 24 hours?
There are two other non-mesh esp32 devices running idf v4.3 which do reconnect after 24 hours of the wifi router being down so it seems to be something specific to esp-mdf and not anything to do with the router itself.