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

WiFi Disconnect and Failed Reconnect #164

Closed
lbussy opened this issue Apr 13, 2023 · 3 comments · Fixed by #168
Closed

WiFi Disconnect and Failed Reconnect #164

lbussy opened this issue Apr 13, 2023 · 3 comments · Fixed by #168
Labels
bug Something isn't working upstream An issue with a dependency

Comments

@lbussy
Copy link
Owner

lbussy commented Apr 13, 2023

On occasion, the WiFi connection will disconnect and fail to reconnect:

[WiFi-event] event: 5
2023-04-12T14:17:46Z W: WiFi lost connection, reconnecting ..
[WiFi-event] event: 5
[WiFi-event] event: 4
[WiFi-event] event: 7
[WiFi-event] event: 1
[WiFi-event] event: 5
[WiFi-event] event: 4
[WiFi-event] event: 7
[WiFi-event] event: 1
[WiFi-event] event: 5
[WiFi-event] event: 4
[WiFi-event] event: 7
2023-04-12T14:18:03Z N: Reboot request - rebooting system.
[WiFi-event] event: 5
[WiFi-event] event: 3

This seems to be the same as Wifi connection fails - only works after router reboot #8412 in the ESP8266 core for Arduino, and is explained REALLY well in ESP32 STA deauth frame causing reconnect issues (IDFGH-6544) #8192. The tracing tablatronix did here almost mirrors what I saw.

So now, I get to find a more graceful way (e.g. a hack) to recover from this because even if the newer core is better, it exhibits quite a bit more instability.

Thankfully, this results in a controlled restart (under Keg cop control) so it's not horrible. The worst part of it is that the compressor lockout may cause a kegerator to be off while that timeout runs out.

@lbussy lbussy added bug Something isn't working upstream An issue with a dependency labels Apr 13, 2023
@thorrak
Copy link
Collaborator

thorrak commented Apr 13, 2023

Did you actually fire up wireshark and see the same deauth frame coming through? I ask, as that's something I was experiencing personally earlier, but have not been experiencing since more recent versions of esp-idf (via more recent Arduino framework releases) have been available

@lbussy
Copy link
Owner Author

lbussy commented Apr 13, 2023

I did, and of course I am using the older core.

@lbussy lbussy linked a pull request Apr 16, 2023 that will close this issue
@lbussy
Copy link
Owner Author

lbussy commented Apr 16, 2023

"Good enough" for now. There is a compile-time define for TRY_WIFI_RECONNECT in wifihandler.cpp if I want to try again. Right now it reboots on WiFi failure.

@lbussy lbussy closed this as completed Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream An issue with a dependency
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants