Boot difficulties with mega 20220809 ESP8266 normal 4M1M

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Patou
Normal user
Posts: 106
Joined: 21 May 2018, 10:33

Boot difficulties with mega 20220809 ESP8266 normal 4M1M

#1 Post by Patou » 26 Oct 2022, 13:54

Hello,
I am using Wemos mini pro but same problem with Wemos D1 mini.
New pcb or pcb with first a blank flash or upgrade over ota : same problem.
Once every 5 ... 6 boots the boot hangs with the IP adresse definition.
See bellow log from normal boot :

Code: Select all

INIT : Booting version: mega-20220809_57b0c0c (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support)
190 : Info   : INIT : Free RAM:28192
192 : Info   : INIT : Manual Reboot #21 Last Action before Reboot: Const Interval: TIMER_20MSEC Last systime: 1666781802 - Restart Reason: External System
192 : Info   : FS   : Mounting...
218 : Info   : FS   : Mount successful, used 75802 bytes of 957314
238 : Info   : CRC  : SecuritySettings CRC   ...OK
241 : Info   : INIT : I2C
242 : Info   : INIT : SPI not enabled
254 : Info   : Time set to 1666781802.000
256 : 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
259 : Info   : Local time: 2022-10-26 12:56:42
272 : Info   : WiFi : Start network scan all channels
284 : Info   : INIT : Free RAM:25704
380 : Info   : INFO : Plugins: 47 [Normal] (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support)
381 : Info   : EVENT: System#Wake
497 : Info   : Webserver: start
509 : Info   : EVENT: System#Boot
523 : Info   : EVENT: WiFi#APmodeDisabled
535 : Info   : EVENT: Time#Initialized
1314 : Info   : EVENT: Clock#Time=Wed,12:56
1855 : Info   : WD   : Uptime 0 ConnectFailures 0 FreeMem 19304 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2523 : Info   : WiFi : Scan finished, found: 6
2526 : Info   : WiFi : Best AP candidate: WiFi-ES F4:A4:D6:6B:D7:D0 Ch:9 (-66dBm) WPA/WPA2/PSK
2528 : Info   : WIFI : Connecting WiFi-ES F4:A4:D6:6B:D7:D0 Ch:9 (-66dBm) WPA/WPA2/PSK attempt #0
2529 : Info   : IP   : Static IP : 192.168.0.205 GW: 192.168.0.1 SN: 255.255.255.0 DNS: 8.8.8.8
2535 : Info   : WIFI : Arduino wifi status: WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
3600 : Info   : WIFI : Disconnected! Reason: '(4) Assoc expire' Connected for 954 ms
3612 : Error  : WiFi : Scan not allowed, unprocessed WiFi events:  disconn
3713 : Info   : WIFI : Set WiFi to OFF
3929 : Info   : WIFI : Arduino wifi status: WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
3931 : Info   : WiFi : Best AP candidate: WiFi-ES F4:A4:D6:6B:D7:D0 Ch:9 (-66dBm) WPA/WPA2/PSK
3932 : Info   : WIFI : Connecting WiFi-ES F4:A4:D6:6B:D7:D0 Ch:9 (-66dBm) WPA/WPA2/PSK attempt #1
4036 : Info   : WIFI : Set WiFi to STA
4141 : Info   : IP   : Static IP : 192.168.0.205 GW: 192.168.0.1 SN: 255.255.255.0 DNS: 8.8.8.8
4158 : Info   : EVENT: WiFi#Disconnected
5134 : Info   : WIFI : Connected! AP: WiFi-ES (F4:A4:D6:6B:D7:D0) Ch: 9 Duration: 1186 ms
5136 : Info   : WIFI : Arduino wifi status: WL_CONNECTED 3 ESPeasy internal wifi status: Conn.
5137 : Info   : WIFI : Static IP: 192.168.0.205 (Volet5) GW: 192.168.0.1 SN: 255.255.255.0   duration: 16 ms
5152 : Info   : EVENT: WiFi#ChangedAccesspoint
5153 : Info   : EVENT: WiFi#ChangedWiFichannel
5154 : Info   : EVENT: WiFi#Connected
5229 : Info   : firstLoopConnectionsEstablished
5296 : Error  : MQTT : Intentional reconnect
5310 : Info   : MQTT : Connected to broker with client ID: Volet5
5314 : Info   : Subscribed to: Volet5/#
5323 : Info   : EVENT: MQTT#Connected
5423 : Info   : NTP  : NTP replied: delay 41 mSec Accuracy increased by 0.179 seconds
5425 : Info   : Time set to 1666781813.179 Time adjusted by 6009.38 msec. Wander: 0.000 msec/second Source: NTP
5428 : Info   : Local time: 2022-10-26 12:56:53
5432 : Info   : EVENT: Time#Set
12289 : Info   : EVENT: Clock#Time=Wed,12:57
And here log of wrong boot :

