I am seeing quite a bit of modbus delay in my network. Motions sensors are tripping, but not showing up in openhab because they are not read in time.
My config is:
poll=50
tcp.water.connection=10.88.64.45:502:0:600000:0:3:100
tcp.water.length=55
tcp.water.type=coil
tcp.basement.connection=10.88.64.46:502:0:600000:0:3:100
tcp.basement.length=55
tcp.basement.type=coil
tcp.basement_ponet.connection=10.88.64.46:502:0:600000:0:3:100
tcp.basement_ponet.start=2072
tcp.basement_ponet.length=8
tcp.basement_ponet.type=coil
tcp.first.connection=10.88.64.47:502:0:600000:0:3:100
tcp.first.length=55
tcp.first.type=coil
tcp.first_ponet.connection=10.88.64.47:502:0:600000:0:3:100
tcp.first_ponet.start=2072
tcp.first_ponet.length=8
tcp.first_ponet.type=coil
tcp.second.connection=10.88.64.48:502:0:600000:0:3:100
tcp.second.length=55
tcp.second.type=coil
tcp.second_ponet.connection=10.88.64.48:502:0:600000:0:3:100
tcp.second_ponet.start=2072
tcp.second_ponet.length=8
tcp.second_ponet.type=coil
tcp.shed.connection=10.88.64.49:502:0:600000:0:3:100
tcp.shed.length=55
tcp.shed.type=coil
tcp.shed_ponet.connection=10.88.64.49:502:0:600000:0:3:100
tcp.shed_ponet.start=2072
tcp.shed_ponet.length=8
tcp.shed_ponet.type=coil
I am not sure why I am seeing so many timeouts, it’s also like a single timeout also delays all the other reads, is this the case?
24-Jan-2018 17:28:18.981 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (first): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@2e7d5541. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@62e61e71[address=10.88.64.47,port=502]. Connection: TCPMasterConnection@a5ace1c[socket=Socket[addr=/10.88.64.47,port=502,localport=59024]]
24-Jan-2018 17:28:28.888 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (shed): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@737d3501. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@5e8dd21f[address=10.88.64.49,port=502]. Connection: TCPMasterConnection@72586f14[socket=Socket[addr=/10.88.64.49,port=502,localport=41698]]
24-Jan-2018 17:28:29.889 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (basement_ponet): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@581f661c. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@6e8671b1[address=10.88.64.46,port=502]. Connection: TCPMasterConnection@28788bf0[socket=Socket[addr=/10.88.64.46,port=502,localport=42856]]
24-Jan-2018 17:28:30.493 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (first): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@6941fe7a. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@62e61e71[address=10.88.64.47,port=502]. Connection: TCPMasterConnection@1e69d479[socket=Socket[addr=/10.88.64.47,port=502,localport=59422]]
24-Jan-2018 17:28:31.098 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (second_ponet): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@61c21066. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@1637f4b9[address=10.88.64.48,port=502]. Connection: TCPMasterConnection@303a8838[socket=Socket[addr=/10.88.64.48,port=502,localport=50210]]
24-Jan-2018 17:28:31.199 [ERROR] [.internal.pooling.ModbusSlaveConnectionFactoryImpl] - connect try 1/3 error: connect timed out. Connection TCPMasterConnection@23da111c[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@5e0d543f[address=10.88.64.49,port=502]
24-Jan-2018 17:28:31.206 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (water): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@65b3c9d1. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@4e3335e8[address=10.88.64.45,port=502]. Connection: TCPMasterConnection@2bbca4d0[socket=Socket[addr=/10.88.64.45,port=502,localport=54198]]
24-Jan-2018 17:29:08.901 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (shed): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@7d93a2fd. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@5e8dd21f[address=10.88.64.49,port=502]. Connection: TCPMasterConnection@23da111c[socket=Socket[addr=/10.88.64.49,port=502,localport=41770]]
24-Jan-2018 17:29:09.902 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (basement_ponet): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@23882016. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@6e8671b1[address=10.88.64.46,port=502]. Connection: TCPMasterConnection@692e0679[socket=Socket[addr=/10.88.64.46,port=502,localport=42934]]
24-Jan-2018 17:29:10.506 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (first): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@7dd7ae1d. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@62e61e71[address=10.88.64.47,port=502]. Connection: TCPMasterConnection@a3b7444[socket=Socket[addr=/10.88.64.47,port=502,localport=59484]]
24-Jan-2018 17:29:11.112 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (second_ponet): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@7c4e4689. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@1637f4b9[address=10.88.64.48,port=502]. Connection: TCPMasterConnection@72f6d44c[socket=Socket[addr=/10.88.64.48,port=502,localport=50276]]
24-Jan-2018 17:29:11.213 [ERROR] [.internal.pooling.ModbusSlaveConnectionFactoryImpl] - connect try 1/3 error: connect timed out. Connection TCPMasterConnection@3cfa74e[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@5e0d543f[address=10.88.64.49,port=502]
24-Jan-2018 17:29:11.221 [ERROR] [org.openhab.binding.modbus.internal.ModbusSlave ] - ModbusSlave (water): Error getting modbus data for request net.wimpi.modbus.msg.ReadCoilsRequest@56701cba. Error: Executing transaction failed (tried 3 times). Endpoint ModbusTCPSlaveEndpoint@4e3335e8[address=10.88.64.45,port=502]. Connection: TCPMasterConnection@7abc8771[socket=Socket[addr=/10.88.64.45,port=502,localport=54270]]
This is the 1.x binding on openhab 2.1, would moving to the 2.x binding help speed things up?