From 28e26f8b67d52b59b06bffcd7d62794ebcd14fcd Mon Sep 17 00:00:00 2001 From: ypc <15051963820@163.com> Date: Tue, 14 Jul 2026 11:02:16 +0800 Subject: [PATCH] =?UTF-8?q?config:=20=E9=80=9A=E9=81=93=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=20+=20=E6=A8=A1=E5=9D=97=E5=90=AF=E5=81=9C=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - channel_cfg.json: 新增 tcp_ftu 网口通道 (127.0.0.1:54321 TCP 客户端) - app_config.json: 启用 plc 模块 --- config/CHANNEL/channel_cfg.json | 17 +++++++---------- config/SYSTEM/app_config.json | 6 ++++-- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/config/CHANNEL/channel_cfg.json b/config/CHANNEL/channel_cfg.json index 7fa8001..6230924 100644 --- a/config/CHANNEL/channel_cfg.json +++ b/config/CHANNEL/channel_cfg.json @@ -1,15 +1,5 @@ { "channels": [ - { - "key": "serial_ftu", - "type": "uart", - "device": "/dev/ttyS1", - "baudrate": 115200, - "data_bits": 8, - "stop_bits": 1, - "parity": "N", - "desc": "FTU串口 — 帧内容分路 (ICP67 dev=0/IEC→转发源, dev=1→self_ptl)" - }, { "key": "tcp_master", "type": "tcp_server", @@ -17,6 +7,13 @@ "local_port": 2404, "bind_app": "iec", "desc": "IEC-104主站通道 (:2404) — com_router直接投递给libiec" + }, + { + "key": "tcp_ftu", + "type": "tcp_client", + "remote_ip": "127.0.0.1", + "remote_port": 54321, + "desc": "FTU网口通道 — TCP客户端连接PC上FTU数据转发 (127.0.0.1:54321)" } ], "forward_rules": [ diff --git a/config/SYSTEM/app_config.json b/config/SYSTEM/app_config.json index 2325668..1c0770f 100644 --- a/config/SYSTEM/app_config.json +++ b/config/SYSTEM/app_config.json @@ -1,7 +1,9 @@ { "apps": [ - {"name": "app_modbus_m", "enable": true}, + {"name": "app_web_server", "enable": true}, + {"name": "app_com_router", "enable": true}, {"name": "app_self_ptl", "enable": true}, - {"name": "app_com_router", "enable": true} + {"name": "app_iec", "enable": true}, + {"name": "app_plc", "enable": true} ] }