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

Controller crash at wifi dropout #297

Open
laserranger3000 opened this issue Sep 7, 2024 · 8 comments
Open

Controller crash at wifi dropout #297

laserranger3000 opened this issue Sep 7, 2024 · 8 comments

Comments

@laserranger3000
Copy link

Hello,

I have just rebooted one of my wifi access points on which the BMS controller was connected to and immediately the controller has crashed and rebooted.
I heard the main relay click, that's how I noticed.
There's another access point with the same SSID and password nearby, so normally the controller should have just connected to that.
I don't know if the disconnection of the old AP or the connection to the new AP caused the crash.

Software: ESP32 2024-08-05

@stuartpittaway
Copy link
Owner

Hello, this is a commonly reported issue. Can I ask what WiFi access points do you use?

Are you using a mesh network?

@laserranger3000
Copy link
Author

I'm using two TP-Link Routers running OpenWRT (one Archer C7 AC1750 and one TL-WDR3600). They are connected manually with a 5 GHZ link while the ESP32 is connected to the 2,4GHZ network.
So it's no mesh network.

@stuartpittaway
Copy link
Owner

Ok, lots of people had problems with Fritzbox routers when running in mesh configuration.

At the moment I don't have a fix for the WiFi issue, I'm not sure if it's a problem with the esp32 itself (hardware) or something I've done in code - but I've spent weeks debugging that and it looks ok.

It also seems to be variable, for instance if I create a WiFi hotspot on my phone and connect diybms to that I can switch that WiFi on and off all day long without any reboot.

@laserranger3000
Copy link
Author

My two APs are sending on different channels (CH6 and CH11), maybe that could be a reason for the crashes?
I have never experienced this problem when the primary AP rebooted and the controller re-connected to the same AP again. So I guess a simple disconnection is not causing issues, only the re-connection to a different network.

Also, the DHCP server is the same in the whole network, so I would rule out any IP configuration issues.

@jetronic18s
Copy link

@laserranger3000
A new firmware with the WiFi fix has just been released. Hopefully, fingers crossed!

@stuartpittaway
Copy link
Owner

@laserranger3000 A new firmware with the WiFi fix has just been released. Hopefully, fingers crossed!

How has the testing gone @laserranger3000 ?

@laserranger3000
Copy link
Author

@stuartpittaway:
I have installed Release-2025-01-02-15-31 today.
I could not recreate the issue anymore, so I think it's fixed.

@buddhafragt
Copy link

buddhafragt commented Jan 19, 2025

Why we dont use a ESP with ethernet and add supoport for this module? So no more problems with wifi, installation issues etc.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants