From 3b2e9b38b09410bee536783431a112712d8832c8 Mon Sep 17 00:00:00 2001 From: wyc <1104749580@qq.com> Date: Mon, 6 Jul 2026 14:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B2=A1=E7=94=A8=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/1221/config.json | 157 ------- config/S79hostapd | 26 -- config/S90E-CAP | 25 -- config/config.json.back | 302 ------------- config/config2.json | 251 ----------- config/data_progress_config.json | 9 - config/deploy.sh | 201 --------- config/interface | 36 -- config/polkit 规则 | 20 - config/pt | 205 --------- config/restart_net_service.sh | 10 - config/server_config_win.json | 25 -- config/update.sh | 51 --- config/upgrade.bash | 124 ------ config/x86_linux/config.json | 174 -------- config/x86_linux/data_progress_config.json | 9 - config/前端任务 | 7 - logrotate | 1 - script/api.http | 480 --------------------- script/old/ecap.service | 48 --- script/old/heco22.service | 47 -- script/rc.local | 5 - script/scp.bash | 46 -- script/scp.ps1 | 34 -- script/scp_wwwroot.bash | 27 -- script/start_22.sh | 56 --- script/upgrade.ps1 | 15 - script/重启fpga | 14 - ssh | 6 - todolist.txt | 10 - 初版升级步骤.txt | 21 - 多点定位数据模拟以及算法规范.txt | 28 -- 多进程隔离.txt | 15 - 33 files changed, 2485 deletions(-) delete mode 100644 config/1221/config.json delete mode 100644 config/S79hostapd delete mode 100644 config/S90E-CAP delete mode 100644 config/config.json.back delete mode 100644 config/config2.json delete mode 100644 config/data_progress_config.json delete mode 100644 config/deploy.sh delete mode 100644 config/interface delete mode 100644 config/polkit 规则 delete mode 100644 config/pt delete mode 100644 config/restart_net_service.sh delete mode 100644 config/server_config_win.json delete mode 100644 config/update.sh delete mode 100644 config/upgrade.bash delete mode 100644 config/x86_linux/config.json delete mode 100644 config/x86_linux/data_progress_config.json delete mode 100644 config/前端任务 delete mode 100644 logrotate delete mode 100644 script/api.http delete mode 100644 script/old/ecap.service delete mode 100644 script/old/heco22.service delete mode 100644 script/rc.local delete mode 100644 script/scp.bash delete mode 100644 script/scp.ps1 delete mode 100644 script/scp_wwwroot.bash delete mode 100644 script/start_22.sh delete mode 100644 script/upgrade.ps1 delete mode 100644 script/重启fpga delete mode 100644 ssh delete mode 100644 todolist.txt delete mode 100644 初版升级步骤.txt delete mode 100644 多点定位数据模拟以及算法规范.txt delete mode 100644 多进程隔离.txt diff --git a/config/1221/config.json b/config/1221/config.json deleted file mode 100644 index 3678d35..0000000 --- a/config/1221/config.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "version": "v1.0.0", - "dsp": { - "library_path": "@/libdll_source.so", - "center_freq": 15000000, - "band_width": 10000, - "sample_rate": 60000, - "fft_point_number": 32768, - "fft_period_ms": 10, - "fft_win_type": "blkmc", - "url": "0.0.0.0", - "port": 6000, - "power_min": -200, - "power_max": 200, - "power_offset": -166, - "filename_prefix": "ECAP_", - "filename_suffix": ".dat", - "frame_rate": 30, - "debug": false - }, - "drogon": { - "app": { - "threads_num": 0 - } - }, - "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, - "read_milliseconds": 100, - "monitor_msg_live": false, - "mode_s_max_num": 700000, - "mode_other_max_num": 10000, - "report_data_feed_msg_mum": 10000, - "data_feed": { - "empty_wait_milliseconds": 10, - "packet_byte_size": 1, - "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 - }, - "port": 10003 - }, - { - "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 - }, - "port": 10004 - }, - { - "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 - }, - "url": "192.168.208.153", - "port": 10005 - }, - { - "key": "Port_30003", - "enable": false, - "type": "Data_Feed_TCP_Server", - "output_format": { - "type": "SBS", - "use_status": false, - "mode_s_output_type": "ALL_Mode_S", - "use_mode_ac": true - }, - "port": 30003 - } - ] - }, - "data_source": { - "list": [ - { - "key": "mode_acs_shared_memory", - "enable": true, - "base_station_show": true, - "aircraft_show": false, - "color": "#e4f40b", - "aircraft_pixel_size": 38, - "lat": 37.073685, - "lon": 120.870472, - "alt": 9479.280000, - "update_form_gps": false, - "type": "Shared_Memory_Data_Source", - "shared_memory_name": "mode_acs", - "shared_memory_size": 20000, - "data_type": "BIN_Blank" - } - ] - }, - "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 - } -} diff --git a/config/S79hostapd b/config/S79hostapd deleted file mode 100644 index e007880..0000000 --- a/config/S79hostapd +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -[ -f /etc/hostapd.conf ] || exit 0 - -case "$1" in -start) - printf "Starting hostapd: " - start-stop-daemon -S -x /usr/sbin/hostapd -- -B /etc/hostapd.conf - [ $? = 0 ] && echo "OK" || echo "FAIL" - ;; -stop) - printf "Stopping hostapd: " - start-stop-daemon -K -q -x /usr/sbin/hostapd - [ $? = 0 ] && echo "OK" || echo "FAIL" - ;; -restart | reload) - $0 stop - $0 start - ;; -*) - echo "Usage: $0 {start|stop|restart}" - exit 1 - ;; -esac - -exit 0 diff --git a/config/S90E-CAP b/config/S90E-CAP deleted file mode 100644 index 983a652..0000000 --- a/config/S90E-CAP +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -case "$1" in -start | "") - while true; do - printf "Starting E-CAP: " - cd /root/ - ./Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug >out.log 2>&1 - # ./Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug - sleep 3 - done & - ;; -stop | status) - printf "Stopping E-CAP: " - pkill Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug - ;; -restart | reload | force-reload) - echo "Error: argument '$1' not supported" >&2 - exit 3 - ;; -*) - echo "Usage: [start|stop]" >&2 - exit 3 - ;; -esac diff --git a/config/config.json.back b/config/config.json.back deleted file mode 100644 index fdc8eb2..0000000 --- a/config/config.json.back +++ /dev/null @@ -1,302 +0,0 @@ -{ - "version": "windows_v1.1.2", - "dsp": { - "library_path": "@/dll_source.dll", - "center_freq": 16000000, - "band_width": 6000, - "sample_rate": 60000, - "fft_point_number": 2048, - "fft_period_ms": 50, - "fft_win_type": "blkmc", - "url": "0.0.0.0", - "port": 6000, - "power_min": -380, - "power_max": 120, - "power_offset": -166, - "frame_rate": 60, - "debug": false, - "demod_mode": "LSB", - "audio_gain": 30, - "color_gain": 120 - }, - "drogon": { - "app": { - "threads_num": 0, - "client_max_body_size": "1000M", - "client_max_memory_body_size": "1000M" - } - }, - "http_monitor": { - "access_log": true, - "slow_request_threshold_ms": 1000, - "slow_scope_threshold_ms": 100 - }, - "mlat": { - "enable": false, - "merge": false, - "library_path": "@/mlat_source.dll", - "function_name": "adsb_read" - }, - "web_server": { - "webapp": "D:/ae/proj/projects/ECAP_Server/ver/v1.0.4/wwwroot", - "tiles": "D:/tiles" - }, - "device": { - "net": [ - { - "key": "device", - "ip": "192.168.1.75", - "netmask": "255.255.255.0", - "gateway": "192.168.1.1", - "port": 80 - }, - { - "key": "wifi", - "ip": "192.168.10.193", - "netmask": "255.255.255.0", - "gateway": "192.168.10.1", - "port": 80 - } - ] - }, - "mode_acs": { - "timeout_seconds": 160, - "max_speed_m_s": 1000, - "air_pos_timeout": 8, - "surface_pos_timeout": 32, - "read_milliseconds": 100, - "max_track_point_size": 20000, - "mode_s_max_num": 700000, - "mode_other_max_num": 10000, - "report_data_feed_msg_mum": 10000, - "default_min_aircraft_list_num": 10, - "ignore_df_11": true, - "monitor_msg_live": false, - "ecap_sqlite_path": "D:/ae/proj/projects/ECAP_Server/sqlite/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": "22333", - "enable": false, - "type": "Data_Feed_UDP_Server", - "output_format": { - "type": "BIN", - "use_status": false, - "mode_s_output_type": "ALL_Mode_S", - "use_mode_ac": false, - "sbs_only_pos": false - }, - "port": 50001 - }, - { - "key": "Port_10004", - "enable": false, - "type": "Data_Feed_UDP_Client", - "output_format": { - "type": "AVR", - "use_status": false, - "mode_s_output_type": "DF_11_17_18", - "use_mode_ac": false, - "sbs_only_pos": true - }, - "url": "192.168.1.75", - "port": 30004 - }, - { - "key": "Port_10005", - "enable": true, - "type": "Data_Feed_TCP_Client", - "output_format": { - "type": "BIN", - "use_status": true, - "mode_s_output_type": "NO_POS_Mode_S", - "use_mode_ac": true, - "sbs_only_pos": true - }, - "url": "192.168.1.167", - "port": 10005 - }, - { - "key": "Port_30003", - "enable": false, - "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": 0, - "connect_system_buffer_size": 0 - } - ] - }, - "data_source": { - "list": [ - { - "key": "aaaa", - "enable": false, - "base_station_show": true, - "aircraft_show": true, - "color": "#d1a54c", - "aircraft_pixel_size": 20, - "type": "File_Data_Source", - "lat": 37.000000, - "lon": 121.000000, - "alt": 0.000000, - "update_form_gps": false, - "show_icao": true, - "show_call_sign": true, - "show_fly_status": true, - "keep_mode": true, - "file_path": "D:\\ae\\proj\\projects\\ECAP_Server\\data\\BIN_Blank_Text\\ADS-B_195_0205.txt", - "data_type": "BIN_Blank_Text", - "play_mode": "loop" - }, - { - "key": "lzy_dll", - "enable": true, - "base_station_show": true, - "aircraft_show": true, - "color": "#454641", - "aircraft_pixel_size": 28, - "type": "Dll_Data_Source", - "lat": 37.433547, - "lon": 121.408730, - "alt": 23.000000, - "update_form_gps": true, - "show_icao": true, - "show_call_sign": false, - "show_fly_status": false, - "keep_mode": true, - "library_path": "@/dll_source.dll", - "function_name": "adsb_read", - "data_type": "BIN_Blank_Text", - "buffer_size": 200000 - } - ] - }, - "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 - }, - "external_database": { - "list": [ - { - "name": "tar1090_db_aircraft", - "download_url": "https://raw.githubusercontent.com/wiedehopf/tar1090-db/refs/heads/csv/aircraft.csv.gz", - "description": "wiedehopf/tar1090-db 发布的轻量 ICAO24 飞机静态库,提供注册号、机型、年份和运营方备注。", - "update_interval_seconds": 604800, - "last_updated_at": 0 - }, - { - "name": "wiedehopf_tar1090_db_aircraft", - "download_url": "https://raw.githubusercontent.com/wiedehopf/tar1090-db/refs/heads/csv/aircraft.csv.gz", - "description": "wiedehopf/tar1090-db 项目发布的飞机静态数据库镜像,供 tar1090 本地识别飞机。", - "update_interval_seconds": 604800, - "last_updated_at": 0 - }, - { - "name": "mictronics_aircraft_database", - "download_url": "https://raw.githubusercontent.com/wiedehopf/tar1090-db/refs/heads/csv/aircraft.csv.gz", - "description": "Mictronics 社区飞机数据库的 tar1090 汇总镜像,可按 ICAO24 查询注册号、机型和运营方。", - "update_interval_seconds": 604800, - "last_updated_at": 0 - }, - { - "name": "opensky_aircraft_database", - "download_url": "https://opensky-network.org/datasets/metadata/aircraftDatabase.csv", - "description": "OpenSky Network 飞机元数据 CSV,包含制造商、型号、注册号和运营方等字段。", - "update_interval_seconds": 604800, - "last_updated_at": 0 - }, - { - "name": "faa_aircraft_registry", - "download_url": "https://registry.faa.gov/database/ReleasableAircraft.zip", - "description": "FAA 官方可公开下载的美国飞机注册库,MASTER.txt 包含 Mode-S Hex 注册信息。", - "update_interval_seconds": 86400, - "last_updated_at": 0 - }, - { - "name": "icao_doc_8643_aircraft_type_designators", - "download_url": "", - "description": "ICAO Doc 8643 机型代码表,用于将 A320、B738 等 designator 映射为制造商、型号和类别。", - "update_interval_seconds": 2419200, - "last_updated_at": 0 - }, - { - "name": "vrs_routes", - "download_url": "https://vrs-standing-data.adsb.lol/routes.csv", - "description": "VRS 航线表,以 callsign 查询机场代码序列,用于推断起飞机场、经停机场和目的机场。", - "update_interval_seconds": 3600, - "last_updated_at": 0 - }, - { - "name": "vrs_airports", - "download_url": "https://vrs-standing-data.adsb.lol/airports.csv", - "description": "VRS 机场字典,提供机场代码、名称、国家、经纬度和高度。", - "update_interval_seconds": 3600, - "last_updated_at": 0 - }, - { - "name": "adsblol_vrs_standing_data_routes", - "download_url": "https://vrs-standing-data.adsb.lol/routes.csv", - "description": "ADSB.lol 发布的 VRS standing-data 航线镜像,以 callsign 查询机场代码序列。", - "update_interval_seconds": 3600, - "last_updated_at": 0 - }, - { - "name": "vradarserver_standing_data_routes", - "download_url": "https://vrs-standing-data.adsb.lol/routes.csv", - "description": "Virtual Radar Server standing-data 的航线适配表;当前在线更新使用 ADSB.lol 公共镜像。", - "update_interval_seconds": 3600, - "last_updated_at": 0 - }, - { - "name": "opensky_flightdata_api_cache", - "download_url": "", - "description": "OpenSky FlightData API 查询缓存,按 ICAO24 和时间范围保存历史航班起降机场结果。", - "update_interval_seconds": 0, - "last_updated_at": 0 - } - ] - } -} diff --git a/config/config2.json b/config/config2.json deleted file mode 100644 index df72399..0000000 --- a/config/config2.json +++ /dev/null @@ -1,251 +0,0 @@ -{ - "version": "v1.0.4", - "dsp": { - "library_path": "@/dll_source.dll", - "center_freq": 16000000, - "band_width": 6000, - "sample_rate": 60000, - "fft_point_number": 2048, - "fft_period_ms": 50, - "fft_win_type": "blkmc", - "url": "0.0.0.0", - "port": 6000, - "power_min": -380, - "power_max": 120, - "power_offset": -166, - "frame_rate": 60, - "debug": false, - "demod_mode": "LSB", - "audio_gain": 30, - "color_gain": 120 - }, - "drogon": { - "app": { - "threads_num": 0, - "client_max_body_size": "1000M", - "client_max_memory_body_size": "1000M" - } - }, - "mlat": { - "enable": false, - "merge": false, - "library_path": "@/mlat_source.dll", - "function_name": "adsb_read" - }, - "web_server": { - "webapp": "@/wwwroot", - "tiles": "D:/tiles" - }, - "device": { - "net": [ - { - "key": "device", - "ip": "192.168.1.75", - "netmask": "255.255.255.0", - "gateway": "192.168.1.1", - "port": 80 - }, - { - "key": "wifi", - "ip": "192.168.10.193", - "netmask": "255.255.255.0", - "gateway": "192.168.10.1", - "port": 80 - } - ] - }, - "mode_acs": { - "timeout_seconds": 160, - "max_speed_m_s": 1000, - "air_pos_timeout": 8, - "surface_pos_timeout": 32, - "read_milliseconds": 100, - "max_track_point_size": 20000, - "mode_s_max_num": 700000, - "mode_other_max_num": 10000, - "report_data_feed_msg_mum": 10000, - "default_min_aircraft_list_num": 10, - "ignore_df_11": true, - "monitor_msg_live": false, - "ecap_sqlite_path": "D:/ae/proj/projects/ECAP_Server/sqlite/ecap.sqlite", - "data_feed": { - "empty_wait_milliseconds": 30, - "packet_byte_size": 0, - "tcp_server_default_connect_user_buffer_size": 0, - "tcp_server_default_connect_system_buffer_size": 0, - "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": "22333", - "enable": false, - "type": "Data_Feed_UDP_Server", - "output_format": { - "type": "BIN", - "use_status": false, - "mode_s_output_type": "ALL_Mode_S", - "use_mode_ac": false, - "sbs_only_pos": false - }, - "port": 50001 - }, - { - "key": "Port_10004", - "enable": false, - "type": "Data_Feed_UDP_Client", - "output_format": { - "type": "AVR", - "use_status": false, - "mode_s_output_type": "DF_11_17_18", - "use_mode_ac": false, - "sbs_only_pos": true - }, - "url": "192.168.1.75", - "port": 30004 - }, - { - "key": "Port_10005", - "enable": true, - "type": "Data_Feed_TCP_Client", - "output_format": { - "type": "BIN", - "use_status": true, - "mode_s_output_type": "NO_POS_Mode_S", - "use_mode_ac": true, - "sbs_only_pos": true - }, - "url": "192.168.1.75", - "port": 10005 - }, - { - "key": "Port_30003", - "enable": false, - "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": 0, - "connect_system_buffer_size": 0 - } - ] - }, - "data_source": { - "list": [ - { - "key": "aaaa", - "enable": true, - "base_station_show": true, - "aircraft_show": true, - "color": "#d1a54c", - "aircraft_pixel_size": 20, - "lat": 37.000000, - "lon": 121.000000, - "alt": 0.000000, - "update_form_gps": false, - "type": "File_Data_Source", - "file_path": "D:\\ae\\proj\\projects\\ECAP_Server\\data\\BIN_Blank_Text\\ADS-B_195_0205.txt", - "data_type": "BIN_Blank_Text", - "play_mode": "one" - }, - { - "key": "本地radarcape", - "enable": true, - "base_station_show": true, - "aircraft_show": true, - "color": "#cb3065", - "aircraft_pixel_size": 20, - "lat": 37.000000, - "lon": 121.000000, - "alt": 0.000000, - "update_form_gps": false, - "type": "TCP_Client_Data_Source", - "ip": "192.168.71.101", - "port": 10003 - }, - { - "key": "r205_113", - "enable": false, - "base_station_show": false, - "aircraft_show": true, - "color": "#661a30", - "aircraft_pixel_size": 30, - "lat": 37.000000, - "lon": 121.000000, - "alt": 0.000000, - "update_form_gps": false, - "type": "TCP_Client_Data_Source", - "ip": "192.168.205.113", - "port": 10003 - }, - { - "key": "102", - "enable": true, - "base_station_show": true, - "aircraft_show": true, - "color": "#186ce1", - "aircraft_pixel_size": 20, - "lat": 0.000000, - "lon": 0.000000, - "alt": 0.000000, - "update_form_gps": false, - "type": "TCP_Client_Data_Source", - "ip": "192.168.1.102", - "port": 10003 - }, - { - "key": "r205_116", - "enable": false, - "base_station_show": true, - "aircraft_show": true, - "color": "#d7c1b6a3", - "aircraft_pixel_size": 40, - "lat": 0.000000, - "lon": 0.000000, - "alt": 5394.960000, - "update_form_gps": true, - "type": "TCP_Client_Data_Source", - "ip": "192.168.205.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 - } -} diff --git a/config/data_progress_config.json b/config/data_progress_config.json deleted file mode 100644 index e84b68b..0000000 --- a/config/data_progress_config.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "library_path": "@/dll_source.dll", - "center_freq": 200000, - "band_width": 6000, - "sample_rate": 60000, - "fft_point_number": 2048, - "fft_period_ms": 50, - "fft_win_type": "blkmc" -} \ No newline at end of file diff --git a/config/deploy.sh b/config/deploy.sh deleted file mode 100644 index 5825b0c..0000000 --- a/config/deploy.sh +++ /dev/null @@ -1,201 +0,0 @@ -#!/bin/sh - -# 检查参数数量 -if [ "$#" -ne 1 ]; then - echo "Usage: $0 " - exit 1 -fi - -dir_path="/root/u" - -# 检查U盘目录是否存在 -if [ ! -d "$dir_path" ]; then - echo "U盘目录不存在,正在创建U盘目录..." - mkdir -p "$dir_path" # 创建目录 -else - echo "U盘目录已经存在." -fi - -# 获取命令行参数 -sequence_number=$1 - -# 定义一个函数来执行复制操作并输出结果 -copy_file() { - local source_file="$1" - local target_dir="$2" - if [ -f "$source_file" ]; then - cp "$source_file" "$target_dir" - if [ $? -eq 0 ]; then - echo "文件 $source_file 已成功复制到 $target_dir 目录。" - else - echo "复制文件 $source_file 时出错。" - exit 1 - fi - else - echo "当前目录下未找到 $source_file 文件。" - fi -} -# 添加 启动脚本 到 /etc/init.d/ -copy_file "S79hostapd" "/etc/init.d/" -copy_file "S90E-CAP" "/etc/init.d/" -#copy_file "S99Check_reboot" "/etc/init.d/" - -# 移除 启动脚本 -rename_file() { - local original_name="$1" - local new_name="$2" - - if [ -f "$original_name" ]; then - mv "$original_name" "$new_name" - if [ $? -eq 0 ]; then - echo "已成功将 $original_name 重命名为 $new_name" - else - echo "重命名 $original_name 时出错。" - exit 1 - fi - else - echo "$original_name 文件不存在" - fi -} -rename_file "/etc/init.d/S49weston" "/etc/init.d/_S49weston" -rename_file "/etc/init.d/S41dhcpcd" "/etc/init.d/_S41dhcpcd" - -# 生成 /etc/hostapd.conf 文件 -hostapd_config="# 无线网络接口名称,可通过 ifconfig 或 ip addr 命令查看 -interface=wlan0 -# 使用的驱动程序,通常为 nl80211 -driver=nl80211 -# 热点的 SSID -ssid=E-CAP_${sequence_number} -# 通道号,可根据需要调整 -channel=6 -# 认证和加密模式 -hw_mode=g -ieee80211n=1 -wmm_enabled=1 -ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40] -macaddr_acl=0 -auth_algs=1 -ignore_broadcast_ssid=0 -wpa=2 -wpa_key_mgmt=WPA-PSK -wpa_pairwise=TKIP -rsn_pairwise=CCMP -# 热点的密码 -wpa_passphrase=12345678" - -echo "$hostapd_config" >/etc/hostapd.conf -if [ $? -eq 0 ]; then - echo "文件 /etc/hostapd.conf 已成功生成。" -else - echo "生成 /etc/hostapd.conf 文件时出错。" - exit 1 -fi - -# 生成 /etc/dnsmasq.conf 文件 -dnsmasq_config="# 监听的接口 -interface=wlan0 -# DHCP 服务的 IP 地址范围 -dhcp-range=192.168.10.10,192.168.10.100,255.255.255.0,12h -# 网关地址 -dhcp-option=3,192.168.10.1 -# DNS 服务器地址 -dhcp-option=6,8.8.8.8 -# 本地 DNS 服务器地址 -server=8.8.8.8 -# 禁用 DNS 缓存 -no-hosts -# 不读取 /etc/resolv.conf 文件 -no-resolv" - -echo "$dnsmasq_config" >/etc/dnsmasq.conf -if [ $? -eq 0 ]; then - echo "文件 /etc/dnsmasq.conf 已成功生成。" -else - echo "生成 /etc/dnsmasq.conf 文件时出错。" - exit 1 -fi - -# 生成 /etc/network/interfaces 文件 -network_config="# interface file auto-generated by buildroot - -auto lo -iface lo inet loopback - -auto eth0 -iface eth0 inet static - address 192.168.1.${sequence_number} - netmask 255.255.255.0 - gateway 192.168.1.1 - dns-nameservers 192.168.1.1 8.8.8.8 - post-up /usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg off - pre-down /usr/sbin/ethtool -s eth0 autoneg on -# post-up 网络接口被激活之后应该执行的命令。 -# pre-down 在网络接口即将被关闭之前执行的命令。 -# 添加这两行命令是为了限制网速为100M,解决phy网络排线过长导致网卡不稳定的问题。 - -auto wlan0 -iface wlan0 inet static - address 192.168.10.${sequence_number} - netmask 255.255.255.0 - gateway 192.168.10.1 - dns-nameservers 192.168.10.1 8.8.8.8" - -# 生成 /etc/network/interfaces 文件 -echo "$network_config" >/etc/network/interfaces -if [ $? -eq 0 ]; then - echo "文件 /etc/network/interfaces 已成功生成。" -else - echo "生成 /etc/network/interfaces 文件时出错。" - exit 1 -fi - -if [ ! -d "/root/tiles" ]; then - if [ -f "tiles.zip" ]; then # 检查 tiles.zip 文件是否存在 - unzip -q "tiles.zip" -d "/root/" # 解压 tiles.zip 到 /root/ 目录 - if [ $? -eq 0 ]; then - echo "tiles.zip 已成功解压到 /root/ 目录。" - else - echo "解压 tiles.zip 到 /root/ 目录时出错。" - exit 1 - fi - else - echo "当前目录下未找到 tiles.zip 文件。" - fi -else - echo "瓦片文件夹已存在。" -fi - -# 检查当前目录下的 Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug 文件是否存在 -if [ -f "Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug" ]; then - # 给文件添加执行权限 - chmod +x "Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug" - if [ $? -eq 0 ]; then - echo "已成功给当前目录下的 Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug 文件添加执行权限。" - else - echo "给当前目录下的 Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug 文件添加执行权限时出错。" - exit 1 - fi -else - echo "当前目录下未找到 Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug 文件。" -fi - -# 定义要设置的 root 密码 -ROOT_PASSWORD="123" - -# 使用 expect 来非交互式地修改 root 密码 -expect <"$LOG_FILE" - - # 压缩备份日志文件 - gzip "$backup_file" - echo "压缩备份日志为: ${backup_file}.gz" - - # 删除多余的备份文件(如果超过最大保留数量) - backups_count=$(ls "$LOG_DIR/backups" | grep -E "^$(basename "$LOG_FILE")" | wc -l) - if [ "$backups_count" -gt "$MAX_BACKUPS" ]; then - # 删除最早的备份 - oldest_backup=$(ls -t "$LOG_DIR/backups" | grep -E "^$(basename "$LOG_FILE")" | tail -n 1) - rm "${LOG_DIR}/backups/$oldest_backup" - echo "删除最早的备份日志: ${LOG_DIR}/backups/$oldest_backup" - fi - fi -} - -DIR="$(cd "$(dirname "$0")" && pwd)" -BOOT_TIME=$(uptime -s) # 使用 uptime 命令获取系统的开机时间 -MAX_SIZE="1M" # 最大日志文件大小 -MAX_BACKUPS=2 # 保留的最大备份数量 -# 自动崩溃收集服务 -#sudo systemctl stop apport.service -#sudo systemctl disable apport.service -#ulimit -c unlimited -#echo "/home/heco/ys_ecap_server/core/core_%e_${BOOT_TIME}_.%t.%p" | tee /proc/sys/kernel/core_pattern - -USE_VALGRIND=0 -USE_data_process=0 - -NAME1="data_process" -NAME2="ecap_server" -#LOG_PATH1="/dev/null" -#LOG_PATH2="/dev/null" -LOG_PATH1="$DIR/data_process.log" -LOG_PATH2="$DIR/ecap_server.log" - -if [ "$USE_data_process" == 1 ]; then - rotate_log "$LOG_PATH1" "$MAX_SIZE" "$MAX_BACKUPS" -fi - -rotate_log "$LOG_PATH2" "$MAX_SIZE" "$MAX_BACKUPS" - -# Ensure the log files exist and are writable -if [ "$USE_data_process" == 1 ]; then - echo "系统开机时间: $BOOT_TIME" >>"${LOG_PATH1}" - touch "${LOG_PATH1}" -fi - -echo "系统开机时间: $BOOT_TIME" >>"${LOG_PATH2}" -touch "${LOG_PATH2}" -echo "${DIR} 创建log文件成功" - -if [ "$USE_VALGRIND" == 1 ]; then - echo "启用valgrind内存检查程序" - valgrind --leak-check=full --log-file=${DIR}/${NAME2}_valgrind.log --show-leak-kinds=all ${DIR}/${NAME2} >>"${LOG_PATH2}" 2>&1 & -fi - -SLEEP_SEC="${1:-10}" -sleep "$SLEEP_SEC" -echo "等待 ${SLEEP_SEC}s 完成" - -if [ "$USE_data_process" == 1 ]; then - echo "第一次启动 ${NAME1}" - ${DIR}/${NAME1} >>"${LOG_PATH1}" 2>&1 & - if [ $? -ne 0 ]; then - echo "第一次启动 Failed to start ${NAME1} at $(date)" >>"${LOG_PATH1}" - fi -fi - -restart_count_2=0 -echo "第一次启动 ${NAME2}" -${DIR}/${NAME2} >>"${LOG_PATH2}" 2>&1 & -if [ $? -ne 0 ]; then - echo "第一次启动 Failed to start ${NAME2} at $(date)" >>"${LOG_PATH2}" -fi - -while true; do - # 监控 data_process - - if [ "$USE_data_process" == 1 ]; then - if ! pgrep -x "$NAME1" >/dev/null; then - restart_count_1=$((restart_count_1 + 1)) - echo "重启 ${NAME1} at $(date) - count: ${restart_count_1}" >>"${LOG_PATH1}" - echo "重启 ${NAME1} at $(date) - count: ${restart_count_1}" - - # 真正重启程序 - ${DIR}/${NAME1} >>"${LOG_PATH1}" 2>&1 & - if [ $? -ne 0 ]; then - echo "Failed to start ${NAME1} at $(date)" >>"${LOG_PATH1}" - fi - fi - fi - - sleep 60 - - # 监控 ecap_server - if [ "$USE_VALGRIND" == 0 ]; then - if ! pgrep -x "$NAME2" >/dev/null; then - - ss -ltnp >>"${LOG_PATH2}" - restart_count_2=$((restart_count_2 + 1)) - echo "重启 ${NAME2} at $(date) - count: ${restart_count_2}" >>"${LOG_PATH2}" - echo "重启 ${NAME2} at $(date) - count: ${restart_count_2}" - # 真正启动 - ${DIR}/${NAME2} >>"${LOG_PATH2}" 2>&1 & - if [ $? -ne 0 ]; then - echo "Failed to start ${NAME2} at $(date)" >>"${LOG_PATH2}" - fi - fi - fi - - if [ "$USE_data_process" == 1 ]; then - rotate_log "$LOG_PATH1" "$MAX_SIZE" "$MAX_BACKUPS" - fi - - rotate_log "$LOG_PATH2" "$MAX_SIZE" "$MAX_BACKUPS" - -done - -# tail -f /home/heco/ys_ecap_server/ecap_1201/data_process.log -# tail -f /home/heco/ys_ecap_server/ecap_1201/ecap_server.log -# multitail /home/heco/ys_ecap_server/ecap_1201/data_process.log /home/heco/ys_ecap_server/ecap_1201/ecap_server.log - -# kill -SIGINT -# pkill -SIGINT -# pkill -SIGINT 1125ecap_server -# pgrep -l 1125ecap_server -# [ubuntu创建守护进程,并设置开机自启动(rc.local,rc_local.sercive)] https://blog.csdn.net/weixin_46954054/article/details/134862013 -# [Ubuntu开机自启动脚本/命令的几种方案] https://blog.csdn.net/weixin_43455581/article/details/107815743 - -# sudo pkill protect.bash && sudo pkill -SIGINT ecap_server && pgrep -l protect.bash - -# pgrep -l protect.bash -# sudo pkill protect.bash -# sudo pkill -SIGINT ecap_server - -# /home/heco/ys_ecap_server/protect.bash ecap_server - -# kill -SIGINT -# pkill -SIGINT -# pkill -SIGINT 1125ecap_server -# pgrep -l 1125ecap_server -# [ubuntu创建守护进程,并设置开机自启动(rc.local,rc_local.sercive)] https://blog.csdn.net/weixin_46954054/article/details/134862013 -# [Ubuntu开机自启动脚本/命令的几种方案] https://blog.csdn.net/weixin_43455581/article/details/107815743 - -# pgrep -l protect.bash -# pkill protect.bash - -# /home/heco/ys_ecap_server/protect.bash ecap_server - -# sudo systemctl daemon-reload -# sudo systemctl enable rc-local.service # 设置开机自启 -# sudo systemctl disable rc-local.service # 关闭开机自启 -# sudo systemctl start rc-local.service # 立即启动服务 -# sudo systemctl status rc-local.service diff --git a/config/restart_net_service.sh b/config/restart_net_service.sh deleted file mode 100644 index 4e75cf1..0000000 --- a/config/restart_net_service.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -reboot - -#cat etc/network/interfaces -# -#ip link set dev eth0 down -#ip link set dev eth0 up - -#sudo systemctl restart networking diff --git a/config/server_config_win.json b/config/server_config_win.json deleted file mode 100644 index b23b38f..0000000 --- a/config/server_config_win.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "file_name": "./qingdao/data", - "http_server": { - "ip": "0.0.0.0", - "port": 40000 - }, - "tcp_server": { - "ip": "0.0.0.0", - "port": 40001, - "clients": [ - { - "id": 0, - "ip": "0.0.0.0", - "port": 10003, - "info": "仿制radarcape" - }, - { - "id": 0, - "ip": "0.0.0.0", - "port": 10003, - "info": "radarcape" - } - ] - } -} \ No newline at end of file diff --git a/config/update.sh b/config/update.sh deleted file mode 100644 index 0bcb7c0..0000000 --- a/config/update.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -export u_path="/media/udisk0" -export exe_name="Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug" -export guard_exe_name="/bin/sh /etc/init.d/S90E-CAP start" - -echo "pkill !" -pkill -f "${guard_exe_name}" -pkill -f "${exe_name}" - -echo "remove logs !" -rm -rf /root/logs* - -echo "update config.json!" -cp -r "$u_path"/config.json /root -echo "update restart_net_service.sh!" -cp -r "$u_path"/restart_net_service.sh /root -echo "update interface!" -cp -r "$u_path"/interface /root -echo "update wwwroot!" -rm -rf /root/wwwroot -cp -rp "$u_path"/wwwroot /root - -while pgrep -f "${guard_exe_name}" >/dev/null; do - echo "${guard_exe_name} Process is still running wait one second!" - sleep 1 -done -while pgrep -f "${exe_name}" >/dev/null; do - echo "${exe_name} Process is running still running wait one second!" - sleep 1 -done - -echo "update ${exe_name}!" -cp -r "$u_path/${exe_name}" /root - -#/bin/sh /etc/init.d/S90E-CAP start - -echo "程序更新成功!" - -# 查看挂载: mount -# 卸载U盘: umount /media/udisk0 -# U盘默认地址:/media/udisk0 -# 单独更新 cp -r /media/udisk0/* /root -# mkdir /root/u && chmod 777 /root/u -# 自动部署: cp /media/udisk0/deploy.sh /root/u && chmod 777 /root/u/deploy.sh && /root/u/deploy.sh 190 -# 更新: cp /media/udisk0/update.sh /root/u && chmod 777 /root/u/update.sh && /root/u/update.sh - -# sudo fdisk -l - -# /etc/init.d/S90E-CAP stop -# pkill diff --git a/config/upgrade.bash b/config/upgrade.bash deleted file mode 100644 index a23ba4c..0000000 --- a/config/upgrade.bash +++ /dev/null @@ -1,124 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -if [[ "${UPGRADE_DAEMONIZED:-0}" != "1" ]]; then - export UPGRADE_DAEMONIZED=1 - nohup "$0" "$@" >/dev/null 2>&1 & - exit 0 -fi - -# ---------- 参数校验 ---------- -if [ "$#" -ne 2 ]; then - echo "用法: $0 " - exit 1 -fi - -old_version="$1" -new_version="$2" - -# ---------- 脚本目录 ---------- -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" - -# ---------- 日志 ---------- -LOG_DIR="${SCRIPT_DIR}/upgrade_logs" -LOG_FILE="${LOG_DIR}/upgrade_${old_version}_to_${new_version}.log" -mkdir -p "$LOG_DIR" - -# 覆盖写日志(重要) -: >"$LOG_FILE" - -# 所有输出写日志 + 控制台 -exec > >(tee -a "$LOG_FILE") 2>&1 - -echo "===== Upgrade start: $(date) =====" -echo "old_version=${old_version}" -echo "new_version=${new_version}" -echo "SCRIPT_DIR=${SCRIPT_DIR}" - -# ---------- 路径定义 ---------- -OLD_DIR="${SCRIPT_DIR}/${old_version}" -NEW_DIR="${SCRIPT_DIR}/${new_version}" -PKG="${NEW_DIR}/${new_version}.zip" -STOP_SCRIPT="${OLD_DIR}/stop.bash" -PT_BIN="${NEW_DIR}/pt" -PROTECT_SCRIPT="${SCRIPT_DIR}/protect.bash" - -# ---------- 基础校验 ---------- -for d in "$OLD_DIR" "$NEW_DIR"; do - [ -d "$d" ] || { - echo "目录不存在: $d" - exit 1 - } -done - -[ -f "$PKG" ] || { - echo "升级包不存在: $PKG" - exit 1 -} - -command -v unzip >/dev/null || { - echo "unzip 未安装" - exit 1 -} - -# ---------- 停止旧版本 ---------- -echo "[1/5] 停止旧版本" -if [ -x "$STOP_SCRIPT" ]; then - "$STOP_SCRIPT" -else - echo "stop.bash 不存在或不可执行: $STOP_SCRIPT" - exit 1 -fi - -# ---------- 解压新版本(覆盖) ---------- -echo "[2/5] 解压新版本" -unzip -o "$PKG" -d "$NEW_DIR" - -# ---------- 校验新程序 ---------- -echo "[3/5] 校验新程序" -[ -f "$PT_BIN" ] || { - echo "pt 程序不存在: $PT_BIN" - exit 1 -} -chmod +x "$PT_BIN" - -# ---------- 写 protect.bash(覆盖) ---------- -echo "[4/5] 写 protect.bash" - -cat >"$PROTECT_SCRIPT" < "\${DIR}/pt.log" 2>&1 -EOF - -chmod +x "$PROTECT_SCRIPT" - -# ---------- 启动新版本 ---------- -echo "[5/5] 启动新版本" - -LOG_FILE="${NEW_DIR}/pt.log" - -# 确保日志文件存在 -if [ ! -e "$LOG_FILE" ]; then - touch "$LOG_FILE" -fi - -# 设置日志权限 -chmod 777 "$LOG_FILE" - -# 后台启动新版本 -nohup "$PT_BIN" 0 >>"$LOG_FILE" 2>&1 & -disown - -echo "Upgrade finished, pt started in background" -exit 0 diff --git a/config/x86_linux/config.json b/config/x86_linux/config.json deleted file mode 100644 index 3d564e3..0000000 --- a/config/x86_linux/config.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "version": "v1.0.0", - "dsp": { - "url": "0.0.0.0", - "port": 6000, - "center_freq": 800000, - "band_width": 6000, - "sample_rate": 7500, - "fft_point_number": 1024, - "fft_period_ms": 50, - "fft_win_type": "blkmc", - "library_path": "@/libdll_source.so", - "filename_prefix": "ECAP_", - "filename_suffix": ".dat", - "power_min": -200, - "power_max": 200, - "power_offset": -166, - "frame_rate": 30, - "debug": false - }, - "drogon": { - "app": { - "threads_num": 0 - } - }, - "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, - "read_milliseconds": 100, - "mode_s_max_num": 700000, - "mode_other_max_num": 10000, - "report_data_feed_msg_mum": 10000, - "monitor_msg_live": false, - "data_feed": { - "empty_wait_milliseconds": 10, - "packet_byte_size": 1, - "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 - }, - "port": 10003 - }, - { - "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 - }, - "url": "0.0.0.0", - "port": 10004 - }, - { - "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 - }, - "url": "192.168.208.153", - "port": 10005 - }, - { - "key": "Port_30003", - "enable": false, - "type": "Data_Feed_TCP_Server", - "output_format": { - "type": "SBS", - "use_status": false, - "mode_s_output_type": "ALL_Mode_S", - "use_mode_ac": true - }, - "port": 30003 - } - ] - }, - "data_source": { - "list": [ - { - "key": "dll", - "enable": true, - "base_station_show": true, - "aircraft_show": true, - "color": "#6c5552fa", - "aircraft_pixel_size": 34, - "lat": 37.510269, - "lon": 121.439950, - "alt": 1000.000000, - "update_form_gps": false, - "type": "Dll_Data_Source", - "library_path": "@/libdll_source.so", - "function_name": "adsb_read", - "data_type": "BIN_Blank" - }, - { - "key": "binary_data48__2025-01-06.222333", - "enable": false, - "base_station_show": true, - "aircraft_show": true, - "color": "#4e545c", - "aircraft_pixel_size": 38, - "lat": 37.510269, - "lon": 121.439950, - "alt": 1000.000000, - "update_form_gps": false, - "type": "File_Data_Source", - "file_path": "C:\\wyc\\CLionProjects\\plantSunCat\\mainProjects\\Radarcape\\data\\BIN\\binary_data48__2025-01-06.2.log", - "data_type": "BIN", - "play_mode": "analysis" - } - ] - }, - "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 - } -} diff --git a/config/x86_linux/data_progress_config.json b/config/x86_linux/data_progress_config.json deleted file mode 100644 index 53fb584..0000000 --- a/config/x86_linux/data_progress_config.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "library_path": "@/libdll_source.so", - "center_freq": 200000, - "band_width": 6000, - "sample_rate": 60000, - "fft_point_number": 2048, - "fft_period_ms": 50, - "fft_win_type": "blkmc" -} \ No newline at end of file diff --git a/config/前端任务 b/config/前端任务 deleted file mode 100644 index 59d2806..0000000 --- a/config/前端任务 +++ /dev/null @@ -1,7 +0,0 @@ -前端构思 - - -那些接口写整体加上 一个数据源参数 -数据源可以设置颜色 默认随机色 - - diff --git a/logrotate b/logrotate deleted file mode 100644 index c6023d1..0000000 --- a/logrotate +++ /dev/null @@ -1 +0,0 @@ -https://zhuanlan.zhihu.com/p/1899057198333670933 \ No newline at end of file diff --git a/script/api.http b/script/api.http deleted file mode 100644 index 64ef9a4..0000000 --- a/script/api.http +++ /dev/null @@ -1,480 +0,0 @@ - - -# @ip = 192.168.1.175 -# @port = 9081 -# @prefix = api/ - -@ip = localhost -@port = 80 -@prefix = api/ - -### aircraftlist.json -GET http://{{ip}}:{{port}}/aircraftlist.json - -### aircraftlist.json -GET http://192:168.205.116/aircraftlist.json - - - -### aircraft_list aircraftlist.json 默认版本使用默认数据源 -GET http://192.168.205.116:9081/aircraftlist.json - - -### aircraft_list aircraftlist.json 默认版本使用默认数据源 -GET http://27.216.218.236:9081/aircraftlist.json - -### aircraft_list aircraftlist.json 的带数据源版本 -POST http://{{ip}}:{{port}}/{{prefix}}aircraft_list -Authorization: 123 - -{ - "data_source_key": "binary_data48__2025-01-06.222333" -} - - - - - -### 获取错误日志 -POST http://{{ip}}:{{port}}/{{prefix}}get_debug_log - -{ - "serial_number": 3 -} - - -### 获取错误日志 -POST http://{{ip}}:{{port}}/{{prefix}}get_mode_s_basic_config - -{ -} - - - - - -### 获取飞机基础信息 -POST http://{{ip}}:{{port}}/{{prefix}}get_aircraft_base_info - -{ - "data_source_key": "radcap24", - "icao": "71C510" -} - -### 获取飞机详细信息 -POST http://{{ip}}:{{port}}/{{prefix}}get_general_info - - - -### 获取飞机详细信息 -POST http://{{ip}}:{{port}}/{{prefix}}get_aircraft_detail_info - -{ - "data_source_key": "radcap24", - "icao": "71C510" -} - -### 获取飞机轨迹 最后的几个 -POST http://{{ip}}:{{port}}/{{prefix}}get_aircraft_track_list - -{ - "data_source_key": "binary_data48__2025-01-06.2", - "icao": "780C6D", - "last_size":106 -} - - - -### 获取飞机在某个时间点之后 -POST http://{{ip}}:{{port}}/{{prefix}}get_aircraft_list_after -Authorization: 123 - -{ - "timestamp": 1743407092 -} - - -### 请求飞机变更列表 -POST http://{{ip}}:{{port}}/{{prefix}}aircraft_change_list -Authorization: 123 - -{ - "data_source_key": "binary_data48__2025-01-06.222333" -} - - - - -#### 版本 -POST http://{{ip}}:{{port}}/{{prefix}}version -Authorization: 123 - -### 登录 -#{ -# "status": 200, -# "data": { -# "status": true -# } -#} -POST http://{{ip}}:{{port}}/{{prefix}}login -Content-Type: application/json -Authorization: 123 - -{ - "account": "admin", - "password": "123" -} - -### 获取多点服务器配置 -POST http://{{ip}}:{{port}}/{{prefix}}get_mlat_server_config - - -### 设置多点服务器配置 -POST http://{{ip}}:{{port}}/{{prefix}}set_mlat_server_config - -{ - "ip": "192.168.1.24", - "port": 1111, - "id": 1 -} - - - -### 基站位置 -POST http://{{ip}}:{{port}}/{{prefix}}get_base_station_location -Authorization: 123 - -{ - "data_source_key": "radcap254" -} - - -### 获取 设备配置 -POST http://{{ip}}:{{port}}/{{prefix}}get_device_config -Content-Type: application/json -Authorization: 123 - -### -GET http://192.168.208.191/ui/map - -### -GET http://192.168.208.191/ - - - - -### 设置 设备配置 -POST http://{{ip}}:{{port}}/{{prefix}}set_device_config -Content-Type: application/json -Authorization: 123 - -{ - "net": [ - { - "key": "device", - "ip": "192.168.1.193", - "netmask": "255.255.255.0", - "gateway": "192.168.1.1", - "port": 80 - }, - { - "key": "wifi", - "ip": "192.168.10.193", - "netmask": "255.255.255.0", - "gateway": "192.168.10.1", - "port": 80 - } - ] -} - -### 获取 数据源 整体 -POST http://{{ip}}:{{port}}/{{prefix}}get_mode_s_data_source_config - -### 获取基站 -POST http://{{ip}}:{{port}}/{{prefix}}get_base_station_location - -{ - "data_source_key": "radcap254" -} - - - - -### 获取 全部 数据馈送 端口配置 -@data_feed_name = data_feed - -POST http://{{ip}}:{{port}}/{{prefix}}get_data_feed_config -Content-Type: application/json -Authorization: 123 - - - - -### 获取 全部 数据馈送 端口配置 -POST http://{{ip}}:{{port}}/{{prefix}}aircraft_change_list -Content-Type: application/json - - -### 设置数据馈送端口配置 -POST http://{{ip}}:{{port}}/{{prefix}}update_{{data_feed_name}} -Content-Type: application/json -Authorization: 123 - -{ - "key": "Port_10005", - "enable": false, - "net_send_type": "TCP_Client", - "url": "0.0.0.0", - "port": 10005, - "output_format": "BIN", - "use_status": true, - "mode_s_output_type": "NO_POS_Mode_S", - "use_mode_ac": false -} - -### 查 -POST http://{{ip}}:{{port}}/{{prefix}}search_{{data_feed_name}} -Content-Type: application/json -Authorization: 123 - -{ - "key": "Port_10003" -} - - - - -### 数据源-数据馈送-关系配置相关项目 -@relation_name = source_feed_relation -### 查全体 -POST http://{{ip}}:{{port}}/{{prefix}}get_{{relation_name}}_config - - -### 查 -POST http://{{ip}}:{{port}}/{{prefix}}search_{{relation_name}} - -{ - "key":"1" -} - -### 增 -POST http://{{ip}}:{{port}}/{{prefix}}insert_{{relation_name}} - -### 删 -POST http://{{ip}}:{{port}}/{{prefix}}remove_{{relation_name}} - -### 改 -POST http://{{ip}}:{{port}}/{{prefix}}update_{{relation_name}} - -### 上移 -POST http://{{ip}}:{{port}}/{{prefix}}rise_{{relation_name}} - -### 下移 -POST http://{{ip}}:{{port}}/{{prefix}}fall_{{relation_name}} - - -### 多点定位相关接口 -POST http://{{ip}}:{{port}}/{{prefix}}get_mlat_list - - - -### 多点定位相关接口 -GET http://192.168.1.75/tiles/0.png - -### -GET http://192.168.1.75/tiles/3/-3/1.png - - -### 多点定位相关接口 -GET http://127.0.0.1/tiles/0.png - - - - -// DSP 相关接口 - -### DSP 获取数据 -POST http://{{ip}}:{{port}}/{{prefix}}get_dsp_data -Authorization: 123 - -### 更新 -POST http://{{ip}}:{{port}}/{{prefix}}update_dsp -Authorization: 123 - -{ - "port": 80 - "center_freq": 80 - "band_width": 80 - "sample_rate": 80 -} - -### 获取 -POST http://{{ip}}:{{port}}/{{prefix}}get_dsp_config -Authorization: 123 - -### 获取 -POST http://{{ip}}:{{port}}/{{prefix}}get_dsp_data - -### 获取 -GET http://127.0.0.1:80/hello - -### 获取 -GET http://{{ip}}:{{port}} - -### 获取 -GET http://{{ip}}:{{port}}/tiles/3/-3/1.png - -### 获取 -GET http://{{ip}}:{{port}}/assets/index-emIKMKOm.js - -### -GET http://{{ip}}:{{port}}/lightningchart-js/lcjs.theme.js - -### -http://localhost:8848/api/method/test - -### 获取 -POST http://192.168.1.110:9081/api/get_dsp_data - - -### 开始录制 -POST http://{{ip}}:{{port}}/{{prefix}}start_record_iq_stream - -{ - dir: "C:\wyc\plantSunCat\build" - file_name: "test.txt" -} - - -### 结束录制 -POST http://{{ip}}:{{port}}/{{prefix}}end_record_iq_stream - -### 结束录制 -GET http://{{ip}}:{{port}}/aircraftlist.json - -### 结束录制 -POST http://{{ip}}:{{port}}/download_iq - -### - -POST http://{{ip}}:{{port}}/{{prefix}}get_dsp_config - - - -### - -GET http://{{ip}}:{{port}}/get_debug_info - -### - -POST http://{{ip}}:{{port}}/{{prefix}}version - -### -GET http://192.168.1.112:9081/get_debug_info - -### -GET http://{{ip}}:{{port}}/tiles/3/-2/-1.png - - -### - -POST http://{{ip}}:{{port}}/let_oom - -{ -} - -### - -POST http://{{ip}}:{{port}}/let_dump - -{ -} - -### -POST http://192.168.1.114:9081/let_dump - -{ -} - -### - -POST http://192.168.1.110:9081/api/version - -### -POST http://192.168.1.114:9081/let_oom - -{ -} - - -### -POST http://192.168.204.116:9081/api/get_data_feed_server_connect - -{ - "key": "mode_acs_shared_memory" -} - - -### -POST http://{{ip}}:{{port}}/{{prefix}}get_data_source_connect - -{ - "key": "mode_acs_shared_memory" -} - - - -#### 在线升级 -#POST http://{{ip}}:{{port}}/{{prefix}}import_version -#Content-Type: multipart/form-data; boundary=----CLION_BOUNDARY -# -#------CLION_BOUNDARY -#Content-Disposition: form-data; name="file"; filename="v1.0.2.zip" -#Content-Type: application/octet-stream -# -#< C:\Users\wyc\Desktop\version_control\v1.0.2.zip -#------CLION_BOUNDARY-- - - -### 在线升级(纯内存解压) -POST http://192.168.1.102:9081/{{prefix}}import_version -Content-Type: application/zip -dir: v1.0.2 - -< C:/Users/wyc/Desktop/version_control/v1.0.2.zip - -### 在线升级(纯内存解压) -POST http://{{ip}}:{{port}}/{{prefix}}import_version -Content-Type: application/zip -dir: v1.0.2 - -< C:/Users/wyc/Desktop/version_control/v1.0.2.zip - -### 导出日志(下载 logs) -POST http://{{ip}}:{{port}}/{{prefix}}export_logs - -### 导出版本(下载 zip) -POST http://{{ip}}:{{port}}/{{prefix}}export_version - - - - -### 重启设备 -POST http://192.168.1.102:9081/{{prefix}}restart_device - - -### -GET https://planespotters.live/api/aircraft/hex/780F0E?icaoType=B738 - - -### -GET https://planespotters.live/api/aircraft/hex/780F0E - -### -GET https://planespotters.live/api/radar/trace/8963e5 - -### -GET https://planespotters.live/api/radar/trace/780F0E - -### -GET https://t.plnspttrs.net/09923/1733381_73bcce8cad_280.jpg \ No newline at end of file diff --git a/script/old/ecap.service b/script/old/ecap.service deleted file mode 100644 index a44f160..0000000 --- a/script/old/ecap.service +++ /dev/null @@ -1,48 +0,0 @@ -[Unit] -Description=ecap_server Daemon -After=network.target -Requires=heco22.service -After=heco22.service -BindsTo=heco22.service - - -# 防止启动失败 → 无限重启风暴 频率限制在 5 次 / 60 秒 -StartLimitIntervalSec=60 -StartLimitBurst=5 - -[Service] -Type=simple -ExecStartPre=/bin/bash -c 'until ping -c 1 172.22.0.2 > /dev/null 2>&1; do echo "Waiting for network..."; sleep 3; done' -ExecStart=/home/heco/ys_ecap_server/ecap_server -WorkingDirectory=/home/heco/ys_ecap_server - -# 只有失败时才重启 -Restart=on-failure -RestartSec=5 - -# 明确指定正常退出(0)时,不会重启 -SuccessExitStatus=0 75 -# 进程异常退出时重启 如果进程返回RestartPreventExitStatus时,不会重启 -RestartPreventExitStatus=2 3 - - - -# 或系统关机 / 重启时,systemd 首先发送给该服务主进程的信号。 -KillSignal=SIGTERM -TimeoutStopSec=30 -# 进程文件描述符数量 -LimitNOFILE=65535 -# cat /proc/sys/kernel/core_pattern 针对单个进程 生成 core dump 等价于 ulimit -c unlimited -LimitCORE=infinity - -# 该服务进程 以及它 fork 的所有子进程,在运行期间 不能获得任何“新的权限”。 -NoNewPrivileges=yes -# # 隔离临时目录 -PrivateTmp=yes - -# 把服务进程的 标准输出(stdout), 标准错误(stderr) 重定向到 systemd journal。 -StandardOutput=journal -StandardError=journal - -[Install] -WantedBy=multi-user.target diff --git a/script/old/heco22.service b/script/old/heco22.service deleted file mode 100644 index 593277f..0000000 --- a/script/old/heco22.service +++ /dev/null @@ -1,47 +0,0 @@ -[Unit] -Description=heco22 Daemon -After=network.target -PartOf=ecap.service - - - - -# 防止启动失败 → 无限重启风暴 频率限制在 5 次 / 60 秒 -StartLimitIntervalSec=60 -StartLimitBurst=5 - -[Service] -Type=simple -ExecStart=/home/heco/ys_ecap_server/start_22.sh - - -# 只有失败时才重启 -Restart=on-failure -RestartSec=5 - -# 明确指定正常退出(0)时,不会重启 -SuccessExitStatus=0 75 -# 进程异常退出时重启 如果进程返回RestartPreventExitStatus时,不会重启 -RestartPreventExitStatus=2 3 - - - -# 或系统关机 / 重启时,systemd 首先发送给该服务主进程的信号。 -KillSignal=SIGTERM -TimeoutStopSec=30 -# 进程文件描述符数量 -LimitNOFILE=65535 -# cat /proc/sys/kernel/core_pattern 针对单个进程 生成 core dump 等价于 ulimit -c unlimited -LimitCORE=infinity - -# 该服务进程 以及它 fork 的所有子进程,在运行期间 不能获得任何“新的权限”。 -NoNewPrivileges=yes -# # 隔离临时目录 -PrivateTmp=yes - -# 把服务进程的 标准输出(stdout), 标准错误(stderr) 重定向到 systemd journal。 -StandardOutput=journal -StandardError=journal - -[Install] -WantedBy=multi-user.target diff --git a/script/rc.local b/script/rc.local deleted file mode 100644 index a1858e0..0000000 --- a/script/rc.local +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -/home/heco/ys_ecap_server/protect.bash & - -exit 0 diff --git a/script/scp.bash b/script/scp.bash deleted file mode 100644 index 0727e2c..0000000 --- a/script/scp.bash +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# 第一次要手动连入 通过下面的测试 -# ** WARNING: connection is not using a post-quantum key exchange algorithm. -# ** This session may be vulnerable to "store now, decrypt later" attacks. -# ** The server may need to be upgraded. See https://openssh.com/pq.html - -# C:\msys64\msys2_shell.cmd -# -mingw64 -defterm -no-start -here - -ver_dir_name="v1.0.3" -dstHost="192.168.1.101" - -tmp_dir="/c/Users/wyc/Desktop/version_control/tmp" -file_name="ecap_server" - -srcUser="wyc" -srcHost="192.168.1.8" -src_dir="/aenv/proj/plant_sun_cat/cmake-build-ubuntu_20_04-release2" -SRC_PASS="123" - -dstUser="heco" - -dst_dir="/home/heco/ys_ecap_server/${ver_dir_name}" -DST_PASS="123456" - -sshpass -p "123" scp -o StrictHostKeyChecking=no "${srcUser}@${srcHost}:${src_dir}/${file_name}" "${tmp_dir}" -sshpass -p "123456" scp -o StrictHostKeyChecking=no "${tmp_dir}/${file_name}" "${dstUser}@${dstHost}:${dst_dir}" - -#expect - -# 合并执行 -#export SSHPASS=$SRC_PASS -#sshpass -e ssh "${srcUser}@${srcHost}" "cat ${src_dir}/${file_name}" | \ -# sshpass -p "$DST_PASS" ssh "${dstUser}@${dstHost}" "cat > ${dst_dir}/${file_name}" -# - -# 检查 SCP 命令的返回值 -if [ $? -eq 0 ]; then - echo "传输成功!" -else - echo "传输失败:$?" -fi - -#echo "按任意键继续..." -#read -n 1 -s diff --git a/script/scp.ps1 b/script/scp.ps1 deleted file mode 100644 index 436868b..0000000 --- a/script/scp.ps1 +++ /dev/null @@ -1,34 +0,0 @@ -chcp 65001 - - - -$srcUser = "wyc" -$srcHost = "192.168.1.8" -$srcPath = "/aenv/proj/plant_sun_cat/cmake-build-ubuntu_20_04-release2/ecap_server" - -$dstUser = "heco" -$dstHost = "192.168.1.102" -$dstPath = "/home/heco/ys_ecap_server/v1.0.2/" -#$dstPath = "/home/heco/ys_ecap_server/test/" - - - - -#scp "${srcUser}@${srcHost}:${srcPath}" "${dstUser}@${dstHost}:${dstPath}" - - -#$dstPath = "C:\Users\wyc\Desktop\version_control" - -scp "vm_ubuntu_2004:${srcPath}" "${dstUser}@${dstHost}:${dstPath}" -#scp "vm_ubuntu_2004:${srcPath}" "$dstPath" - - - -if ($LASTEXITCODE -eq 0) -{ - Write-Host "SCP_DONE OK!" -} -else -{ - Write-Host "SCP_FAILED:$LASTEXITCODE" -} \ No newline at end of file diff --git a/script/scp_wwwroot.bash b/script/scp_wwwroot.bash deleted file mode 100644 index 394327b..0000000 --- a/script/scp_wwwroot.bash +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# 第一次要手动连入 通过下面的测试 -# ** WARNING: connection is not using a post-quantum key exchange algorithm. -# ** This session may be vulnerable to "store now, decrypt later" attacks. -# ** The server may need to be upgraded. See https://openssh.com/pq.html - -file_name="wwwroot" - -ver_dir_name="v1.0.3" -dstHost="192.168.1.102" - -src_dir="C:\Users\wyc\Desktop\version_control\${ver_dir_name}" -dstUser="heco" -dstHost="192.168.1.102" -dst_dir="/home/heco/ys_ecap_server/${ver_dir_name}" -DST_PASS="123456" - -sshpass -p "$DST_PASS" ssh "${dstUser}@${dstHost}" "rm -rf '${dst_dir}/${file_name}'" -sshpass -p "$DST_PASS" scp -o StrictHostKeyChecking=no -r "${src_dir}/${file_name}" "${dstUser}@${dstHost}:${dst_dir}/${file_name}" - -# 检查 SCP 命令的返回值 -if [ $? -eq 0 ]; then - echo "传输成功!" -else - echo "传输失败:$?" -fi diff --git a/script/start_22.sh b/script/start_22.sh deleted file mode 100644 index 4eb89fc..0000000 --- a/script/start_22.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -sudo supervisorctl stop hs -sudo rm /dev/shm/* -cd /home/heco/HECO/HECOService -export LD_LIBRARY_PATH=/home/heco/HECO/HECOService:$LD_LIBRARY_PATH -./HECOService - -# /usr/bin/supervisorctl stop hs -# /usr/bin/supervisorctl stop hs - -#sudo supervisorctl reread -#sudo supervisorctl update -# sudo systemctl daemon-reload - -# 版本切换设置 -# /etc/systemd/system/ecap.service -# sudo systemctl daemon-reload -# sudo systemctl start ecap -# systemctl status ecap -# sudo systemctl enable ecap -# systemctl is-enabled ecap -# 停止 -#sudo systemctl stop ecap -# 重启 -#sudo systemctl restart ecap -# 重新加载(程序不重启) -#sudo systemctl reload ecap # 前提是程序支持 SIGHUP -# 查看日志 -#journalctl -u ecap -#journalctl -u ecap -f -# echo 'ECAP_DIR=/home/heco/ys_ecap_server/v1.0.2' | sudo tee -a /etc/ecap/env - -# ln -sf /home/heco/ys_ecap_server/v1.0.2/ecap_server /home/heco/ys_ecap_server - -# ps -ef | grep start_22.sh - -# pstree -sp $(pgrep -o HECOService) - -# # pstree -sp 712 - -# systemd(1)───sshd(655)───sshd(1788)───sshd(1876)───bash(1898)───bash(18630)───HECOService(18641)─┬─{HECOService}(18642) -# ├─{HECOService}(18660) -# ├─{HECOService}(18661) -# └─{HECOService}(18662) - -# systemd(1)───sshd(655)───sshd(1788)───sshd(1876)───bash(1898)───HECOService(20409)─┬─curl(20451) -# ├─{HECOService}(20425) -# ├─{HECOService}(20448) -# ├─{HECOService}(20449) -# └─{HECOService}(20450) - -# systemd(1)───HECOService(41201)─┬─{HECOService}(41218) -# ├─{HECOService}(41242) -# ├─{HECOService}(41243) -# └─{HECOService}(41244) diff --git a/script/upgrade.ps1 b/script/upgrade.ps1 deleted file mode 100644 index aab1888..0000000 --- a/script/upgrade.ps1 +++ /dev/null @@ -1,15 +0,0 @@ -# upgrade.legacy -# 打印传入的所有参数 - -Write-Host "upgrade.legacy called" -Write-Host "Argument count: $( $args.Count )" - -for ($i = 0; $i -lt $args.Count; $i++) { - Write-Host "arg[$i] = $( $args[$i] )" -} - -# 也可以单独按语义取(如果你约定了顺序) -# $version = $args[0] -# $dir = $args[1] -# Write-Host "version = $version" -# Write-Host "dir = $dir" diff --git a/script/重启fpga b/script/重启fpga deleted file mode 100644 index 6e7ae9b..0000000 --- a/script/重启fpga +++ /dev/null @@ -1,14 +0,0 @@ -ssh root@172.22.0.2 /sbin/reboot - - -analog - - -ping 172.22.0.2 - - -// 看服务重启次数 -systemctl show ecap -p NRestarts - -// 看失败历史 -systemctl show ecap -p ExecMainStatus -p ExecMainStartTimestamp diff --git a/ssh b/ssh deleted file mode 100644 index ea2ee90..0000000 --- a/ssh +++ /dev/null @@ -1,6 +0,0 @@ -ssh -p 35024 -N -L 1234:127.0.0.1:1234 heco@192.168.101.7 - - - - -sudo -E gdb --args ./v1.1.2/ecap_server main @/config_mlat.json \ No newline at end of file diff --git a/todolist.txt b/todolist.txt deleted file mode 100644 index 2eefc50..0000000 --- a/todolist.txt +++ /dev/null @@ -1,10 +0,0 @@ -@D:/ae/proj/projects/ECAP_Server/module/Local_Server/server/libarchive.h#L31-35 这个文件 不合规则的检查 不和规则应该是意料之中的 所以 不符合规则用 expectd@D:/ae/proj/projects/ECAP_Server/module/Local_Server/server/libarchive.h#L9 返回结果 - -同时 - -@D:/ae/proj/projects/ECAP_Server/module/Local_Server/server/server.cpp#L313-317 这个位置检查结果 不和规则 后端给出明确的不和规原因 - - -#include "Core/Base/expected.h" using unexpected = tl::unexpected; - -使用的是这里的包装expected \ No newline at end of file diff --git a/初版升级步骤.txt b/初版升级步骤.txt deleted file mode 100644 index cdcd6fc..0000000 --- a/初版升级步骤.txt +++ /dev/null @@ -1,21 +0,0 @@ -# 关闭正在运行的守护进程 -sudo pkill -9 pt -sudo pkill -9 protect.bash -sudo pkill -9 ecap_server - -# 删除旧的守护进程配置 -sudo systemctl disable rc-local.service -sudo systemctl stop rc-local.service -删除 /home/heco/ys_ecap_server 下 protect.bash - - -# 添加新的守护进程配置 -ecap.service 复制到 /etc/systemd/system 更改权限777 -sudo systemctl daemon-reload -sudo systemctl enable ecap -复制文件夹 lib v1.0.2,复制文件 restart_device.bash upgrade.bash 到 /home/heco/ys_ecap_server 全部更改权限777 -ln -sf /home/heco/ys_ecap_server/v1.0.2/ecap_server /home/heco/ys_ecap_server/ecap_server 全部更改权限777 - - -# 启动新的守护进程 -sudo systemctl start ecap \ No newline at end of file diff --git a/多点定位数据模拟以及算法规范.txt b/多点定位数据模拟以及算法规范.txt deleted file mode 100644 index bd8977f..0000000 --- a/多点定位数据模拟以及算法规范.txt +++ /dev/null @@ -1,28 +0,0 @@ - - - - -模拟出三个基站 - - -模拟一条飞机的航线 一个列表 一堆轨迹点 算没到达一个位置与各个时间戳值 -发送 做定位 - - - -# 使用 objcopy 命令将字符串嵌入到 ELF 文件的 .note 部分 -echo -n "Author: John Doe\nVendor: MyCompany\nVersion: 1.0.0" > metadata.txt - -# 将字符串内容直接嵌入 ELF 文件 -objcopy --add-section .note.metadata=metadata.txt ./rls_cxx_Linux_Debug - - -readelf -d - - -readelf -p .info./rls_cxx_Linux_Debug -readelf -S ./rls_cxx_Linux_Debug - - -objdump -s --section=.note.metadata ./rls_cxx_Linux_Debug -objdump -s ./rls_cxx_Linux_Debug diff --git a/多进程隔离.txt b/多进程隔离.txt deleted file mode 100644 index 8f45c9b..0000000 --- a/多进程隔离.txt +++ /dev/null @@ -1,15 +0,0 @@ - -代码用宏来隔离 -1. dsp 共享内存数据隔离实现完成 单侧dsp adsb先放一下,开始测试 - -2. 拓展数据源 一个共享内存数据源,接收adsb 测试数据 - - - -sudo nohup valgrind --leak-check=full --track-origins=yes ./ecap_server > valgrind_output.log 2>&1 & - - - -heco@heco:~/ys_ecap_server/ecap_1201$ sudo nohup valgrind --leak-check=full --track-origins=yes ./ecap_server > ./valgrind_output222.log 2>&1 - -