You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
no WiFi after updating from 14.4 to 15.0 xx beta (esp32-c3 supermini) #4283
bugconnectivityIssue regarding protocols, WiFi connection or availability of interfaceshardware(Likely) Setup-specific issue, e.g. flickering LEDsneeds investigationThe bug has not yet been reproduced by me. Analysis or more details are needed.
no wlan connection after update from 14.4 to 15.0 beta over OTA. Downgrade to 14.4 with the installer also no wlan connection anymore. Only erase over esp32 downlod tool and once again flash the 14.4 solves the problem. Serial Update to 15.0 xx also no wlan AP.
To Reproduce Bug
upgrade esp32-3 supermini to 15.0 xx beta
Expected Behavior
wlan connection possible after update to 15.0 xx
Install Method
Binary from WLED.me
What version of WLED?
15.0 b7
Which microcontroller/board are you seeing the problem on?
some superminis have really bad wifi. did you try them very close to the router?
if they work then: check if the wifi power on the C3 is set to maximum under wifi settings.
changed the title [-]After update from 14.4 to 15.0 xx beta no wlan esp32-c3 supermini[/-][+]no WiFi after updating from 14.4 to 15.0 xx beta (esp32-c3 supermini)[/+]on Nov 15, 2024
Supermini is 30cm away from the router. WLED 14.4 info shows signal strength 100%(- 26 dBm). After upgrade to 15.0 b7 again no connection to ESP-C3 and not seen in the router interface. No power settings in webinterface of 14.4. No connection to the web interface of 15.0.
0.14.4 had the LOLIN_WIFI_FIX for all c3 boards, which was limiting power output to WIFI_POWER_8_5dBm. The fix is required for boards with a tiny "crystal" radio, and for boards with an under-sized LDO. Unfortunately both are very common....
If tx power is too high in some lolin s2 and c3 boards, as well as for "super mini" boards, wifi completely stops working.
This commit in 0_15 changed the logic: 0af3063 allows users to increase the tx output in wifi settings.
Unfortunately it means that - if you have a board that needs the fix - changing tx power to max permanently renders your WLED setup unusable. To recover, it's necessary to first erase flash (to remove cfg.json with the bad TX default), then re-install the firmware and start fresh. Uploading a previous cfg.json will trigger the TX power problem again, if this was changed in wifi settings.
@DedeHai, @blazoncek I'm not sure how to solve this problem - once the new tx power setting is put above 8.5db, the cfg.json is "poisoned" and users would need to erase flash. I think that's not a good situation.
Maybe we can:
a) enforce a tx power limit when LOLIN_WIFI_FIX is defined, so users are not accidentally overloading their hardware, or
b) always use limited TX power in AP mode (so user may be able to reconnect to ap)
Plus the code in improv.cpp for finding nearby wifi networks should also use the limited power output settings.
To me this suggests that setTxPower is only working once that wifi is fully started - up to ~1 second after the call to wifi.begin(). Maybe the basic wifi class that we used in 0.14 automatically waits, while multiWifi does not wait?
I checked the build environments (for officially released binaries) and C3 does have LOLIN_WIFI_FIX included so default TX power is correct (or good).
There is also a warning in settings that says:
Perhaps it may need to be rephrased into "may become unuseable".
My own experiments showed that some boards are capable of handling stronger TX power so that was the reason to allow overrides.
If you take a look at use of WiFi object you can see that setTxPower() is called afterbegin() or softAP() in all cases (if I read the commit correctly the call fails if WiFi is not initialised). I do not know if adding a wait is possible in WLED code but never notices any issues with current implementation (except perhaps on S3 on which I have given up on as it was very unreliable for me).
The difference of multiwifi compared to the old "wifi" is the inclusion of multiple configurations but only one is active at any time. The switch to a different configuration takes place if connection cannot be established (retried every 18 s). This was rigorously tested.
The only way to know for sure what's happening is the inclusion of debug printouts which are not provided by @oltas123
I had the same issue. WiFi would seem to connect, but I got around 20% of pings to go through but the latency was way high. HTTP did not work at all. Fix was to use the compat binary.
I'm using an ESP8266 and I upgraded from a v14 pre-release to the newest v15 pre-release.
@WouterGritter please open a new issue (or update existing one for ESP8266), this one is related to newer chips like C3 and S-series that are able to set TX power and use newer libraries.
@DedeHai you also have C3, can you check on your devices? Mine work as expected (including C3 supermini).
If they work I would suspect HW issue combined with the newer ESP32 platform (6.3.2) used in 0.15.
I checked the link. No success to manual connect over smartphone. But maybe you should close the issue. I stay at 14.4with this board. Thank you for your support.
I use the latest beta on C3 all the time, but flashed from VScode if that makes a difference. Never noticed any issues with non-working wifi, even when set to max TX power.
bugconnectivityIssue regarding protocols, WiFi connection or availability of interfaceshardware(Likely) Setup-specific issue, e.g. flickering LEDsneeds investigationThe bug has not yet been reproduced by me. Analysis or more details are needed.
Activity
DedeHai commentedon Nov 15, 2024
some superminis have really bad wifi. did you try them very close to the router?
if they work then: check if the wifi power on the C3 is set to maximum under wifi settings.
[-]After update from 14.4 to 15.0 xx beta no wlan esp32-c3 supermini[/-][+]no WiFi after updating from 14.4 to 15.0 xx beta (esp32-c3 supermini)[/+]oltas123 commentedon Nov 18, 2024
Supermini is 30cm away from the router. WLED 14.4 info shows signal strength 100%(- 26 dBm). After upgrade to 15.0 b7 again no connection to ESP-C3 and not seen in the router interface. No power settings in webinterface of 14.4. No connection to the web interface of 15.0.
softhack007 commentedon Nov 18, 2024
0.14.4 had the LOLIN_WIFI_FIX for all c3 boards, which was limiting power output to
WIFI_POWER_8_5dBm. The fix is required for boards with a tiny "crystal" radio, and for boards with an under-sized LDO. Unfortunately both are very common....If tx power is too high in some lolin s2 and c3 boards, as well as for "super mini" boards, wifi completely stops working.
This commit in 0_15 changed the logic: 0af3063 allows users to increase the tx output in wifi settings.
Unfortunately it means that - if you have a board that needs the fix - changing tx power to max permanently renders your WLED setup unusable. To recover, it's necessary to first erase flash (to remove cfg.json with the bad TX default), then re-install the firmware and start fresh. Uploading a previous cfg.json will trigger the TX power problem again, if this was changed in wifi settings.
softhack007 commentedon Nov 18, 2024
@DedeHai, @blazoncek I'm not sure how to solve this problem - once the new tx power setting is put above 8.5db, the cfg.json is "poisoned" and users would need to erase flash. I think that's not a good situation.
Maybe we can:
a) enforce a tx power limit when
LOLIN_WIFI_FIXis defined, so users are not accidentally overloading their hardware, orb) always use limited TX power in AP mode (so user may be able to reconnect to ap)
Plus the code in improv.cpp for finding nearby wifi networks should also use the limited power output settings.
What do you guys think?
softhack007 commentedon Nov 18, 2024
Update: found this commit in arduino-esp32 espressif/arduino-esp32@c43187a
To me this suggests that setTxPower is only working once that wifi is fully started - up to ~1 second after the call to wifi.begin(). Maybe the basic wifi class that we used in 0.14 automatically waits, while multiWifi does not wait?
blazoncek commentedon Nov 18, 2024
I checked the build environments (for officially released binaries) and C3 does have LOLIN_WIFI_FIX included so default TX power is correct (or good).
There is also a warning in settings that says:

Perhaps it may need to be rephrased into "may become unuseable".
My own experiments showed that some boards are capable of handling stronger TX power so that was the reason to allow overrides.
If you take a look at use of
WiFiobject you can see thatsetTxPower()is called afterbegin()orsoftAP()in all cases (if I read the commit correctly the call fails if WiFi is not initialised). I do not know if adding a wait is possible in WLED code but never notices any issues with current implementation (except perhaps on S3 on which I have given up on as it was very unreliable for me).The difference of multiwifi compared to the old "wifi" is the inclusion of multiple configurations but only one is active at any time. The switch to a different configuration takes place if connection cannot be established (retried every 18 s). This was rigorously tested.
The only way to know for sure what's happening is the inclusion of debug printouts which are not provided by @oltas123
oltas123 commentedon Nov 18, 2024
Sorry, i don't know how to get debug printouts.
softhack007 commentedon Nov 18, 2024
@oltas123 it's never too late to ask ;-)
Debug builds are providing additional diagnostic outputs when connected to a serial monitor by USB.
You can find a few generic debug builds here: https://github.com/srg74/WLED-wemos-shield/tree/master/resources/Firmware/%40Aircoookie/Latest/Debug_builds
blazoncek commentedon Nov 19, 2024
I would also like to point out to this.
WouterGritter commentedon Nov 19, 2024
I had the same issue. WiFi would seem to connect, but I got around 20% of pings to go through but the latency was way high. HTTP did not work at all. Fix was to use the
compatbinary.I'm using an ESP8266 and I upgraded from a v14 pre-release to the newest v15 pre-release.
blazoncek commentedon Nov 19, 2024
@WouterGritter please open a new issue (or update existing one for ESP8266), this one is related to newer chips like C3 and S-series that are able to set TX power and use newer libraries.
7 remaining items
oltas123 commentedon Nov 21, 2024
I erased the flash.
esp-web-tools-logs (1).txt
blazoncek commentedon Nov 21, 2024
Everything seems in order (except button allocation /cc @PaoloTK) and AP is supposed to be open.
oltas123 commentedon Nov 21, 2024
But no AP appears that you can connect to. Downgrade to 14.4 and all is fine.
blazoncek commentedon Nov 21, 2024
@DedeHai you also have C3, can you check on your devices? Mine work as expected (including C3 supermini).
If they work I would suspect HW issue combined with the newer ESP32 platform (6.3.2) used in 0.15.
blazoncek commentedon Nov 21, 2024
@oltas123 did you check forum link?
oltas123 commentedon Nov 21, 2024
I checked the link. No success to manual connect over smartphone. But maybe you should close the issue. I stay at 14.4with this board. Thank you for your support.
DedeHai commentedon Nov 21, 2024
I use the latest beta on C3 all the time, but flashed from VScode if that makes a difference. Never noticed any issues with non-working wifi, even when set to max TX power.
blazoncek commentedon Nov 21, 2024
@oltas123 you can try and compile 0.15 using older platform for ESP32-C3. Use version 5.3.0 which was used in 0.14.
oltas123 commentedon Nov 23, 2024
Thanks all for the help. oltas
blazoncek commentedon Nov 23, 2024
You could explain what you did to alleviate your problem if you managed to resolve it.
Someone else might benefit form it.
oltas123 commentedon Nov 24, 2024
Not solved so far. The esp32-c3 super mini passed away during the tests.
oltas123 commentedon Nov 25, 2024
Ordered a new ESP32-C3 and all is fine. Update to 15xxbeta works. The board is has a different design.

blazoncek commentedon Nov 25, 2024
This one still looks as the one with poor antenna design. See the link above.
Fingers crossed!