Files
ECAP_Server/config/config.json
T
2026-06-26 13:03:15 +08:00

303 lines
9.4 KiB
JSON

{
"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": false,
"slow_request_threshold_ms": 3000,
"slow_scope_threshold_ms": 1000
},
"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",
"port": 80,
"netmask": "255.255.255.0",
"gateway": "192.168.1.1"
},
{
"key": "wifi",
"ip": "192.168.10.193",
"port": 80,
"netmask": "255.255.255.0",
"gateway": "192.168.10.1"
}
]
},
"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,
"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": false,
"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
},
"port": 30004,
"url": "192.168.1.75"
},
{
"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": 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": "lzy_dll",
"enable": false,
"type": "Dll_Data_Source",
"base_station_show": true,
"aircraft_show": true,
"color": "#454641",
"aircraft_pixel_size": 28,
"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
},
{
"key": "aaaa",
"enable": false,
"type": "File_Data_Source",
"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,
"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"
}
]
},
"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": {
"ecap_sqlite_path": "D:/ae/proj/projects/ECAP_Server/sqlite/ecap.sqlite",
"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": 1780388281
},
{
"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": 1780381804
},
{
"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": 1780381804
},
{
"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": 1780381804
},
{
"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": 1780381804
},
{
"name": "icao_doc_8643_aircraft_type_designators",
"download_url": "",
"description": "ICAO Doc 8643 机型代码表,用于将 A320、B738 等 designator 映射为制造商、型号和类别。",
"update_interval_seconds": 2419200,
"last_updated_at": 1780381804
},
{
"name": "vrs_routes",
"download_url": "https://vrs-standing-data.adsb.lol/routes.csv",
"description": "VRS 航线表,以 callsign 查询机场代码序列,用于推断起飞机场、经停机场和目的机场。",
"update_interval_seconds": 3600,
"last_updated_at": 1780381804
},
{
"name": "vrs_airports",
"download_url": "https://vrs-standing-data.adsb.lol/airports.csv",
"description": "VRS 机场字典,提供机场代码、名称、国家、经纬度和高度。",
"update_interval_seconds": 3600,
"last_updated_at": 1780381804
},
{
"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": 1780381804
},
{
"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": 1780381804
},
{
"name": "opensky_flightdata_api_cache",
"download_url": "",
"description": "OpenSky FlightData API 查询缓存,按 ICAO24 和时间范围保存历史航班起降机场结果。",
"update_interval_seconds": 0,
"last_updated_at": 1780381804
}
]
}
}