首次提交

This commit is contained in:
2026-06-16 10:23:51 +08:00
commit aaeb52173b
740 changed files with 173337 additions and 0 deletions
+301
View File
@@ -0,0 +1,301 @@
heco@heco:~/ys_ecap_server$ ./v1.0.3/ecap_server
Locale set to UTF-8 successfully!
小端序 This system is Little-endian.
2026-06-01 08:54:21 启动加载配置文件: 【/home/heco/ys_ecap_server/v1.0.3/config.json】
Directory and its contents deleted: /home/heco/ys_ecap_server/v1.0.3/logs
Directory created: /home/heco/ys_ecap_server/v1.0.3/logs
Base_Logger_Manager sqdlog init thread pool![thread_num:1], [flush_seconds:3], [buffer_size:65536],
{
"version": "v1.0.3",
"dsp": {
"library_path": "@/lib9002/lib9002.so",
"center_freq": 16000000,
"band_width": 40000,
"sample_rate": 60000,
"fft_point_number": 2048,
"fft_period_ms": 10,
"fft_win_type": "blkmc",
"url": "0.0.0.0",
"port": 6000,
"power_min": -159,
"power_max": 40,
"power_offset": -131,
"frame_rate": 30,
"debug": false,
"demod_mode": "LSB",
"audio_gain": 30,
"color_gain": 54
},
"drogon": {
"app": {
"threads_num": 0,
"client_max_body_size": "500M"
}
},
"mlat": {
"enable": false,
"merge": false,
"library_path": "@/mlat_source.dll",
"function_name": "read"
},
"web_server": {
"webapp": "@/wwwroot",
"tiles": "@/../tiles"
},
"device": {
"net": [
{
"key": "device",
"ip": "192.168.1.75",
"netmask": "255.255.255.0",
"gateway": "192.168.1.1",
"port": 9081
},
{
"key": "wifi",
"ip": "192.168.10.193",
"netmask": "255.255.255.0",
"gateway": "192.168.10.1",
"port": 80
}
]
},
"mode_acs": {
"timeout_seconds": 60,
"max_speed_m_s": 1000,
"air_pos_timeout": 8,
"surface_pos_timeout": 0,
"read_milliseconds": 100,
"max_track_point_size": 1000,
"mode_s_max_num": 700000,
"mode_other_max_num": 10000,
"report_data_feed_msg_mum": 10000,
"default_min_aircraft_list_num": 0,
"ignore_df_11": false,
"monitor_msg_live": false,
"ecap_sqlite_path": "@/../ecap.sqlite",
"data_feed": {
"empty_wait_milliseconds": 30,
"packet_byte_size": 0,
"tcp_server_default_connect_user_buffer_size": 409600,
"tcp_server_default_connect_system_buffer_size": 409600,
"list": [
{
"key": "Port_10003",
"enable": true,
"type": "Data_Feed_TCP_Server",
"output_format": {
"type": "BIN",
"use_status": true,
"mode_s_output_type": "ALL_Mode_S",
"use_mode_ac": true,
"sbs_only_pos": true
},
"port": 10003,
"connect_user_buffer_size": 409600,
"connect_system_buffer_size": 409600
},
{
"key": "udp_server",
"enable": false,
"type": "Data_Feed_UDP_Server",
"output_format": {
"type": "BIN",
"use_status": false,
"mode_s_output_type": "DF_11_17_18",
"use_mode_ac": false,
"sbs_only_pos": false
},
"port": 88
},
{
"key": "Port_10004",
"enable": false,
"type": "Data_Feed_TCP_Server",
"output_format": {
"type": "BIN",
"use_status": false,
"mode_s_output_type": "DF_11_17_18",
"use_mode_ac": false,
"sbs_only_pos": true
},
"port": 10004,
"connect_user_buffer_size": 0,
"connect_system_buffer_size": 0
},
{
"key": "Port_10005",
"enable": false,
"type": "Data_Feed_TCP_Client",
"output_format": {
"type": "BIN",
"use_status": true,
"mode_s_output_type": "NO_POS_Mode_S",
"use_mode_ac": false,
"sbs_only_pos": true
},
"url": "192.168.208.153",
"port": 10005
},
{
"key": "Port_30003",
"enable": true,
"type": "Data_Feed_TCP_Server",
"output_format": {
"type": "SBS",
"use_status": false,
"mode_s_output_type": "ALL_Mode_S",
"use_mode_ac": true,
"sbs_only_pos": true
},
"port": 30003,
"connect_user_buffer_size": 409600,
"connect_system_buffer_size": 409600
}
]
},
"data_source": {
"list": [
{
"key": "lzy_dll",
"enable": true,
"base_station_show": true,
"aircraft_show": true,
"color": "#454641",
"aircraft_pixel_size": 28,
"lat": 37.433555,
"lon": 121.408775,
"alt": 33.000000,
"update_form_gps": true,
"type": "Dll_Data_Source",
"library_path": "@/lib9002/lib9002.so",
"function_name": "adsb_read",
"data_type": "BIN_Blank_Text",
"buffer_size": 200000
},
{
"key": "radarcape",
"enable": true,
"base_station_show": true,
"aircraft_show": true,
"color": "#d46053",
"aircraft_pixel_size": 20,
"lat": 0.000000,
"lon": 0.000000,
"alt": 0.000000,
"update_form_gps": true,
"type": "TCP_Client_Data_Source",
"ip": "192.168.214.116",
"port": 10003
}
]
},
"source_feed_relation": {
"list": [
{
"key": "key_10003",
"enable": true,
"type": "First_Source_To_All_Feed_Relation"
}
]
}
},
"log": {
"open_mode": "Delete",
"piece_num": 10,
"size_MB": 10
},
"console": {
"record_playback": false,
"mode_s_console": false,
"post_request": false,
"mlat_server": true
}
}
上传路径: /home/heco/ys_ecap_server/v1.0.3/drogon_uploads
[主线程:140083300478144]
web服务器线程线程[id:140083176929024] 启动!
http://0.0.0.0:9081
http://192.168.1.75:9081
drogon::app().run(); {
"app": {
"threads_num": 0,
"client_max_body_size": "500M"
}
}
lzy_dll_DS_HT线程[id:140083160143616] 启动!
data_feed_thread线程[id:140083168536320] 启动!
iq回调处理线程线程[id:140083143358208] 启动!
radarcape_DS_HT线程[id:140083151750912] 启动!
[func~] Server_Socket:[0.0.0.0:10003] 添加了连接 [fd:20:[192.168.214.116:32784]]
[init_adsb9002]==> big_data_shm_attach_consumer failed!
shm_open failed, errno: 13
[init_adsb9002]==> cmd_shm_init failed!
===== ini 配置解析结果 =====
==== adsb_param 结果 ====
CheckSwitch(开关):开启(1)
smode_PlsNosDlt3.5
smode_PlsPlsDlt6.0
smode_SnrThrd6.0
smode_ModSHLDlt0.1
acmode_PlsNosDlt3.5
acmode_PlsPlsDlt6.0
acmode_SnrThrd6.0
==== save_channel_param 结果 ====
sw1:0
sw2:0
[init9002]==> json_str = {
"gain": "30.0",
"clock_ref": "external",
"is_save_adsb": "0",
"is_save_yuanshi_iq": "0",
"save_yuanshi_size_MByte": "1000",
"is_save_gps": "0",
"new_file_zhouqi_s": "60",
"max_save_file_count": "3",
"is_trans_gps": "1"
}
Invalid send parameters
[setDevClockSource]==> sourceStr v:[external]
[adsb_set_less_30Mhz_ddc_param]==> adsb_set_less_30Mhz_ddc_param 16000000 60000 40000
[adsb_set_less_30Mhz_fft_param]==> adsb_set_less_30Mhz_fft_param 3 2048 10
[adsb_set_iq_cbk]==> adsb_set_iq_cbk 0x7f67aed5d3d0 1
^Csignal_handler [SIGINT (Ctrl+C)]
保存配置文件 operator() /aenv/proj/ECAP_Server/module/Local_Server_main.cpp:78 wyc_main(int, char**)::<lambda()>
shutdown
开始停止web服务
开始等待所有子线程关闭 共有5个线程正在运行:
index:[0] 需要关闭:data_feed_thread data_feed_thread
index:[1] 需要关闭:iq回调处理线程 iq回调处理线程
index:[2] 需要关闭:lzy_dll_DS_HT lzy_dll_DS_HT
index:[3] 需要关闭:radarcape_DS_HT radarcape_DS_HT
index:[4] 需要关闭:web服务器线程 web服务器线程
data_feed_thread iq回调处理线程 lzy_dll_DS_HT radarcape_DS_HT web服务器线程
================= 剩余时间: 10000 毫秒web服务器线程 radarcape_DS_HT iq回调处理线程 lzy_dll_DS_HT data_feed_thread
【iq回调处理线程】 线程 耗时: 1780275278609 毫秒 退出! thread id:[140083143358208]
【web服务器线程】 线程 耗时: 1780275278610 毫秒 退出! thread id:[140083176929024]
【radarcape_DS_HT】 线程 耗时: 1780275278610 毫秒 退出! thread id:[140083151750912]
【lzy_dll_DS_HT】 线程 耗时: 1780275278610 毫秒 退出! thread id:[140083160143616]
【data_feed_thread】 线程 耗时: 1780275278666 毫秒 退出! thread id:[140083168536320]
需要关闭的子线程已全部关闭完成!
Invalid send parameters
big_data_shm_destroy over
cmd_shm_free over
[func~dsp] stop_program ===== [stop_program:2],
DSP_Config adsb_close 开始关闭子库!
DSP_Config adsb_close 关闭子库结束!
destroy开始
Global::~Global()
[func~] 析构关闭的Server_SocketServer_Socket:[0.0.0.0:10003]
[func~Server_Socket] Server_Socket:[0.0.0.0:10003]开始关闭, 剩余连接数:1 fd:20:[192.168.214.116:32784] 关闭完毕!
[func~] 析构关闭的Server_SocketServer_Socket:[0.0.0.0:30003]
[func~Server_Socket] Server_Socket:[0.0.0.0:30003]开始关闭, 剩余连接数:0 关闭完毕!
Base_Logger_Manager::instance()->destroy()开始
Base_Logger_Manager::~Base_Logger_Manager()[buffer_size:65536], [flush_seconds:3], [thread_num:1], spdlog::shutdown()!
clear完成
heco@heco:~/ys_ecap_server$