john30 / ebusd-esp

Firmware for ESP8266 allowing eBUS communication for ebusd (https://github.com/john30/ebusd)
150 stars 21 forks source link

ebusd-esp does not reconnect to wifi #15

Closed SebastianCornea closed 5 years ago

SebastianCornea commented 5 years ago

HI John,

I noticed random crashes of ebusd-esp. So far one that I can reproduce is when I restart the wifi access point or wifi is down for any reason and then back again, ebusd-esp will not reconnect to wifi or at least it's web config page is no longer available. Could be related to https://github.com/esp8266/Arduino/issues/4445 . I'm using the latest build 20181125.

SebastianCornea commented 5 years ago

Update: it actually reconnects to wifi just that it uses DHCP instead of preset IP address so it will listen on a different IP. If I reboot it from the web interface it will connect again correctly using the preset IP.

john30 commented 5 years ago

do you have a power supply with enough amps? i know that Wemos is pretty unstable when the power supply is not good enough

SebastianCornea commented 5 years ago

Yes, more than it actually uses, as I can reproduce the issue by resenting the router I believe is not power related. For now I fixed the issue by setting a permanent IP address given in DHCP for the wemos MAC. The behavior is like it is forgetting all the settings as I noticed that the host name also resets to default.

john30 commented 5 years ago

not confirmed yet, thus reopening

john30 commented 5 years ago

can you check with latest bin?

SebastianCornea commented 5 years ago

updated the firmware and disabled the DHCP fix. I couldn't reproduce the issue yet and I will keep it under observation for a while.

john30 commented 5 years ago

great. I've just updated the binary again using the latest SoftwareSerial release which might also affect the behaviour in case other connectors than RX/TX are being used

SebastianCornea commented 5 years ago

So far the new version seems stable, no more wifi reconnect issues.

john30 commented 5 years ago

good to know

mozzarelka commented 5 years ago

@john30, Thanks for update, so far no more connection issues. Less communication errors during normal work also.