I’m trying to set it up with my OpenHab 4.
My SDongle version is V100R001C00SPC125
I have already change a Dongle parameter to Enable (unrestricted) in the Modbus-TCP configuration, so I have a connection from the openhab host to the inverter
pi@HOME:/etc/openhab/things $ telnet 192.168.1.28 502
Trying 192.168.1.28...
Connected to 192.168.1.28.
Escape character is '^]'.
I have two things configured as following:
UID: modbus:tcp:444a6f5e4d
label: Modbus TCP Slave
thingTypeUID: modbus:tcp
configuration:
rtuEncoded: false
timeBetweenTransactionsMillis: 1500
connectMaxTries: 3
reconnectAfterMillis: 0
port: 502
timeBetweenReconnectMillis: 10
host: 192.168.1.28
connectTimeoutMillis: 10000
id: 1
enableDiscovery: false
UID: modbus:poller:444a6f5e4d:slave102
label: Regular Poll
thingTypeUID: modbus:poller
configuration:
start: 37000
length: 115
refresh: 10000
maxTries: 3
cacheMillis: 50
type: holding
bridgeUID: modbus:tcp:444a6f5e4d
The settings has been taken from thing file listed there: Reading data from Huawei inverter SUN 2000 (3KTL-10KTL) via modbus TCP and RTU with json configuration for full GIU control
Unfortunately OH4 complains about the connection
2023-12-30 17:23:12.433 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=1, functionCode=READ_MULTIPLE_REGISTERS, start=37000, length=115, maxTries=3]). Will try again soon. Error was I/O error, so resetting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID cd56dadc-c9ec-4d9d-9f08-ea6af36eb6fb]
2023-12-30 17:23:27.824 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=1, functionCode=READ_MULTIPLE_REGISTERS, start=37000, length=115, maxTries=3]). Will try again soon. Error was I/O error, so resetting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID 9f41974f-72c9-4623-ac31-265201100a9d]
2023-12-30 17:23:42.727 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=1, functionCode=READ_MULTIPLE_REGISTERS, start=37000, length=115, maxTries=3]). Will try again soon. Error was I/O error, so resetting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID bfd45434-4e27-43b5-8cbf-360b2226d157]
Can someone help there?