Files

51 lines
1.5 KiB
Python
Raw Permalink 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.
# # 本地监听端口(每条链路独立端口)
# LOCAL_PORT = {
# "A_B": 6000,
# "A_C": 6001,
# "B_D": 6002,
# "B_E": 6003,
# }
LOCAL_PORT = {
"A_B": 6000,#6000,如果暂时不收数改为7000
"A_C": 6001,
"B_D": 6002,
"B_E": 6003,
# "C_B": 6004, # 新增
# "C_A": 6005, # 新增
"C": 6004, # 单端口C 软件只发这里
"A_LISTEN":7000
}
# 外部软件地址
REMOTE = {
"A": {"ip": "192.168.10.100", "port": 7788},
#"A": {"ip": "127.0.0.1", "port": 7788},#自测"A": {"ip": "127.0.0.1", "port": 5100},
#"B": {"ip": "192.168.10.51", "port": 7778},#{"ip": "127.0.0.1", "port": 5201},#5001端口冲突
#"B":{"ip": "127.0.0.1", "port": 5201},#2026/4/2 废弃
"B": {#2026/4/2 B机上下行有2端口
"ip": "192.168.10.106",
#"ip": "127.0.0.1",
"port_telem": 3078, # 👈 遥测 TCP Server输出
"port_remote": 3028, # 👈 遥控 TCP Server输入
"port_udp":2098 # 👈 新增 B 的 UDP 端口2026/4/3
},
"C": {"ip": "192.168.10.178", "port": 3071},# "C": {"ip": "127.0.0.1", "port": 5002},
"D": {"ip": "127.0.0.1", "port": 5003},
"E": {"ip": "127.0.0.1", "port": 5004},
}
# 固定协议常量B/D帧头帧尾等
FRAME_CONST = {
"HEAD": 0xEB90,
"TAIL": 0x5716,
"SIM_ID": 0x0081,
"SRC": 0x22,
"DST": 0x44,
"IF_TYPE": 0x15,
"WORD_ADDR": 0x06,
"DATA_LEN": 0x3E,
}
# 卫星编号航天器识别字4字节无符号整数大端
SATELLITE_ID = 0x00000001