Dear all, dear Miika Jukka
Thanks for the hint in the thread “modbus openHAb2 binding available for alpha testing”:
Miika Jukka wrote:
It’s a timeout error as you propably can see. Check all your connection parameters and make sure you server is up and running. You can use some 3rd party modbus tool to do this test.
After all that if you still got problems I would suggest you to open a new thread with much more detailed info about your configuration. This binding is now considered stable and this thread was more about testing and developing.
However I still get this error sproadically (i.e. every few hours), after which connection is reseted and restarted (see below):
16:39:54.447 [ERROR] [.wimpi.modbus.io.ModbusTCPTransaction] - execute try 1/1 error: I/O exception: SocketTimeoutException Read timed out. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@6b002a (unit id 1 & transaction 3646). Address: /192.168.178.30:502
16:39:54.461 [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@6b002a (unit id 1 & transaction 3646). Address: /192.168.178.30:502
I tried to play around with the parameters (i.e. Poll Timeout set to 2000 ms and baud rate set to 115.2 kbps) of the modbus server, which is a usr iot 410s device (USR-TCP232-410S):
The thing configuration is as follows:
Bridge modbus:tcp:Pool [ host="192.168.178.30", port=502, id=1 ] {
Bridge poller holding_low [ start=0, length=24, refresh=500, type="holding"]{
Thing data holding0 [ readStart="0", readValueType="uint16", writeStart="0", writeValueType="uint16", writeType="holding" ]
Thing data holding1 [ readStart="1", readValueType="int16", readTransform="JS(divide10.js)", writeStart="1", writeValueType="int16", writeType="holding", writeTransform="JS(multiply10.js)" ]
Thing data holding6 [ readStart="6", readValueType="int16", readTransform="JS(divide10.js)" ]
Thing data holding7 [ readStart="7", readValueType="uint16", readTransform="JS(divide10.js)" ]
Thing data holding23 [ readStart="23", readValueType="int16" ]
}
}
and the divice connected to the usr iot 410s is a peter vdi075 variable speed drive.
Could anyone help me in this- I would highly appreciate it. I have absolutely no idea where I should further search.
Best regards
Rolf