-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
wifi connected but not pingable - wifi instable #3341
Comments
Can you please update to the latest build (or one older)? |
will do |
btw which FW version would you consider as stable concerning best wifi stability? |
This timer issue was fixed in the last 2 nightly builds. The sad thing is that I changed the WiFi internal timers (which introduced the bug you're seeing) to fix a bug occuring after ~25 day of WiFi connection without a reconnect. |
Hi tried new FM from 1022 Serial port COM12 is this correct response flashing 4b bank? all should be erased, right after flashing it again it looks better. from your experience, what is the average uptime of the ESP Easy FW. Thanks T flashing again with latest firmware |
Well most of my units only reboot due to flashing new versions or power outages. (highest uptime before power outage 2 weeks ago was about 155 days) I'm working on the WiFi part to at least make ESP32 and ESP8266 share more code and one thing I found that was clearly funky... |
ok thanks Wifi stability is very important. having a lot of disconnects and try to track it down . |
Just a few hints to try:
|
Regarding reliable connections, I noticed the RSSI was -83dBm during the disconnect seen in your log. That RF strength is a bit marginal and could invite random disconnects/reconnects.
|
I'm faced to the same issue I guess, here are the results of my tests. I'm sure it's not the power supply, see first test. Hardware: ESP-01S 1Mb RAM Wifi: 802.11N (RSSI -71 dB) WiFi Settings Controller: Domoticz MQTT Devices: Issue01: To support debugging I did some tests. Test 1: on Clock#Time=All,**:20 do //will run every hour 20 mins after full hour on Clock#Time=All,: do //will run every minute Result: I get a message by MQTT to my domoticz server every minute and every hour the esp is rebooted. 2020-11-13 09:23:00 ESP_Easy_RFID_Garage alive! 2020-11-13 09:23:00 Admin The connection is alway stable, never stuck. We can eliminate instable power supply as the reason for no response of esp. Test 2: on Clock#Time=All,: do //will run every minute Only the message to MQTT server every minute. I guess that will be enough. It's like a "stay alive ping" on wifi/web or what ever. 2020-11-13 12:38:00 ESP_Easy_RFID_Garage alive! 2020-11-13 12:38:00 MQTT But I was wrong after less than 3 hours esp was hanging again. No reaction any longer. Test 3: o on Clock#Time=All,: do //will run every minute Check whether the count of "Stay alive pings" per period has a significant influence to the hang up time. Started at 13:48 2020-11-13 15:04:00 ESP_Easy_RFID_Garage alive! 2020-11-13 15:04:00 MQTT I assume that the period of MQQT connections has no significant influence to the hang up. |
Please try to format (new) posts a bit to help structure all the information. Things you can try:
Please have a look at the timing stats page to see if something takes quite a long time to process. |
I have to report I have the same problem with a certain type of ESP8266: "NodeM" made by RobotDyn: https://robotdyn.com/wifi-nodem-esp8266-cp2102.html As an AP it works: I can conect to it and set the correct wifi password.
I have three other ESP's on the same AP: Wemos D1 mini, Adafruit Huzzah Feather and a custom model with custom firmware. |
I did some further reasearch and flashed the latest tasmota.bin. Wifi workf flawlessly in AP- and Client-mode with that firmware. I'm not sure if that helps, or if the Wifi-implementations differ completely. |
I know Tasmota does do the WiFi completely different from ESPEasy, but I can have a look to see what SDK they use (the "alt-wifi" builds of ESPEasy) |
Would it help if I sent you one of my modules (they're useless now anyway)? Maybe that helps you debugging the issue. |
Not sure if it will be helpful, as I often see those instabilities are caused by a combination of several things like the used access point, other WiFi networks in the neighborhood and used power supplies. |
Should be fixed by this PR: Please let me know if it is indeed fixed now... finally |
A little late, but: yes, this fixes the issues I had with the ESP8266: "NodeM" made by RobotDyn! |
Checklist
I have...
ESP_Easy_mega-20181001_test_ESP8266_4096_VCC.bin
)Steps already tried...
.bin
files are included in the ZIP)If you self compile, please state this and PLEASE try to ONLY REPORT ISSUES WITH OFFICIAL BUILDS!
Summarize of the problem/feature request
no ping no http response even connected to AP
Expected behavior
connect to wifi - status connected and pingable -webserver coming up
ping response
Actual behavior
no ping response
no connection via http
Steps to reproduce
yes
rebooted
restarted
repowered
System configuration
Hardware: nodeMCU Amica
ESP Easy version:
ESP Easy settings/screenshots:
Rules or log data
logging on router dhcp server:
WLAN-Gerät angemeldet (2,4 GHz), 72 Mbit/s, ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
26.10.20
07:45:39
WLAN-Gerät hat sich abgemeldet (2,4 GHz), ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
26.10.20
07:45:22
WLAN-Gerät angemeldet (2,4 GHz), 72 Mbit/s, ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
26.10.20
07:45:22
WLAN-Gerät hat sich abgemeldet (2,4 GHz), ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
26.10.20
07:45:10
WLAN-Gerät angemeldet (2,4 GHz), 72 Mbit/s, ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
26.10.20
07:45:07
WLAN-Gerät hat sich abgemeldet (2,4 GHz), ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
26.10.20
07:45:07
WLAN-Gerät angemeldet (2,4 GHz), 72 Mbit/s, ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
26.10.20
07:45:07
WLAN-Gerät hat sich abgemeldet (2,4 GHz), ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
26.10.20
07:41:54
WLAN-Gerät angemeldet (2,4 GHz), 72 Mbit/s, ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
26.10.20
07:41:50
WLAN-Anmeldung ist gescheitert (2,4 GHz): Authentifizierungsfehler. MAC-Adresse: CC:50:E3:4A:51:3F.
26.10.20
07:41:47
WLAN-Gerät wurde abgemeldet (2,4 GHz), ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F. [2 Meldungen seit 26.10.20 07:41:40]
26.10.20
07:41:33
WLAN-Gerät hat sich abgemeldet (2,4 GHz), ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
26.10.20
07:41:17
WLAN-Gerät angemeldet (2,4 GHz), 72 Mbit/s, ESP-KSW-Easy, IP 192.168.1.143, MAC CC:50:E3:4A:51:3F.
more serial LOG Issues:
07:44:46.508 -> 224697 : Info : firstLoopConnectionsEstablished
07:44:54.570 -> 232765 : Info : WIFI : Disconnected! Reason: '(200) Beacon timeout' Connected for 2 m 53 s
07:44:57.608 -> 235786 : Info : Reset WiFi.
07:44:57.608 -> 235788 : Info : WIFI : Set WiFi to OFF
07:44:58.601 -> 236801 : Info : WIFI : WiFiConnected() out of sync: DISCONNECTED RSSI: -83 status: STATION_CONNECTING
07:44:58.601 -> 236813 : Info : AP Mode: Client disconnected: 74:DA:38:00:53:18 Connected devices: 0
07:44:58.721 -> 236918 : Info : WIFI : Set WiFi to STA
07:44:58.838 -> 237021 : Info : WIFI : Connecting TR_ESPFB31 attempt #8
07:44:58.944 -> 237125 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 3 m 55 s
07:45:01.936 -> 240157 : Info : WIFI : Connected! AP: TR_ESPFB31 (38:10:D5:89:A4:20) Ch: 6 Duration: 3123 ms
07:45:01.983 -> 240191 : Info : WIFI : DHCP IP: 192.168.1.143 (ESP-KSW-Easy) GW: 192.168.0.31 SN: 255.255.240.0 duration: 44 ms
07:45:05.846 -> 244039 : Info : WD : Uptime 4 ConnectFailures 0 FreeMem 23200 WiFiStatus WL_CONNECTED
07:45:10.519 -> 248739 : Info : WIFI : Disconnected! Reason: '(200) Beacon timeout' Connected for 8492 ms
07:45:10.652 -> 248756 : Info : WIFI : Connecting TR_ESPFB31 attempt #9
07:45:13.694 -> 251912 : Info : WIFI : Connected! AP: TR_ESPFB31 (38:10:D5:89:A4:20) Ch: 6 Duration: 3135 ms
more assoc errors.
07:41:04.608 -> 2730 : Info : WIFI : Scan finished, found: 14
07:41:04.608 -> 2731 : Info : WIFI : Selected: TR_ESPFB31 38:10:D5:89:A4:20 Ch:6 (-90dBm) WPA2/PSK
07:41:05.872 -> 4056 : Info : WD : Uptime 0 ConnectFailures 0 FreeMem 24552 WiFiStatus WL_DISCONNECTED
07:41:07.656 -> 5847 : Info : WIFI : Connected! AP: TR_ESPFB31 (38:10:D5:89:A4:20) Ch: 6 Duration: 3141 ms
07:41:14.522 -> 12709 : Info : WIFI : Connecting TR_ESPFB31 attempt #2
07:41:24.601 -> 22820 : Info : WIFI : Set WiFi to AP+STA
07:41:25.635 -> 23811 : Info : WIFI : AP Mode ssid will be ESP-KSW-Easy with address 192.168.4.1
07:41:25.635 -> 23815 : Info : WIFI : Connecting TR_ESPFB31 attempt #3
07:41:26.551 -> 24762 : Info : WIFI : Disconnected! Reason: '(8) Assoc leave' Connected for 10 s
07:41:27.684 -> 25887 : Info : WIFI : Disconnected! Reason: '(4) Assoc expire' Connected for 1955 ms
07:41:27.684 -> 25904 : Info : WIFI : Connecting TR_ESPFB31 attempt #4
07:41:33.915 -> 32129 : Info : WIFI : Connected! AP: TR_ESPFB31 (38:10:D5:89:A4:20) Ch: 6 Duration: 6212 ms
07:41:35.860 -> 34066 : Info : WD : Uptime 1 ConnectFailures 0 FreeMem 21440 WiFiStatus WL_DISCONNECTED
07:41:38.018 -> 36223 : Info : WIFI : Disconnected! Reason: '(2) Auth expire' Connected for 3998 ms
07:41:38.018 -> 36240 : Info : WIFI : Connecting TR_ESPFB31 attempt #5
07:41:41.219 -> 39434 : Info : WIFI : Disconnected! Reason: '(202) Auth fail' Connected for 3085 ms
07:41:41.267 -> 39451 : Info : WIFI : Connecting TR_ESPFB31 attempt #6
07:41:44.384 -> 42582 : Info : WIFI : Connected! AP: TR_ESPFB31 (38:10:D5:89:A4:20) Ch: 6 Duration: 3117 ms
07:42:01.275 -> 59465 : Info : WIFI : Connecting TR_ESPFB31 attempt #7
The text was updated successfully, but these errors were encountered: