tobiasfaust / SolaxModbusGateway

Modbus RTU to MQTT Gateway
GNU General Public License v3.0
54 stars 17 forks source link

autoconenct wifi after router reboot #21

Closed Coolj1 closed 1 year ago

Coolj1 commented 1 year ago

hi tobias, this software works great, except for the case when i reboot my router, the wifi doesn't reconnect automatically... is there a solution?

thanks a lot Mit freundlichen Grüßen Hans

DJFS commented 1 year ago

Hallo,

ich habe leider das Problem das sich irgendwas immer aufhängt und ich manchmal 2mal täglich, selten mal alle 2 Tage des ESP32 Neu starten muss. :( .

tobiasfaust commented 1 year ago

Hi @Coolj1 Can you confirm the fix?

kommando828 commented 1 year ago

I have been getting the same issue and never got more than 36 hours before a reboot was needed for it reappear on the network, loaded the new code and its at 16 hrs uptime. Will update in 2 days.

DJFS commented 1 year ago

Gibt es hierzu ein neues Update?

kommando828 commented 1 year ago

Is there a new update for this?

https://github.com/tobiasfaust/SolaxModbusGateway/commit/dc3243aef3d89f5c2d4f1d8197dbf8c04f7946ad

tobiasfaust commented 1 year ago

That commit makes the esp more robust and fixes the automatic reconnect to wifi if wifi was broken suddenly

DJFS commented 1 year ago

Wo ist dieser Update datei? image

Coolj1 commented 1 year ago

hallo Tobias, in der Version 3.11 funktioniert oben in der Config der Link Item Config nicht mehr, und es werden auch keine Einheiten mehr hinter den Werten in LiveData angezeigt.

autoconnect wifi scheint zu funtionieren!

danke Gruß Hans

DJFS commented 1 year ago

@cool1 , wie hast du denn das update gemacht?

Coolj1 commented 1 year ago

@tobiasfaust , compiliert und dann mit der Update-Funktion die firmware.bin hochgeladen. ich hab auch einen anderen Esp32 direkt über PlatformIO programmiert, der zeigt das gleiche Phänomen.

o.k. hab gerade herausgefunden, wenn ich auf den Inverter Solax-X3 umschalte, komme ich nicht mehr auf die item config Seite!

tobiasfaust commented 1 year ago

@tobiasfaust , compiliert und dann mit der Update-Funktion die firmware.bin hochgeladen. ich hab auch einen anderen Esp32 direkt über PlatformIO programmiert, der zeigt das gleiche Phänomen.

o.k. hab gerade herausgefunden, wenn ich auf den Inverter Solax-X3 umschalte, komme ich nicht mehr auf die item config Seite!

Fehler gefunden, dauert aber ein paar Tage die Lösung zu finden. Es gibt bei großen Register Definitionen einen Speicherüberlauf und der ESP rebootet.

kommando828 commented 1 year ago

If you change to the X3 the Uptime counter also clears back to Zero which fits in with a memory overflow, changing back to MIC and the counter does not clear.

kommando828 commented 1 year ago

Went to move the ESP32 after 3 days success of stable Wifi and reset Wifi before going outside to reconnect to the outside AP near to inverter. AP_Solax now requires a password instead of going straight to setup page, default password 123456789 is not working.

tobiasfaust commented 1 year ago

Sorry, Password is

MbMQTTGtw

i have to insert this in Wiki asap….

kommando828 commented 1 year ago

Thanks, that works ;)

In middle of downpour so when it stops I will go back outside and check the Modbus is still working with the X1 Boost version of MIC.

kommando828 commented 1 year ago

Test confirms Modbus is still working for X1-boost using truncated MIC poll.

tobiasfaust commented 1 year ago

@tobiasfaust , compiliert und dann mit der Update-Funktion die firmware.bin hochgeladen. ich hab auch einen anderen Esp32 direkt über PlatformIO programmiert, der zeigt das gleiche Phänomen.

o.k. hab gerade herausgefunden, wenn ich auf den Inverter Solax-X3 umschalte, komme ich nicht mehr auf die item config Seite!

geht in #22 weiter