Ich habe nun ein Oszi bei den Modbus-Leitungen reingehängt. Ich sehe nun die Anfrage vom Raspberry aber auch eine Antwort von der Wärmepumpe.
Beim Raspberry sieht's dann so aus:
Was ist der CRC-Error und warum schreibt das Ding, dass ich 0 byte empfangen habe?
Beim Raspberry sieht's dann so aus:
Code:
$ tail -f /var/log/openhab2/openhab.log 2018-01-07 20:23:56.362 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes: 2018-01-07 20:23:56.365 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 1/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadInputRegistersRequest@282e32 (unit id 140 & transaction 1906). Serial parameters: SerialParameters@19ce82e[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500] 2018-01-07 20:23:56.496 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 8c 04 04 a0 00 04 ee 06 2018-01-07 20:23:56.499 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes: 2018-01-07 20:23:56.503 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 2/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadInputRegistersRequest@282e32 (unit id 140 & transaction 1907). Serial parameters: SerialParameters@19ce82e[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500] 2018-01-07 20:23:56.609 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 8c 04 04 a0 00 04 ee 06 2018-01-07 20:23:56.612 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes: 2018-01-07 20:23:56.615 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 3/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadInputRegistersRequest@282e32 (unit id 140 & transaction 1908). Serial parameters: SerialParameters@19ce82e[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500] 2018-01-07 20:23:56.618 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute reached max tries 3, throwing last error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadInputRegistersRequest@282e32 (unit id 140 & transaction 1908). Serial parameters: SerialParameters@19ce82e[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500] 2018-01-07 20:23:56.624 [ERROR] [.binding.modbus.internal.ModbusSlave] - ModbusSlave (slave1): Error getting modbus data for request net.wimpi.modbus.msg.ReadInputRegistersRequest@282e32. Error: I/O exception - failed to read. Endpoint ModbusSerialSlaveEndpoint@19e1621[portName=/dev/ttyUSB0]. Connection: SerialConnection@535bad[portName=/dev/ttyUSB0,port=/dev/ttyUSB0] 2018-01-07 20:23:57.858 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 8c 04 04 a0 00 04 ee 06 2018-01-07 20:23:57.861 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes: 2018-01-07 20:23:57.866 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 1/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadInputRegistersRequest@954580 (unit id 140 & transaction 1909). Serial parameters: SerialParameters@19ce82e[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
Kommentar