-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
ESP32 does not reconnect to Wifi #2400
Comments
I have same issue.
|
You are right. at least the setting of |
@tbnobody I think @LPG-PG is right, we maybe somehow using the wrong signature for the The actual The issue seems to be in the „new credentials… “ code path of the OpenDTU/src/NetworkSettings.cpp Lines 279 to 298 in 3dc70ab
If this is the case/cause somehow that code path gets active after 2-5 days for some yet unknown reason, but it should eventually show up in the logging. |
I haven't tried it yet. |
same here for me. Really anoying when you're away from the DTU... Hope it gets fixed ! |
Ich habe vor 2 Wochen von der 24.5.6 auf 24.11.7 upgedatet. I updated from 24.5.6 to 24.11.7 2 weeks ago. |
Guten Tag, |
habe mit v25.1.14 seit Mittowch keine Abbrüche mehr. |
I have upgraded to 25.1.14 yesterday and today OpenDTU doesn't connect to Wifi anymore. No changes otherwise, in particular I haven't moved the device or anyting. |
actually after almost a week running without any issue I got same error yesterday evening again. |
I think they must have changed something on the wifi stack - or maybe wireless transmission power? The OpenDTU device is located in the basement. No wifi connection problems whatsoever since more than a year now. With the new firmware it didn't connect. I now brought it upstairs, closer to an AP and it connects without problems. Back in the basement it also connects now for some reason. |
Guten Morgen, Good morning, |
My last working version is also v24.6.29.
|
I changed the ESP32 Module and flashed the v25.2.3. I think a big part of my problem was probably caused by the ESP module itself. |
Have you turned off your WLAN AP(s) to check what happens when OpenDTU gets disconnected? |
Same observation here. Like @Heiko-L said, the ESP32 stalls if Wifi is lost. Happened last time when my Ubiquiti gear performed an update and switched off the APs for about 30sec. Maybe a watchdog or simple reboot if there's no connection for a period of time would do the trick? |
I did some tests today. After turning the AP off and on again, the ESP module reconnected to the WiFi. I also tried using a Mash WiFi to turn off individual APs and all APs at the same time. The tests were repeated several times with the same result. I use Mikrotik devices. |
What happened?
After an indefinite period of time, the ESP32 module loses the connection to the WiFi. No new DHCP lease is obtained, so neither web, API, MQTT nor ping works.
To Reproduce Bug
It happens ramdomly between 1 and 5 days
Expected Behavior
OpenDTU has to be reboot to fix it temporary
Install Method
Pre-Compiled binary from GitHub releases
What git-hash/version of OpenDTU?
v24.10.15
What firmware variant (PIO Environment) are you using?
generic_esp32
Relevant log/trace output
No response
Anything else?
I checked some parts of the code and I'm not sure, if there is a bug in NetworkSettings.cpp -> NetworkSettingsClass::applyConfig()
line 288ff
I mean, that Wifi.begin is called with Channel 1 because the enum WIFI_ALL_CHANNEL_SCAN value is 1.
The declaration of the called function is:
So the third paramter is the channel, which is in this case 1.
Please confirm the following
The text was updated successfully, but these errors were encountered: