Sonoff Basic is Rebooting on WiFi Connection

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kumaxx
Normal user
Posts: 3
Joined: 22 Apr 2019, 18:44

Sonoff Basic is Rebooting on WiFi Connection

#1 Post by kumaxx » 31 Oct 2019, 20:38

Hi, All.

I have a problem with one module Sonoff-Basic.
Prior to that, he worked great for two years, but now, when connected to any WiFi network, it begins to reboot.
In access point mode, it works great.
I tried different versions of the MEGA firmware.
On third-party firmware it works fine.

Here is what issues in UART:
ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld
╙U65 :

INIT : Booting version: mega-20191028 (ESP82xx Core 2_5_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.1.2 PUYA support)
66 : INIT : Free RAM:33488
67 : INIT : Warm boot #2 Last Task: Background Task - Restart Reason: Hardware Watchdog
69 : FS : Mounting...
94 : FS : Mount successful, used 75802 bytes of 957314
478 : CRC : program checksum ...OK
515 : CRC : SecuritySettings CRC ...OK
622 : INIT : Free RAM:30368
623 : INIT : I2C
624 : INIT : SPI not enabled
719 : INFO : Plugins: 46 [Normal] (ESP82xx Core 2_5_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.1.2 PUYA support)
825 : WIFI : Set WiFi to STA
857 : WIFI : Connecting wifiku attempt #0
2508 : WD : Uptime 0 ConnectFailures 0 FreeMem 26312 WiFiStatus 6
4940 : WIFI : Connected! AP: wifiku (50:FF:20:00:63:D6) Ch: 2 Duration: 3869 ms
5158 : WIFI : DHCP IP: 192.168.1.10 (ESP-Easy-0) GW: 192.168.1.1 SN: 255.255.255.0 duration: 337 ms
5163 : Webserver: start
5166 : firstLoopConnectionsEstablished

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld
╙U64 :

INIT : Booting version: mega-20191028 (ESP82xx Core 2_5_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.1.2 PUYA support)
65 : INIT : Free RAM:33488
66 : INIT : Warm boot #3 Last Task: Background Task - Restart Reason: Hardware Watchdog
68 : FS : Mounting...
93 : FS : Mount successful, used 75802 bytes of 957314
477 : CRC : program checksum ...OK
514 : CRC : SecuritySettings CRC ...OK
621 : INIT : Free RAM:30368
622 : INIT : I2C
623 : INIT : SPI not enabled
718 : INFO : Plugins: 46 [Normal] (ESP82xx Core 2_5_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.1.2 PUYA support)
824 : WIFI : Set WiFi to STA
856 : WIFI : Connecting wifiku attempt #0
2507 : WD : Uptime 0 ConnectFailures 0 FreeMem 26312 WiFiStatus 6
4827 : WIFI : Connected! AP: wifiku (50:FF:20:00:63:D6) Ch: 2 Duration: 3869 ms
5043 : WIFI : DHCP IP: 192.168.1.10 (ESP-Easy-0) GW: 192.168.1.1 SN: 255.255.255.0 duration: 304 ms
5049 : Webserver: start
5051 : firstLoopConnectionsEstablished

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

Re: Sonoff Basic is Rebooting on WiFi Connection

#2 Post by TD-er » 31 Oct 2019, 23:03

Could you try this test build I made yesterday? https://www.dropbox.com/s/7cbfjvg5ytlqc ... 8.zip?dl=0
It does have a fix for handling WiFi connections, which may be related to the things you're seeing here.

Sidey79
Normal user
Posts: 5
Joined: 03 Mar 2019, 16:02

Re: Sonoff Basic is Rebooting on WiFi Connection

#3 Post by Sidey79 » 04 Nov 2019, 15:30

Hi,

I have a very similar problem.

Unit was working fine. Then i noticed, that it was crashing often and needs a power switch to recover.
I then flashed the unit via ftdi today and now getting this reboot loop:

Code: Select all

NIT : Booting version: mega-20191104 (ESP82xx Core 2_5_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.1.2 PUYA support)
69 : INIT : Free RAM:33520
70 : INIT : Warm boot #5 Last Task: Const Interval timer, id: 1 - Restart Reason: Hardware Watchdog
72 : FS   : Mounting...
78 : FS   : Mount successful, used 75802 bytes of 113201
472 : CRC  : program checksum       ...OK
484 : CRC  : SecuritySettings CRC   ...OK 
505 : INIT : Free RAM:30400
507 : INIT : I2C
507 : INIT : SPI not enabled
597 : INFO : Plugins: 46 [Normal] (ESP82xx Core 2_5_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.1.2 PUYA support)
702 : WIFI : Set WiFi to STA
736 : WIFI : Connecting Blausee attempt #0
2369 : WD   : Uptime 0 ConnectFailures 0 FreeMem 26304 WiFiStatus 6
4692 : WIFI : Connected! AP: Blausee (44:4E:6D:3B:10:8C) Ch: 11 Duration: 3782 ms
4694 : WIFI : DHCP IP: 10.2.11.59 (ESP-Easy-0) GW: 10.2.11.1 SN: 255.255.255.0   duration: 31 ms
4700 : Webserver: start
4702 : firstLoopConnectionsEstablished

Exception (0):
epc1=0x40267fde epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3fff2050 end: 3fff2290 offset: 01a0
3fff21f0:  00e0cd74 00000001 3fff4ab8 4022eef8  
3fff2200:  00000027 00000000 3ffe86f4 3fff22c8  
3fff2210:  3fff2bb4 40207da0 3fff2260 3fff22c8  
3fff2220:  3fffdad0 3ffefe88 3ffef190 40262935  
3fff2230:  3fffdad0 3fff10fc 000002ce 40225a4e  
3fff2240:  00000002 00000000 3fff2298 4026aeac  
3fff2250:  3fffdad0 00000000 3fff2298 40262997  
3fff2260:  00000000 00000000 ff000001 4026c7a1  
3fff2270:  3fffdad0 00000000 3fff2298 4026c830  
3fff2280:  feefeffe feefeffe 3ffe86f4 401018ed  
<<<stack<<<

 ets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld
�U68 : 

INIT : Booting version: mega-20191104 (ESP82xx Core 2_5_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.1.2 PUYA support)
69 : INIT : Free RAM:33520
70 : INIT : Warm boot #6 Last Task: Background Task - Restart Reason: Exception
73 : FS   : Mounting...
79 : FS   : Mount successful, used 75802 bytes of 113201
472 : CRC  : program checksum       ...OK
484 : CRC  : SecuritySettings CRC   ...OK 
505 : INIT : Free RAM:30416
507 : INIT : I2C
507 : INIT : SPI not enabled
598 : INFO : Plugins: 46 [Normal] (ESP82xx Core 2_5_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.1.2 PUYA support)
702 : WIFI : Set WiFi to STA
735 : WIFI : Connecting Blausee attempt #0
2369 : WD   : Uptime 0 ConnectFailures 0 FreeMem 26320 WiFiStatus 6
I also tried a firmware from february.

My unit has a 8285 chip. So i flashed ESP_Easy_mega-20191104_normal_ESP8285_1M

Sidey

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

Re: Sonoff Basic is Rebooting on WiFi Connection

#4 Post by TD-er » 04 Nov 2019, 19:10

Flashing the old version back does solve your issue?

I see the reboot reason is an exception, which is often a programming error.
Can you give a bit more information on what configuration it is using?

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests