john30 / ebusd-esp32

Firmware for ESP32-C3 allowing eBUS communication for ebusd (https://github.com/john30/ebusd)
https://adapter.ebusd.eu/v5
24 stars 1 forks source link

Wifi STA conection not restored after power failure #73

Closed wrongisthenewright closed 3 weeks ago

wrongisthenewright commented 1 month ago

In this days I had a couple of power failures at home (some botched electrical work I made) and in both instances the adapter powered on but didn't reconnect to the wifi router, even after 10s of minutes. The wifi settings were maintained but I needed to connect to the AP and reboot the adapter from the web GUI to triger a reconnect (no config changes were made). Can it be that the adapter came back online before the router SSID came back online? Are there any setting to force the reconnect after an initial failure?

john30 commented 4 weeks ago

I tried it and can't reproduce. would be helpful to get the adapter logs by using usb serial

wrongisthenewright commented 3 weeks ago

Hello, Hope it's the right log you're asking for. HW adapter shield 1.2.4(?), FW rel 20241008.

The adapter became available via AP feature but remained offline on STA. After a subsequent power cycle STA connection went smoothly.

screenlog-Failed.txt

john30 commented 3 weeks ago

ah, wasn't aware that you configured the AP in parallel. in this case there is no retry for connecting to the station at all (only once at the beginning), because having both active at the same time will degrade the signal level a lot. anyway, I'll remove that limit as it is intentional when someone configures both to be active

wrongisthenewright commented 3 weeks ago

OK, cleared the issue. To be honest I enabled the AP in parallel with STA when I moved the adapter in a position very near my router so I didn't notice connection problems. When the first power loss occurred I was happy to not needing to open the wiring box to power cycle the adapter, being able to do it remotely. I think that in some corner cases leaving AP and STA both active can be useful, you may prompt a warning somewhere if both feature are active at the same time. Many thanks

john30 commented 3 weeks ago

solved with 2024-10-27