arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.2k stars 4.81k forks source link

WiFi won't connect with 6.1.0a #3150

Closed Stuart-Richards closed 6 years ago

Stuart-Richards commented 6 years ago

WiFi just does not connect with 6.1.0a firmware on Sonoff basic. If I connect console I see it saying it's trying to connect to 11N AP but then gives up. If I switch back to 5.14, all works just fine.

Sealight10 commented 6 years ago

I can't use my Wemos D1 Mini module with this tasmota version 6.1 because the connection turns very unstable. I don't have this trouble with the tasmota 5.14 version. I configured the option Wifi_manager in the wifi config tool (User_config.h), I'm wondering if there are any issue? I checked my router and my module connects just for few seconds but afterward i can't get acces to the webserver. I used the tool ESPflashtool to clean the module before the flashing process. I read about the posibility to use the libraries of the 5.14 version to compile the 6.1 version but after try it i got some errors. Could somebody else confirm if they have this troubles? Thanks in advance (And sorry for my english)

Edit: Seems to be that the user Subdancer found a solution. I copy paste the solution:

In the user_config.h, find the option CFG_Holder and change from #define CFG_HOLDER 4617 to #define CFG_HOLDER 4618. Result: it works flawlessly as it should. connects instant to the wifi, no more problems. Credits to Subdancer, thanks for post the solution.

pascalsaul commented 6 years ago

stat/basic_woonkamer_bank/STATUS2 {"StatusFWR":{"Version":"6.1.0a","BuildDateTime":"2018-07-07T11:53:47","Boot":31,"Core":"2_4_1","SDK":"2.2.1(cfd48f3)"}}

OTA upgrade invoked by the browser or MQTT doesn't work: stat/basic_woonkamer_bank/UPGRADE Failed Update error: ERROR[6]: Stream Read Timeout

Then I just upload the file manually and after the upgrade the WiFi connection looks fine but for me the webserver doesn't work anymore for me...

When I do a downgrade back to 5.14.0 throught MQTT it doesn't retain the config...

Jason2866 commented 6 years ago

Try the prebuilt image (release) from path Master not development. Maybe your selfcompiled version is buggy...

bastelfix commented 6 years ago

Hi, i have the same problem with iTead sonoff basic. PCB says "Sonoff Basic R2 V1.0 2017-10-11". For me, the problem started with v5.14, I only use the precompiled DE-bin's. I have flashed also some of the "obisockets", a pow v2, some esp8266-01 and a node-mcu. All work fine with v5.14 and with the given wireless network (fritzbox, all dhcp leases cleared). But with the iTead basic, the last working version is v5.13 v5.11.1 and v5.13: working v5.14 and v6.1: not working

I flash them using a ftdi-usb with esptool 2.4.1 with the following commands: py esptool.py --port COM11 erase_region 0x0F4000 0x008000 py esptool.py --port COM11 erase_flash py esptool.py --port COM11 write_flash -fs 1MB -fm dout 0x0 sonoff.bin

I can reproduce the behavior with at least six devices.

I also tried to flash the minimal-bin and then OTA, but the OTA fails.

