-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Esp32 s3/c3 softap not working esp v2.0.3+ #1482
Comments
Hi @tablatronix , 5 days ago i opened this issue about my esp32-c3 (#1481) Thanks |
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 |
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. |
@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. |
I can only get this to work on 2.0.4 sorry , fixing title typo |
This is strange because for me the issue was on 2.0.4 and 2.0.3 fixed it |
Arduino IDE, Adafruit QT Py ESP32-C3, WiFiManager 2.0.12-beta: |
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. |
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. |
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. |
Confirming what @Ben-Rheinland said |
@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. |
That might be something else, is it crashing? I cannot even use 2.0.3 for c3 on platformio, it just boot loops |
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. |
hmmmmmmm lol I have a patch to fix a wifi not init issue , let me see if that can help. |
ok so 2.0.3 esp c3 does not work afaik, and there is no patch until 2.0.4 I could be wrong. espressif/arduino-esp32#6862 (comment) So if you are running 2.0.3 the bootloader is all fucked |
Yeah same change, its not needed for anything, and i have no idea how to cleanly detect board |
I give up for now, I cannot get a damn thing to work on this c3... ELF file SHA256: 0000000000000000
Rebooting...
ESP-ROM:esp32c3-20200918
Build:Sep 18 2020
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40381976
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
SHA-256 comparison failed:
Calculated: 080c5cb68a075ced55f248b97bca965e3e5bd5da80a64e34e6a1638f89d6f64e
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x403ce000
*wm:[1] AutoConnect
Guru Meditation Error: Core 0 panic'ed (Illegal instruction). Exception was unhandled.
Core 0 register dump:
MEPC : 0x40001be4 RA : 0x42071f60 SP : 0x3fca3e00 GP : 0x3fc8ea00
TP : 0x3fc863f4 T0 : 0x40057fa6 T1 : 0x40383628 T2 : 0xffffffff
S0/FP : 0x3fc95a98 S1 : 0x40383b00 A0 : 0x3fc8fc34 A1 : 0x40383a02
A2 : 0x40385288 A3 : 0x40383744 A4 : 0x4038377c A5 : 0x3fcdf4f8
A6 : 0x40383812 A7 : 0x403837e6 S2 : 0x3c0abc1c S3 : 0x00000000 |
|
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
|
Ok thanks for letting me know |
I have done a clean install via platformio. This is my platformio.ini:
I am sure platformio pulls in esp32 core 2.0.4 Now if I have |
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.. |
Thanks Miceuz, I wasn't able to get the config portal to run on ESP32-S2 for ages — using |
I had the same issue with S2. I tried |
I opened an issue, and created a test sketch, now I can work on a fix/workaround. |
My issue solved now working esp 2.0.3 used with latest wifimanager Thanks a lot ADMIN. Love your efforts keep it up.. |
I have been trying to fix this and nothing I do fixes it, no workaround yet other that the one mentioned before (originally posted to the wrong issue) |
Issue still exists in 2.0.4 for me in C3, testing S2 now |
S2 will not show AP, if I disable disconsta, it shows up, but then refuses to let me join it... 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 ) |
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); restore |
This workaround works for me on esp32-c3 with esp 2.0.4 and master branch of WiFiManager. |
ESP32 S2 2.0.0 ESP32S2 NativeUSB - OK |
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. |
2.0.5 is out, supposed to be fixed, I have to remove the workaround and test it. |
@tablatronix you can pull 2.0.5 into platformio this way:
|
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 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 |
It looks like it was changed, hidden was default in esp8266, now its false? 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 |
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 |
I know is an old issue but maybe is worth it to revive it. |
What board are you using , this is a well known bug in wemos and other rev 1 boards as well as bad power supplies |
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? :) |
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 |
In 3.3v line? |
This sounds basically like what `WiFiManager::WiFi_eraseConfig()` does
on an ESP32?
Do you only have to do this once, or on every boot?
|
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
The text was updated successfully, but these errors were encountered: