Skip to content
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

WiFi connection fails on some ESP8266 nodes if Do Not Start AP: option is enabled #4337

Closed
ghtester opened this issue Nov 6, 2022 · 80 comments
Labels
Category: Stabiliy Things that work, but not as long as desired Category: Wifi Related to the network connectivity

Comments

@ghtester
Copy link

ghtester commented Nov 6, 2022

I have upgraded one ESP Easy node (8266) from custom firmware 20220829 to custom 20221031 as it started disappearing from WiFi network.
After the upgrade and node reboot it seemed to be working fine but after several hours it disappeared again.
Then I tried to edit some WiFi settings but after the reboot the node did not boot properly anymore. The WiFi status LED was just changing the light intensity from low to medium after several seconds and that was all.
Repeated connecting to serial console showed just some garbage characters or even nothing.
Then I decided to reflash with empty bin, reflashed again with custom 20221031 which was working again with default configuration.
As soon as I restored the earlier config, the described issue returned... Then I reflashed with custom 20220829 firmware which is so far working fine with the restored config.
The question is what could make the config incompatible with latest firmware release?
Another question is - could we make a feature for exporting all configuration parameters in text form from ESP node?
Also a simple viewer or config exporter could be useful (I mean an app or a script ) to be used with already existing binary config files. Maybe I could perhaps try to do some work on it if somebody reminds me with the current config binary file structure.
image

@Jason2866
Copy link
Contributor

@TD-er Could be the change of the used SDK.

@TD-er
Copy link
Member

TD-er commented Nov 6, 2022

@Jason2866 Also for ESP8266 builds?

@TD-er
Copy link
Member

TD-er commented Nov 6, 2022

@ghtester I really don't know what may have made the settings incompatible.
The only thing added to the settings is the added md5 checksum at the end (to re-introduce the feature to not saving settings when nothing was changed) and the internal build nr is updated to know if we need to perform version transitions. These transitions are only used to convert some settings if we add some features.
For example P014 now supports multiple sensors which adds the need to set an I2C address. So there is a transition on existing settings to set the previous default address.

The settings are kept as much backwards compatible as possible.
As a matter of fact, last week I upgraded a node with 4 year old settings and this worked just fine.

@Jason2866
Copy link
Contributor

@TD-er Only for esp8266. The change of the used SDK you did.

@TD-er
Copy link
Member

TD-er commented Nov 6, 2022

@TD-er Only for esp8266. The change of the used SDK you did.

Hmm I wasn't aware I did change something significant for the ESP8266.
Do you know what may have changed what may cause these things? Where do I need to look?

Edit:
Or do you mean this: PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190313 ?

@Jason2866
Copy link
Contributor

Or do you mean this: PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190313 ?

Yes! You opened the esp8266 pandoras box by doing this ;-)

@TD-er
Copy link
Member

TD-er commented Nov 6, 2022

Why does Pandora leave these boxes laying around...
Hasn't she learned to clean up?

@ghtester
Copy link
Author

ghtester commented Nov 7, 2022

As a matter of fact, last week I upgraded a node with 4 year old settings and this worked just fine.

I don't know, maybe my custom build uses some unusual settings / directives in Custom.h or a plugin combinations... Or a HW issue of affected ESP node (it's permanently running for about 4 years so may be it's a bit dying)?
Perhaps I should try upgrading another ESP node but there's always a different configuration. As the custom release 20220829 works pretty fine on my nodes, also some of them are not easily reflashable if I defunct them by upgrade so I have to be careful.
Hopefully the SDK change is the reason... ;-)

@TD-er
Copy link
Member

TD-er commented Nov 7, 2022

I will look into the SDK change.
This was mainly done to have 802.11n connections which really obey the standards and also for those problematic units that worked on really old builds but no more on builds made in the last 3 years.

@TD-er
Copy link
Member

TD-er commented Nov 8, 2022

Can you please re-test using the current 'mega' branch code?
This still uses the same ESP8266 SDK version, but @Jason2866 did suggest to change the way how PlatformIO tries to find the required libraries and this does seem to have an effect on the 'build predictability', which is what we really need.

@ghtester
Copy link
Author

ghtester commented Nov 8, 2022

Thanks a lot, I have just recompiled the firmware from current sources, in the evening I'll try to upgrade the node again and share the feedback.

@ghtester
Copy link
Author

ghtester commented Nov 8, 2022

OK, some news - the same issue on the same node with fresh Vagrant custom build, right after the update & reboot it did not work properly anymore. LCD display was initialized but rules did not work, WiFi LED changing light intensity after several seconds., no connection to WiFi AP.
Reflashed back to 20220929 and working again. Checked the configuration and discovered the Serial port & Serial Log was disabled earlier to save RAM (that's why I did not see any serial log).
Upgraded another ESP node from 20220829 to 20221108 without issue...

@cybermcm
Copy link

cybermcm commented Nov 8, 2022

I may have a similar problem (or maybe it is not related at all ;-), I'm not an expert.
I have 9 ESP8266 running on mega-20220809_normal just fine (most of them only have one temperature sensor attached)
Updated all of them to mega-20221105 -> 5 working without any issue, 4 do not connect to my wifi anymore. After rebooting a faulty device, the ESP are sending their own Wi-Fi, then I'm able to connect to it (192.168.4.1) and revert to 20220809 -> issue gone, all faulty devices working again (no config changed)
The ESP are connected to different APs, the APs running on OpenWRT (latest build)

currently my free time is somehow limited, but if any further data is useful I'll try to provide it.

@ghtester
Copy link
Author

ghtester commented Nov 8, 2022

Maybe it's HW related...
My problematic ESP node:

ESP Board

ESP Chip ID: | 3523742 (0x35C49E)
ESP Chip Frequency: | 80 MHz
ESP Chip Model: | ESP8266
ESP Chip Cores: | 1
ESP Board Name: | Espressif Generic ESP8266 ESPEasy 4M Flash 1M FS

Working firmware:

Firmware

Build:⋄ | 20220829 - Mega
System Libraries:⋄ | ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
Git Build:⋄ | My Build: Aug 29 2022 09:27:48
Plugin Count:⋄ | 39 [IR]
Build Origin: | Vagrant
Build Time:⋄ | Aug 29 2022 09:27:04
Binary Filename:⋄ | ESP_Easy_mega_20220829_custom_IR_ESP8266_4M1M
Build Platform:⋄ | Linux-4.15.0-51-generic-x86_64-with-glibc2.27
Git HEAD:⋄ | mega_44b2677

BTW. I have the AP mode disabled on this node. Maybe I could enable it, reflash to "bad" firmware and test what happens. Serial port & logging now enabled.

@TD-er
Copy link
Member

TD-er commented Nov 8, 2022

I'm thinking about the following idea:

The SDK now used for ESP8266 builds is PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190313
This seems to be the (only?) one that's working on "flaky" ESP nodes, like the Sonoff Basic units.
What if I revert this SDK back to the one we used on the August build and then set those builds we now have labelled "alt WiFi" to use this 190313 SDK.
Right now, I have no idea what is the very specific cause for units that won't work with one SDK and only work with the other and vice verse. Simply because these SDK binary blobs have no release notes or anything indicating what may be different.

@TD-er
Copy link
Member

TD-er commented Nov 8, 2022

@ghtester Maybe you can already test with the current "alt WiFi" PIO env?
It is using a different SDK from the August builds, but at least it is different from the current "default" one.

@ghtester
Copy link
Author

ghtester commented Nov 8, 2022

I am not sure how the configuration option should look like exactly to use "alt WiFi". For me it's important to have the IR related plugins compiled and I am not sure if there's any possible conflict / missing plugins or not.
So I would prefer to revert the SDK with default env. Unfortunately my build environment is inaccessible now anyway so I could recompile tomorrow.

@TD-er
Copy link
Member

TD-er commented Nov 8, 2022

There are various "custom" builds defined.
image

But I don't see an alt WiFi one with IR.
Let's continue this tomorrow after I have done some tests on the "problematic" units to see if they now will work well on the previous used SDK for ESP8266.

@ghtester
Copy link
Author

ghtester commented Nov 8, 2022

OK, thanks for the details, missing IR is a trouble for me.
BTW. this is the serial log after upgraded again to "bad" 20221108:
▒U11756 : Info : WIFI : Set WiFi to AP+STA
16546 : Info : WIFI : Set WiFi to OFF
16763 : Info :

INIT : Booting version: ESP_Easy_mega_20221108_custom_IR_ESP8266_4M1M, (Vagrant) My Build: Nov 8 2022 15:03:09 (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(c0eb301), LWIP: 2.1.2 PUYA support)
16764 : Info : INIT : Free RAM:25272
16766 : Info : INIT : Cold Boot - Restart Reason: Software/System restart
16767 : Info : FS : Mounting...
16793 : Info : FS : Mount successful, used 78061 bytes of 957314
16809 : Error : CRC : Settings CRC ...FAIL
16811 : Info : CRC : SecuritySettings CRC ...OK
16814 : Info : INIT : I2C
16815 : Info : INIT : SPI not enabled
16921 : Info : WIFI : Set WiFi to STA
19218 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-44dBm) WPA2/PSK attempt #0
19432 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 112 ms
19534 : Info : Reset WiFi.
21730 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-43dBm) WPA2/PSK attempt #1
22680 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 112 ms
22681 : Info : WIFI : Set WiFi to OFF

Build changed!
22869 : Info : Skip saving SecuritySettings, not changed
22870 : Info : INIT : Free RAM:24608
22906 : Info : P016_PLUGIN_INIT ...
22908 : Info : INIT: IR RX
22909 : Info : IR lib Version: 2.8.2
22909 : Info : P016_PLUGIN_INIT IR receiver created
22910 : Info : P016_PLUGIN_INIT IR receiver initialized
22910 : Info : P016_PLUGIN_INIT done
24060 : Info : INFO : Plugins: 40 [IR][No Debug Log] (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(c0eb301), LWIP: 2.1.2 PUYA support)
24061 : Info : EVENT: System#Wake
24214 : Info : Webserver: start
24214 : Info : EVENT: System#Boot
24218 : Info : ACT : rtttl,15:d=10,o=6,b=200,c,g,e
24220 : Info : RTTTL : pin: 15 melody: 15:d=10,o=6,b=200,c,g,e
24583 : Info : ACT : LCDCMD,off
24587 : Info : ACT : timerSet,1,5
24591 : Info : ACT : gpio,10,0
24593 : Info : GPIO : port#10: set to 0
24594 : Info : ACT : gpio,10,1
24596 : Info : GPIO : port#10: set to 1
24598 : Info : ACT : gpio,10,0
24599 : Info : GPIO : port#10: set to 0
24604 : Info : WIFI : Disconnected! Reason: '(202) Auth fail' Connected for 951 ms
24805 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 24 s
24906 : Info : Reset WiFi.
25010 : Info : WIFI : Set WiFi to STA
27310 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-47dBm) WPA2/PSK attempt #2
27417 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 5 ms
27518 : Info : Reset WiFi.
29715 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-47dBm) WPA2/PSK attempt #3
30664 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 5 ms
30665 : Info : WIFI : Set WiFi to OFF
30989 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 1173 ms
31090 : Info : Reset WiFi.
31195 : Info : WIFI : Set WiFi to STA
33493 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-47dBm) WPA2/PSK attempt #4
33500 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 1173 ms
33501 : Info : WIFI : Set WiFi to OFF
33715 : Info : EVENT: WiFi#APmodeDisabled
33833 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 238 ms
33934 : Info : Reset WiFi.
34039 : Info : WIFI : Set WiFi to STA
36338 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-47dBm) WPA2/PSK attempt #5
36345 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 238 ms
36345 : Info : WIFI : Set WiFi to OFF
36560 : Info : EVENT: WiFi#Disconnected
36678 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 238 ms
36779 : Info : Reset WiFi.
36883 : Info : WIFI : Set WiFi to STA
39183 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-45dBm) WPA2/PSK attempt #6
39191 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 238 ms
39191 : Info : WIFI : Set WiFi to OFF
39406 : Info : EVENT: TaskInit#IR=1,1
39524 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
39625 : Info : Reset WiFi.
39730 : Info : WIFI : Set WiFi to STA
42029 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-47dBm) WPA2/PSK attempt #7
42036 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
42037 : Info : WIFI : Set WiFi to OFF
42251 : Info : EVENT: TaskInit#ADC=5,1
42370 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
42471 : Info : Reset WiFi.
42576 : Info : WIFI : Set WiFi to STA
44874 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-43dBm) WPA2/PSK attempt #8
44881 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
44882 : Info : WIFI : Set WiFi to OFF
45096 : Info : EVENT: TaskInit#Kitchen=6,1
45215 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
45316 : Info : Reset WiFi.
45420 : Info : WIFI : Set WiFi to STA
47719 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-45dBm) WPA2/PSK attempt #9
47726 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
47727 : Info : WIFI : Set WiFi to OFF
47941 : Info : EVENT: TaskInit#Motor=7,1
48060 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
48161 : Info : Reset WiFi.
48266 : Info : WIFI : Set WiFi to STA
50565 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-45dBm) WPA2/PSK attempt #10
50572 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
50573 : Info : WIFI : Set WiFi to OFF
50787 : Info : EVENT: TaskInit#Coolbox=8,1
50906 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
51007 : Info : Reset WiFi.
51111 : Info : WIFI : Set WiFi to STA
53410 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-41dBm) WPA2/PSK attempt #11
53418 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
53418 : Info : WIFI : Set WiFi to OFF
53633 : Info : EVENT: TaskInit#SW1=9,1
53751 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
53852 : Info : Reset WiFi.
53957 : Info : WIFI : Set WiFi to STA
56257 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-44dBm) WPA2/PSK attempt #12
56264 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
56265 : Info : WIFI : Set WiFi to OFF
56479 : Info : EVENT: TaskInit#Status=10,1
56598 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
56699 : Info : Reset WiFi.
56804 : Info : WIFI : Set WiFi to STA
59103 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-45dBm) WPA2/PSK attempt #13
59110 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
59110 : Info : WIFI : Set WiFi to OFF
59325 : Info : EVENT: TaskInit#LCD=11,1
59444 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
59545 : Info : Reset WiFi.
59649 : Info : WIFI : Set WiFi to STA
61949 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-44dBm) WPA2/PSK attempt #14
61956 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
61956 : Info : WIFI : Set WiFi to OFF
62171 : Info : EVENT: TaskInit#PIR=12,1
62289 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
62390 : Info : Reset WiFi.
62495 : Info : WIFI : Set WiFi to STA
64795 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-44dBm) WPA2/PSK attempt #15
64802 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
64803 : Info : WIFI : Set WiFi to OFF
65017 : Info : EVENT: WiFi#Disconnected
65135 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 238 ms
65236 : Info : Reset WiFi.
65341 : Info : WIFI : Set WiFi to STA

