DEBUG or TRACE on modbus.transport doesn’t bring up any additional messages. DEBUG on modbus itself kinda floods the logs.
On both (oh2.5 and oh3) there is for each modbus.studer thing a line like
2021-12-08 21:08:33.529 [DEBUG] [modbus.studer.internal.StuderHandler] - Initializing thing with configuration: Configuration[{key=slaveAddress; type=BigDecimal; value=61}, {key=refresh; type=BigDecimal; value=10}]
2021-12-08 21:08:33.529 [DEBUG] [modbus.studer.internal.StuderHandler] - Setting up regular polling
On oh2.5 after a few seconds there are lines like:
2021-12-08 21:09:45.943 [DEBUG] [rt.modbus.internal.ModbusManagerImpl] - Executing scheduled (5000ms) poll task BasicPollTask@1e53db29[request=ModbusReadRequestBlueprint@10942693[slaveId=42,functionCode=READ_INPUT_REGISTERS,start=2,length=2,maxTries=3],endpoint=ModbusTCPSlaveEndpoint@7ea5d58d[address=moxa-01.joessnitz.home,port=502],resultCallback=org.openhab.binding.modbus.studer.internal.StuderHandler$$Lambda$514/0x0000000100ce2840@5510e85b,failureCallback=org.openhab.binding.modbus.studer.internal.StuderHandler$$Lambda$515/0x0000000100ce2c40@10127c9d]. Current millis: 1638994185943
2021-12-08 21:09:46.014 [DEBUG] [rt.modbus.internal.ModbusManagerImpl] - Modbus operation ended, timing info: {total: 73 ms, connection: 12, transaction=45, callback=10} [operation ID 8939ab21-9ede-44a4-831e-5a81a4833e2a]
On oh3:
2021-12-08 21:08:37.491 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=272, length=2, maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID ea85a320-5c1c-47a3-9811-cc582587a044]
2021-12-08 21:08:40.559 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=98, length=2, maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 8f9d4990-53ae-4fbf-8c8f-7ae51889d992]
2021-12-08 21:08:43.624 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=22, length=2, maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 9a3cf203-2e5a-4758-9216-8dd08a135f3a]
2021-12-08 21:08:46.689 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=24, length=2, maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 395cce87-8b87-4356-8e61-15594eea33de]
2021-12-08 21:08:49.754 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=274, length=2, maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 9e2a7abc-bf9d-408a-8342-f033d0b11510]
2021-12-08 21:08:52.819 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 2 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=272, length=2, maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID ea85a320-5c1c-47a3-9811-cc582587a044]
2021-12-08 21:08:55.884 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 2 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=98, length=2, maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 8f9d4990-53ae-4fbf-8c8f-7ae51889d992]
2021-12-08 21:08:58.950 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 2 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=22, length=2, maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 9a3cf203-2e5a-4758-9216-8dd08a135f3a]
2021-12-08 21:09:02.015 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 2 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=24, length=2, maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 395cce87-8b87-4356-8e61-15594eea33de]
2021-12-08 21:09:05.080 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 2 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=274, length=2, maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 9e2a7abc-bf9d-408a-8342-f033d0b11510]
2021-12-08 21:09:08.145 [ERROR] [rt.modbus.internal.ModbusManagerImpl] - Last try 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=11, functionCode=READ_INPUT_REGISTERS, start=272, length=2, 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 ea85a320-5c1c-47a3-9811-cc582587a044]
The current log-config:
org.openhab.binding.modbus │ WARN
org.openhab.binding.modbus.studer │ TRACE
org.openhab.binding.modbus.transport │ TRACE
Thanks for your help so far. I hope, you can get something from it.