ESPEasy with Sonoff S20 fails as Tasmota doesn't

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
dolittle
Normal user
Posts: 14
Joined: 14 Jan 2018, 19:39

ESPEasy with Sonoff S20 fails as Tasmota doesn't

#1 Post by dolittle » 05 Jan 2019, 17:44

Hi,
my two Sonoff S20 switches behaved very weird when I tried to get ESPEasy up and running on them. I'm pretty familiar with the process as I have already Sonoff Touch, Sonoff TH10 and a H801 flashed with ESPEasy.

I always blank (not erase) the devices before flashing new firmware to it. One S20 worked after a couple of tries, but the second one caught itself in a "connect to wireless" loop showing me the available wifi networks and after entering the credentials it somehow did some kind of connection as the dhcp negotiation happened. Nevertheless the S20 restarted and displayed the network list again. And yes I also tried the 8285 version without success.

Here is the log of the serial console for the initial boot.

Code: Select all

RESET: Succesful, rebooting. (you might need to press the reset button if you've justed flashed the firmware)

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

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld
ªU103 : 


INIT : Booting version: mega-20181218 (ESP82xx Core 2_4_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3 PUYA support)
104 : INIT : Warm boot #1 - Restart Reason: Software/System restart
106 : FS   : Mounting...
112 : FS   : Mount successful, used 75802 bytes of 113201
384 : CRC  : program checksum       ...OK
395 : CRC  : SecuritySettings CRC   ...OK 
397 : CRC  : binary has changed since last save of Settings
417 : INIT : Free RAM:28904
419 : INIT : I2C
419 : INIT : SPI not enabled
426 : INFO : Plugins: 3 [Normal] [Minimal 1M OTA] (ESP82xx Core 2_4_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3 PUYA support)
429 : WIFI : No valid wifi settings
431 : WIFI : Could not connect to AP!
432 : WIFI : Set WiFi to AP
1354 : WIFI : AP Mode ssid will be Minimal 1M OTA_0 with address 192.168.4.1
2688 : WD   : Uptime 0 ConnectFailures 0 FreeMem 26192

Soft WDT reset

ctx: cont 
sp: 3ffff670 end: 3fffffd0 offset: 01b0

>>>stack>>>
3ffff820:  feefeffe feefeffe feefeffe feefeffe  
3ffff830:  feefeffe feefeffe feefeffe feefeffe  
3ffff840:  feefeffe feefeffe feefeffe feefeffe  
3ffff850:  00000005 00000000 00000020 40100f12  
3ffff860:  3ffea4a5 40104317 3ffedf08 feefeffe  
3ffff870:  00000000 4000444e feefeffe feefeffe  
3ffff880:  00000000 4000420c 60000200 3ffffbc0  
3ffff890:  00000100 40004aa0 000000c0 000f7340  
3ffff8a0:  00000100 3ffffb80 3fffc718 000f7340  
3ffff8b0:  00000040 0068e101 40105790 00000040  
3ffff8c0:  3ffffb80 000f7340 3fff27e8 000f7340  
3ffff8d0:  3fffc718 3ffffb80 40243b20 3fffefb0  
3ffff8e0:  000f7340 4024183a 00000040 3ffffb80  
3ffff8f0:  00000015 02898ea7 3ffee900 000f7340  
3ffff900:  000f7380 000f7380 00000040 40244b79  
3ffff910:  00000015 02898ea7 40102242 00000100  
3ffff920:  7fffffff 3ffead2c 3ffead2c 00000001  
3ffff930:  00000001 00006208 00000000 3ffedb70  
3ffff940:  00007fff 02898ea7 00000000 4000050c  
3ffff950:  3fffc278 40101fdc 3fffc200 00000022  
3ffff960:  3ffead38 00000080 40102242 00000100  
3ffff970:  4000437d 00000030 00000018 ffffffff  
3ffff980:  60000200 00000008 ffffffff 80000000  
3ffff990:  20000000 3fff4ba0 80000000 200f2060  
3ffff9a0:  80000000 3fff4908 00000288 3fff4ba4  
3ffff9b0:  000000a0 000f2060 000f2100 00000030  
3ffff9c0:  006ae101 60000200 00020000 200e80e0  
3ffff9d0:  00000000 3fff4908 0000027e 3fff491c  
3ffff9e0:  00000100 3fff491c 000e8100 00000030  
3ffff9f0:  00007fff 02488105 40102242 00000100  
3ffffa00:  7fffffff 3ffead5c 3ffead5c 00000001  
3ffffa10:  00000001 00004108 3ffedb48 3fff4f48  
3ffffa20:  00000000 02488105 00002200 4000050c  
3ffffa30:  3fffc278 40101fdc 3fffc200 00000022  
3ffffa40:  3ffead50 3ffedee0 3fff4f48 3fff5054  
3ffffa50:  4000437d 00000030 00000019 ffffffff  
3ffffa60:  00000000 400042db ffffffff 80000000  
3ffffa70:  40004b31 3fff4a30 00000100 000f7000  
3ffffa80:  401057d8 400042db 0000020a 3fff49dc  
3ffffa90:  401065f9 3fff4a30 00000100 3fff4a30  
3ffffaa0:  00000000 400042db 000f7000 40241886  
3ffffab0:  40004b31 3fff491c 00000100 000dd200  
3ffffac0:  401057d8 400042db 000f6f00 40241886  
3ffffad0:  401065f9 3fff491c 00000100 3fff491c  
3ffffae0:  40241891 000f7000 000dd200 40241886  
3ffffaf0:  000dd300 000dd200 000dd200 40244a8c  
3ffffb00:  00000100 3fff47ec 00000000 3fff4a30  
3ffffb10:  3ffffb80 00000100 3fff35f0 4020712d  
3ffffb20:  000f7340 000dd200 3fff35f0 3fff4908  
3ffffb30:  3fff48f4 000dd200 3fff35f0 00000040  
3ffffb40:  3ffffb80 000f7340 3fff35f0 4020722c  
3ffffb50:  00000000 0000000f 3fff48f4 0000ffff  
3ffffb60:  3fff47ec 00000001 00000010 000f7340  
3ffffb70:  00000040 000dd240 000000c0 402049a1  
3ffffb80:  00000000 00000000 00000000 00000000  
3ffffb90:  00000000 00000000 00000000 00000000  
3ffffba0:  00000000 00000000 00000000 00000000  
3ffffbb0:  00000000 00000000 00000000 00000000  
3ffffbc0:  3fff35f0 00000000 000dd200 40244aa6  
3ffffbd0:  000000fc 00000000 0000000e 00000100  
3ffffbe0:  3fff35f0 00000000 000001c3 40205415  
3ffffbf0:  00000002 3fff001c 3fff35f0 00000001  
3ffffc00:  3fff0001 000dd200 3ffffc74 00000000  
3ffffc10:  00000022 3ffffc74 00000000 3fff4d6c  
3ffffc20:  00000000 40100000 000001b0 0000000e  
3ffffc30:  40101c2d 3ffedee0 3fffc200 00000000  
3ffffc40:  00000001 3fff35f0 00000001 40207a97  
3ffffc50:  3ffffc7a 00000000 00000000 00000000  
3ffffc60:  00000001 00000001 002201bf 00000002  
3ffffc70:  00000000 00540001 01c347fc 00000020  
3ffffc80:  00000022 00000000 3fff46ec 00000002  
3ffffc90:  00000080 00000000 3fff47ec 3fff47ec  
3ffffca0:  00000010 00000000 00000000 00000022  
3ffffcb0:  00007fff 02897294 40102242 00000002  
3ffffcc0:  00000005 3fff35f0 0000001c 40207f10  
3ffffcd0:  00000020 3fff46ec 00c03c14 00000289  
3ffffce0:  000001fb 00000003 00000000 4000050c  
3ffffcf0:  3fffc278 40101fdc 3fffc200 00000022  
3ffffd00:  3ffead44 00000025 0000a673 3fff4c58  
3ffffd10:  3fff35f0 00000100 3fff345c 40205f2e  
3ffffd20:  40106832 3fbe76c8 00000000 00000000  
3ffffd30:  00004bc6 00000000 3ffffe21 00000100  
3ffffd40:  00000000 3fffc6fc 00000000 3fbe76c8  
3ffffd50:  00000000 0000a642 0000a673 00000030  
3ffffd60:  00000000 00000000 00000100 3fff4c58  
3ffffd70:  00000001 00000001 0000000f 000db000  
3ffffd80:  00001000 00000010 00000000 3fff4c58  
3ffffd90:  00000100 00000100 00000000 40203555  
3ffffda0:  3fff345c 3fff345c 3fff35f0 40207028  
3ffffdb0:  3fff35ec 402438c4 00000014 3ffffe20  
3ffffdc0:  00000001 00000100 3fff35f0 40203be0  
3ffffdd0:  3fff345c 4bc6a7f0 0000a643 0000a673  
3ffffde0:  00000000 00000000 4bc6a7f0 00000000  
3ffffdf0:  00000000 4bc6a7f0 40106832 0000a673  
3ffffe00:  00000100 3ffe90ff 3fff5594 40244171  
3ffffe10:  000000ff 3ffe90ff 3ffffea0 40245868  
3ffffe20:  00000000 3fff2fe4 3ffffea0 40216124  
3ffffe30:  00000000 3ffe90ff 3ffffea0 40229fd4  
3ffffe40:  40246010 00000000 000003e8 40242a63  
3ffffe50:  3fff5594 3fff2fe4 3fffff40 40242aaf  
3ffffe60:  3ffffe60 3fff09f9 3fffff40 40242ae1  
3ffffe70:  3fff0d08 028961a2 000004cc 00000000  
3ffffe80:  3ffe908b 00000000 00000000 3fff28cc  
3ffffe90:  000004cc 3fff0d08 3fffff40 4022a15c  
3ffffea0:  3ffffea0 3ffffea0 00000010 401004e8  
3ffffeb0:  00000000 40219b49 00000010 4021610b  
3ffffec0:  0000a6a0 3fff0858 3fff3858 40219b7c  
3ffffed0:  0000000b 00000000 3fff1704 4020b2b6  
3ffffee0:  02895d38 3fff0838 0000a6a0 40215f13  
3ffffef0:  00000000 00000000 00000064 3fff28cc  
3fffff00:  3fff0d08 3fff09f9 00000000 00000000  
3fffff10:  00000000 00000000 3ffe855f 4010020c  
3fffff20:  3fff0d08 3fff09f9 00000005 3fff28cc  
3fffff30:  3fff0d08 3fff09f9 3ffefd9a 40240bcf  
3fffff40:  3fff6c34 0000000f 00000000 00000000  
3fffff50:  40104d38 00cac682 3fff2934 00000000  
3fffff60:  3ffef760 3fff2934 3ffe8744 3fff2934  
3fffff70:  40246068 00ffffff 40246068 0101a8c0  
3fffff80:  40246068 6201a8c0 00000001 4020228f  
3fffff90:  3fffdad0 00000000 3fff06b0 40240d09  
3fffffa0:  00000000 00000000 00000001 40243b41  
3fffffb0:  3fffdad0 00000000 3fff28c6 40243bb0  
3fffffc0:  feefeffe feefeffe 3ffe8744 40100721  
<<<stack<<<

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

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld
ªU102 : 


INIT : Booting version: mega-20181218 (ESP82xx Core 2_4_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3 PUYA support)
103 : INIT : Warm boot #2 - Restart Reason: Software Watchdog
106 : FS   : Mounting...
112 : FS   : Mount successful, used 75802 bytes of 113201
383 : CRC  : program checksum       ...OK
395 : CRC  : SecuritySettings CRC   ...OK 
396 : CRC  : binary has changed since last save of Settings
417 : INIT : Free RAM:28904
418 : INIT : I2C
419 : INIT : SPI not enabled
426 : INFO : Plugins: 3 [Normal] [Minimal 1M OTA] (ESP82xx Core 2_4_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3 PUYA support)
429 : WIFI : No valid wifi settings
430 : WIFI : Could not connect to AP!
432 : WIFI : Set WiFi to AP
1354 : WIFI : AP Mode ssid will be Minimal 1M OTA_0 with address 192.168.4.1
2689 : WD   : Uptime 0 ConnectFailures 0 FreeMem 26192
When I tried the Tasmota firmware it worked as expected without having difficulties. Therefore they seem to do things differently than ESPEasy.

As I love the flexibility of ESPEasy I'd love to stick with it, but if it doesn't work I can't. I tried the precompiled versions and yes I tried to set the default values in ESPEasy-Globals.h as well as the 8285 versions. The result was always the same.

Does anyone understand what's happening? Did anyone experience something similar? Any idea what I can try to succeed?

Thanks very much

User avatar
grovkillen
Normal user
Posts: 3029
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESPEasy with Sonoff S20 fails as Tasmota doesn't

#2 Post by grovkillen » 05 Jan 2019, 18:05

How long do you wait after the reboot? The unit might be in a initialization mode. Wait a while.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Normal user
Posts: 1212
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESPEasy with Sonoff S20 fails as Tasmota doesn't

#3 Post by TD-er » 06 Jan 2019, 17:57

There is something with more recent Sonoff modules like the S26 and the Basic r2.
What Tasmota does, is do as much calls to 'delay' as possible until WiFi connection has been made.
It seems like the module is not stable when doing other things too when trying to connect to WiFi.

mrwee
Normal user
Posts: 123
Joined: 31 Aug 2016, 12:52

Re: ESPEasy with Sonoff S20 fails as Tasmota doesn't

#4 Post by mrwee » 06 Jan 2019, 18:01

I also have an S20 which flashes fine (Blank + ESP_Easy_mega-20180524_normal_ESP8285_1024.bin), boots, can configure Wi-Fi via seriel, but it never connects to Wi-Fi. Will try Tasmota or Espurna to see if there's a difference.

dolittle
Normal user
Posts: 14
Joined: 14 Jan 2018, 19:39

Re: ESPEasy with Sonoff S20 fails as Tasmota doesn't

#5 Post by dolittle » 08 Jan 2019, 10:16

grovkillen wrote:
05 Jan 2019, 18:05
How long do you wait after the reboot? The unit might be in a initialization mode. Wait a while.
I wait quite some time and watched this in the serial output. At least a minute or so. The device seems to reboot a couple of times after formating the data partition (I hope you get what I mean) and eventually I can observe the described behavior. What really strikes me is that it works with one device and doesn't with another. BTW. the flash is from XTC and not from PUYA as I've read that there are problems with this.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests