RTU/test/config/SYSTEM/channel_config.xml

18 lines
1.0 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!--
通信通道配置文件 (x86 平台)
每个 Channel 定义一个物理通信口mode 决定类型:
tcp_server — TCP 服务端监听idx 是该类通道的序号 (0-based)
tcp_client — TCP 客户端(主动连接)
uart — 串口
同类型多个通道通过 idx 区分,例:
mode="tcp_server" idx="0" → 第一路 TCP 服务端 (ENUM_TCP_SERVER_0)
mode="tcp_server" idx="1" → 第二路 TCP 服务端 (ENUM_TCP_SERVER_1)
-->
<Root>
<Channel mode="tcp_server" idx="0" desc="上位机TCP服务器" local_ip="192.168.80.253" local_port="2404"/>
<Channel mode="tcp_client" idx="0" desc="连接FTU的TCP客户端" remote_ip="192.168.80.102" remote_port="2404"/>
<Channel mode="tcp_server" idx="1" desc="对上101104的TCP服务器" local_ip="198.120.10.2" local_port="2404"/>
<Channel mode="uart" idx="0" desc="连接FTU的串口" device="/dev/ttyUSB1" baud="115200" data_bit="8" stop_bit="1" parity="N"/>
</Root>