I have my openhab running on raspberry pi 3. I have installed Modbus Binding but having problem with reading values from salve (id=1).
For communication with slave(thermostat) via tcp I use modbus-rs485-serial-to-ethernet converter.
With test tools, I am able to successfully read all necessary registers, but not able to do that with openhab. Bridge seems to connect succesfully, but on poller i get time out errors. This is my set up:
Bridge modbus:tcp:thermo9 [ host=“192.168.1.17”, port=8899, id=1, timeBetweenTransactionsMillis=100, rtuEncoded=false ]
{
Bridge poller thermobridge9 [ start=0, length=1, refresh=3000, type=“holding” ]
{
Thing data thermodarbas9 [ readStart=“0”, readValueType=“int32”, writeStart=“1”, writeValueType=“int32”, writeType=“holding” ]
}
}
and this is the error i get:
2021-02-22 18:22:57.979 [ERROR] [wimpi.modbus.io.ModbusTCPTransaction] - execute try 1/1 error: I/O exception: SocketTimeoutException Read timed out. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@11356f5 (unit id 1 & transaction 1878). Address: /192.168.1.17:8899
2021-02-22 18:22:57.981 [ERROR] [wimpi.modbus.io.ModbusTCPTransaction] - execute reached max tries 1, throwing last error: I/O exception: SocketTimeoutException Read timed out. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@11356f5 (unit id 1 & transaction 1878). Address: /192.168.1.17:8899
2021-02-22 18:22:57.984 [ERROR] [rt.modbus.internal.ModbusManagerImpl] - Last try 3 failed when executing request (ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@1da6aad[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=0,length=1,maxTries=3]). Aborting. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 7c4551e7-b30f-4907-afe9-cde61cb97fd8]
2021-02-22 18:23:04.004 [ERROR] [wimpi.modbus.io.ModbusTCPTransaction] - execute try 1/1 error: I/O exception: SocketTimeoutException Read timed out. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@1821f57 (unit id 1 & transaction 1879). Address: /192.168.1.17:8899
2021-02-22 18:23:04.008 [ERROR] [wimpi.modbus.io.ModbusTCPTransaction] - execute reached max tries 1, throwing last error: I/O exception: SocketTimeoutException Read timed out. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@1821f57 (unit id 1 & transaction 1879). Address: /192.168.1.17:8899
I tried playing with rtuEncoded parameter, setting it to true/false, but with no luck… does not seem to do a thing.