Hello,
modbus binding is running on an openhab 2.5 server. Information should be collected from a SMA inverter.
I am receiving values via modbus but additionally my logs are full with this error message:
2022-03-08 13:45:41.706 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: connect timed out. Connection TCPMasterConnection@31225d41[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@3bda3631[address=192.168.100.48,port=502]
2022-03-08 13:45:41.706 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 1, throwing last error: connect timed out. Connection TCPMasterConnection@31225d41[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@3bda3631[address=192.168.100.48,port=502]
2022-03-08 13:45:41.706 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - Error connecting connection TCPMasterConnection@31225d41[socket=Socket[unconnected]] for endpoint ModbusTCPSlaveEndpoint@3bda3631[address=192.168.100.48,port=502]: connect timed out
2022-03-08 13:45:41.707 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusTCPSlaveEndpoint@3bda3631[address=192.168.100.48,port=502] -- aborting request ModbusReadRequestBlueprint@5db32de1[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=30773,length=114,maxTries=3] [operation ID 8b8938ae-827c-45b7-8e87-fe400c5edaf6]
2022-03-08 13:45:51.215 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint@5db32de1[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=30773,length=114,maxTries=3]). Will try again soon. Error was: net.wimpi.modbus.ModbusSlaveException Error Code = 0 [operation ID fff6b0ad-6875-41d7-aec1-0d722a2c8b34]
2022-03-08 13:45:51.275 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 2 out of 3 failed when executing request (ModbusReadRequestBlueprint@5db32de1[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=30773,length=114,maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: IndexOutOfBoundsException null [operation ID fff6b0ad-6875-41d7-aec1-0d722a2c8b34]
2022-03-08 13:45:51.735 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint@5db32de1[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=30773,length=114,maxTries=3]). Will try again soon. Error was: net.wimpi.modbus.ModbusSlaveException Error Code = 0 [operation ID 3daef0fc-0c22-40d0-a012-abbd5a42b2c0]
2022-03-08 13:45:51.796 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 2 out of 3 failed when executing request (ModbusReadRequestBlueprint@5db32de1[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=30773,length=114,maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: IndexOutOfBoundsException null [operation ID 3daef0fc-0c22-40d0-a012-abbd5a42b2c0]
2022-03-08 13:45:52.215 [ERROR] [rt.modbus.internal.ModbusManagerImpl] - Last try 3 failed when executing request (ModbusReadRequestBlueprint@5db32de1[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=30773,length=114,maxTries=3]). Aborting. Error was: net.wimpi.modbus.ModbusSlaveException Error Code = 0 [operation ID 3daef0fc-0c22-40d0-a012-abbd5a42b2c0]
Do you have any ideas what could be wrong?
Here a stripped things and items setup (this is already doing error messages)
Bridge modbus:tcp:tripower "SMA Sunny Tripower 9000TL-20" [ host="192.168.100.48", port=502, id=3, reconnectAfterMillis=6000 ] {
Bridge poller devicedaten_30053 "Geraete Spezifikation" [ start=30053, length=4, refresh=60000, type="input" ] {
Thing data sma_type_30053 "SMA Wechselrichter Type" [ readStart="30053", readValueType="uint32" ]
}
Bridge poller input_30769_114 "TP_Input_30769_114" [ start=30773, length=114, refresh=2000, type="input" ] {
Thing data 30773_2 "TP_30773_2" [ readStart="30773", readValueType="int32"]
Thing data 30775_2 "TP_30775_2" [ readStart="30775", readValueType="int32"]
Thing data 30839_2 "TP_30839_2" [ readStart="30839", readValueType="uint32"]
}
Number TPDCInput1 "DC-Input 1 [%d W]" (gPV) { channel=" modbus:data:tripower:input_30769_114:30773_2:number" }
Number TPLeistung "Leistung [%d W]" (gPV) { channel=" modbus:data:tripower:input_30769_114:30775_2:number" }
Number TPLeistungsbegrenzung "Leistungsverwendung [%d %%]" (gPV) { channel=" modbus:data:tripower:input_30769_114:30839_2:number" }
String sma_type_30053 "Wechselrichter Typ [%s]" (gPV) { channe