自定义映射

This commit is contained in:
zj
2026-03-23 15:57:58 +08:00
parent 3ecba44f9e
commit e97d9c427a
8 changed files with 365 additions and 338 deletions

View File

@@ -5,7 +5,7 @@
BASE_DIR="{base_dir}"
PYTHON_PATH="{python_path}"
# 设备列表: ID 名称 协议
# 设备列表: ID 名称 监听协议 设备协议
DEVICES=(
{device_defs}
)

View File

@@ -14,7 +14,7 @@ TMS_SERVER_IP = '{tms_server_ip}'
TMS_PORT = {listen_port}
UPC_DEV_IP = '{upc_ip}'
UPC_DEV_PORT = '{upc_port}'
SENDER_FILE = '{base_dir}/bin/sender_tcp.py'
SENDER_FILE = '{sender_file}'
LOG_FILE = '{base_dir}/log/{device_id}.log'
PYTHON_PATH = '{python_path}'
DEVICE_ID = '{device_id}'

View File

@@ -14,7 +14,7 @@ TMS_SERVER_IP = '{tms_server_ip}'
TMS_PORT = {listen_port}
UPC_DEV_IP = '{upc_ip}'
UPC_DEV_PORT = {upc_port}
SENDER_FILE = '{base_dir}/bin/sender_udp.py'
SENDER_FILE = '{sender_file}'
LOG_FILE = '{base_dir}/log/{device_id}.log'
PYTHON_PATH = '{python_path}'
DEVICE_ID = '{device_id}'