-
-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Hello,
I am currently using the ioBroker with the node-red adapter to query my Huawei photovoltaic system. The Modbus TCP query is running stably without errors.
I would like to change the query via the multiplexer.
Unfortunately, I receive the following message in the log.
time="2024-11-17T22:19:49+01:00" level=info msg="#1: 172.18.0.1:33904 <-> 172.18.0.2:502"
time="2024-11-17T22:19:49+01:00" level=info msg="Connected clients: 1"
time="2024-11-17T22:19:51+01:00" level=info msg="creating target connection"
time="2024-11-17T22:19:51+01:00" level=info msg="new target connection: 172.18.0.2:34376 <-> 192.168.0.18:502"
time="2024-11-17T22:20:00+01:00" level=info msg="#2: 172.18.0.1:40410 <-> 172.18.0.2:502"
time="2024-11-17T22:20:12+01:00" level=info msg="#3: 172.18.0.1:56430 <-> 172.18.0.2:502"
time="2024-11-17T22:20:24+01:00" level=info msg="#4: 172.18.0.1:52962 <-> 172.18.0.2:502"
time="2024-11-17T22:20:36+01:00" level=info msg="#5: 172.18.0.1:47416 <-> 172.18.0.2:502"
time="2024-11-17T22:20:48+01:00" level=info msg="#6: 172.18.0.1:55528 <-> 172.18.0.2:502"
**time="2024-11-17T22:20:51+01:00" level=error msg="target connection: read tcp 172.18.0.2:34376->192.168.0.18:502: i/o timeout"
time="2024-11-17T22:20:51+01:00" level=error msg="failed to forward message, read tcp 172.18.0.2:34376->192.168.0.18:502: i/o timeout"**
time="2024-11-17T22:20:51+01:00" level=info msg="Connected clients: 2"
time="2024-11-17T22:20:51+01:00" level=info msg="creating target connection"
time="2024-11-17T22:20:52+01:00" level=info msg="new target connection: 172.18.0.2:38648 <-> 192.168.0.18:502"
time="2024-11-17T22:21:00+01:00" level=info msg="#7: 172.18.0.1:57906 <-> 172.18.0.2:502"
time="2024-11-17T22:21:12+01:00" level=info msg="#8: 172.18.0.1:54888 <-> 172.18.0.2:502"
time="2024-11-17T22:21:24+01:00" level=info msg="#9: 172.18.0.1:56190 <-> 172.18.0.2:502"
time="2024-11-17T22:21:36+01:00" level=info msg="#10: 172.18.0.1:36884 <-> 172.18.0.2:502"
time="2024-11-17T22:21:48+01:00" level=info msg="#11: 172.18.0.1:45178 <-> 172.18.0.2:502"
**time="2024-11-17T22:21:52+01:00" level=error msg="target connection: read tcp 172.18.0.2:38648->192.168.0.18:502: i/o timeout"
time="2024-11-17T22:21:52+01:00" level=error msg="failed to forward message, read tcp 172.18.0.2:38648->192.168.0.18:502: i/o timeout"**
In ioBroker I get the following message in the log.
[error] [modbus-client:ModBus-TCP] Error: connect ENETUNREACH 172.18.0.2:502 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)
The multiplexer runs in a container on the same host.
services:
modbus-proxy:
platform: linux/arm64
image: ghcr.io/ingmarstein/tcp-multiplexer
container_name: Modbus-Multiplexer
ports:
- "502:502"
command: [ "server", "-t", "192.168.0.18:502", "-l", "502", "-p", "modbus", "-v" ]
restart: always
environment:
TZ: Europe/Berlin
hostname: Modbus_Container
dns: 192.168.0.1
I am not sure what the problem could be and would be happy for help
Regards
Metadata
Metadata
Assignees
Labels
No labels