@ghtester
Copy link
Author

ghtester commented Nov 8, 2022

BTW. when I entered the WifiAPMode command to serial console, the node connected to AP and started working. :-) To be analyzed a bit...

@TD-er
Copy link
Member

TD-er commented Nov 8, 2022

hmm can you set it to " force B/G"?
Thing is, with AP enabled, the ESP radio cannot use 802.11n, thus is forced to use 802.11g anyway.

@TD-er
Copy link
Member

TD-er commented Nov 8, 2022

By the way, this does look like a big clue to me.
The SDK currently used is the only one (I am aware of) that does allow for 802.11n according to the standards.
The later SDK versions (at least for the 2.x SDK revisions) do not connect fully according to the specs.
So it could be the other SDK versions were already treated by the access point as 802.11g clients.

@ghtester
Copy link
Author

ghtester commented Nov 8, 2022

See the log:
....
62217 : Info : Reset WiFi.
62321 : Info : WIFI : Set WiFi to STA
64622 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-51dBm) WPA2/PSK attempt #19
64629 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 239 ms
64630 : Info : WIFI : Set WiFi to OFF
64844 : Info : EVENT: WiFi#Disconnected

WifiAPMode
64955 : Info : WIFI : Set WiFi to AP
65061 : Error : WIFI : Error while starting AP Mode with SSID: ESP11 IP: 192.168.4.1

OK
65119 : Info : ADC : Analog value: 1 = 1.00
65197 : Info : Dummy: value 1: 0
65199 : Info : Dummy: value 2: 0
65199 : Info : Dummy: value 3: 0
65200 : Info : Dummy: value 4: 0
65297 : Info : EVENT: WiFi#Disconnected
65426 : Info : WD : Uptime 0 ConnectFailures 0 FreeMem 13736 WiFiStatus WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
65596 : Info : EVENT: WiFi#Disconnected
65662 : Info : EVENT: Rules#Timer=1,1
65670 : Info : ACT : TaskValueSet 10,3,1
65674 : Info : ACT : rtttl,15:d=100,o=7,b=200,g
65676 : Info : RTTTL : pin: 15 melody: 15:d=100,o=7,b=200,g
65691 : Info : ACT : gpio,10,1
65693 : Info : GPIO : port#10: set to 1
66104 : Info : EVENT: WiFi#Disconnected
66658 : Info : EVENT: WiFi#Disconnected
66873 : Info : ADC : Analog value: 1 = 1.00
67213 : Info : EVENT: WiFi#Disconnected
67729 : Info : EVENT: WiFi#Disconnected
68132 : Info : EVENT: WiFi#Disconnected
68154 : Info : IR: No replay solutions found! Press button again or try RAW encoding (timings are in the serial output)
IR: RAW TIMINGS: uint16_t rawData[17] = {186, 7698, 588, 2530, 522, 532, 306, 5202, 332, 5524, 446, 1864, 302, 17282, 328, 3524, 382}; // UNKNOWN 8D5ED574
68246 : Info : EVENT: WiFi#Disconnected
68363 : Info : EVENT: WiFi#Disconnected
68415 : Info : EVENT: WiFi#Disconnected
68433 : Info : EVENT: WiFi#Disconnected
68451 : Info : EVENT: WiFi#Disconnected
68481 : Info : EVENT: WiFi#Disconnected
68499 : Info : EVENT: WiFi#Disconnected
68516 : Info : EVENT: ADC#Voltage=1.00
68535 : Info : EVENT: SW1#State=1
68541 : Info : ACT : TaskValueSet 10,2,1
68558 : Info : EVENT: Status#1=0
68592 : Info : EVENT: Status#2=0
68611 : Info : EVENT: Status#3=0
68628 : Info : EVENT: Status#4=0
68646 : Info : EVENT: PIR#State=0
68671 : Info : ACT : TaskValueSet 10,1,0
68700 : Info : EVENT: ADC#Voltage=1.00
68719 : Info : EVENT: IR#input=2371802484
71601 : Info : ADC : Analog value: 1 = 1.00
71619 : Info : EVENT: ADC#Voltage=1.00
71802 : Info : Dummy: value 1: 0
71803 : Info : Dummy: value 2: 1
71804 : Info : Dummy: value 3: 1
71805 : Info : Dummy: value 4: 0
71823 : Info : EVENT: Status#1=0
71841 : Info : EVENT: Status#2=1
71859 : Info : EVENT: Status#3=1
71889 : Info : EVENT: Status#4=0
74400 : Info : WD : Uptime 1 ConnectFailures 0 FreeMem 14960 WiFiStatus WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
74728 : Info : WIFI : Set WiFi to AP+STA
74836 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-51dBm) WPA2/PSK attempt #20
76586 : Info : WIFI : DHCP IP: 192.168.36.102 (ESP11) GW: 192.168.36.1 SN: 255.255.255.0 duration: 536 ms
76587 : Info : IP : Fixed IP octet:192.168.36.141
76591 : Info : firstLoopConnectionsEstablished
76597 : Info : WIFI : Connected! AP: MyTestAP (17:C4:C7:FE:11:84) Ch: 12 Duration: 1199 ms
76598 : Info : WIFI : Starting mDNS...
76601 : Info : WIFI : mDNS started, with name: ESP11.local
77721 : Info : EVENT: WiFi#Connected
77730 : Info : EVENT: WiFi#ChangedAccesspoint
77749 : Error : MQTT : Intentional reconnect
78014 : Info : MQTT : Connected to broker