Serial output (v6.1; seriallog 4) ` 00:13:16 APP: starte neu

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

load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v3fff38d8 ~ld ø 00:00:00 APP: Anzahl Startvorgänge 6 00:00:00 SRC: Restart 00:00:00 Projekt sonoff Sonoff (Topic sonoff, Fallback DVES_A34C9C, GroupTopic sonoffs) Version 6.1.0-2_3_0 00:00:00 CFG: in Flash gespeichert am F6, zählen 46, Bytes 3584 00:00:00 WIF: Prüfe Verbindung... 00:00:00 WIF: Verbindungsversuch... 00:00:00 WIF: Repariere Problem #2186 00:00:00 WIF: verbinden mit AP1 in Modus 11N wie sonoff-3228... 00:00:01 WIF: Prüfe Verbindung... 00:00:01 WIF: Verbindungsversuch... 00:00:02 WIF: Prüfe Verbindung... 00:00:02 WIF: Verbindungsversuch... 00:00:03 WIF: Prüfe Verbindung... 00:00:03 WIF: Verbindungsversuch... 00:00:04 WIF: Prüfe Verbindung... 00:00:04 WIF: Verbindungsversuch... 00:00:05 WIF: Prüfe Verbindung... 00:00:05 WIF: Verbindungsversuch... 00:00:06 WIF: Prüfe Verbindung... 00:00:06 WIF: Verbindungsversuch... 00:00:07 WIF: Prüfe Verbindung... 00:00:07 WIF: Verbindungsversuch... 00:00:08 WIF: Prüfe Verbindung... 00:00:08 WIF: Verbindungsversuch... 00:00:09 WIF: Prüfe Verbindung... 00:00:09 WIF: Verbindungsversuch... 00:00:10 WIF: Prüfe Verbindung... 00:00:10 WIF: Verbindungsversuch... 00:00:11 WIF: Prüfe Verbindung... 00:00:11 WIF: Verbindungsversuch... 00:00:12 WIF: Prüfe Verbindung... 00:00:12 WIF: Verbindungsversuch... 00:00:13 WIF: Prüfe Verbindung... 00:00:13 WIF: Verbindung fehlgeschlagen, da AP nicht erreicht werden konnte 00:00:13 WIF: Repariere Problem #2186 00:00:14 WIF: verbinden mit AP1 in Modus 11N wie sonoff-3228... 00:00:14 WIF: Prüfe Verbindung... 00:00:14 WIF: Verbindungsversuch... 00:00:15 WIF: Prüfe Verbindung... ` sometimes it drops

00:01:36 WIF: Prüfe Verbindung... 00:01:36 WIF: Verbindung fehlgeschlagen, da das Passwort falsch ist 00:01:37 WIF: Prüfe Verbindung...

If i can provide any further information, please tell me If it is usefull, i can provide a device within germany.

Greets Bastelfix

PS: Yeah, first action at github :)

Jason2866 commented 6 years ago

@bastelfix Please post result of status 0. May you try not the german version for testing. I have one NodeMcu which is working only until 5.13. But all my sonoffs do work with all versions including Sonoff Basic R2 V1.0 2017-10-11 Ich bin aus Deutschland...

Jason2866 commented 6 years ago

May you try with optioon for flashing speed esptool.py --port COM11 erase_flash esptool --port COM11 --baud 115200 write_flash -fs 1MB -fm dout 0x000000 firmware.bin

bastelfix commented 6 years ago

00:01:10 CMD: status 0 00:01:10 SRC: Serial 00:01:10 RSL: empfangenes topic /status, Datengröße 1, Daten 0 00:01:10 RSL: Gruppe 0, Index 1, Befehl STATUS, Daten 0 00:01:10 RSL: stat/sonoff/STATUS = {"Status":{"Module":1,"FriendlyName":["Sonoff"],"Topic":"sonoff","ButtonTopic":"0","Power":1,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}} 00:01:10 RSL: stat/sonoff/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://sonoff.maddox.co.uk/tasmota/sonoff.bin","RestartReason":"Power on","Uptime":"0T00:01:09","StartupUTC":"","Sleep":0,"BootCount":11,"SaveCount":51,"SaveAddress":"F9000"}} 00:01:10 RSL: stat/sonoff/STATUS2 = {"StatusFWR":{"Version":"6.1.0","BuildDateTime":"2018.07.06 21:05:33","Boot":31,"Core":"2_30","SDK":"1.5.3(aec24ac9)"}} 00:01:10 RSL: stat/sonoff/STATUS3 = {"StatusLOG":{"SerialLog":4,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["",""],"TelePeriod":300,"SetOption":["00008009","55818000"]}} 00:01:10 RSL: stat/sonoff/STATUS4 = {"StatusMEM":{"ProgramSize":536,"Free":464,"Heap":24,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3,"Features":["00000407","0FDAE794","0C000000","23B6179E","00000000"]}} 00:01:10 RSL: stat/sonoff/STATUS5 = {"StatusNET":{"Hostname":"sonoff-3228","IPAddress":"0.0.0.0","Gateway":"192.168.2.254","Subnetmask":"255.255.255.0","DNSServer":"192.168.2.27","Mac":"68:C6:3A:A3:4C:9C","Webserver":2,"WifiConfig":5}} 00:01:10 RSL: stat/sonoff/STATUS6 = {"StatusMQT":{"MqttHost":"openhabianpi","MqttPort":1883,"MqttClientMask":"DVES%06X","MqttClient":"DVES_A34C9C","MqttUser":"openhabian","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}} 00:01:10 RSL: stat/sonoff/STATUS7 = {"StatusTIM":{"UTC":"Thu Jan 01 00:01:10 1970","Local":"Thu Jan 01 00:01:10 1970","StartDST":"Thu Jan 01 00:00:00 1970","EndDST":"Thu Jan 01 00:00:00 1970","Timezone":1,"Sunrise":"07:43","Sunset":"16:03"}} 00:01:10 RSL: stat/sonoff/STATUS10 = {"StatusSNS":{"Time":"1970-01-01T00:01:10"}} 00:01:10 RSL: stat/sonoff/STATUS11 = {"StatusSTS":{"Time":"1970-01-01T00:01:10","Uptime":"0T00:01:09","Vcc":3.016,"POWER":"ON","Wifi":{"AP":1,"SSId":"****","RSSI":100,"APMac":"FF:FF:FF:FF:FF:FF"}}}

digiblur commented 6 years ago

Flashed a S31, Dual R2, and Basic this morning with 6.1.0b built with core 2.3.0 in PlatformIO, no issues with WiFi connections so far.

bastelfix commented 6 years ago

May you try with optioon for flashing speed esptool.py --port COM11 erase_flash esptool --port COM11 --baud 115200 write_flash -fs 1MB -fm dout 0x000000 firmware.bin

The --baud parameter didn't change anything BUT your advice to test with an english version was a key: v5.13-DE: working

v5.14-DE: not working v5.14: working

v6.1-DE: not working v6.1: working

tested with two devices to avoid hardware-dependency

So maybe there is a bug from v5.13-DE to v5.14-DE that only shows up at the iTead sonoff basic? Can you verify that with your device @Jason2866 ? Did anyone else experienced this with the DE-bin?

Thanks so far, Bastelfix Berlin

Jason2866 commented 6 years ago

@bastelfix Do you have changed wifi settings in user_config.h to your setup?

bastelfix commented 6 years ago

no, i used precompiled release-bins

Jason2866 commented 6 years ago

Do you have read the wiki how establishing to wifi works? https://github.com/arendst/Sonoff-Tasmota/wiki/Button-usage

bastelfix commented 6 years ago

of course, but i configure the wifi via serial (ftdi-usb) with the backlog command:

Backlog SSID1 netssid; Password1 pw

00:00:12 CMD: Backlog SSID1 netssid; Password1 pw 00:00:12 RSL: stat/sonoff/RESULT = {"SSId1":"****"} 00:00:12 WIF: Connect failed with AP timeout 00:00:12 WIF: Connecting to AP1 StonedNet_n in mode 11N as sonoff-4402... 00:00:12 RSL: stat/sonoff/RESULT = {"Password1":"pw"} 00:00:14 APP: Restarting

then it tries to connect

00:00:00 Project sonoff Sonoff (Topic sonoff, Fallback DVES_86B132, GroupTopic sonoffs) Version 6.1.0-2_3_0 00:00:00 WIF: Connecting to AP1 * in mode 11N as sonoff-4402... 00:00:10 WIF: Connected 00:00:10 DNS: Initialized 00:00:10 HTP: Web server active on sonoff-4402.local with IP address 192.168.**

jjlawren commented 6 years ago

I was having a similar issue with two Basics with the precompiled 6.1.0 release binary. Both had been on a locally built 5.13.1 with a custom user_config_override.h before the upgrade. After the upgrade to 6.1.0, one simply wouldn't connect to wifi and the other's wifi became unstable, losing connection frequently. The uptime kept increasing when it published status updates, so it was not rebooting.

After rolling both back to a locally built 5.13.1 w/2.4.1 things seem stable again.

subdancer commented 6 years ago

i've had similar problems. after updating to 6.1 (release version) my sonoff didn't connect to wifi anymore.

