-
-
Notifications
You must be signed in to change notification settings - Fork 97
ems-esp is disabeling the internet interface (integrated / km200) #628
Comments
This problem rings a bell, think we've seen it before. Need to refresh my memory. |
In general I would recommend to implement a "waiting time / start delay" when restarting the wemos before scanning the bus (1-2 minutes). I had similar problems while restarting that my mm100 mixer went into error state (led blinking). There might be interferences with the controller ems-bus scan when restarting and the ems-esp interface when running same time. |
Is there a special reason why you use
This is a clock-module and maybe the KM200 tries to request a time from it. |
I started with standard 11 (service key) but had problems with mm100 module running into error state (led blinking) and errors displayed in RC310. With other id's this did not happen ... but I will test again with this new development version.
How shall I watch on hardware reset? |
By the way:
kills the ems-esp interface working (error state) and my Buderus heating is in error state and needs a hardware reset. |
So I tried different bus id's. Same behavior independent from the id: When ems-esp is connected while restarting heating (including bus scan) then km200 internet gateway is disabled. |
@tp1de what do you mean by "bus scan". Are you manually hitting the 'SCAN DEVICES" button in the web UI? Why? |
Just by instance in the web UI driven by curiosity while have ems-esp newly bought. |
same over here.
From time to time, I can not use the app connected to the gateway. kind regards, |
when EMS-ESP starts it sends one message to the UBAMaster (boiler on device ID 0x08) requesting a telegram which shows us which other devices have been registered on the EMS bus. Then for each device we send a Tx telegram asking it for more details (which is where we get the version number and product ID). We can try excluding the KM200 gateway from this batch of requests and see if that helps? |
I believe that we should try to exclude KM200 gateway (0x48) from batch request. I would like to test this. Actually the EMS-ESP looses connection to ems-bus every 3-4 days. Then the led on the mm100 (0x21) is blinking and a heating device failure is displayed on my RC310 Thermostat. Floorheating circuit (hc2) is not working anymore ! Sometimes while trying to reconnect to WEB-UI a reboot of the EMS-ESP device takes place. Seems to be a software stability problem. Could it be related to the mqtt interface to my mqtt server? A restart from WEB-UI does not solve the problem to reconnect ems-bus again. While disconnecting the hardware from service jack and then reconnecting, it works again. Should the restart option from WEB-UI not be the same as the hardware reset? (rebooting the device). While uploading the firmware again by WEB-UI the restart works fine as well (connected to ems bus). Just a restart does not be the same. Nevertheless the EMS-ESP should not stop my heating system (hc2) every 4-5 days. How could I help to debug? |
Hi, Situation:
Now I rebooted gateway: unplugged service jack, waited few seconds and plugged in again.
I will keep an eye on it for the next days. Kind regars |
Plugging and unplugging the service jack with the boiler live can short the EMS bus - may not be relevant to this problem but worth knowing. I did it once and it caused my thermostat to cold start, presumably because it lost power due to the short. Now I'll only connect and disconnect EMS-ESP with the boiler off (which also cold starts the thermostat, but at least it isn't shorting the bus out!) A quick short is probably OK and Bosch must have known this would happen with a 3.5mm jack plug but you might want to avoid it. |
To add some more findings:
I might believe that the scan of the ems-bus by the master controller (mc110) is disabling km200. Best regards |
@tp1de if you're comfortable with building the firmware from source we can try and few things out, like tracing the polls and blocking the bus scan on startup. One method is to compile with the -DEMSESP_DEBUG flag set and set logging to trace and use a syslog server to see what is happening. Or if you have an ESP32 it'll be about 10 times easier to debug. Let me know and I'll help |
@proddy since I am retired I am fine to spend quite some time for debugging and hopefully adding more functionality. I just need some help how to do the firmware building from source and how to do the debugging. The ESP8266 is new for me since I used Raspberry PI's or VM's before. I do have the BBQKees EMS-gateway with the wemos board (ESP8266) since 2 weeks because I came to limitations with the km200 interface for my homeautomation system (ioBroker). It is important for me to use both in parallel and to keep it longtime stable working. Just tell me what to do ... |
Only to analyse what's blocking, use a syslog server and connect ems-esp to this server with syslog-setting To build the firmware: https://emsesp.github.io/docs/#/Building-firmware To try a delay on startup for the ems-bus activity you can add in
|
I switched off my heating system. The EMS-ESP kept on running powered by USB. I tried to connect to km200 web interface - connection itself was succesfull but no data available and some error messages were shown. I then ended syslog-setting. But when trying to reconnect to EMS-ESP a reboot of the EMS-ESP gateway took place. When restarting the heating without EMS-ESP beeing powered up everything waorked fine. Connecting the gateway some 1-2 minutes later. Here is the syslog of the startup-procedure out of my synology diskstation syslog server: |
If you switch ems-esp to |
with tx_mode 0 km200 is working but: In dashboad recieved telegrams are shown - but no devices ! A hard reset does not work. |
Some new findings: The km200 internet gateway itself does not seems to be the problem. The gateway is accessible and data like boiler temp, pressure etc is provided. Just all data from heating circuits and ww circuit is not available. This data comes from RC310 thermostat. The communication between gateway (0x48) and thermostat (0x10) seems to be blocked. Going into the installers menu on the RC310 and starting a new configuration scan makes the km200 working again. |
Too many clients on the ems-bus? Bad bus-topologie? Just a guess. |
I don't believe .... just the boiler with master controller, mm100 mixer 1 m distance and rc300 Thermostat with 3-4 m cable distance. Too many telegrams per time send by the ems-esp gateway that blocked communication during startup? |
@bartplessers could you do a http://ems-esp/api?device=thermostat&cmd=info |
a TxMode of zero prevents any Tx traffic being sent out, and we need to send version requests to the Master to find out which devices are on the bus. This is why you'll see no devices. Are you able to compile the code yourself? If so I can suggest some lines to change to see what is causing the interference with the km200 gateway |
|
wow, that was quick (and fancy!). I'll create a new bug for this - don't think it has anything to do the km200. |
I kept EMS_BUS_TIMEOUT unchanged. And did the coding changes. IT IS WORKING AS EXPECTED ! After 30 secs EMS-Bus is disconnected when heating is powered off and any restart of the heating system and / or the gateway has a delay of 60 secs for tx telegrams Coding in emsesp.cpp is now from line 923 onwards: (correct?)
Are you adding this to the standard coding (new dev version)? Topic can be closed. |
I'll set an option to the setting page for a user defined delayed tx-start ( 0 - 120 sec) in beta after new release. @bartplessers and other KM200 owners: if you need a binary in advance, tell us. |
@tp1de thanks for your help and tests, i added a tx-delay-setting to b7 settings page. |
@MichaelDvP I may recommend to set initial tx delay to 60 secs in settings. |
for now, everything looks fine. CORRECTION:
So I'm in some kind of trouble here... |
"No EMS device found" will disappear after the tx-delay. Without tx the devices can not be found (only if device is sending it's version information). If you set a delay you have to be patiently. |
I am a little confused what you have done in what sequence. A reboot of ems-esp does not have any influence on km200 internet gateway. The gateway is blocked when the boiler restarts after beeing powered off and scans for devices and ems-esp sends tx telegrams during this time (within the first minute). The internet gateway needs about 5-7 minutes to send the data to the buderus server. |
Do you still have connected the ems-esp to the thermostat? I got similar messages when I connected to my mm100 mixer without usb power supply. The MM100 was in error mode (led blinking) and same message (just in German) |
YES try USB powering |
Is it worth trying the other EMS bus? I have an orange one (attached to the thermostat) and a white one (unused). Or are they internally connected to the same power supply? |
Additionally I got longterm stability problems with the wemos d1 mini board (esp8266) and bought an esp32 d1 mini board. |
@bartplessers: You have connected ems-esp to the orange connector as split connection with thermostat, there is another unused white bus-connector on the lower end, I think it's also worth trying that. |
try it but I had 2 as well and I used ems out which should be powered. It worked but not longterm. All of us should have some old usb adapters. |
Okay, new test:
findings
I will let it like this for few minutes/hours/days, but will keep an eye on it and keep you posted. regards, |
FYI:
hopefully error message will dissapear @tp1de
...what I did (it's a esp8266 board) Is the esp32 more powerfull? Are there somewhere instructions how to connect/flash/... that board with ems-esp? B |
I bought 4 weeks ago the same gateway and had system crashes while using web api and mqtt too heavily. So I bought on Amazon a new esp32 board for 9 Euro delivered next day #649 But look if you have similar problems |
Okay,
none of the above solutions worked perfectly. Most of the time, my thermostat went into an error mode. But now:
(1) with KM100 attached So my conclusion (for now :-) ) : If I can be of any help by debugging this issue, let me know. kind regards, PS. |
some update
(1) start boiler Compare to statistics at left side of green line! |
@bartplessers still running ok? |
@proddy If you want more analysis, I'm willing to uncouple usb-power again and do test again with latest firmware (running EMS-ESP v2.2.0 now) and powerd by EMS-bus. kind regards, |
ok, @tp1de I'm closing this issue now as looks like we have a workaround for the KM200. Let us know how you get on with the ESP32 version. |
@proddy my ESP32 Version is working 100% stable without any problems. The km200 problems were solved with the delayed start of tx telegrams. The stability problems with underpowered device are still existing when I go back to ems-bus powering other then service jack. USB powering is 100% stable and a good alternative. Anyhow it is an advantage for me if the ems-esp gateway stays alive when maintenance on the boiler is done ... |
thanks @tp1de . I'm working on a revised version of EMS-ESP that is optimized for the ESP-32 and hopefully can be powered via the EMS bus lines. It'll take some time though as it requires both software and hardware tweaking. |
When I connect to the ems-bus (by service jack) the km200 interface does not work anymore. So I can't access the heating system by App or Web-Interface anymore.
As far as I can recognize this happens when I restart the heating and the boiler / controller scans the bus for devices.
When the heating system is running and I connect on a running system, then everything is working fine and the km200 interface keeps running. At the end I want to connect hardwired to the ems-bus and when switching of for maintenance, the system including ems-esp should work stable. For the moment this is not secured. I feel that using the service jack address is bringing some problems as well. (....I am not sure...)
{
"System": {
"version": "2.1.0",
"uptime": "003+13:22:21.021",
"freemem": 44,
"fragmem": 5
},
"Settings": {
"enabled": "on",
"publish_time_boiler": 10,
"publish_time_thermostat": 10,
"publish_time_solar": 0,
"publish_time_mixer": 10,
"publish_time_other": 0,
"publish_time_sensor": 10,
"mqtt_format": 2,
"mqtt_qos": 0,
"mqtt_retain": "on",
"tx_mode": 2,
"ems_bus_id": 15,
"master_thermostat": 0,
"rx_gpio": 13,
"tx_gpio": 15,
"dallas_gpio": 14,
"dallas_parasite": "off",
"led_gpio": 2,
"hide_led": "off",
"api_enabled": "off",
"bool_format": 1,
"analog_enabled": "off"
},
"Status": {
"bus": "connected",
"bus protocol": "Buderus",
"#telegrams received": 926224,
"#read requests sent": 56359,
"#write requests sent": 0,
"#incomplete telegrams": 12,
"#tx fails": 3,
"rx line quality": 100,
"tx line quality": 99,
"#MQTT publish fails": 0,
"#dallas sensors": 0
},
"Devices": [
{
"type": "Boiler",
"name": "Buderus GB125/Logamatic MC110 (DeviceID:0x08 ProductID:133, Version:01.44)",
"handlers": "0x10 0x11 0x14 0x15 0x16 0x18 0x19 0x1A 0x1C 0x2A 0x33 0x34 0x35 0xD1 0xE3 0xE4 0xE5 0xE6 0xE9 0xEA"
},
{
"type": "Thermostat",
"name": "RC300/RC310/Moduline 3000/1010H/CW400/Sense II (DeviceID:0x10, ProductID:158, Version:18.03)",
"handlers": "0xA3 0x06 0xA2 0x2A5 0x2B9 0x2AF 0x2A6 0x2BA 0x2B0 0x2A7 0x2BB 0x2B1 0x2A8 0x2BC 0x2B2 0x2F5 0x31B 0x31D 0x31E 0x23A 0x267 0x240"
},
{
"type": "Mixer",
"name": "MM100 (DeviceID:0x21, ProductID:160, Version:24.05)",
"handlers": "0x2D8"
},
{
"type": "Gateway",
"name": "KM200/MB LAN 2 (DeviceID:0x48, ProductID:189, Version:04.07)",
"handlers": ""
},
{
"type": "Controller",
"name": null,
"handlers": ""
}
]
}
The text was updated successfully, but these errors were encountered: