-
Notifications
You must be signed in to change notification settings - Fork 638
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 ceases to function #1903
Comments
From a week ago - #1877 - maybe this could help in any way? But I'd think arping from some other device would do the same thing #614 / esp8266/Arduino#2330 is a pretty large collection of all connectivity problems. 2 solutions stand out though, garp and icmp pings from the device. Garp is enabled via the PR above. ICMP is here: edit1: And could you try running |
Also see esp8266/Arduino#6484, as just mentioned in the upstream issue. |
Hi, |
If you change Arduino Core version here: Line 32 in cf3bd49
to ${common.arduino_core_git}, I suggest to run the set wifiGarpIntvl 0 in the terminal (and then reload the settings or reboot the device), because the issue is presumably fixed and the workaround is no longer required.
|
An update, Once the device got "disconnected", according to the wifi info the device still believed to be connected. Unfortunately attempting to wifi.reset caused a crash of the device, but it could have been me casting the wifi command while it was still setting things up again. I am waiting for next disconnection to further analyze other aspects like arp tables, response to manual arp on the other side and so on, once I have enough for an analysis I will post it here. After capturing that I will give a try to current -dev as I seem to understand that it may solve ? erase config: all the tests I did I erased completely the nvram from command line before flashing, to be sure not to inherit garbage from old configs |
However, what make me most curious is that the s20 are working perfectly on 1.12.6 and were disconnecting often after just few hours with 1.13.3 and 1.13.6-dev. I bet that if I had 1.12.6 on shellies they would stay connected too (but they have been integrated later so we cannot test that) |
Thank you! The way I understood the problem solved by Core GIT and GARP workaround, is that it would stay on the wifi, but IP address will no longer be assigned. Decoded stack dump would probably show something about IP manipulation or anything related to displaying things. As to why, versions >=1.13.0 upgrade to JustWifi v2: https://github.com/xoseperez/justwifi |
Hello, |
Hi, I am back after trying with firmware based on more recent deb4657 as suggested. The build from the new commit point deb4657 didn't bring any improvement nor in the bridge nor in the shelly(s). However, I have been able to gather a full log from reset to after connection loss (next comment is the log, shortened to keep the relevant items). I have also assessed the following behaviors after connection loss:
|
Device log from reset to connection loss to attempt to reset wifi (taken from a sonoff bridge)
|
Have you tried running with Crash log looks weird, because it stays entirely in the SDK part. Recent Core supposedly fixed some interactions with SDK related to the interrupt handling, which caused a lot of crashes / random resets / seemingly random issues related to WiFi state management. I would try that first, but then we should probably find some faster way to crash instead of waiting for an hour (...aluminium foil?) |
And a small note regarding networks where AP have the same SSID.
edit: properly built, but without justwifi prints as shown above xoseperez/justwifi@master...mcspr:mocked |
Regarding Tenda MW6 problem @remygiraud @wildwiz please try out the ESPAsyncTCP library change I suggested (mcspr@de8c8e7#diff-25ef070b6156fdfa35dd363916f0f98aL109) if you have a lot of devices on the same LAN |
Access points are Mikrotik HAP AC running RouterOS v6.45.2 |
Bug description
WIFI ceases to function.
The device no longer responds to ICMP pings, ARP resolution, nor shows as associated anymore from the AP perspective.
However, the WIFI LED of the device (on devices having it) continues to blink slowly at the proper rate as if it were properly connected to the configured AP, does not blink as self AP mode.
The correlation between last DHCP renewals and connection loss doesn't seem relevant (several hours most cases)
The device local functions continue to operate, i.e. it responds to button presses, switches relay, operates timers if configured.
Double click to switch to AP mode produces no effect (i.e. the device does publish the AP beacon, didn't check the let blinking tho)
However, long click to reset the device restores normal operations (for how long it lasts)
Uptime from reset to WIFI loss in the range from several hours to few days.
Steps to reproduce
Happens erratically
Device information
Firmware information
Firmwares showing the issue
1.13.3 to 1.13.6-dev
Sonoff S20 reverted to 1.12.6 work fine
Additional context
WIFI is served by two MikroTik APs sharing the SSID and backing up each other,
Signal for all devices is in decent range (RSSI above -80)
The text was updated successfully, but these errors were encountered: