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} ] }