Hello to all,
I have an airconditioning from LG. All indoor devices got a modbus interface with the following specification
My modbus config file looks like
poll=10000
writemultipleregisters=true
serial.lg3coil.connection=/dev/ttyUSB0:9600:8:none:1:rtu:50:1500:none:none
serial.lg3coil.id=3
serial.lg3coil.start=0
serial.lg3coil.length=1
serial.lg3coil.type=coil
serial.lg3holding.connection=/dev/ttyUSB0:9600:8:none:1:rtu:50:1500:none:none
serial.lg3holding.id=3
serial.lg3holding.type=holding
serial.lg3holding.start=0
serial.lg3holding.length=16
the item definition is
Group gModbusKlimaanlage "Modbus Klimaanlage" (gModbus)
Switch LG_Schlaf_Operation "Klimagerät Schlafzimmer" (gModbusKlimaanlage) {modbus="lg3coil:0"}
Number LG_Schlaf_Temp "Schlafzimmer Temperatur [%d °C]" <temperature> (gModbusKlimaanlage) {modbus="LG3Holding:1"}
The connection is working well in case of my switch. I’am able to switch the device on and off.
But I’am not able to connect to the input register 30003 or to the holding registers 40001/400002
At the moment I’am testing to read/write the setpoint of the device, but I get the following log
2017-04-03 22:29:04.666 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 03 03 00 00 00 10 45 e4
2017-04-03 22:29:04.668 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes:
2017-04-03 22:29:04.671 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 1/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@12ca80c (unit id 3 & transaction 169). Serial parameters: SerialParameters@1e92bdb[portName=/dev/ttyUSB0,baudRate=9600,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
2017-04-03 22:29:04.747 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 03 03 00 00 00 10 45 e4
2017-04-03 22:29:04.749 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes:
2017-04-03 22:29:04.753 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 2/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@12ca80c (unit id 3 & transaction 169). Serial parameters: SerialParameters@1e92bdb[portName=/dev/ttyUSB0,baudRate=9600,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
2017-04-03 22:29:04.830 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 03 03 00 00 00 10 45 e4
2017-04-03 22:29:04.832 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes:
2017-04-03 22:29:04.836 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 3/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@12ca80c (unit id 3 & transaction 169). Serial parameters: SerialParameters@1e92bdb[portName=/dev/ttyUSB0,baudRate=9600,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
2017-04-03 22:29:04.840 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute reached max tries 3, throwing last error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@12ca80c. Serial parameters: SerialParameters@1e92bdb[portName=/dev/ttyUSB0,baudRate=9600,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
2017-04-03 22:29:04.843 [ERROR] [.binding.modbus.internal.ModbusSlave] - ModbusSlave (lg3holding): Error getting modbus data for request net.wimpi.modbus.msg.ReadMultipleRegistersRequest@12ca80c. Error: I/O exception - failed to read. Endpoint ModbusSerialSlaveEndpoint@d0e75a[portName=/dev/ttyUSB0]. Connection: SerialConnection@15f5cb6[portName=/dev/ttyUSB0,port=/dev/ttyUSB0]
Has anybody an idea, what am I doing wrong?