Hello,
I am trying to connect my SE5000H Single phase SetApp inverter through Modbus. I have enabled Modbus TCP with standard port 1502 in the Inverter through SetApp.
Is there any time limits in which the ports are available, or it does not matter?
How can I test, if the port is reachable?
My settings:
modbus TCP seems to be online, whatever is setted in:
UID: modbus:tcp:d76ff7b8b0
label: SE Modbus TCP Slave
thingTypeUID: modbus:tcp
configuration:
rtuEncoded: false
timeBetweenTransactionsMillis: 60
connectMaxTries: 1
reconnectAfterMillis: 0
port: 1502
timeBetweenReconnectMillis: 0
host: 192.168.1.105
connectTimeoutMillis: 10000
id: 1
enableDiscovery: false
location: Vchod
1ph inverter is Error with read: org.openhab.core.io.transport.modbus.exception.ModbusConnectionException: Error connecting to endpoint ModbusIPSlaveEndpoint [address=192.168.1.105, port=1502]
UID: modbus:inverter-single-phase:d76ff7b8b0:c88c825712
label: SE5000H Single Phase Inverter
thingTypeUID: modbus:inverter-single-phase
configuration:
length: 61
refresh: 5
maxTries: 3
address: 40000
bridgeUID: modbus:tcp:d76ff7b8b0
location: Vchod
and the same for meter:
UID: modbus:meter-wye-phase:7fdcd65a9c
label: SE Three Phase Meter, Wye-Connected
thingTypeUID: modbus:meter-wye-phase
configuration:
length: 61
refresh: 5
maxTries: 3
address: 40000
bridgeUID: modbus:tcp:d76ff7b8b0
location: Vchod
2021-12-28 21:10:35.665 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: Spojenie odmietnuté (Connection refused). Connection TCPMasterConnection [m_Socket=Socket[unconnected], m_Timeout=3000, m_Connected=false, m_Address=/192.168.1.105, m_Port=1502, m_ModbusTransport=null, m_ConnectTimeoutMillis=10000, rtuEncoded=false]. Endpoint ModbusIPSlaveEndpoint [address=192.168.1.105, port=1502]
2021-12-28 21:10:35.666 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 1, throwing last error: Spojenie odmietnuté (Connection refused). Connection TCPMasterConnection [m_Socket=Socket[unconnected], m_Timeout=3000, m_Connected=false, m_Address=/192.168.1.105, m_Port=1502, m_ModbusTransport=null, m_ConnectTimeoutMillis=10000, rtuEncoded=false]. Endpoint ModbusIPSlaveEndpoint [address=192.168.1.105, port=1502]
2021-12-28 21:10:35.668 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - Error connecting connection TCPMasterConnection [m_Socket=Socket[unconnected], m_Timeout=3000, m_Connected=false, m_Address=/192.168.1.105, m_Port=1502, m_ModbusTransport=null, m_ConnectTimeoutMillis=10000, rtuEncoded=false] for endpoint ModbusIPSlaveEndpoint [address=192.168.1.105, port=1502]: Spojenie odmietnuté (Connection refused)
2021-12-28 21:10:35.669 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusIPSlaveEndpoint [address=192.168.1.105, port=1502] -- aborting request ModbusReadRequestBlueprint [slaveId=1, functionCode=READ_MULTIPLE_REGISTERS, start=40000, length=61, maxTries=3] [operation ID 1f3fac1a-4ef8-4d0b-ab9e-3f905fdb6472]
2021-12-28 21:10:35.682 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: Spojenie odmietnuté (Connection refused). Connection TCPMasterConnection [m_Socket=Socket[unconnected], m_Timeout=3000, m_Connected=false, m_Address=/192.168.1.105, m_Port=1502, m_ModbusTransport=null, m_ConnectTimeoutMillis=10000, rtuEncoded=false]. Endpoint ModbusIPSlaveEndpoint [address=192.168.1.105, port=1502]
What I am doing wrong? according to documentation, starting with address 4000 seems to be legit…
Michal