-
Notifications
You must be signed in to change notification settings - Fork 2.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
Some units connect to local wifi and are operating as AP at the same time #2721
Comments
The AP mode should be disabled after a minute, unless some client is still connected to the AP. |
The strange thing is that only 3 out of 9 have this behavior. |
Anyone else experiencing this? |
Well, the security level depends highly on the tech-savvy level of your neighborhood, but I see what you mean. |
you are right, but just for curiosity one could try to see what a new SSID called ESPT3_3 is... |
Confirm that behaviour on one of my nodes. Nothing new - after the fix of the "daily reboot issue", I updated all nodes somewhen in March this year, then last week again. The AP issue was already there in March. Checked twice all settings, but never found the reason for it. Didn't see a major problem in this, just felt it to be a bit strange, so I left it as it is. |
@TD-er What about making all that ESPEasy specific wifi handling optional ? Per define. I have just tried the simple webserver example. It even automatically reconnects when I restart the router. Looks pretty solid to me. |
The label of that option is perhaps not the best descriptive one. |
Hi All, I see this behaviour also with 2 of my nodes. |
one of five devices is also shown up as AP. |
I experience the same thing, about 4 out of 40 nodes also open an AP (randomly, mainly slower ones/smaller ones eg. 1M units). But never considered this a problem, I thought it's probably missing a rekey or reconnect and opens an AP for a short time until it reconnects again. Could be somehow related to weak RSSI?! |
It is possible, but then the unit should reconnect a lot. |
Out of the 2 nodes with that behaviour, sh.klima.schuppen is indeed an outside device (D1mini Pro with external antenna). While the second one (sh.klima.eg) is at the ground floor almost next to the router and shows perfect RSSI ... |
I wish the AP mode could be disabled permanently by some option... |
It looks to me that the issue when a node connected as client is also visible as AP could be related to warm ESP node reboot. |
@ghtester In your other issue, I noticed the very strange logs where it was not possible to switch WiFi modes. (search for multiple !!! in your logs) |
Yes, perhaps "the core" does some WiFi related "hidden" tasks after a warm reboot and does not allow to set up the WiFi mode properly... |
in my case I have done several cold reboots (removing the power supply) and still one unit shows AP and is connected to Wifi. |
@giig1967g Are there any reconnects in your case after a cold reboot? Or the node with AP+STA mode was connected to WiFi at first attempt? |
From sysinfo page:
|
It was apparently before the first successful connect, given the number of reconnects is 0. |
uncommenting line 291 in ESPEasy.ino fixed the issue for me. // setWifiMode(WIFI_STA); @TD-er this rings a bell ? |
Well, that's called before the plugins are being initialized. Or, it may be that this does offer some more time between switching on the WiFi and actually connecting. |
You have to switch AP mode off or it will resurface. Those settings are pretty resilient. |
That's why I'm prying for an option to disable AP mode permanently... In my case AP mode makes only troubles, no advantage at all... |
Would it be an improvement to make the AP mode less active by using these:
The first one does not allow the AP mode to be automatically started after the first N minutes and still gives a good escape route to redefine wifi config when you had to change routers for example. The stopping of the AP mode is already implemented, but it looks like the WiFi.mode call is broken at the moment. So I have already implemented a number of retries to get the mode set. Also what is a good value for N? 5 minutes? |
Ah found also a logic error in the |
Yes I believe 5 minutes would be OK for now, I'll be glad if there's a permanent AP disable option in future. |
Nope, it wasn't enough to fix this. |
Thanks a lot for a great job! :-) |
FYI the annoying issue after a warm (re)boot the WiFi STA sensitivity is low is still there. Hopefully the core lib 2.6.1 could help to fix that... |
There has been no nightly rebuild, which I had hoped for. |
Yes with the latest sources. FirmwareBuild:⋄ | 20104 - Mega When the new official build is created, I'll test on another ESP node to confirm if the issue is the same like on my Vagrant customized. |
If it is, can you then open a new issue about that, since it is a different issue (not about opening AP mode) |
Yes I'll do it if the issue doesn't vanish. Thanks again for your great work! |
OK, thanks for the info, I'll try to rebuild with my Custom.h if I find what to change to use 260_sdk3_alpha core. |
confirm that ESP_Easy_mega-20191119_test_core_260_sdk3_alpha_ESP8266_4M1M.bin works for me also at a weak RSSI Device. |
Great, ESP_Easy_mega-20191119_test_core_260_sdk3_alpha_ESP8266_4M1M.bin from official build works for me as well. I tried to edit build flags in platformio.ini under Vagrant environment to use sdk3.0.0. instead of default 2.2.2 for compilation with my specific Custom.h but I failed. :-( The output |
@ghtester Is SDK 3 working better with wifi compared to sdk 2.2.2? |
From my perspective yes, tested quickly with official build specified above but it's missing IRRX which I need together with plugins that are missing in official builds containing IRRX. And so far I was not able to understand the Vagrant scripts sufficiently to self compile with sdk3. I would like to perform a more thorough tests with my preferred set of plugins including IRRX. |
Thanks a lot, I'll give it a try when ready. |
Just tested a Vagrant fresh build with my Custom.h. The output bin looks like this: FirmwareBuild:⋄ | 20104 - Mega So the re's core 2.6.1 but sdk 2.2.2 and the WiFi issue after a warm boot is there. I have also encountered a wdt reboot so it looks it won't be a best possible combination and sdk3.0 is perhaps a must. ets Jan 8 2013,rst cause:4, boot mode:(3,6) wdt reset INIT : Booting version: My Build: Nov 21 201914:52:55 (ESP82xx Core 2_6_1, NONOS SDK 2.2.2-dev(bb83b9b), LWIP: 2.1.2 PUYA support) Could you please provide me with a pio_envlist.txt structure? I have no idea what exactly I should put there and I did not found any example in sources or an info in the README.txt file. |
I added a sample which you have to place next to the |
Hi,
I have installed ESP_Easy_mega-20191104_normal_core_260_sdk222_alpha_ESP8266_4M1M.bin in all my units and I am experiencing the following problem since:
I have 9 units all connected to my local wifi router, but strangely 3 of them are also operating as APs. All units are operating correctly.
See screenshot (my unit number 3 is connected to my SSID=Varazze, but is also creating the AP=ESPT3_3. Same for units 8 and 10):
The text was updated successfully, but these errors were encountered: