mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1482] Esp32 s3/c3 softap not working esp v2.0.3+ #1265
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1265
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tablatronix on GitHub (Aug 26, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1482
There are several open issues that all seem related to wifi being broken on esp32 s3 and c3, seems to work on the latest esp lib. Not sure if its a combination on wifimanager starting and stopping sta mode the ln starting softap making this hard to debug.
Solution: USE 2.0.4
@MattiaCC93 commented on GitHub (Aug 31, 2022):
Hi @tablatronix , 5 days ago i opened this issue about my esp32-c3 (#1481)
I just (5 minutes ago) tried with the latest version (2.0.11-beta) but the problem persists, that is the Access Point does not "generate" the wifi network.
Thanks
@tablatronix commented on GitHub (Aug 31, 2022):
Thanks yeah I am trying to gather the 3-4 issues into this one, they all seem related and hard to test. I think this is a ESP lib issue, as updating to staging fixes it
@FHanus commented on GitHub (Aug 31, 2022):
Same issue with ESP32-S2. When I flash the ESP32 Wifi AP example it creates an access point, but the "basic" example of the WifiManager does not start an access point.
@FHanus commented on GitHub (Aug 31, 2022):
@tablatronix I know you already know this, but I want to confirm that downgrading to espcore version 2.3 in the board manager solves this.
@tablatronix commented on GitHub (Aug 31, 2022):
I can only get this to work on 2.0.4 sorry , fixing title typo
for me everything is broken on 2.0.3 and no idea why, There might be a workaround, i have to test and see if I can stop wifi, then start softap and if that solves it, I suspect its something I am doing because noone has complained about this in normal exmaples, so I am assuming this is some kind of switching wifi sate issue
@FHanus commented on GitHub (Aug 31, 2022):
This is strange because for me the issue was on 2.0.4 and 2.0.3 fixed it
@Ben-Rheinland commented on GitHub (Sep 1, 2022):
Arduino IDE, Adafruit QT Py ESP32-C3, WiFiManager 2.0.12-beta:
Issue is present with Arduino-ESP32 2.0.4
No issues with Arduino-ESP32 2.0.3
Tested with WiFiManager "Basic" example
@MattiaCC93 commented on GitHub (Sep 1, 2022):
Sorry, I have a perhaps trivial question.
When you write "version 2.0.3" or "version 2.0.4" what are you referring to?
Are you referring to 2.0.3-alpha and v2.0.4-beta?
Thanks.
@Ben-Rheinland @FHanus
@mazgch commented on GitHub (Sep 1, 2022):
Hi @tablatronix, here is a hint:
Following fix in WiFiManager.cpp:717 will solve the problem on my 2.0.4 version and a ESP32S3, not sure about any side effects this might have.
Also the WM_NOTEMP only works for the ESP32S3_DEV board any other ESP32S3 board will fail to compile this library. We should find another way of disabling the temperature for all ESP32S3 boards in the market.
@Ben-Rheinland commented on GitHub (Sep 1, 2022):
This is referring to the esp32 platform by espressiv, installed in Arduino IDE using the boards manager: Link to tutorial
No, I have the WiFiManager Library installed on version 2.0.12-beta.
@FHanus commented on GitHub (Sep 1, 2022):
Confirming what @Ben-Rheinland said
@tablatronix commented on GitHub (Sep 1, 2022):
@mazgch thanks, i have disable temp sensor on all for now
201ad2e838@FHanus commented on GitHub (Sep 1, 2022):
@tablatronix I keep encountering one more issue. When the ESP runs the basic example from the WifiManager, and gets unplugged before the WiFi manager AP turns off by saving credentials (not using the reset button, but by unplugging the cable) it is impossible to connect back to the AP when it turns back on.
@tablatronix commented on GitHub (Sep 1, 2022):
That might be something else, is it crashing?
I cannot even use 2.0.3 for c3 on platformio, it just boot loops
@FHanus commented on GitHub (Sep 1, 2022):
That's the thing, after this forced reboot it goes to the same old problem of being stuck on the ESP printing out that zero clients are connected.
@tablatronix commented on GitHub (Sep 1, 2022):
hmmmmmmm lol
I have a patch to fix a wifi not init issue , let me see if that can help.
@tablatronix commented on GitHub (Sep 1, 2022):
ok so 2.0.3 esp c3 does not work afaik, and there is no patch until 2.0.4 I could be wrong.
https://github.com/espressif/arduino-esp32/issues/6862#issuecomment-1175926313
So if you are running 2.0.3 the bootloader is all fucked
@mazgch commented on GitHub (Sep 1, 2022):
Were you able to confirm that commenting line WiFiManager.cpp:717 solved the startup issue, is my proposal a safe patch or do you see major side effects?
@tablatronix commented on GitHub (Sep 1, 2022):
Yeah same change, its not needed for anything, and i have no idea how to cleanly detect board
@tablatronix commented on GitHub (Sep 1, 2022):
I give up for now, I cannot get a damn thing to work on this c3...
Really pissing me off now
@tablatronix commented on GitHub (Sep 1, 2022):
@tablatronix commented on GitHub (Sep 1, 2022):
Good news, my c3 devkit is garbage, I have another c3 board and it works, and i can reproduce this AND my previous suggestion does indeed work.. Still not sure why though...
There is something wrong with turning off STA , I will figure it out and have a real fix
bool _disableSTAConn = false; // disable sta when starting ap, if sta is not connected ( stability )@Miceuz commented on GitHub (Sep 5, 2022):
I can't get AP to work in ESP 2.0.4 and WifiManager 2.0.12-beta on ESP32-C3.
Even WiFiManager.cpp:717 patch does not work.
@tablatronix commented on GitHub (Sep 5, 2022):
I have not fixed it yet but you can do the .h mod i mentioned above a d see if that works
@Miceuz commented on GitHub (Sep 5, 2022):
I have tried the
_disableSTAConn=falsemod, but still no AP. It's really late here, I will try a clean experiment tomorrow.@tablatronix commented on GitHub (Sep 5, 2022):
Ok thanks for letting me know
@Miceuz commented on GitHub (Sep 6, 2022):
I have done a clean install via platformio. This is my platformio.ini:
I am sure platformio pulls in esp32 core 2.0.4
I have added
bool _disableSTAConn = false;hack intoWiFiManager.hNow if I have
WiFi.mode(WIFI_STA);in mysetup()function, I can't get AP to run, but if I change it toWiFi.mode(WIFI_AP)the AP starts up.@tablatronix commented on GitHub (Sep 6, 2022):
Yeah there is something very wrong with changing modes, and even stranger no error on startap.. I have no idea whats going on. afaik its only the c3.. I will keep testing my guess is we are going to need something like an intermediate wifi_off or wifi_stop raw calls, or there is a missing event in the arduino esp handler maybe..
@JohnWickham commented on GitHub (Sep 7, 2022):
Thanks Miceuz, I wasn't able to get the config portal to run on ESP32-S2 for ages — using
WIFI_APinstead ofWIFI_STAgot me there!@cniedzi commented on GitHub (Sep 7, 2022):
I had the same issue with S2. I tried
bool _disableSTAConn = false;and so far so good.@tablatronix commented on GitHub (Sep 7, 2022):
I opened an issue, and created a test sketch, now I can work on a fix/workaround.
https://github.com/espressif/arduino-esp32/issues/7232
@shashi5841 commented on GitHub (Sep 10, 2022):
My issue solved now working esp 2.0.3 used with latest wifimanager
Below is the serial port data obtained:
*wm:[1] AP IP address: 192.168.4.1
*wm:[1] Starting Web Portal
*wm:[2] HTTP server started
*wm:[2] Config Portal Running, blocking, waiting for clients...
*wm:[2] NUM CLIENTS: 0
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- HTTP Root
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- HTTP Wifi
*wm:[2] WiFi Scan SYNC started
*wm:[2] WiFi Scan completed in 4701 ms
*wm:[1] 1 networks found
*wm:[2] AP: -39 Shashi BSNL
*wm:[2] NUM CLIENTS: 1
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- Request redirected to captive portal
*wm:[2] <- HTTP WiFi save
*wm:[2] processing save
*wm:[2] Connecting as wifi client...
*wm:[2] setSTAConfig static ip not set, skipping
*wm:[1] Connecting to NEW AP: Shashi BSNL
*wm:[1] connectTimeout not set, ESP waitForConnectResult...
*wm:[2] Connection result: WL_CONNECTED
*wm:[1] Connect to new AP [SUCCESS]
*wm:[1] Got IP Address:
*wm:[1] 192.168.1.4
*wm:[2] shutdownConfigPortal
*wm:[2] <- Request redirected to captive portal
*wm:[2] restoring usermode STA
*wm:[2] wifi status: WL_CONNECTED
*wm:[2] wifi mode: STA
*wm:[2] configportal closed
*wm:[1] config portal exiting
connected...yeey :)
Thanks a lot ADMIN. Love your efforts keep it up..
@tablatronix commented on GitHub (Sep 10, 2022):
I have been trying to fix this and nothing I do fixes it, no workaround yet other that the one mentioned before
bool _disableSTAConn = false; // disable sta when starting ap, if sta is not connected ( stability )seems to help avoid whatever gets stuck in the IDF
(originally posted to the wrong issue)
@tablatronix commented on GitHub (Sep 10, 2022):
Issue still exists in 2.0.4 for me in C3, testing S2 now
@tablatronix commented on GitHub (Sep 12, 2022):
S2 will not show AP, if I disable disconsta, it shows up, but then refuses to let me join it...
This is a big problem, i have tried deinit wifi to no avail. Still testing
If someone wants to help , maybe roll back esp core and see when it broke ( using the example min sketch in the arduino issue NOT WM )
@tablatronix commented on GitHub (Sep 12, 2022):
Testing workaround for this
essentially turn on AP and STA then turn off STA, I have no idea what this is doing, startap is NOT working right, My guess is that wifi is getting turned off or losing cal before starting AP if we call espwifistop, and startap is not recovering. I tried wifi_off between states with no improvement
WiFi.mode(WIFI_AP_STA);
WiFi.mode(WIFI_AP);
restore
_disableSTAConntrue please@Miceuz commented on GitHub (Sep 12, 2022):
This workaround works for me on esp32-c3 with esp 2.0.4 and master branch of WiFiManager.
@cniedzi commented on GitHub (Sep 13, 2022):
ESP32 S2
Lolin S2 mini
2.0.0 ESP32S2 NativeUSB - OK
2.0.1 ESP32S2 NativeUSB- OK
2.0.2 ESP32S2 NativeUSB- OK
2.0.3 ESP32S2 NativeUSB/Lolin S2 mini - OK
2.0.4 ESP32S2 NativeUSB/Lolin S2 mini - FAILED!
@cniedzi commented on GitHub (Sep 13, 2022):
I think 2.0.4 core must be kinda broken, because my S2 gets stuck after several recurring resets. In such cases I have to power off the device and wait few/dozen seconds before successful powering on... I've rollbacked to 2.0.3. No such issues and no problems with Soft AP.
@tablatronix commented on GitHub (Sep 20, 2022):
2.0.5 is out, supposed to be fixed, I have to remove the workaround and test it.
I have no idea how to pull in 2.0.5 into platformio though. Let me install arduino
@Miceuz commented on GitHub (Sep 21, 2022):
@tablatronix you can pull 2.0.5 into platformio this way:
@tobozo commented on GitHub (Nov 15, 2022):
hi,
I'm using esp32-arduino 2.0.5 (for Arduino IDE) along with the master branch of this repository and I noticed that WiFi.scanNetworks() does not use the second argument
show_hidden.is WiFiManager ignoring hidden AP by design?
it doesn't seem very difficult to add the extra parameter so I assume there's a valid reason but can't wrap my head around it 🤔
using
wifiManager.setCleanConnect(true);was a life changer anyway, thanks for the quality work!@tablatronix commented on GitHub (Nov 15, 2022):
It looks like it was changed, hidden was default in esp8266, now its false?
hmm, I think maybe its too slow, since it has to wait for beacons?
actually ther eis a config for scan_type already, I wonder if its a legacy thing then or just a filter now?
il create a new issue
@Lalufu commented on GitHub (Apr 15, 2023):
I've found this issue through searching for a solution to WM not working on my ESP32-C3, and from reading through it I'm a bit confused as to what the current state of this is. I'm on
framework-arduinoespressif32 @ 3.20007.0 (2.0.7)and the current master checkout of WifiManager, and I don't see the hotspot SSID when the system starts without a config.Is this supposed to work, or are some of the workarounds from above still necessary?
@kunpoolsion commented on GitHub (Oct 13, 2023):
I know is an old issue but maybe is worth it to revive it.
I was trying everything I found about it because I need to make an SoftAP in my project at certain point, but I was complete unable with the ESP32-C3.
Finally I was able to do it inserting:
WiFi.setTxPower(WIFI_POWER_8_5dBm);right after any wifi.softap command in my project. I don´t mind the reduction of power in TX because the machine will be used very close to de user, but this depends on the project itself.
Maybe is usefull to integrate it in the library.
@tablatronix commented on GitHub (Oct 13, 2023):
What board are you using , this is a well known bug in wemos and other rev 1 boards as well as bad power supplies
@kunpoolsion commented on GitHub (Oct 13, 2023):
https://www.electrodragon.com/product/esp-led-strip-board/
Yeah, must be related with power, but probably with the power-down converter in the board, it doesn´t if I power the board by a psu at 5v directly, using the dc input in the board or by the usb-serial converter.
That means that this issue is fixed already in "normal" quality boards? :)
@tablatronix commented on GitHub (Oct 13, 2023):
Yeah I think alot of kind of copy the same schematic and hence the "bugs", have you tried whacking a cap on there right on the 3v3 near the chip. Heck sometimes it not voltage draw but noise also
@kunpoolsion commented on GitHub (Oct 13, 2023):
In 3.3v line?
@Lalufu commented on GitHub (Nov 9, 2023):
This sounds basically like what
WiFiManager::WiFi_eraseConfig()doeson an ESP32?
Do you only have to do this once, or on every boot?