I think B/G won't help as I have enabled it right before the issue was encountered first time. I'll try reboot

@TD-er
Copy link
Member

TD-er commented Nov 8, 2022

Another thing changed with AP enabled is that the WiFi radio never sleeps.
So this may be -again- one of those awfully timing critical issues.
You could try to reduce the max. TX power and still have the "send with max. TX power" checked.

For example by setting it to 7 dBm, you already reduce the TX power (in Watt) considerably and "7" is probably still enough given your AP is seen at an RSSI of -51.

@ghtester
Copy link
Author

ghtester commented Nov 8, 2022

Yes I can confirm forcing B/G mode does not help.
The node is now next to AP but the original location is a bit far from it and the issue was exactly the same. So I think struggling with TX power won't bring any useful feedback. It should work reliable with any settings...

Edit - decreased max TX power to 7 , rebooted - the same issue.
As soon as the WifiAPmode command entered, the node quickly connects to AP.

Edit2 - checked the Force WiFi No Sleep: option, rebooted - the same issue.

Edit3 - unchecked the Do Not Start AP: option, rebooted - and it helped! The node connected to AP succesfully (but it took a bit longer than with earlier firmware).

Edit4 - checked the Do Not Start AP: option again, rebooted - and issue is back... The bad thing is I would like keep this option checked... For now I'll uncheck it and keep the 20221108 firmware running.

@ghtester
Copy link
Author

ghtester commented Nov 9, 2022

BTW. this is the log after unchecked Do Not Start AP: option:

load 0x4010f000, len 3584, room 16
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld
▒U309 : Info : WIFI : Set WiFi to AP+STA
5101 : Info : WIFI : Set WiFi to OFF
5318 : Info :

INIT : Booting version: ESP_Easy_mega_20221108_custom_IR_ESP8266_4M1M, (Vagrant) My Build: Nov 8 2022 15:03:09 (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(c0eb301), LWIP: 2.1.2 PUYA support)
5318 : Info : INIT : Free RAM:25040
5320 : Info : INIT : Soft Reboot #9 - Restart Reason: Software/System restart
5321 : Info : FS : Mounting...
5347 : Info : FS : Mount successful, used 78061 bytes of 957314
5363 : Info : CRC : Settings CRC ...OK
5391 : Info : CRC : SecuritySettings CRC ...OK
5394 : Info : INIT : I2C
5395 : Info : INIT : SPI not enabled
5407 : Info : Time set to 1667951617.000
5410 : Info : Current Time Zone: DST time start: 2022-03-27 02:00:00 offset: 120 min STD time start: 2022-10-30 03:00:00 offset: 60 min
5413 : Info : Local time: 2022-11-09 00:53:37
5529 : Info : WIFI : Set WiFi to STA
7825 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-44dBm) WPA2/PSK attempt #0
7932 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 5 ms
8033 : Info : Reset WiFi.
10231 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-42dBm) WPA2/PSK attempt #1
11180 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 5 ms
11181 : Info : WIFI : Set WiFi to OFF
11294 : Info : INIT : Free RAM:23776
11337 : Info : P016_PLUGIN_INIT ...
11340 : Info : INIT: IR RX
11340 : Info : IR lib Version: 2.8.2
11341 : Info : P016_PLUGIN_INIT IR receiver created
11341 : Info : P016_PLUGIN_INIT IR receiver initialized
11342 : Info : P016_PLUGIN_INIT done
12508 : Info : INFO : Plugins: 40 [IR][No Debug Log] (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(c0eb301), LWIP: 2.1.2 PUYA support)
12510 : Info : EVENT: System#Wake
12673 : Info : Webserver: start
12674 : Info : EVENT: System#Boot
12677 : Info : ACT : rtttl,15:d=10,o=6,b=200,c,g,e
12680 : Info : RTTTL : pin: 15 melody: 15:d=10,o=6,b=200,c,g,e
13043 : Info : ACT : LCDCMD,off
13047 : Info : ACT : timerSet,1,5
13050 : Info : ACT : gpio,10,0
13052 : Info : GPIO : port#10: set to 0
13054 : Info : ACT : gpio,10,1
13056 : Info : GPIO : port#10: set to 1
13058 : Info : ACT : gpio,10,0
13059 : Info : GPIO : port#10: set to 0
13063 : Info : WIFI : Disconnected! Reason: '(202) Auth fail' Connected for 951 ms
13265 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 13 s
13366 : Info : Reset WiFi.
13470 : Info : WIFI : Set WiFi to STA
15770 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-42dBm) WPA2/PSK attempt #2
15877 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 5 ms
15978 : Info : Reset WiFi.
18175 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-42dBm) WPA2/PSK attempt #3
19130 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 5 ms
19130 : Info : WIFI : Set WiFi to OFF
19447 : Info : WIFI : Set WiFi to STA
21845 : Info : WIFI : Set WiFi to AP+STA
21951 : Error : WIFI : Error while starting AP Mode with SSID: ESP11 IP: 192.168.4.1
21963 : Info : EVENT: WiFi#APmodeDisabled
21997 : Info : ADC : Analog value: 1 = 1.00
22076 : Info : Dummy: value 1: 0
22077 : Info : Dummy: value 2: 1
22077 : Info : Dummy: value 3: 1
22078 : Info : Dummy: value 4: 14
22192 : Info : EVENT: Time#Initialized
22316 : Info : WD : Uptime 0 ConnectFailures 0 FreeMem 12272 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
22486 : Info : EVENT: WiFi#Disconnected
22552 : Info : EVENT: Rules#Timer=1,1
22560 : Info : ACT : TaskValueSet 10,3,1
22564 : Info : ACT : rtttl,15:d=100,o=7,b=200,g
22566 : Info : RTTTL : pin: 15 melody: 15:d=100,o=7,b=200,g
22581 : Info : ACT : gpio,10,1
22583 : Info : GPIO : port#10: set to 1
22790 : Info : EVENT: TaskInit#IR=1,1
22820 : Info : EVENT: TaskInit#ADC=5,1
22838 : Info : EVENT: TaskInit#Kitchen=6,1
22857 : Info : EVENT: TaskInit#Motor=7,1
22875 : Info : EVENT: TaskInit#Coolbox=8,1
22893 : Info : EVENT: TaskInit#SW1=9,1
22923 : Info : EVENT: TaskInit#Status=10,1
22991 : Info : EVENT: TaskInit#LCD=11,1
23009 : Info : EVENT: TaskInit#PIR=12,1
23038 : Info : EVENT: WiFi#Disconnected
23056 : Info : EVENT: WiFi#Disconnected
23074 : Info : EVENT: WiFi#Disconnected
23092 : Info : EVENT: ADC#Voltage=1.00
23122 : Info : EVENT: SW1#State=1
23128 : Info : ACT : TaskValueSet 10,2,1
23144 : Info : EVENT: Status#1=0
23163 : Info : EVENT: Status#2=1
23181 : Info : EVENT: Status#3=1
23200 : Info : EVENT: Status#4=14
23230 : Info : EVENT: PIR#State=0
23270 : Info : ACT : TaskValueSet 10,1,0
28186 : Info : WIFI : Connecting MyTestAP 17:C4:C7:FE:11:84 Ch:12 (-42dBm) WPA2/PSK attempt #4
29920 : Info : WIFI : DHCP IP: 192.168.36.102 (ESP11) GW: 192.168.36.1 SN: 255.255.255.0 duration: 540 ms
29921 : Info : IP : Fixed IP octet:192.168.36.141
29926 : Info : firstLoopConnectionsEstablished
29971 : Info : WIFI : Connected! AP: MyTestAP (17:C4:C7:FE:11:84) Ch: 12 Duration: 1175 ms
29972 : Info : WIFI : Starting mDNS...
29974 : Info : WIFI : mDNS started, with name: ESP11.local
30019 : Info : NTP : NTP replied: delay 20 mSec Accuracy increased by 0.626 seconds
30021 : Info : Time set to 1667951647.626 Time adjusted by 6012.81 msec. Wander: 0.0 ppm Source: NTP
30025 : Info : Local time: 2022-11-09 00:54:07
30028 : Info : EVENT: WiFi#Connected

