Hello, long time listener, first time caller.
I have what looks like an intermittent fault with the mBus to USB convertor from the OpenEnergyMonitor shop. I hope someone might be able to help with. (M-Bus to USB Converter | HeatPump Monitoring - Shop | OpenEnergyMonitor)
I’m running an emonPi with the 2022 emonSD. The heat meter is an Ista Ultego III (Landyrs+gyr in disguise). Wiring is to M- and M+ and connected back to USB. I’ve updated the EmonHub config to:
[[MBUS]]
Type = EmonHubMBUSInterfacer
[[[init_settings]]]
device = /dev/ttyUSB0
baud = 2400
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
read_interval = 10
validate_checksum = False
nodename = MBUS
[[[[meters]]]]
[[[[[heatmeter]]]]]
address = 1
type = standard
pages = 1
Most of the time I get the following error.
023-10-29 19:46:00,041 DEBUG MBUS Connecting to MBUS serial: /dev/ttyUSB0 2400
2023-10-29 19:46:00,042 ERROR MBUS Could not connect to MBUS serial
2023-10-29 19:46:00,043 ERROR MBUS Could not write to MBUS serial port
2023-10-29 19:46:00,043 ERROR MBUS read_data_frame could not read from serial port
2023-10-29 19:46:00,044 DEBUG MBUS Invalid MBUS data received 0 bytes 0.5 ms
2023-10-29 19:46:00,245 ERROR MBUS Could not write to MBUS serial port
2023-10-29 19:46:00,246 ERROR MBUS read_data_frame could not read from serial port
2023-10-29 19:46:00,246 DEBUG MBUS Invalid MBUS data received 0 bytes 0.5 ms
2023-10-29 19:46:00,447 DEBUG MBUS Decoded MBUS data: None
Most of the time I have a solid red light closest to the USB connector. But sometimes with a bit of cable movement (or possible wishful thinking) I get the second red light closer to the mBus connectors coming on. When I do, then I get the following.
2023-10-29 19:46:10,070 DEBUG MBUS Connecting to MBUS serial: /dev/ttyUSB0 2400
2023-10-29 19:46:11,215 DEBUG MBUS Invalid MBUS data received 231 bytes 1138.7 ms
2023-10-29 19:46:11,222 DEBUG MBUS Decoded MBUS data: {"Record1": [4, ""], "Record2": [8, ""], "Energy": [1098, "kWh"], "Volume": [347.27, "m3"], "Power": [0, "W"], "FlowRate": [-0.002, "m3/h"], "FlowT": [23.8, "C"], "ReturnT": [15.8, "C"], "DeltaT": [8.0, "C"], "FabNo": [69356458, ""], "Record11": [7, ""], "Ontime Hours_error": [0, "h"], "Ontime Hours": [51989, "h"], "Record14": [566, ""], "Energy2": [0, "kWh"], "Power_Max": [0, "W"], "FlowRate_Max": [0.0, "m3/h"], "FlowT_Max": [39.400000000000006, "C"], "ReturnT_Max": [29.700000000000003, "C"], "Record_Max": [0, ""], "Record_Max2": [0, ""], "Record_Max3": [721228331, ""], "Record_Max4": [721228331, ""], "Energy3": [0, "kWh"], "Volume2": [0.0, "m3"], "Ontime Hours_error2": [44745, "h"], "Record27": [0, ""], "Energy4": [0, "kWh"], "Power_Max2": [0, "W"], "FlowRate_Max2": [0.0, "m3/h"], "FlowT_Max2": [30.400000000000002, "C"], "ReturnT_Max2": [49.6, "C"], "DateTime": [-50391237, ""], "DateTime2": [721228838, ""], "heat_calc": [-18.444444444444443, "W"]}
2023-10-29 19:46:11,223 DEBUG MBUS 76 NEW FRAME :
2023-10-29 19:46:11,224 DEBUG MBUS 76 Timestamp : 1698608770.076363
2023-10-29 19:46:11,225 DEBUG MBUS 76 From Node : MBUS
2023-10-29 19:46:11,225 DEBUG MBUS 76 Values : [4, 8, 1098, 347.27, 0, -0.002, 23.8, 15.8, 8, 69356458, 7, 0, 51989, 566, 0, 0, 0, 39.400000000000006, 29.700000000000003, 0, 0, 721228331, 721228331, 0, 0, 44745, 0, 0, 0, 0, 30.400000000000002, 49.6, -50391237, 721228838, -18.444444444444443]
2023-10-29 19:46:11,226 DEBUG MBUS 76 Sent to channel(start)' : ToEmonCMS
2023-10-29 19:46:11,227 DEBUG MBUS 76 Sent to channel(end)' : ToEmonCMS
Happy days! The mbus fields and values appear in the inputs.
But then the red light goes out and we are back to error after error.
Starting to lose the plot a bit. Is this me, the meter, a missing config somewhere or have a got a dodgy connection?
Have I missed some important information, then please let me know.
Thanks in advance.
Andy