WLED: WLAN very slow to connect and dropping out
What happened?
WLAN seems to be very unreliable on my D1 mini with an ASUS router.
To Reproduce Bug
I just installed the latest version of WLED and it took very long to connect at all. First it said WLAN connection failed then when I went away from the PC and back eventually it did connect.
Expected Behavior
WLAN should connect within seconds not several minutes.
Install Method
Binary from WLED.me
What version of WLED?
0.13.3, 0.13.1, 0.13.0-b7
Which microcontroller/board are you seeing the problem on?
ESP8266
Relevant log/trace output
No response
Anything else?
I have worked with the D1 mini before with custom applications and had the same issue there, it seems to be related to ASUS routers somehow, at least that seems to be the common factor with other people having a similar issue.
The way I fixed it there was to use WiFi.setPhyMode(WIFI_PHY_MODE_11G);. I tried the same with WLED (changed WIFI_PHY_MODE_11N to WIFI_PHY_MODE_11G in wled.cpp) and it actually fixed the issue for me. Looking at other people having issues with WLED and ESP8266 devices, maybe that’s the solution for them as well?
Code of Conduct
- I agree to follow this project’s Code of Conduct
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16
Commits related to this issue
- Fix for #2922 — committed to wled/WLED by blazoncek 3 years ago
- Fix for #2922 — committed to wled/WLED by blazoncek 3 years ago
- Fix for #2922 — committed to zanhecht/WLED by blazoncek 3 years ago
- Fix for #2922 — committed to MoonModules/WLED-MM by blazoncek 3 years ago
- Squashed commit of the following: commit bd20c83919c3c57dfa1b5d595a184a7b7940118a Author: Blaz Kristan <blaz@kristan-sp.si> Date: Mon Jan 1 23:14:45 2024 +0100 Bugfix #3632 commit 48f8a45031c... — committed to w00000dy/WLED by w00000dy 3 years ago
- Fix for #2922 — committed to Djelibeybi/WLED-MM by blazoncek 3 years ago
- Fix for #2922 — committed to DedeHai/WLED by blazoncek 3 years ago
It might not be just you. I’ve been trying to find a problem with frequent wifi drops as well. Reboot helps for a bit. This has been happening since the update to 0.13, It seems transient until it’s not and then remedied by powercycle. I’m afraid I don’t have any other data at this point. (Edit: Except it’s and 8266, swapped out the module, happens regardless; and using Unifi gear instead of Asus.)