@ghtester
Copy link
Author

ghtester commented Nov 9, 2022

FYI the second mentioned ESP node which I upgraded from 20220829 to 20221108 without issue (a different configuration & plugins used but connected to the same AP and with the Do Not Start AP: option checked) :

ESP Board

ESP Chip ID: | 5859987 (0x596A93)
ESP Chip Frequency: | 80 MHz
ESP Chip Model: | ESP8266
ESP Chip Cores: | 1
ESP Board Name: | Espressif Generic ESP8266 ESPEasy 4M Flash 1M FS

Firmware

Build:⋄ | 20221108 - Mega
System Libraries:⋄ | ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(c0eb301), LWIP: 2.1.2 PUYA support
Git Build:⋄ | My Build: Nov 8 2022 15:03:09
Plugin Count:⋄ | 40 [IR][No Debug Log]
Build Origin: | Vagrant
Build Time:⋄ | Nov 8 2022 15:02:21
Binary Filename:⋄ | ESP_Easy_mega_20221108_custom_IR_ESP8266_4M1M
Build Platform:⋄ | Linux-4.15.0-51-generic-x86_64-with-glibc2.27
Git HEAD:⋄ | mega_ba182c5

@TD-er
Copy link
Member

TD-er commented Nov 9, 2022

13063 : Info : WIFI : Disconnected! Reason: '(202) Auth fail' Connected for 951 ms
13265 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 13 s

This part is a bit strange...
It does receive the disconnect event twice.
But it may give me a hint where to look as I did 'fix' this last week for ESP32.
On ESP32 you register callback functions to capture the events.
But before re-registering them, you need to unregister them.
The reason you need to re-register them (which I found out last week) is that the SDK only registers those events which are applicable for the currently active interfaces. Thus causing issues when switching between STA/AP/Ethernet.
When not de-registering the callback and/or using the same callback function for all interface related events, you get them multiple times.
So maybe this also applies to ESP8266...

@ghtester
Copy link
Author

ghtester commented Nov 9, 2022

So the question is what's the main reason of this different behaviour on different ESP8266 nodes.
Nevertheless, the topic name now looks a bit misleading and perhaps I should change it...
BTW. in this latest firmware release there's no ESP Easy icon in web browser's tab like on earlier version...
image
image

@TD-er
Copy link
Member

TD-er commented Nov 9, 2022

BTW. in this latest firmware release there's no ESP Easy icon in web browser's tab like on earlier version...

Yep, I noticed too.
A bit strange, as it is being served when you query it.

Edit:
Ah no, the image seems to be corrupt in some way
image

@Jason2866
Copy link
Contributor

Can you try the invite link from above? I should see you than.

@TD-er TD-er added Category: Stabiliy Things that work, but not as long as desired Category: Wifi Related to the network connectivity labels Nov 14, 2022
@cybermcm
Copy link

tried new mega-20221224 build, worked for some time but now 2 of my devices are "down", will revert to https://github.com/letscontrolit/ESPEasy/releases/tag/mega-20220809

@tonhuisman
Copy link
Contributor

worked for some time but now 2 of my devices are "down"

Can you elaborate on that, like with logs captured from USB serial? (Assuming you have the serial output enabled)

@cybermcm
Copy link

@tonhuisman: I think it will be the same problem as stated above, but I'll double-check tomorrow (both devices are not so easy reachable)

@richik
Copy link

richik commented Dec 26, 2022

I observe similar issues with latest builds - 20221105 and 20221224. Signal around -62 dBm, but with latest build ping avg. 35 ms, sometimes 5 ms, usually 50-150 ms.
Reverted back to 20220809 - ping avg. 5 ms, usually 3-15 ms - can be considered as normal.

@TD-er
Copy link
Member

TD-er commented Dec 26, 2022

Did you also power cycle the ESP since you flashed it?

@richik
Copy link

richik commented Dec 27, 2022

Tried once again - power cycle done (approx. 1 minute power unplugged) - still the same.

@cybermcm
Copy link

@tonhuisman: I'm still testing. I reinstalled 20221224 and my "faulty" device is still up and running for 6 hours now. Log shows nothing unusual up until now

@cybermcm
Copy link

@tonhuisman: 2 of my 3 "faulty" devices are offline. Unfortunately, I didn't catch the output when they went out. Never happened before 20221105. One of the devices is still on 20221224 and running. Still a mystery, maybe some sort of buffer issue. I'll again try to capture a USB output during failure

@cybermcm
Copy link

This time the device failed after a few minutes, output attached

7640 : Info   : WiFi : Scan finished, found: 4
7643 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-67dBm) WPA2/PSK
7644 : Info   : WiFi : Added known candidate, try to connect
12008 : Info   : WiFi : WifiDisconnect()
12109 : Info   : WIFI : Disconnected! Reason: '(1) Unspecified'
12110 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
12211 : Info   : Reset WiFi.
12212 : Info   : WiFi : Start network scan all channels
14395 : Info   : WiFi : Scan finished, found: 3
14397 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-69dBm) WPA2/PSK
14398 : Info   : WiFi : Added known candidate, try to connect
18864 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
18865 : Info   : WIFI : Set WiFi to OFF

