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

EMS-ESP32 restarting #244

Closed
maciejka104 opened this issue Dec 14, 2021 · 20 comments
Closed

EMS-ESP32 restarting #244

maciejka104 opened this issue Dec 14, 2021 · 20 comments
Labels
help wanted Extra attention is needed

Comments

@maciejka104
Copy link

My device running v3.3.1b0 firmware is restarting/rebooting by itself.
EMS connected to Junkers cerapur.
Approximately every 4-6 hours is restarting. Max uptime is 10 hrs.
Anything I could check in the settings?
I did reset to factory settings and configured minimum – basically MQTT (connected to HA) and EMS Bus (HT3).
What could be a problem?

@proddy
Copy link
Contributor

proddy commented Dec 14, 2021

wow, that could be anything. Did you build the circuit yourself? Does it crash if you disable the MQTT? Try and pinpoint which service is crashing. Use the syslog to capture the logs which may hint to something weird happening. Also let us know what your config is

@proddy proddy added the help wanted Extra attention is needed label Dec 14, 2021
@maciejka104
Copy link
Author

It is bbqkees circuit.
Will check MQTT - thanks for pointing me somewhere …. ;)

@bbqkees
Copy link
Contributor

bbqkees commented Dec 15, 2021

@maciejka104 had a Premium II which we upgraded with an ESP32.
Both the old and the new board have the same rebooting issue, even when powered via USB without EMS connected so I basically ruled out a hardware issue at this point. Perhaps a fringe case with his setup that freaks out EMS-ESP.

@proddy
Copy link
Contributor

proddy commented Dec 15, 2021

Thanks. I think it is software related, most likely a null pointer/buffer overflow problem. The arduino core is very sensitive to those.

@proddy
Copy link
Contributor

proddy commented Dec 21, 2021

any update @maciejka104 ?

@maciejka104
Copy link
Author

I have disabled MQTT for a couple of days.
Basically still the same, up time - up to 20 h
Tested on v3.3.0 and v3.3.1b1

@proddy
Copy link
Contributor

proddy commented Dec 23, 2021

These are the worst type of bug. It's like looking for a needle in a haystack. All I can recommend at this point is 1) check the System Log for the restart reason (it'll be the first line) and 2) setup a Syslog server and capture the logs just before it crashes.

@glitter-ball
Copy link

Do you have a Dallas sensor connected? If so, is the data coming back from this always OK? I found weird Dallas values and restarts went together on my system. That was down to power issues in my case but it might help narrow things down for you too.

@maciejka104
Copy link
Author

No Dallas sensor.
Just junkers boiler.

@proddy
Copy link
Contributor

proddy commented Dec 25, 2021

@maciejka104
Copy link
Author

I have checked syslog server today and it was empty (qnap).
Checked EMS-ESP configuration and then I noticed that I have set up EMS-ESP IP as syslog server IP :/
Silly me 😊
Corrected it and let’s wait for the result.

@proddy
Copy link
Contributor

proddy commented Dec 29, 2021

fingers crossed!

@maciejka104
Copy link
Author

So … correcting syslog's IP didn't help :/
Few min ago it has restarted
Here is part of the logs https://pastebin.com/DrBGUFw1
Take a look at 2021-12-30T10:47:16 and on
Last log was:
ems-esp telegram - - - telegram- 000+05:14:01.597 D 55449: Sending read Tx [#124], telegram: 8B 90 FF 00 20 00 65
Any ideas?
If you need I have a logs for a few days.
For the records
Below uptime taken from HA

obraz

@proddy
Copy link
Contributor

proddy commented Dec 30, 2021

so restarts every 3 hrs with MQTT enabled, and with MQTT disabled it crashes after 20hrs? Wifi has a strong signal and the ESP32 is powered by a steady 5V supply?

@maciejka104
Copy link
Author

Power: 5V power supply - yes, I have tested few PS.
WIFI: based on HA info: WIFI strength 50-70%, WIFI RSSI: 71 dBm. In general I have good wifi coverage (cisco).
MQTT: looks like you said - disabling mqtt extends the time between reboots but it still reboots.

@proddy
Copy link
Contributor

proddy commented Jan 8, 2022

and if you disconnect from the EMS bus and run it standalone (with MQTT) does it still reboot every few hours?

@maciejka104
Copy link
Author

I think problem is solved.

  1. I have uploaded firmware to v3.3.0 (same as old one)
  2. Reboot/Restart
  3. Factory reset
  4. Configured Boiler settings, MQTT, syslog
  5. Reboot/Restart

Device is up for 3 days now :)

@proddy
Copy link
Contributor

proddy commented Jan 12, 2022

great! but still weird what it was failing before

@maciejka104
Copy link
Author

I really think key action was factory reset and / or re flash same firmware.
Before doing that I have tested connection to boiler, checked power supply and it did not help.

@proddy
Copy link
Contributor

proddy commented Jan 12, 2022

ok, I'll make a note of this in the doc and close this issue. thanks for getting back to us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants