Hi Guys,
I’ve just setup a new emoncms instance on a RPI to log data from my MBUS adapter and am getting errors about invalid MBUS data in the logs. It was built from the latest SD card image plus latest updates. Both are running 11.6.4 low-write version.
Config is as below and is copied from my original emoncms instance where it is working fine.
If I switch the MBUS USB adapter back to the original emoncms RPI it works fine again.
Any ideas what I’m missing?
Thank you.
[[MBUS]]
Type = EmonHubMBUSInterfacer
[[[init_settings]]]
device = /dev/ttyUSB0
baud = 2400
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
read_interval = 10
validate_checksum = False
nodename = MBUS
[[[[meters]]]]
[[[[[heatmeter]]]]]
address = 28
type = kamstrup403
From the logs;
2024-09-05 14:58:00,640 ERROR MBUS read_data_frame could not read from serial port
2024-09-05 14:58:00,640 DEBUG MBUS Invalid MBUS data received 0 bytes 0.5 ms, count: 8
2024-09-05 14:58:00,841 DEBUG MBUS Decoded MBUS data: None
2024-09-05 14:58:10,050 DEBUG MBUS Connecting to MBUS serial: /dev/ttyUSB0 2400
2024-09-05 14:58:12,078 DEBUG MBUS Invalid MBUS data received 176 bytes 2022.8 ms, count: 9
2024-09-05 14:58:12,379 ERROR MBUS read_data_frame could not read from serial port
2024-09-05 14:58:12,380 DEBUG MBUS Invalid MBUS data received 2 bytes 101.7 ms, count: 10
2024-09-05 14:58:12,381 DEBUG MBUS Invalid count = 10. Restarting MBUS serial connection on next read
2024-09-05 14:58:12,581 DEBUG MBUS Decoded MBUS data: None
2024-09-05 14:58:20,089 DEBUG MBUS Connecting to MBUS serial: /dev/ttyUSB0 2400
2024-09-05 14:58:22,100 DEBUG MBUS Invalid MBUS data received 198 bytes 2008.7 ms, count: 1
2024-09-05 14:58:24,324 DEBUG MBUS Invalid MBUS data received 180 bytes 2023.2 ms, count: 2
2024-09-05 14:58:24,525 DEBUG MBUS Decoded MBUS data: None
2024-09-05 14:58:32,041 DEBUG MBUS Invalid MBUS data received 178 bytes 2010.0 ms, count: 3
2024-09-05 14:58:34,253 DEBUG MBUS Invalid MBUS data received 175 bytes 2011.1 ms, count: 4
2024-09-05 14:58:34,454 DEBUG MBUS Decoded MBUS data: None
2024-09-05 14:58:42,071 DEBUG MBUS Invalid MBUS data received 176 bytes 2009.9 ms, count: 5
2024-09-05 14:58:44,282 DEBUG MBUS Invalid MBUS data received 178 bytes 2010.2 ms, count: 6
2024-09-05 14:58:44,482 DEBUG MBUS Decoded MBUS data: None
2024-09-05 14:58:50,397 ERROR MBUS read_data_frame could not read from serial port
2024-09-05 14:58:50,398 DEBUG MBUS Invalid MBUS data received 51 bytes 307.3 ms, count: 7
2024-09-05 14:58:50,599 ERROR MBUS Could not write to MBUS serial port
2024-09-05 14:58:50,600 ERROR MBUS read_data_frame could not read from serial port
2024-09-05 14:58:50,600 DEBUG MBUS Invalid MBUS data received 0 bytes 0.7 ms, count: 8
2024-09-05 14:58:50,801 DEBUG MBUS Decoded MBUS data: None
2024-09-05 14:59:00,010 DEBUG MBUS Connecting to MBUS serial: /dev/ttyUSB0 2400
2024-09-05 14:59:02,039 DEBUG MBUS Invalid MBUS data received 180 bytes 2022.7 ms, count: 9
2024-09-05 14:59:02,648 ERROR MBUS read_data_frame could not read from serial port
2024-09-05 14:59:02,649 DEBUG MBUS Invalid MBUS data received 56 bytes 409.4 ms, count: 10
2024-09-05 14:59:02,650 DEBUG MBUS Invalid count = 10. Restarting MBUS serial connection on next read
2024-09-05 14:59:02,850 DEBUG MBUS Decoded MBUS data: None