Build changed!
18980 : Info   : Skip saving settings, not changed
18980 : Info   : Skip saving SecuritySettings, not changed
18992 : Info   : INIT : Free RAM:25608
19079 : Info   : INFO : Plugins: 47 [Normal] (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support)
19184 : Info   : WIFI : Set WiFi to STA
19290 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-69dBm) WPA2/PSK
19291 : Info   : WIFI : Connecting cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-69dBm) WPA2/PSK attempt #0
19292 : Info   : WIFI : Set to 802.11g
19369 : Info   : Webserver: start
20343 : Info   : BMx280 : Detected BME280
20751 : Info   : WD   : Uptime 0 ConnectFailures 0 FreeMem 19736 WiFiStatus WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
21185 : Info   : BME280: dew point 5.55C
21234 : Info   : BME280 : Address: 0x76
21237 : Info   : BME280 : Temperature: 21.57
21238 : Info   : BME280 : Humidity: 35.35
21240 : Info   : BME280 : Barometric Pressure: 984.41
23363 : Info   : WIFI : DHCP IP: 192.168.10.100 (ESP-E-Cat) GW: 192.168.10.254 SN: 255.255.255.0   duration: 2990 ms
23365 : Info   : WIFI : Arduino wifi status: WL_CONNECTED 3 ESPeasy internal wifi status: IP 
23368 : Info   : firstLoopConnectionsEstablished
23371 : Info   : WIFI : Connected! AP: cybermcmxxx.xxx (32:23:03:DE:13:70) Ch: 1 Duration: 1059 ms
23407 : Error  : NTP  : NTP host (192.168.1.254) unsynchronized
23429 : Error  : MQTT : Intentional reconnect
23445 : Info   : MQTT : Connected to broker with client ID: ESP_E_Cat_0
23450 : Info   : Subscribed to: ESP_E_Cat/#
44434 : Info   : static_file: esp.css
44723 : Info   : static_file: favicon.ico
45284 : Info   : static_file: favicon.ico
50715 : Info   : WD   : Uptime 1 ConnectFailures 0 FreeMem 17944 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
80715 : Info   : WD   : Uptime 1 ConnectFailures 0 FreeMem 17944 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
110715 : Info   : WD   : Uptime 2 ConnectFailures 0 FreeMem 17944 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
140716 : Info   : WD   : Uptime 2 ConnectFailures 0 FreeMem 17944 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
143171 : Info   : NTP  : NTP replied: delay 11 mSec Accuracy increased by 0.810 seconds
143173 : Info   : Time set to 1672338975.810
143175 : Info   : Current Time Zone:  DST time start: 2022-03-27 02:00:00 offset: 120 min STD time start: 2022-10-30 03:00:00 offset: 60 min
143178 : Info   : Local time: 2022-12-29 19:36:15
170716 : Info   : WD   : Uptime 3 ConnectFailures 0 FreeMem 17944 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
200715 : Info   : WD   : Uptime 3 ConnectFailures 0 FreeMem 17944 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
230715 : Info   : WD   : Uptime 4 ConnectFailures 0 FreeMem 17944 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
260715 : Info   : WD   : Uptime 4 ConnectFailures 0 FreeMem 17944 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
290715 : Info   : WD   : Uptime 5 ConnectFailures 0 FreeMem 17944 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
320716 : Info   : WD   : Uptime 5 ConnectFailures 0 FreeMem 18376 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
350715 : Info   : WD   : Uptime 6 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
380715 : Info   : WD   : Uptime 6 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
410715 : Info   : WD   : Uptime 7 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
440715 : Info   : WD   : Uptime 7 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
470715 : Info   : WD   : Uptime 8 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
500715 : Info   : WD   : Uptime 8 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
530715 : Info   : WD   : Uptime 9 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
560715 : Info   : WD   : Uptime 9 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
590716 : Info   : WD   : Uptime 10 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
620715 : Info   : WD   : Uptime 10 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
624161 : Info   : BME280: dew point 5.38C
624174 : Info   : BME280 : Address: 0x76
624176 : Info   : BME280 : Temperature: 22.47
624178 : Info   : BME280 : Humidity: 33.04
624180 : Info   : BME280 : Barometric Pressure: 984.34
650715 : Info   : WD   : Uptime 11 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
680715 : Info   : WD   : Uptime 11 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
710715 : Info   : WD   : Uptime 12 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
740715 : Info   : WD   : Uptime 12 ConnectFailures 0 FreeMem 18712 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
769350 : Info   : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 12 m 28 s
769351 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: Conn. IP Init
769452 : Info   : WiFi : WifiDisconnect()
769552 : Info   : WIFI : Disconnected! Reason: '(1) Unspecified'
769653 : Info   : Reset WiFi.
769655 : Info   : WiFi : Start network scan all channels
771839 : Info   : WiFi : Scan finished, found: 3
771841 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-68dBm) WPA2/PSK
771842 : Info   : WiFi : Added known candidate, try to connect
776207 : Info   : WiFi : WifiDisconnect()
776308 : Info   : WIFI : Disconnected! Reason: '(1) Unspecified'
776309 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
776409 : Info   : Reset WiFi.
776411 : Info   : WiFi : Start network scan all channels
778594 : Info   : WiFi : Scan finished, found: 3
778596 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-75dBm) WPA2/PSK
778597 : Info   : WiFi : Added known candidate, try to connect
783063 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
783064 : Info   : WIFI : Set WiFi to OFF
783381 : Info   : WIFI : Set WiFi to STA
783552 : Info   : WIFI : Set to 802.11n
783622 : Info   : WiFi : Start network scan all channels
785806 : Info   : WiFi : Scan finished, found: 2
785809 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-65dBm) WPA2/PSK
785810 : Info   : WiFi : Added known candidate, try to connect
790174 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
790220 : Error  : MQTT : Connection lost, state: Connection lost
790258 : Info   : WD   : Uptime 13 ConnectFailures 0 FreeMem 19536 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
800718 : Info   : WD   : Uptime 13 ConnectFailures 0 FreeMem 19536 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
830717 : Info   : WD   : Uptime 14 ConnectFailures 0 FreeMem 19536 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
860716 : Info   : WD   : Uptime 14 ConnectFailures 0 FreeMem 19536 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
870178 : Info   : WiFi : Start network scan all channels
872362 : Info   : WiFi : Scan finished, found: 3
872364 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-67dBm) WPA2/PSK
872365 : Info   : WiFi : Added known candidate, try to connect
876730 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
890729 : Info   : WD   : Uptime 15 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
920732 : Info   : WD   : Uptime 15 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
950732 : Info   : WD   : Uptime 16 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
956741 : Info   : WiFi : Start network scan all channels
958924 : Info   : WiFi : Scan finished, found: 3
958927 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-67dBm) WPA2/PSK
958928 : Info   : WiFi : Added known candidate, try to connect
963294 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
980725 : Info   : WD   : Uptime 16 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1010721 : Info   : WD   : Uptime 17 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1040717 : Info   : WD   : Uptime 17 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1043302 : Info   : WiFi : Start network scan all channels
1045486 : Info   : WiFi : Scan finished, found: 4
1045489 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-67dBm) WPA2/PSK
1045490 : Info   : WiFi : Added known candidate, try to connect
1049854 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1070728 : Info   : WD   : Uptime 18 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1100733 : Info   : WD   : Uptime 18 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1129862 : Info   : WiFi : Start network scan all channels
1132046 : Info   : WiFi : Scan finished, found: 4
1132048 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-66dBm) WPA2/PSK
1132049 : Info   : WiFi : Added known candidate, try to connect
1136415 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1136497 : Info   : WD   : Uptime 19 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1160724 : Info   : WD   : Uptime 19 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1190726 : Info   : WD   : Uptime 20 ConnectFailures 0 FreeMem 19392 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1216419 : Info   : WiFi : Start network scan all channels
1218602 : Info   : WiFi : Scan finished, found: 3
1218605 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-75dBm) WPA2/PSK
1218606 : Info   : WiFi : Added known candidate, try to connect
1222971 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1223053 : Info   : WD   : Uptime 20 ConnectFailures 0 FreeMem 19472 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1225064 : Info   : BME280: dew point 5.27C
1225091 : Info   : BME280 : Address: 0x76
1225093 : Info   : BME280 : Temperature: 22.71
1225095 : Info   : BME280 : Humidity: 32.31
1225097 : Info   : BME280 : Barometric Pressure: 984.29
1250744 : Info   : WD   : Uptime 21 ConnectFailures 0 FreeMem 19208 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1280746 : Info   : WD   : Uptime 21 ConnectFailures 0 FreeMem 19208 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1302983 : Info   : WiFi : Start network scan all channels
1305166 : Info   : WiFi : Scan finished, found: 4
1305169 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-73dBm) WPA2/PSK
1305170 : Info   : WiFi : Added known candidate, try to connect
1309535 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1310757 : Info   : WD   : Uptime 22 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1340762 : Info   : WD   : Uptime 22 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1370771 : Info   : WD   : Uptime 23 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1389540 : Info   : WiFi : Start network scan all channels
1391724 : Info   : WiFi : Scan finished, found: 4
1391727 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-65dBm) WPA2/PSK
1391728 : Info   : WiFi : Added known candidate, try to connect
1396093 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1400751 : Info   : WD   : Uptime 23 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1430744 : Info   : WD   : Uptime 24 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1460743 : Info   : WD   : Uptime 24 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1476114 : Info   : WiFi : Start network scan all channels
1478297 : Info   : WiFi : Scan finished, found: 4
1478300 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-67dBm) WPA2/PSK
1478301 : Info   : WiFi : Added known candidate, try to connect
1482665 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1490752 : Info   : WD   : Uptime 25 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1520751 : Info   : WD   : Uptime 25 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1550755 : Info   : WD   : Uptime 26 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1562671 : Info   : WiFi : Start network scan all channels
1564855 : Info   : WiFi : Scan finished, found: 4
1564857 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-64dBm) WPA2/PSK
1564858 : Info   : WiFi : Added known candidate, try to connect
1569223 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1580759 : Info   : WD   : Uptime 26 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1610776 : Info   : WD   : Uptime 27 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1640751 : Info   : WD   : Uptime 27 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1649225 : Info   : WiFi : Start network scan all channels
1651409 : Info   : WiFi : Scan finished, found: 4
1651412 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-64dBm) WPA2/PSK
1651413 : Info   : WiFi : Added known candidate, try to connect
1655777 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1670751 : Info   : WD   : Uptime 28 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1700740 : Info   : WD   : Uptime 28 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1730743 : Info   : WD   : Uptime 29 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1735797 : Info   : WiFi : Start network scan all channels
1737981 : Info   : WiFi : Scan finished, found: 4
1737984 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-66dBm) WPA2/PSK
1737984 : Info   : WiFi : Added known candidate, try to connect
1742350 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1760752 : Info   : WD   : Uptime 29 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1790770 : Info   : WD   : Uptime 30 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1820763 : Info   : WD   : Uptime 30 ConnectFailures 0 FreeMem 19128 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1822355 : Info   : WiFi : Start network scan all channels
1824540 : Info   : WiFi : Scan finished, found: 4
1824543 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-65dBm) WPA2/PSK
1824543 : Info   : WiFi : Added known candidate, try to connect
1828909 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1831037 : Info   : BME280: dew point 5.31C
1831086 : Info   : BME280 : Address: 0x76
1831088 : Info   : BME280 : Temperature: 22.91
1831090 : Info   : BME280 : Humidity: 32.02
1831091 : Info   : BME280 : Barometric Pressure: 984.28
1850748 : Info   : WD   : Uptime 31 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1880756 : Info   : WD   : Uptime 31 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1908911 : Info   : WiFi : Start network scan all channels
1911095 : Info   : WiFi : Scan finished, found: 2
1911097 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-65dBm) WPA2/PSK
1911098 : Info   : WiFi : Added known candidate, try to connect
1915463 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1915546 : Info   : WD   : Uptime 32 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1940750 : Info   : WD   : Uptime 32 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1970741 : Info   : WD   : Uptime 33 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
1995472 : Info   : WiFi : Start network scan all channels
1997655 : Info   : WiFi : Scan finished, found: 4
1997658 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-66dBm) WPA2/PSK
1997659 : Info   : WiFi : Added known candidate, try to connect
2002024 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2002106 : Info   : WD   : Uptime 33 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2030754 : Info   : WD   : Uptime 34 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2060751 : Info   : WD   : Uptime 34 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2082038 : Info   : WiFi : Start network scan all channels
2084221 : Info   : WiFi : Scan finished, found: 4
2084224 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-66dBm) WPA2/PSK
2084225 : Info   : WiFi : Added known candidate, try to connect
2088591 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2090760 : Info   : WD   : Uptime 35 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2120747 : Info   : WD   : Uptime 35 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2150746 : Info   : WD   : Uptime 36 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2168594 : Info   : WiFi : Start network scan all channels
2170777 : Info   : WiFi : Scan finished, found: 4
2170780 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-66dBm) WPA2/PSK
2170781 : Info   : WiFi : Added known candidate, try to connect
2175146 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2180767 : Info   : WD   : Uptime 36 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2210753 : Info   : WD   : Uptime 37 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2240757 : Info   : WD   : Uptime 37 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2255157 : Info   : WiFi : Start network scan all channels
2257340 : Info   : WiFi : Scan finished, found: 4
2257343 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-76dBm) WPA2/PSK
2257344 : Info   : WiFi : Added known candidate, try to connect
2261709 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2270758 : Info   : WD   : Uptime 38 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2300741 : Info   : WD   : Uptime 38 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2330757 : Info   : WD   : Uptime 39 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2341729 : Info   : WiFi : Start network scan all channels
2343912 : Info   : WiFi : Scan finished, found: 4
2343915 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-75dBm) WPA2/PSK
2343916 : Info   : WiFi : Added known candidate, try to connect
2348281 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2360751 : Info   : WD   : Uptime 39 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2390755 : Info   : WD   : Uptime 40 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2420746 : Info   : WD   : Uptime 40 ConnectFailures 0 FreeMem 18864 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2428296 : Info   : WiFi : Start network scan all channels
2430480 : Info   : WiFi : Scan finished, found: 5
2430483 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-65dBm) WPA2/PSK
2430484 : Info   : WiFi : Added known candidate, try to connect
2434849 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2436957 : Info   : BME280: dew point 5.28C
2437005 : Info   : BME280 : Address: 0x76
2437008 : Info   : BME280 : Temperature: 22.66
2437009 : Info   : BME280 : Humidity: 32.45
2437011 : Info   : BME280 : Barometric Pressure: 984.23
2450764 : Info   : WD   : Uptime 41 ConnectFailures 0 FreeMem 18432 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2480762 : Info   : WD   : Uptime 41 ConnectFailures 0 FreeMem 18432 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2510768 : Info   : WD   : Uptime 42 ConnectFailures 0 FreeMem 18432 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2514867 : Info   : WiFi : Start network scan all channels
2517051 : Info   : WiFi : Scan finished, found: 4
2517054 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-78dBm) WPA2/PSK
2517055 : Info   : WiFi : Added known candidate, try to connect
2521421 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2540748 : Info   : WD   : Uptime 42 ConnectFailures 0 FreeMem 18432 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2570748 : Info   : WD   : Uptime 43 ConnectFailures 0 FreeMem 18432 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2600760 : Info   : WD   : Uptime 43 ConnectFailures 0 FreeMem 18432 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2601429 : Info   : WiFi : Start network scan all channels
2603612 : Info   : WiFi : Scan finished, found: 3
2603615 : Info   : WiFi : Best AP candidate: cybermcmxxx.xxx 32:23:03:DE:13:70 Ch:1 (-72dBm) WPA2/PSK
2603616 : Info   : WiFi : Added known candidate, try to connect
2607980 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2630744 : Info   : WD   : Uptime 44 ConnectFailures 0 FreeMem 18672 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED

