Hi all!
I’m a beginner with openHAB and I’m triying to configure it to read values from my solar inverter using Modbus.
The inverted accept only Modbus RTU and it’s connected to the ethernet network (into the device is installed an interface serial-to-ethernet).
I read that openHUB does not supporto modbus RTU over TCP but there is a workaround using virtual serial port, so I tried to start with this solution:
- OpenHUB v2 installed on a Windows machine
- Virtual Serial Port installed on Windows (http://www.hw-group.com/products/hw_vsp/index_en.html) and configured to create COM3 and forward all data to the inverter ip address (ip:port)
- Installed “openHAB ModbusTCP Master Binding - version 1.10.0” and I configured it as follow:
serial.inverter.connection=COM3:9600:8:none:1:rtu
serial.inverter.id=1
serial.inverter.start=16
serial.inverter.length=1
serial.inverter.type=input
I’m getting this error and after reading a lot of articles I cannot find a solution:
2017-08-24 15:35:40.047 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 01 04 00 10 00 01 30 0f
2017-08-24 15:35:40.048 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: Error reading response (EOF)
2017-08-24 15:35:40.062 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 1/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadInputRegistersRequest@4903d8b8 (unit id 1 & transaction 9). Serial parameters: SerialParameters@52c9b2de[portName=COM3,baudRate=9600,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
I already checked that the request is correct and equal using another tool (speaking with rtu over TCP, but the modbus request format and values are the same and correct)
Could someone help me?
thanks in advance!
Simone