Open KonssnoK opened 7 months ago
@KonssnoK when the device is just woken up, there is no mesh network, it will connect to the mesh network when it finds a suitable parent. But when the device has joined the mesh network, sometimes the parent node will disappear and recover in a short time. In order to maintain the original network structure as much as possible, the device will generally scan the parent node on the original channel for a period of time, and only when it is finally confirmed that the parent node can no longer connect, it will look for other appropriate parents in all channels.
mmm @zhangyanjiaoesp i think this is not what we are referring to.
We have:
@zhangyanjiaoesp any thoughts?
mmm @zhangyanjiaoesp i think this is not what we are referring to.
We have:
- device boots alone (no other devices to do the mesh)
- device connects to WIFI immediately
- device is of course ROOT
- device loses WIFI
- device connects to LTE -> Our netif interface is a PPP one. The STA is periodically scanning for networks!
- 5 minutes pass
- device (ROOT) sees again the WIFI router to which it was connected (not a mesh station, a router)
- device (ROOT) takes minutes to reconnect to the router
Now I understand what you're talking about, can you provide the logs from the root sees again the router to the root reconnects to the router, it may help to analysis the reason.
@zhangyanjiaoesp attached a first log, i will generate another with more delay esp_wifi_reconnection.txt
@KonssnoK Is this phenomenon (device (ROOT) takes minutes to reconnect to the router) always present? Can you provide me with a demo for testing?
@KonssnoK Is this phenomenon (device (ROOT) takes minutes to reconnect to the router) always present? Can you provide me with a demo for testing?
not always. what i see is that normally the device (which was ROOT) will perform a full scan up to 60 times. Once it reaches 60 retries it will start scanning wifi normally. Problem is that these 60 times scans sometimes take a very long time.
I will try to reproduce it in a small project in the next days
Hi @KonssnoK, could you please share your updates on this issue? Thanks. Would we keep this issue open?
yes, the issue should stay open, the time of scanning is way longer after a disconnection than after a boot. Sorry not many other updates since we are quite busy with other issues :(
Answers checklist.
General issue report
Hello @zhangyanjiaoesp ,
as you might remember our system moves between fixed root and dynamic root depending on WIFI connectivity.
One thing we noticed is the following:
Instaead, if i move to LTE (fixed root) and then switch on the WIFI after a while, I see the following
It takes minutes for the device to be able to reconnect to the wifi once i switched it back on. it usually needs to reach fail:60 to then become rootless and finally reconnect.
We trigger the connection in the second scenario by simply doing:
I don't understand why this should trigger such a long search process vs the search process of a just woken up device. Are we missing some command?
Thanks