Code: Select all

INIT : Booting version: mega-20220809_57b0c0c (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support)
189 : Info   : INIT : Free RAM:28192
191 : Info   : INIT : Manual Reboot #5 Last Action before Reboot: Background Task Last systime: 1666781050 - Restart Reason: External System
191 : Info   : FS   : Mounting...
216 : Info   : FS   : Mount successful, used 75802 bytes of 957314
274 : Info   : FS   : Success garbage collection
329 : Info   : FS   : Success garbage collection
350 : Info   : CRC  : SecuritySettings CRC   ...OK
352 : Info   : INIT : I2C
353 : Info   : INIT : SPI not enabled
365 : Info   : Time set to 1666781050.001
367 : 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
370 : Info   : Local time: 2022-10-26 12:44:10
382 : Info   : WiFi : Start network scan all channels
391 : Info   : INIT : Free RAM:25616
466 : Info   : INFO : Plugins: 47 [Normal] (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support)
467 : Info   : EVENT: System#Wake
582 : Info   : Webserver: start
596 : Info   : EVENT: System#Boot
609 : Info   : EVENT: WiFi#APmodeDisabled
621 : Info   : EVENT: Time#Initialized
1398 : Info   : EVENT: Clock#Time=Wed,12:44
1937 : Info   : WD   : Uptime 0 ConnectFailures 0 FreeMem 19664 WiFiStatus WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2613 : Info   : WiFi : Scan finished, found: 4
2616 : Info   : IP   : Static IP : 192.168.0.205 GW: 192.168.0.1 SN: 255.255.255.0 DNS: 8.8.8.8
2618 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: DISCONNECTED
2620 : Info   : IP   : Static IP : 192.168.0.205 GW: 192.168.0.1 SN: 255.255.255.0 DNS: 8.8.8.8
2634 : Info   : IP   : Static IP : 192.168.0.205 GW: 192.168.0.1 SN: 255.255.255.0 DNS: 8.8.8.8
2648 : Info   : IP   : Static IP : 192.168.0.205 GW: 192.168.0.1 SN: 255.255.255.0 DNS: 8.8.8.8
2661 : Info   : IP   : Static IP : 192.168.0.205 GW: 192.168.0.1 SN: 255.255.255.0 DNS: 8.8.8.8
2674 : Info   : IP   : Static IP : 192.168.0.205 GW: 192.168.0.1 SN: 255.255.255.0 DNS: 8.8.8.8
2688 : Info   : IP   : Static IP : 192.168.0.205 GW: 192.168.0.1 SN: 255.255.255.0 DNS: 8.8.8.8
I cannot understand what is the problem could you help ?
I change nothing to the wifi settings they are the default ones
Image
Patou
Attachments
wifi-special-settings.png
wifi-special-settings.png (25.43 KiB) Viewed 2352 times

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Boot difficulties with mega 20220809 ESP8266 normal 4M1M

#2 Post by ThomasB » 26 Oct 2022, 20:52

Sounds like you may have encountered a newly introduced bug. Maybe?

However, your RSSI is weak. For testing purposes please try again with the device much closer to the WiFi Router.

Also, your MAX WIFI TX POWER setting is entered as 17,50. I suggest changing the comma to a period (17.50). No idea if it matters, but I always use a period since I'm a Yankee.

Lastly, try with the SEND WITH MAX TX POWER setting enabled.

- Thomas

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Boot difficulties with mega 20220809 ESP8266 normal 4M1M

#3 Post by TD-er » 26 Oct 2022, 21:28

And can you test this test build? https://github.com/letscontrolit/ESPEas ... 3328145721
I really hope that build will fix the issue you're seeing.

Patou
Normal user
Posts: 106
Joined: 21 May 2018, 10:33

Re: Boot difficulties with mega 20220809 ESP8266 normal 4M1M

#4 Post by Patou » 27 Oct 2022, 13:17

Hello,
Good news, this build solve the problem. I tried 20 reboots and all where successfull.
Thanks for the quick reaction
Patou

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Boot difficulties with mega 20220809 ESP8266 normal 4M1M

#5 Post by TD-er » 27 Oct 2022, 14:47

Great!
Thanks for the feedback.

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests