Hi Trystan,
I just realised that the error message above relates to the MBus that connects to the heat meter not the power meter. Even though the connection failed and invalid MBus data is received, the data retrieval does seem to work
2024-01-06 16:11:21,127 DEBUG MBUS Invalid MBUS data received 204 bytes 1033.9 ms
2024-01-06 16:11:21,130 DEBUG MBUS Decoded MBUS data: {“Energy”: [428, “kWh”], “Volume”: [425.75, “m3”], “FlowT”: [30.84, “C”], “ReturnT”: [28.62, “C”], “DeltaT”: [2.22, “C”], “Power”: [3200, “W”], “FlowRate”: [1.216, “m3/h”], “heat_calc”: [3111.946666666665, “W”]}
2024-01-06 16:11:21,130 DEBUG MBUS 126 NEW FRAME :
2024-01-06 16:11:21,131 DEBUG MBUS 126 Timestamp : 1704557480.093435
2024-01-06 16:11:21,131 DEBUG MBUS 126 From Node : heatpump
2024-01-06 16:11:21,131 DEBUG MBUS 126 Values : [428, 425.75, 30.84, 28.62, 2.22, 3200, 1.216, 3111.946666666665]
2024-01-06 16:11:21,132 DEBUG MBUS 126 Sent to channel(start)’ : ToEmonCMS
2024-01-06 16:11:21,132 DEBUG MBUS 126 Sent to channel(end)’ : ToEmonCMS
I further noticed that on this power cycle the ModBus adaptor did open OK.
2024-01-06 16:00:42,010 INFO MainThread Connecting to Modbus device=/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_B0019BLY-if00-port0 baud=9600 parity=none datatype=float
2024-01-06 16:00:42,023 INFO MainThread Setting SDM120 read_interval: 10
2024-01-06 16:00:42,024 INFO MainThread Setting SDM120 nodename: heatpump
2024-01-06 16:00:42,024 INFO MainThread Setting SDM120 prefix:
2024-01-06 16:00:42,024 INFO MainThread Setting SDM120 meters electric address 1
2024-01-06 16:00:42,025 INFO MainThread Setting SDM120 meters electric registers [12, 72]
2024-01-06 16:00:42,025 INFO MainThread Setting SDM120 meters electric names [“Power”, “Energy”]
2024-01-06 16:00:42,025 INFO MainThread Setting SDM120 meters electric precision [1, 3]
2024-01-06 16:00:42,025 DEBUG MainThread Setting SDM120 pubchannels: [‘ToEmonCMS’]
But the SDM120 power meters are currently disconnected so it can’t pull any data
2024-01-06 16:00:52,347 INFO SDM120 Connecting to Modbus device=/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_B0019BLY-if00-port0 baud=9600 parity=none datatype=float
…
2024-01-06 16:01:01,164 ERROR SDM120 Could not read register @ 12: No communication with the instrument (no answer)
…
2024-01-06 16:01:02,268 ERROR SDM120 Could not read register @ 72: No communication with the instrument (no answer)
2024-01-06 16:01:02,369 ERROR SDM120 Could not read all registers
Given these general USB problems/inconsistencies could something gone wrong with the USB subsystem?