i used the webupdater. first flashed 6.1 minimal bin. the sonoff rebooted and connected to wifi no problem so far. then i flashed the 6.1 classic bin, after a reboot the sonoff didn't work anymore. the serial terminal showed a lot of wifi connection tries but no success. it always ended with some strange symbols and started all over.

then i flashed the my old version back 5.10a. success. it was back alive connected to the wifi as it should.

then i compiled sonoff-classic snapshot from yesterday evening and flashed it via platformio. it resulted in the same behaviour as written above. after the first boot it connected to the wifi but the webui was really slow and it always lost connection after clicking through the menu. it kinda hanged itself. also when pushing the button on the sonoff the led went on and the relais clicked but after another push it didn't turn off. it kinda hanged itself and i heard the relais click like every minute.

after that try i compiled and flashed the same version again but changed the #define CFG_HOLDER 4617 to #define CFG_HOLDER 4618

result: it works flawlessly as it should. connects instant to the wifi, no more problems.

picture

Jason2866 commented 6 years ago

@bastelfix Compiled (vor dem Fussball) v.6.1.0a development (latest) and flashed it to my easy reachable sonoff... No problem. Will build de version after soccer Rus - Cro and flash it afterwards.

00:00:00 Project sonoff Fluter (Topic sonoff-13D92F, Fallback sonoff-13D92F, GroupTopic sonoffs) Version 6.1.0a-2_3_0 00:00:00 WIF: Connecting to AP1 Jason_Home_WLAN in mode 11N as sonoff-13D92F-6447... 20:55:48 WIF: Connected 20:55:48 HTP: Web server active on sonoff-13D92F-6447 with IP address 192.168.2.119 20:55:48 UPP: Multicast (re)joined 20:55:48 MQT: Attempting connection... 20:55:48 MQT: Connected 20:55:49 MQT: tele/sonoff-13D92F/LWT = Online (retained) 20:55:49 MQT: cmnd/sonoff-13D92F/POWER = 20:55:49 MQT: tele/sonoff-13D92F/INFO1 = {"Module":"Sonoff S2X","Version":"6.1.0a","FallbackTopic":"sonoff-13D92F","GroupTopic":"sonoffs"} 20:55:49 MQT: tele/sonoff-13D92F/INFO2 = {"WebServerMode":"Admin","Hostname":"sonoff-13D92F-6447","IPAddress":"192.168.2.119"} 20:55:49 MQT: tele/sonoff-13D92F/INFO3 = {"RestartReason":"Software/System restart"} 20:55:49 UPP: Multicast (re)joined 20:55:50 MQT: stat/sonoff-13D92F/RESULT = {"POWER":"OFF"} 20:55:50 MQT: stat/sonoff-13D92F/POWER = OFF 20:55:53 UPL: File Tasmota_dev_6.1.0a.bin ... 20:56:00 UPP: Multicast (re)joined 20:56:00 MQT: Attempting connection... 20:56:00 MQT: Connected 20:56:01 MQT: tele/sonoff-13D92F/LWT = Online (retained) 20:56:01 MQT: cmnd/sonoff-13D92F/POWER = 20:56:01 UPP: Multicast (re)joined 20:56:03 MQT: stat/sonoff-13D92F/RESULT = {"POWER":"ON"} 20:56:03 MQT: stat/sonoff-13D92F/POWER = ON 20:56:03 MQT: stat/sonoff-13D92F/RESULT = {"POWER":"OFF"} 20:56:03 MQT: stat/sonoff-13D92F/POWER = OFF 20:56:04 MQT: tele/sonoff-13D92F/STATE = {"Time":"2018-07-07T20:56:04","Uptime":"0T00:00:26","Vcc":3.126,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Jason_Home_WLAN","RSSI":96,"APMac":"00:A0:57:2A:BD:19"}} 20:57:06 MQT: stat/sonoff-13D92F/RESULT = {"POWER":"ON"} 20:57:06 MQT: stat/sonoff-13D92F/POWER = ON 20:57:07 MQT: stat/sonoff-13D92F/RESULT = {"POWER":"OFF"} 20:57:07 MQT: stat/sonoff-13D92F/POWER = OFF 21:01:05 MQT: tele/sonoff-13D92F/STATE = {"Time":"2018-07-07T21:01:05","Uptime":"0T00:05:27","Vcc":3.126,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Jason_Home_WLAN","RSSI":90,"APMac":"00:A0:57:2A:BD:19"}} 21:02:00 MQT: tele/sonoff-13D92F/UPTIME = {"Time":"2018-07-07T21:02:00","Uptime":"0T00:06:22"} 21:06:05 MQT: tele/sonoff-13D92F/STATE = {"Time":"2018-07-07T21:06:05","Uptime":"0T00:10:27","Vcc":3.126,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Jason_Home_WLAN","RSSI":92,"APMac":"00:A0:57:2A:BD:19"}} 21:11:06 MQT: tele/sonoff-13D92F/STATE = {"Time":"2018-07-07T21:11:06","Uptime":"0T00:15:28","Vcc":3.127,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Jason_Home_WLAN","RSSI":100,"APMac":"00:A0:57:2A:BD:19"}} 21:11:22 CMD: Status 0 21:11:22 MQT: stat/sonoff-13D92F/STATUS = {"Status":{"Module":8,"FriendlyName":["Fluter"],"Topic":"sonoff-13D92F","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}} 21:11:22 MQT: stat/sonoff-13D92F/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://192.168.2.20/tasmota/sonoff-minimal.bin","RestartReason":"Software/System restart","Uptime":"0T00:15:44","StartupUTC":"2018-07-07T18:55:38","Sleep":1,"BootCount":18,"SaveCount":209,"SaveAddress":"FB000"}} 21:11:22 MQT: stat/sonoff-13D92F/STATUS2 = {"StatusFWR":{"Version":"6.1.0a","BuildDateTime":"2018-07-07T20:01:00","Boot":6,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}} 21:11:22 MQT: stat/sonoff-13D92F/STATUS3 = {"StatusLOG":{"SerialLog":0,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Jason_Home_WLAN",""],"TelePeriod":300,"SetOption":["00008009","55C18000"]}} 21:11:22 MQT: stat/sonoff-13D92F/STATUS4 = {"StatusMEM":{"ProgramSize":512,"Free":488,"Heap":16,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3,"Features":["00000809","0FAAA78C","0C000001","00080696","00000000"]}} 21:11:22 MQT: stat/sonoff-13D92F/STATUS5 = {"StatusNET":{"Hostname":"sonoff-13D92F-6447","IPAddress":"192.168.2.119","Gateway":"192.168.2.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.2.1","Mac":"EC:FA:BC:13:D9:2F","Webserver":2,"WifiConfig":3}} 21:11:22 MQT: stat/sonoff-13D92F/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.2.114","MqttPort":1883,"MqttClientMask":"sonoff-13D92F","MqttClient":"sonoff-13D92F","MqttUser":"openhabian","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}} 21:11:22 MQT: stat/sonoff-13D92F/STATUS7 = {"StatusTIM":{"UTC":"Sat Jul 07 19:11:22 2018","Local":"Sat Jul 07 21:11:22 2018","StartDST":"Sun Mar 25 02:00:00 2018","EndDST":"Sun Oct 28 03:00:00 2018","Timezone":99,"Sunrise":"05:18","Sunset":"21:17"}} 21:11:22 MQT: stat/sonoff-13D92F/STATUS10 = {"StatusSNS":{"Time":"2018-07-07T21:11:22"}} 21:11:22 MQT: stat/sonoff-13D92F/STATUS11 = {"StatusSTS":{"Time":"2018-07-07T21:11:22","Uptime":"0T00:15:44","Vcc":3.126,"POWER":"OFF","Wifi":{"AP":1,"SSId":"Jason_Home_WLAN","RSSI":100,"APMac":"00:A0:57:2A:BD:19"}}}

Jason2866 commented 6 years ago

Maybe this https://github.com/arendst/Sonoff-Tasmota/wiki/Upgrade#migration-path

reloxx13 commented 6 years ago

@arendst pls move up the Migration Information on the release page over the changelog and a fat !!!MUST READ!!!

Try this: DE, EN, Minimal bins 6.1.0a@2.3.0 builded from latest dev branch @ f9ce86a6e8c037ee267566f58b4f647e072bae3c , nothing changed, just a clean rebuild with atom+platformio on a DE windows 10 x64 DOWNLOAD 6.1.0a.zip

Jason2866 commented 6 years ago

Info. De version 6.1.0a works too. Self compiled and @reloxx13 clean de build

reloxx13 commented 6 years ago

i remember we had problems with a german release in the past, maybe theos IDE or system does have a charset problem.

00:01:10 RSL: empfangenes topic /status, Datengröße 1, Daten 0

i dont have those charset errors with my builds.

rkojedzinszky commented 6 years ago

I also had that issue, even with fresh flashing. It turned out for me that I had to undef USE_ENERGY_SENSOR for my Sonoff Basics to work with master branch. My other Sonoff devices are not affected, only the Basics.

reloxx13 commented 6 years ago

also dont forget that wifi relevant change short mentioned here: https://github.com/arendst/Sonoff-Tasmota/issues/3101

if you build yourself and want to debug, revert the line in your local code, rebuild and check if your connection gets stable again.

WiFi.persistent(false); // Solve possible wifi init errors

arendst commented 6 years ago

The binaries are provided automagically by Travis to the release. I thought Travis is a German company so it would be strange that the German translation seems to fail.

bastelfix commented 6 years ago

Jason2866 commented 15 hours ago Info. De version 6.1.0a works too.

The One from releases or a self-compiled one? Can you please provide a link? Then i can test with my devices.

What about the Migration Path? I thought it is only relevant if i'm upgrading from version <5 via OTA. But I flash them via serial, so this shouldnt be an issue?

At the moment i'm happy with the the english build, but it would be nice if anybody can reproduce this behaviour with DE-v5.14 or DE-v6.1 at the "Sonoff Basic R2 V1.0 2017-10-11"-Hardware so i can exclude an error made by me. (Again, ) DE-5.14 is working fine on "obisocket", esp8266-01, pow v2 and nodeMCU for me, only the basics fail to connect to wifi.

Thanks for all the support to all of you and please execuse my dirty english :)

Jason2866 commented 6 years ago

I tried @reloxx13 and my de version, which works. reloxx13 has uploaded clean rebuild files 6 or 7 posts before Migration path is not relevant if you erase the device and do a clean flash. If you upgrade take a look how to migrate from v.5.14. You have to care!

bastelfix commented 6 years ago

nice, working! v5.13-DE: working

v5.14-DE: not working v5.14: working

v6.1-DE: not working v6.1-DE-reloxx13: working, connects faster (4s to 7s) than v6.1 v6.1: working, connection time 4s to 34s

all tested with two devices

If you upgrade take a look how to migrate from v.5.14. You have to care!

That should be sticky in a way as reloxx13 mentioned

ChipStewart1 commented 6 years ago

I'm having similar problems. I can flash 5.14.0b and everything works fine. When I upgrade to 6.1, however, it won't connect. On the serial monitor, I get:

00:00:00 Project sonoff Lamp (Topic Lamp, Fallback Lamp, GroupTopic Home) Version 6.1.0a-2_4_1 00:00:00 WIF: Connecting to AP1 The Dog House in mode 11N as Lamp-3447... 00:00:09 WIF: Connect failed as AP cannot be reached 00:00:09 WIF: Connecting to AP1 The Dog House in mode 11N as Lamp-3447... 00:00:18 WIF: Connect failed as AP cannot be reached 00:00:18 WIF: WPSConfig active for 3 minutes 00:00:41 APP: Restarting

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

load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v614f7c32 ~ld [which repeats indefinitely ]

I tried via updating via the web interface, both via .bin file and the OTA link. I tried a clean install. I tried the regular and minimal builds. Still, nothing seems to work.

Jason2866 commented 6 years ago

@ChipStewart1 Try to use arduino 2.3.0! For me 2.4.x has never worked...

ChipStewart1 commented 6 years ago

2.3? I’m on 1.85, and 1.9 is a beta.

And it seems to be uploading okay – just not connecting to WiFi afterwards. And even the OTA isn’t working for me.

Thanks,

Chip Stewart

From: Jason2866 [mailto:notifications@github.com] Sent: Monday, July 9, 2018 11:15 AM To: arendst/Sonoff-Tasmota Sonoff-Tasmota@noreply.github.com Cc: ChipStewart1 GitHub@StewartsPlace.com; Mention mention@noreply.github.com Subject: Re: [arendst/Sonoff-Tasmota] WiFi won't connect with 6.1.0a (#3150)

@ChipStewart1 https://github.com/ChipStewart1 Try to use arduino 2.3.0! For me 2.4.x has never worked...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/3150#issuecomment-403514405 , or mute the thread https://github.com/notifications/unsubscribe-auth/AP7uhsGtPrafy37C10D67ccy0BkIQYUvks5uE3NegaJpZM4VGMNn . https://github.com/notifications/beacon/AP7uhoF5i7Q1huSTkCl3R8iSTB60TGh_ks5uE3NegaJpZM4VGMNn.gif

reloxx13 commented 6 years ago

you are on 2.4.1, i dunno wher eyou get the numbers 1.85... 00:00:00 Project sonoff Lamp (Topic Lamp, Fallback Lamp, GroupTopic Home) Version 6.1.0a-2_4_1

platformio.ini

[common] ; ************************************************************
; *** Esp8266 core for Arduino version 2.3.0
platform = espressif8266@1.5.0
; *** Esp8266 core for Arduino version 2.4.0
;platform = espressif8266@1.6.0
; *** Esp8266 core for Arduino version 2.4.1
;platform = espressif8266@1.7.3
; *** Esp8266 core for Arduino version latest beta
;platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
; *** Esp8266 core for Arduino current version
;platform = espressif8266
digiblur commented 6 years ago

Confusing the compiler and library versions folks. In ArduinoIDE it's the board manager section where 2.30 or 2.41 is installed.

Jason2866 commented 6 years ago

edit not @digiblur info is for @ChipStewart1 I dont know the actual Arduino Ide Version I dont use it anymore since i "found" Platformio (Atom) and VSC. It is so much easier to use even for me as non programmer. Just follow the perfect tutorials in wiki from tasmota how to setup this IDEs. Compiling is done so easy. No hassle with files to copy somewhere and so on. Just download project from github extract to folder, "open folder" in VSC and hit button compile. Platform changes are all in platformio.ini... (This file is preconfigured from @arendst ) Thats it

digiblur commented 6 years ago

@jason2866 definitely lots of confusion. I already use PlatformIO

Jason2866 commented 6 years ago

@digiblur sorry my fault. Infos is for @ChipStewart1

helmar74 commented 6 years ago

Hi, I had the same issue. All sonoffs (S20, 433 MHz, 4CH Pro, SC, B1...) are working well with Stable Varsion 6.1.0 and german translation

...Except the sonoff Basic. It is possible to update to minimal version 6.1.0 via OTA, but Update to "normal" version isn't possible. Device was stuck. That's how i was able to fix:

  1. Used Development Version 6.1.0a (Stable version 6.1.0 isn't working for me)
  2. Don't use german translation (if used, flashing via serial connections works, but no wifi connection is possible): Commented out the following in user_config.h: //#define MY_LANGUAGE de-DE // German in Germany
  3. with this change I was able to update via serial connection
  4. OTA Update to minimal version and then back to "normal" version isn't possible at all

Regards

Helmar

apastuszak commented 6 years ago

So, am I reading this right? Right now, there is no way to OTA a Sonoff Basic?

arendst commented 6 years ago

@apastuszak No you're not reading it right. People seem to have problems with OTA. I don't, many others do not either. So.....

apastuszak commented 6 years ago

It just failed on me on a Sonoff Basic. Need to disassemble and flash via serial.

arendst commented 6 years ago

@apastuszak if possible pls provide output of status 0

apastuszak commented 6 years ago

I can't connect to the device. Comes up in Wifi Manager, but attempts to connect to the AP fail. I held the button down for 40 seconds to reset the device to defaults, and same issue. 4 quick clicks to get it into wifi_manager and I an AP, but can't connect to it.

The last version I was successfully able to upgrade via wifi was 5.13.0

arendst commented 6 years ago

OK. onto to the serial upload then.

apastuszak commented 6 years ago

Just annoying since the basics are hot glued down into 3d printed boxes a friend made for me.

jjlawren commented 6 years ago

Comes up in Wifi Manager, but attempts to connect to the AP fail. I held the button down for 40 seconds to reset the device to defaults, and same issue. 4 quick clicks to get it into wifi_manager and I an AP, but can't connect to it.

I had the same behavior with one of my two Basics. Console showed repeated wifi failed connection attempts (after I hooked to serial cable), and attempting to join to the Basic in AP mode would time out.

I had upgraded from a custom 5.13.1 build to the 6.1.0 release build binary. My build was prettty minimal but did have a custom timezone override. Could a sudden timezone change + something stored in RTC memory cause wifi connection issues because of a time-based dependency?

helmar74 commented 6 years ago

Fyi: Had the same problem, using timezone99...

apastuszak commented 6 years ago

I have a custom timezone. But when I went from 5.13 to 5.14 I did not have a custom timezone and still have to go serial.

That does seem to be something we have in common. May be worth investigating.

arendst commented 6 years ago

Starting with 5.14 the timezone settings in user_config.h have changed. See releasenotes and compare user_config.h between both versions.

apastuszak commented 6 years ago

Would that cause wifi upgrade issues?

arendst commented 6 years ago

I don't think so but it explains peoples timezone issues.

ChipStewart1 commented 6 years ago

Strange. I’m working with two Sonoff Basics that I bought together. One, I was able to flash in 5.14, then reflash in 6.1.0a. I used the 40 second hold followed by the four quick taps as mentioned by apastuszak, and was able to access the network it set up and get to the web server interface, which I then used to set everything up. It’s working fine now.

The other one – not so much. I flash in 5.14 and everything works fine. I flash in 6.1 (I tried normal and minimal) and it can’t access the APs. I use the 40/4 method, and it says it set up the web server, but my phone isn’t showing the network. I tried WifiConfig 1, 2, and 3, but no luck.

Chip

Whoops! Forgot to add the serial monitor output:

00:00:00 Project Lamp Lamp (Topic Lamp, Fallback Lamp-ESP, GroupTopic Home) Version 6.1.0a-2_4_1 00:00:00 WIF: Connecting to AP1 The Dog House in mode 11N as Lamp-3447... 00:00:09 WIF: Connect failed as AP cannot be reached 00:00:09 WIF: Connecting to AP2 The Dog House Guest in mode 11N as Lamp-3447... 00:00:18 WIF: Connect failed as AP cannot be reached 00:00:18 WIF: SmartConfig active for 3 minutes 00:02:00 RSL: /Home/Lamp/UPTIME = {"Time":"1970-01-01T00:02:00","Uptime":"0T00:02:00"} 00:03:21 APP: Restarting

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

load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v614f7c32 ~ld

[And then it starts all over again]

From: Theo Arends [mailto:notifications@github.com] Sent: Tuesday, July 10, 2018 9:51 AM To: arendst/Sonoff-Tasmota Sonoff-Tasmota@noreply.github.com Cc: ChipStewart1 GitHub@StewartsPlace.com; Mention mention@noreply.github.com Subject: Re: [arendst/Sonoff-Tasmota] WiFi won't connect with 6.1.0a (#3150)

@apastuszak https://github.com/apastuszak if possible pls provide output of status 0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/3150#issuecomment-403829491 , or mute the thread https://github.com/notifications/unsubscribe-auth/AP7uhuERBqpwr_Ep--en9s1-eBkb2g7Qks5uFLFdgaJpZM4VGMNn . https://github.com/notifications/beacon/AP7uhnEYdjeVHb3mhQPRfdvGioqdhcdnks5uFLFdgaJpZM4VGMNn.gif

apastuszak commented 6 years ago

@arendst I put 5.1.4 back on my unit. But I have another one new in box with just Tasmota 5.1.4 on it. That one I can experiment with tonight.

I'm thinking there must be some kind of hardware tweak that Sonoff made and perhaps there is a rev 1 and perhaps a rev 1.1. How old is the Basic that you're testing with? I'd be willing to donate two Basics to your cause and have them drop shipped to your house directly from iTead if you PM me offline.