@TD-er
Copy link
Member

TD-er commented Dec 29, 2022

Is this with build 20221224??????
It seems it is never actually connecting.
Have you checked to use 802.11g?
And "reset WiFi on disconnect"?
And "Send with max TX power" ?

This is very strange as I really really hoped it was finally fixed in the most recent build, but it seems like it is just as bad as with the 20221105 build.

I am really starting to HATE this WiFi garbage from Espressif!

@Jason2866
Copy link
Contributor

We all would have been so happy if you had found a solution out of this mess.
Seems the SDK with the 11n problem is the less worst one...

@TD-er
Copy link
Member

TD-er commented Dec 29, 2022

@Jason2866
Only the 1M builds use the March '19 binary blob.
The 4M builds use the same SDK as you're using for Tasmota.

I really can't believe why this node used by @cybermcm keeps on getting stuck on the WL_IDLE_STATUS.
It shouldn't anymore as I do try to kill the WiFi radio when this happens and start all over.

@cybermcm
Copy link

cybermcm commented Dec 29, 2022

Is this with build 20221224??????
yes

It seems it is never actually connecting.
It is connecting, this time only for a few minutes (or even less). Another "faulty" device is working since 2 days?!?

Have you checked to use 802.11g?
Is this "Force Wifi b/g"? this is disabled

