config: 通道配置 + 模块启停配置
- channel_cfg.json: 新增 tcp_ftu 网口通道 (127.0.0.1:54321 TCP 客户端) - app_config.json: 启用 plc 模块
This commit is contained in:
parent
c92dc5c452
commit
28e26f8b67
|
|
@ -1,15 +1,5 @@
|
||||||
{
|
{
|
||||||
"channels": [
|
"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",
|
"key": "tcp_master",
|
||||||
"type": "tcp_server",
|
"type": "tcp_server",
|
||||||
|
|
@ -17,6 +7,13 @@
|
||||||
"local_port": 2404,
|
"local_port": 2404,
|
||||||
"bind_app": "iec",
|
"bind_app": "iec",
|
||||||
"desc": "IEC-104主站通道 (:2404) — com_router直接投递给libiec"
|
"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": [
|
"forward_rules": [
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{
|
{
|
||||||
"apps": [
|
"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_self_ptl", "enable": true},
|
||||||
{"name": "app_com_router", "enable": true}
|
{"name": "app_iec", "enable": true},
|
||||||
|
{"name": "app_plc", "enable": true}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue