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

No reconnect after a short failure of the wifi Network #1274

Closed
micropet opened this issue Apr 18, 2018 · 9 comments
Closed

No reconnect after a short failure of the wifi Network #1274

micropet opened this issue Apr 18, 2018 · 9 comments
Labels
Category: Stabiliy Things that work, but not as long as desired Category: Wifi Related to the network connectivity

Comments

@micropet
Copy link

After a short failure of the wifi (about 0.2 seconds) there is no reconnect.
The device wants to start in AP mode.
Hardware Wemos D1
Software ESP_Easy_mega-20180417_test_ESP8266_4096.bin

12584 : INFO : Plugins: 70 [Normal] [Testing] (core 2_4_0)
12584 : EVENT: System#Wake
12629 : WIFI : Connecting SMC attempt #0
12644 : EVENT: System#Boot
12652 : ACT :
12665 : ACT : Publish ESP-201/IP,0.0.0.0
12676 : ACT : timerSet,1,60
12686 : ACT :
12711 : WD : Uptime 0 ConnectFailures 0 FreeMem 15368
12742 : DS : Temperature: 20.62 (28-ff-b8-ea-b4-16-3-ed)
12744 : EVENT: DS18b20#Temperature=20.62
13688 : SW : Switch state 0 Output value 0
13691 : EVENT: Motion#Pir=0.00
13706 : ACT : gpio,14,0
13707 : SW : GPIO 14 Set to 0
13966 : SW : Switch state 0 Output value 0
13969 : EVENT: Led#Led2=0.00
15794 : WIFI : Connected! AP: SMC (78:8A:20:D1:9B:D9) Ch: 6 Duration: 3061 ms
15795 : EVENT: WiFi#ChangedAccesspoint
16463 : WIFI : DHCP IP: 192.168.0.201 (ESP-201-1) GW: 192.168.0.3 SN: 255.255.255.0 duration: 772 ms
16474 : EVENT: WiFi#Connected
16574 : MQTT : Intentional reconnect
16620 : MQTT : Connected to broker with client ID: ESPClient_5C:CF:7F:0B:68:52
16622 : Subscribed to: ESP-201/#
16623 : EVENT: MQTT#Connected
16932 : Current Time Zone: DST time start: 2018-03-25 02:00:00 offset: 120 minSTD time start: 2018-10-28 03:00:00 offset: 60 min
16933 : EVENT: Time#Initialized
16953 : EVENT: Clock#Time=Wed,23:18
42710 : WD : Uptime 1 ConnectFailures 0 FreeMem 14152
49770 : EVENT: Clock#Time=Wed,23:19
50909 : EVENT: WiFi#Disconnected
50925 : WIFI : Disconnected! Reason: 'Unspecified' Connected for 35 s
50925 : WIFI : Connecting SMC attempt #0
50941 : MQTT : Connection lost
50941 : EVENT: MQTT#Disconnected
52714 : EVENT: WiFi#Disconnected
52729 : WIFI : Disconnected! Reason: 'Auth fail' Connected for 1784 ms
52730 : WIFI : Connection Failed
52830 : WIFI : Set WiFi to AP
52835 : WIFI : Error while starting AP Mode with SSID: ESP-201_1 IP: 192.168.4.1
72710 : WD : Uptime 1 ConnectFailures 0 FreeMem 14896
72865 : DS : Temperature: 20.62 (28-ff-b8-ea-b4-16-3-ed)
72866 : EVENT: DS18b20#Temperature=20.62
72986 : EVENT: Rules#Timer=1
72995 : ACT : Publish ESP-201/IP,0.0.0.0
73007 : ACT : Publish ESP-201/MAC,5C:CF:7F:0B:68:52
73018 : ACT : Publish ESP-201/Time,23:19:24
73030 : ACT : Publish ESP-201/Uptime,1
73040 : ACT : Publish ESP-201/RSSI,0
73050 : ACT : Publish ESP-201/SSID,--
73061 : ACT : Publish ESP-201/BSSID,00:00:00:00:00:00
73071 : ACT : Publish ESP-201/CH,0
73082 : ACT : Publish ESP-201/SYSHEAP,14520
73092 : ACT : timerSet,1,60
77008 : SW : Switch state 1 Output value 1
77012 : EVENT: Motion#Pir=1.00
79341 : SW : Switch state 0 Output value 0
79343 : EVENT: Motion#Pir=0.00
79358 : ACT : gpio,14,0
79360 : SW : GPIO 14 Set to 0

@Grovkillen Grovkillen added the Category: Stabiliy Things that work, but not as long as desired label Apr 19, 2018
@micropet
Copy link
Author

I do not know if you already did something.
The mistake is still there.

16388 : WIFI : Connected! AP: SMC (78:8A:20:D1:9B:D9) Ch: 6 Duration: 3787 ms
16389 : EVENT: WiFi#ChangedAccesspoint
16426 : WIFI : DHCP IP: 192.168.0.201 (ESP-201-1) GW: 192.168.0.3 SN: 255.255.255.0 duration: 34 ms
16437 : EVENT: WiFi#Connected
16456 : Webserver: start
16537 : MQTT : Intentional reconnect
16570 : MQTT : Connected to broker with client ID: ESPClient_5C:CF:7F:0B:68:52
16573 : Subscribed to: ESP-201/#
16574 : EVENT: MQTT#Connected
37538 : Current Time Zone: DST time start: 2018-03-25 02:00:00 offset: 120 minSTD time start: 2018-10-28 03:00:00 offset: 60 min
37539 : EVENT: Time#Initialized
37562 : EVENT: Clock#Time=Fri,03:01
42678 : WD : Uptime 1 ConnectFailures 0 FreeMem 20232
47470 : EVENT: WiFi#Disconnected
47489 : WIFI : Disconnected! Reason: '(1) Unspecified' Connected for 31 s
47490 : Webserver: stop
47491 : WIFI : Connecting SMC attempt #0
47511 : MQTT : Connection lost
47511 : EVENT: MQTT#Disconnected
49283 : EVENT: WiFi#Disconnected
49301 : WIFI : Disconnected! Reason: '(202) Auth fail' Connected for 1782 ms
49302 : WIFI : Connection Failed
49402 : WIFI : Set WiFi to AP
49408 : WIFI : Error while starting AP Mode with SSID: ESP-201_1 IP: 192.168.0.250

@TD-er
Copy link
Member

TD-er commented Apr 20, 2018

It is strange the reconnect gets an authorize failure.

@workgroupengineering
Copy link
Contributor

I have same issue with sonoff TH10/TH16, but with relaese mega-20180420 it's mitigated.
I think this issue is related to esp8266/Arduino#4105 .

@TD-er
Copy link
Member

TD-er commented Apr 20, 2018

@workgroupengineering Is core 2.4.0 already using LWIP2?
I thought it was still 1.x

@workgroupengineering
Copy link
Contributor

workgroupengineering commented Apr 20, 2018

Yes this is changes log.

On 2.4.x and > there is more issues related wi-fi. I think maybe it's better to go back to 2.3.

@blb4github
Copy link

blb4github commented Apr 20, 2018

I think I have same issue after update to mega-20180420 today. Wemos D1 mini. The board is in AP mode with SSID [unit name]_[node number]. I can't connect via WIFI as the password is not standard - I believe I didn't change...

@TD-er
Copy link
Member

TD-er commented Apr 20, 2018

On my Android phone, I have to tap an extra notification bar on the top of the screen to allow connecting to the ESP, since it is not connected to the internet.
That's on Android 8.1. (Nexus 5x) Not sure how older versions of Android handle this.

@blb4github
Copy link

version mega-20180422 is working now for me on my Wemos D1 mini

@TD-er TD-er added Category: Wifi Related to the network connectivity and removed Category: Wifi Related to the network connectivity labels Apr 22, 2018
@TD-er
Copy link
Member

TD-er commented Jul 29, 2018

Is this still an issue? If so, please re-open.

@TD-er TD-er closed this as completed Jul 29, 2018
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

5 participants