And "reset WiFi on disconnect"?
"Restart WiFi Lost Conn" -> enabled

And "Send with max TX power" ?
enabled

This is very strange as I really really hoped it was finally fixed in the most recent build, but it seems like it is just as bad as with the 20221105 build.
It appears so, build 20220809 running without any glitches

@TD-er
Copy link
Member

TD-er commented Dec 29, 2022

Is this "Force Wifi b/g"?

this is disabled

Can you enable this checkbox please?

@cybermcm
Copy link

even without this checkbox my device is running since 2 hours ;-)
I'll now enable it, power cycle and will report back

@cybermcm
Copy link

@TD-er: Force Wifi b/g didn't help but I noticed that the "faulty" devices had "Extra WiFi scan loops" set to 2 (maybe during troubleshooting with the last ESPEasy version).
I set all 3 faulty devices to 0 and now they are running for 2 days now.
I can confirm the finding from @richik: These 3 devices have a bad ping time sometimes and even miss a ping way more often than other devices.
As 2022 is coming to an end, thanks for your hard work and hopefully many more new versions in 2023!

@TD-er
Copy link
Member

TD-er commented Dec 31, 2022

Hmm that's an interesting finding.
I will check to see if I am missing the wifi scan done event (or receiving it multiple times)
There is something really funky with the event handling in the SDK.

Thanks for reporting back!

@cybermcm
Copy link

cybermcm commented Jan 8, 2023

Just a quick update, the "faulty" devices are still running with 20221224 and the "Extra WiFi scan loops" set to zero!

@tonhuisman
Copy link
Contributor

@ghtester @cybermcm It's been a while... This issue is possibly/probably fixed by #4875, please run a test with this Actions run build (once it's completed).

@cybermcm
Copy link

thx @tonhuisman! I'll try this new build and set "Extra WiFi scan loops" to 2 again to check if it is stable

@tonhuisman
Copy link
Contributor

and set "Extra WiFi scan loops" to 2 again

The current advice is to leave that setting at 0, since a huge revamp of the WiFi code in the July/August time-frame fixed a lot of issues in that area.

@cybermcm
Copy link

cybermcm commented Nov 12, 2023

@tonhuisman: device not pingable after some time with Extra WiFi scan loops set to 2; I can't reproduce the initial error otherwise

@TD-er
Copy link
Member

TD-er commented Nov 12, 2023

I'm working on this too, as there seems to be a massive memory leak when you initially setup the ESP8266, which is causing all kinds of issues.

@ghtester
Copy link
Author

From my perspective the original issue was already fixed, most likely even before #4785 so I am closing it. Thanks for your great work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Stabiliy Things that work, but not as long as desired Category: Wifi Related to the network connectivity
Projects
None yet
Development

No branches or pull requests

6 participants