首次提交完整的python工程代码
This commit is contained in:
51
config/settings.py
Normal file
51
config/settings.py
Normal file
@@ -0,0 +1,51 @@
|
||||
# # 本地监听端口(每条链路独立端口)
|
||||
# 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
|
||||
Reference in New Issue
Block a user