Method and device for processing interface data of low-altitude airspace management and control system
By converting interface data into dictionary format and performing layered calculations, the problem of slow data processing of low-altitude airspace intelligent control system interfaces is solved, efficient data processing and state calculation are realized, and big data processing needs are adapted to the needs of big data processing.
Patent Information
- Application Number
- CN202411323749.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-01-17
AI Technical Summary
The interface data processing of the low-altitude airspace intelligent control system is slow, resulting in low data processing efficiency and the inability to process a large amount of input data in real time to calculate the status information of the low-altitude aircraft.
By obtaining the interface data to be processed, extracting information and converting it into analytical data in dictionary format, computing based on the analytical data, generating an information list and sending it to the front-end program to display, and using a hierarchical calculation and caching mechanism to improve data processing efficiency.
It improves the efficiency of data processing of the low-altitude airspace control system interface, can quickly obtain parameters participating in the calculation, simplifies the device state calculation process, reduces memory overhead, and supports processing of change-type big data interfaces.
Smart Images

Figure CN119322801A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication data processing, and in particular to a method and device for processing interface data of a low-altitude airspace control system. Background Art
[0002] Low-altitude airspace control systems are systems used to manage and monitor low-altitude aircraft (such as small surveillance drones UAVs). These systems usually use GPS and other sensor data on low-altitude aircraft, as well as information from ground control stations to monitor and control low-altitude aircraft. They can be used to detect the position, altitude and speed of low-altitude aircraft, as well as plan flight paths, avoid obstacles and coordinate with other aircraft. These systems are very important for ensuring air traffic safety and ensuring the normal operation of civil aviation flights. The low-altitude airspace intelligent control system uses cloud platforms, big data processing and communication technologies to complete the monitoring of the position, altitude and speed of low-altitude aircraft, collision detection, analysis and prediction, and operation management.
[0003] The interface program of the low-altitude airspace intelligent management and control system needs to process a large amount of input data in real time and calculate the status information related to low-altitude aircraft, which leads to slow data processing. Summary of the invention
[0004] The present invention provides a method and device for processing interface data of a low-altitude airspace control system, so as to solve the defect of slow processing of interface data of a low-altitude airspace control system in the prior art and improve the processing efficiency of interface data of a low-altitude airspace control system.
[0005] The present invention provides a method for processing interface data of a low-altitude airspace control system, comprising: Obtaining the interface data to be processed, extracting information from the interface data to be processed to obtain sequence information, converting the sequence information into a dictionary, and storing the result as parsed data in json format; Perform calculation based on the analytical data to obtain the state of the low-altitude aircraft; An information list is generated based on the status of the low-altitude aircraft, and the information list is sent to a front-end program for display.
[0006] According to the low-altitude airspace control system interface data processing method provided by the present invention, the calculation based on the parsed data to obtain the status of each low-altitude aircraft includes: Update the state parameters of each virtual device based on the parsed data and a preset calculation rule file; The state parameters of each of the virtual devices are aggregated to obtain the state of the low-altitude aircraft.
[0007] According to the low-altitude airspace control system interface data processing method provided by the present invention, before aggregating the state parameters of each virtual device to obtain the state of the low-altitude aircraft, it includes: Check the update timestamp of the state parameter of each virtual device, and when the interval between the update timestamp and the current time exceeds a preset time length, update the state parameter of the virtual device to unknown.
[0008] According to the low-altitude airspace control system interface data processing method provided by the present invention, the information list generated based on the status of the low-altitude aircraft includes: Adding the information of the low-altitude aircraft whose status has changed to the information list; Obstacle avoidance information and collision detection information of the low-altitude aircraft are generated, and the obstacle avoidance information and the collision detection information are added to the information list.
[0009] According to the low-altitude airspace control system interface data processing method provided by the present invention, after obtaining the status of each low-altitude aircraft, it includes: Storing the status of the low-altitude aircraft in a cache database; When the interface conversion program is restarted, the status of the low-altitude aircraft in the cache database is read.
[0010] According to the low-altitude airspace control system interface data processing method provided by the present invention, the information list is sent to the front-end program for display, including: The information list is converted into a set format and then sent to the front-end program for display.
[0011] The present invention also provides a low-altitude airspace control system interface data processing device, comprising: A data parsing module is used to obtain the interface data to be processed, extract information from the interface data to be processed, obtain sequence information, convert the sequence information into a dictionary, and store it as parsed data in JSON format; A state calculation module, used to calculate based on the analytical data to obtain the state of the low-altitude aircraft; The status return module is used to generate an information list based on the status of the low-altitude aircraft and send the information list to the front-end program for display.
[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements any of the above-described methods for processing interface data of a low-altitude airspace control system.
[0013] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements the low-altitude airspace control system interface data processing method as described in any one of the above-mentioned methods.
[0014] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned low-altitude airspace control system interface data processing methods.
[0015] The present invention provides a method and device for processing interface data of a low-altitude airspace control system, wherein the method includes: obtaining interface data to be processed, extracting information from the interface data to be processed, and obtaining series information; converting the series information into a dictionary, and storing it as parsed data in json format; performing calculations based on the parsed data to obtain the status of each low-altitude aircraft; generating an information list based on the status of the low-altitude aircraft, and sending the information list to a front-end program for display. The present invention stores information in a dictionary nested manner when parsing interface data, stores elements in the series information in a dictionary, flattens the dictionary nested information, and can quickly obtain parameters involved in the calculation during conversion calculation, thereby improving the efficiency of interface data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 It is a flow chart of a low-altitude airspace control system interface data processing method provided by the present invention.
[0018] Figure 2 This is a schematic diagram of parsing interface data in a low-altitude airspace control system interface data processing method provided by the present invention. Figure 1 .
[0019] Figure 3 This is a schematic diagram of parsing interface data in a low-altitude airspace control system interface data processing method provided by the present invention. Figure 2 .
[0020] Figure 4 It is a schematic diagram of a low-altitude aircraft calculation rule file in a low-altitude airspace control system interface data processing method provided by the present invention.
[0021] Figure 5 It is a schematic diagram of JSON data of an information list in a low-altitude airspace control system interface data processing method provided by the present invention.
[0022] Figure 6 It is a main function flow chart of drone status calculation in a low-altitude airspace control system interface data processing method provided by the present invention.
[0023] Figure 7 It is a structural schematic diagram of the low-altitude airspace control system interface data processing device provided by the present invention.
[0024] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] In the existing technology, the low-altitude airspace intelligent control system uses cloud platforms, big data processing and communication technologies to complete the monitoring, collision detection, analysis and prediction, and operation management of the position, altitude and speed of low-altitude aircraft. The interface program of the low-altitude airspace intelligent control system needs to process a large amount of input data in real time and calculate the status information related to low-altitude aircraft, resulting in slow data processing.
[0027] In view of the defect of slow interface data processing of low-altitude airspace control system in the prior art, the present invention provides a method and device for processing interface data of a low-altitude airspace control system, so as to improve the efficiency of interface data processing of the low-altitude airspace control system.
[0028] Combine the following Figure 1-6 The low altitude airspace control system interface data processing method provided by the present invention is described as follows: Figure 1 As shown, the present invention provides a method for processing interface data of a low-altitude airspace control system, comprising the steps of: S110, obtaining the interface data to be processed, extracting information from the interface data to be processed, obtaining sequence information, converting the sequence information into a dictionary, and storing the result as parsed data in json format; S120, performing calculation based on the analytical data to obtain the state of the low-altitude aircraft; S130, generating an information list based on the status of the low-altitude aircraft, and sending the information list to the front-end program for display.
[0029] The method provided by the present invention stores information in a dictionary nested manner when parsing interface data, stores elements in the series information in a dictionary, flattens the dictionary nested information, and can quickly obtain parameters involved in the calculation during conversion calculation, thereby improving the efficiency of interface data processing.
[0030] The interface data to be processed is the character data obtained by parsing the data stream received through the Ethernet interface according to the given protocol. Generally speaking, the communication between the low-altitude aircraft ground control station and the low-altitude airspace control system adopts the C / S mode based on TCP, and the information frame format is the usual frame header, frame content length, frame content, frame tail representation, etc. During interface data communication, due to the large length of the ground control station information station (about 150kb), the data received by the actual program is sub-packetized and glued. The data parsing room needs to obtain the data frame according to the frame header, frame length, and frame tail, and then parse it according to the protocol to obtain the interface data to be processed.
[0031] Since each type of signal has many pieces of information per frame, directly translating and storing JSON will result in a data structure of dictionary nested series. This is not conducive to quickly reading the corresponding data, and will cause the interface program to spend too much time converting data. The method provided by the present invention, after obtaining the interface data to be processed, does not directly convert it into data storage in JSON format for subsequent calls, but extracts information from it to obtain series information, converts the series information into a dictionary, and stores it as parsed data in JSON format for subsequent processing.
[0032] Specifically, the method provided by the present invention converts the information of the series into a dictionary and stores it according to the partial content of the extracted information as a keyword. The information containing the series in the partial information also needs to extract key information as a key value and convert it into a dictionary for storage. Figure 2 To directly parse into JSON data example, Figure 3 Example of JSON data after converting the array information into a dictionary to extract key information.
[0033] The received interface data is stored in a dictionary-nested manner to achieve information flattening, so that the parameters involved in the calculation can be quickly obtained during the conversion calculation, greatly improving the efficiency of interface operation and interface data processing efficiency.
[0034] Calculations are performed based on the analytical data to obtain the status of each low-altitude aircraft, including: Update the status parameters of each virtual device based on the parsed data and the pre-set calculation rule file; The state parameters of each virtual device are aggregated to obtain the state of the low-altitude aircraft.
[0035] The method provided by the present invention stores the parsed data in JSON format in a Kafka interface, and then reads the information in the Kafka interface in real time and solves the status of the low-altitude aircraft. Specifically, a calculation rule file is pre-set, and the calculation rule file can be pre-filled by an engineer, and the low-altitude aircraft managed by the system and the corresponding calculation rule related information are filled in the file. The calculation rule file is read by the tool software, and the Kafka interface is read in real time to obtain the parsed data, the status of the low-altitude aircraft is calculated in real time, and then the status of the low-altitude aircraft is sent to the front-end program. However, since the interface data volume of the low-altitude aircraft ground control station is very large, the actual data of the interface is variable data, a packet of data has only some types of information, and the other part of the information is empty. The method provided by the present invention adopts a hierarchical calculation method for calculation.
[0036] Specifically, the low-altitude aircraft is regarded as multiple virtual devices, and each virtual device can be regarded as the state parameter of the corresponding low-altitude aircraft or the calculation intermediate parameter of the state parameter. First, the state of the first-level virtual device is calculated, and the parameters involved in the calculation need to be restricted to belong to the same information class. Figure 4 In the calculation rule file shown, params is the parameter table, eval is the calculation formula (supports all single-line program statements of PYTHON), dict is the conversion dictionary of the calculation result, and name is the internal name of the first-level virtual device, which is convenient for caching the status value of the virtual device. After the interface program reads the interface information frame, it first flattens it to facilitate reading parameters, updates the status of all first-level virtual devices, and detects changes.
[0037] The state parameters of all virtual devices are aggregated to obtain the state of the low-altitude aircraft. Specifically, before the state parameters of each virtual device are aggregated to obtain the state of the low-altitude aircraft, the following steps are performed: Check the update timestamp of the state parameter of each virtual device, and when the interval between the update timestamp and the current time exceeds a preset time length, update the state parameter of the virtual device to unknown.
[0038] If the parameters involved in the calculation are not found during the calculation of the state parameters of the virtual device, the state of the virtual device remains unchanged. If the state of the virtual device is currently calculated, the state and timestamp of the device are updated. Check whether the timestamp of the virtual device state exceeds the set time. If it times out, set the state of the device to unknown state (255). A device can contain multiple virtual devices, with no limit on the specific number (the current maximum number of virtual devices is 64).
[0039] The device status is calculated and cached in a hierarchical manner, which enables the interface program to effectively process the data of the changing big data interface with a smaller memory overhead. The hierarchical calculation of the device status also greatly simplifies the difficulty of compiling the device calculation rules, and also greatly reduces the possibility of repeated calculations.
[0040] The interface program needs to calculate the aggregate device status after calculating the updated status of the first-level virtual device every cycle. Similar to the previous calculation, the aggregate device status is calculated using the status value of the first-level virtual device as a parameter, and the change is detected. If the parameters involved in the calculation are empty during this calculation, the state of the aggregate device remains unchanged. If the status of the device is currently calculated, the status and timestamp of the device are updated. Check whether the timestamp of the aggregate device status exceeds the set time. If it times out, set the status of the device to unknown state (255).
[0041] In the method provided by the present invention, the device status update is recorded with a timestamp, and the timeliness of the device status is checked every cycle. If it times out, the device status is modified to unknown to avoid using expired device status to participate in the calculation and derive erroneous results. The overall flow chart of the main function of drone status calculation is as follows: Figure 6 shown.
[0042] After determining that the state value of the aggregated device has changed, the device change information is generated and stored in the cache queue. That is, based on the state of the low-altitude aircraft, an information list is generated, including: Adding the information of the low-altitude aircraft whose status has changed to the information list; Obstacle avoidance information and collision detection information of the low-altitude aircraft are generated, and the obstacle avoidance information and the collision detection information are added to the information list.
[0043] The changed device information in the cache queue is generated into JSON information in the agreed format and sent to the front-end Kafka interface. At the same time, obstacle avoidance information and collision detection information are generated according to user requirements and sent to the front-end Kafka interface. The state of the aggregated device is calculated in data order, so the parameters involved in the calculation of the aggregated device can also be the state value of the aggregated device. In this way, the calculation process of complex device states can be simplified and the efficiency of interface calculation can be improved.
[0044] The development process of conventional interface conversion programs is very long. Since there are many types of low-altitude aircraft that need to be converted and the interface rules are not fixed, the conversion rules are uncertain, etc., the interface conversion program will be frequently modified and adapted. The later maintenance, testing and verification of the interface conversion program requires a lot of manpower and material resources, and cannot respond quickly to actual changes in demand, and cannot adapt to the requirements of the low-altitude airspace intelligent management and control system for interface programs. In order to support the processing of change interface inputs and adapt to the requirements of big data processing, it is necessary to ensure that the existing status of low-altitude aircraft can be synchronized when the interface program and configuration are upgraded. In the method provided by the present invention, after obtaining the status of each low-altitude aircraft, it includes: Storing the status of low-altitude aircraft in a cache database; When the interface conversion program is restarted, the status of the low-altitude aircraft in the cache database is read.
[0045] Specifically, the cached low-altitude aircraft status list is read and stored in the REDIS cache database using the device's KEY value and the device's serialized value (the internal attribute value __dict__ of the device class). The low-altitude aircraft device class corresponds to the individual element that the user needs to display, and contains the relevant data of the device: device ID number, SN value, KEY value, device name, device type, device subtype, device status value, device type value, device status latest timestamp, etc. The device status value is usually a dictionary, containing all related first-level virtual devices and the status values of the device. The device ID number is the 16-bit digital code of the device (different devices have different codes), and the KEY value is the interface program mark "state:org:uav:" + device ID number. Due to the need to change the update program or configuration, after the interface conversion program is restarted and loaded with the relevant configuration, the low-altitude aircraft device status information is first read from the REDIS cache database and deserialized to the corresponding low-altitude aircraft device class. When restoring the low-altitude aircraft status information, it is also necessary to check the timestamp to determine whether the device status exceeds the specified time. If it times out, the corresponding low-altitude aircraft status is set to unknown state (255). This can effectively avoid the error in generating low-altitude aircraft status, obstacle avoidance information and collision detection information caused by interface program upgrade or configuration modification. The calculation of low-altitude aircraft status requires the participation of previous status information. As long as the time of low-altitude aircraft status update does not exceed the standard, the status of the low-altitude aircraft is credible.
[0046] Sending the information list to the front-end program for display includes: The information list is converted into a set format and then sent to the front-end program for display.
[0047] When the interface conversion program is restarted, the status of the low-altitude aircraft is also read to generate an information list. The information list generates JSON data according to the set format (such as Figure 5As shown in the figure, the device information required for generating the interface is temporarily stored in the members of the device class. When converting the information, it is necessary to check whether the device status is unknown (255). If it is unknown, the device timestamp needs to be modified to the current time of the interface program. Otherwise, the timestamp temporarily stored when the device status is updated can be used directly.
[0048] The generation and recovery of obstacle avoidance information and collision detection information are bound to the device state and are generated according to the format requirements of the configuration file. Usually, when the device state changes and the current state is determined to require obstacle avoidance or a possible collision, the corresponding information is generated. If the device state changes and the current state is normal, if the cached obstacle avoidance information or collision information can be queried, the information is processed as recovery and deleted from the cached information list. Information generation or information recovery generates corresponding JSON data according to the agreement and sends it to the Kafka interface for display by the front-end program.
[0049] In the method provided by the present invention, relevant status information of low-altitude aircraft equipment is stored in the high-speed cache REDIS when it changes. When the on-site interface program and configuration are changed and upgraded (the interface program is restarted in a short time), the cached equipment status information can be read, so the low-altitude aircraft status change information, obstacle avoidance information and collision detection information will not be erroneously generated due to the lack of existing equipment status.
[0050] The method provided by the present invention is applied to a certain city's subway drone intelligent inspection system for operation test. Specifically, the interface data volume between the subway drone intelligent inspection system and the drone ground control station is about 150-180kb for three frames of data within 6 seconds, and the parsed data is about 23,000-26,000 rows. Since this part of the data is variable data, the interface data can be completely updated in about 60 seconds, so the input data is estimated to be on the scale of 230,000-260,000 rows. At present, there are about 200 device states that need to be calculated by the interface, and the state values of some devices require up to 64 virtual states to participate in the calculation. A virtual state may require several parameters to participate in the calculation, and some devices require cascade calculations and derivations of other devices, so the number of real-time calculations of the interface is relatively large.
[0051] The method provided by the present invention is adopted, PYTHON coding is used, and the system is run on a dedicated LINUX server, and the system runs stably for 2 months. By analyzing the log file, the post-processing time of the parsing interface program to obtain the data is completed within 10ms, and the post-processing time of the conversion interface program to read the data is also about 10ms, and the interface program still has a large performance margin. When the interface program does not obtain the data, it will wait for a short period of time, which is specifically configurable. Check the CPU occupancy rate and memory occupancy rate of the interface program process on the LINUX server, and the parameters are all 0.0%, and the resource occupancy of the interface program is also very excellent.
[0052] The following is a description of the low-altitude airspace control system interface data processing device provided by the present invention. The low-altitude airspace control system interface data processing device described below and the low-altitude airspace control system interface data processing method described above can be referred to each other. Figure 7 As shown, the low-altitude airspace control system interface data processing device provided by the present invention includes: The data parsing module 710 is used to obtain the interface data to be processed, extract information from the interface data to be processed, obtain sequence information, convert the sequence information into a dictionary, and store it as parsed data in JSON format; A state calculation module 720 is used to calculate based on the analytical data to obtain the state of the low-altitude aircraft; The status return module 730 is used to generate an information list based on the status of the low-altitude aircraft and send the information list to the front-end program for display.
[0053] The low-altitude airspace control system interface data processing device provided by the present invention stores information in a dictionary nested manner when parsing interface data, stores elements in the series information as a dictionary, flattens the dictionary nested information, and can quickly obtain parameters involved in the calculation during conversion calculation, thereby improving the efficiency of interface data processing.
[0054] Furthermore, the state calculation module 720 is specifically used to update the state parameters of each virtual device based on the parsed data and the pre-set calculation rule file; aggregate the state parameters of each virtual device to obtain the state of the low-altitude aircraft.
[0055] The state calculation module 720 is also used to check the update timestamp of the state parameters of each virtual device before aggregating the state parameters of each virtual device to obtain the state of the low-altitude aircraft. When the interval between the update timestamp and the current time exceeds the preset time length, the state parameters of the virtual device are updated to unknown.
[0056] The state calculation module 720 is also specifically used to add the information of the low-altitude aircraft whose state has changed to the information list; generate obstacle avoidance information and collision detection information of the low-altitude aircraft, and add the obstacle avoidance information and collision detection information to the information list.
[0057] The low-altitude airspace control system interface data processing device provided by the present invention also includes a status cache module, which is used to store the status of each low-altitude aircraft into a cache database after obtaining the status of each low-altitude aircraft; when restarting the interface conversion program, the status of the low-altitude aircraft in the cache database is read.
[0058] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the low-altitude airspace control system interface data processing method, and the low-altitude airspace control system interface data processing method includes: obtaining the interface data to be processed, extracting information from the interface data to be processed, obtaining series information, converting the series information into a dictionary, and storing it as parsed data in json format; performing calculations based on the parsed data to obtain the status of the low-altitude aircraft; generating an information list based on the status of the low-altitude aircraft, and sending the information list to the front-end program for display.
[0059] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0060] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the low-altitude airspace control system interface data processing method provided above. The low-altitude airspace control system interface data processing method includes: obtaining interface data to be processed, extracting information from the interface data to be processed to obtain series information, converting the series information into a dictionary, and storing it as parsed data in json format; performing calculations based on the parsed data to obtain the status of the low-altitude aircraft; generating an information list based on the status of the low-altitude aircraft, and sending the information list to the front-end program for display.
[0061] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the low-altitude airspace control system interface data processing method provided above. The low-altitude airspace control system interface data processing method includes: obtaining interface data to be processed, extracting information from the interface data to be processed to obtain series information, converting the series information into a dictionary, and storing it as parsed data in json format; performing calculations based on the parsed data to obtain the status of the low-altitude aircraft; generating an information list based on the status of the low-altitude aircraft, and sending the information list to the front-end program for display.
[0062] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0063] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0064] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for processing interface data of a low-altitude airspace control system, characterized in that: include: Obtaining the interface data to be processed, extracting information from the interface data to be processed to obtain sequence information, converting the sequence information into a dictionary, and storing the result as parsed data in json format; Perform calculation based on the analytical data to obtain the state of the low-altitude aircraft; An information list is generated based on the status of the low-altitude aircraft, and the information list is sent to a front-end program for display.
2. The low-altitude airspace control system interface data processing method according to claim 1 is characterized in that: The calculating based on the analyzed data to obtain the status of each low-altitude aircraft includes: Update the state parameters of each virtual device based on the parsed data and a preset calculation rule file; The state parameters of each of the virtual devices are aggregated to obtain the state of the low-altitude aircraft.
3. The low-altitude airspace control system interface data processing method according to claim 2 is characterized in that: Before aggregating the state parameters of each virtual device to obtain the state of the low-altitude aircraft, the method includes: Check the update timestamp of the state parameter of each virtual device, and when the interval between the update timestamp and the current time exceeds a preset time length, update the state parameter of the virtual device to unknown.
4. The low-altitude airspace control system interface data processing method according to claim 1 is characterized in that: The generating of the information list based on the status of the low-altitude aircraft comprises: Adding the information of the low-altitude aircraft whose status has changed to the information list; Obstacle avoidance information and collision detection information of the low-altitude aircraft are generated, and the obstacle avoidance information and the collision detection information are added to the information list.
5. The low-altitude airspace control system interface data processing method according to claim 1 is characterized in that: After obtaining the status of each low-altitude aircraft, the following steps are included: Storing the status of the low-altitude aircraft in a cache database; When the interface conversion program is restarted, the status of the low-altitude aircraft in the cache database is read.
6. The low-altitude airspace control system interface data processing method according to claim 1 is characterized in that: The step of sending the information list to a front-end program for display includes: The information list is converted into a set format and then sent to the front-end program for display.
7. A low-altitude airspace control system interface data processing device, characterized in that: include: A data parsing module is used to obtain the interface data to be processed, extract information from the interface data to be processed, obtain sequence information, convert the sequence information into a dictionary, and store it as parsed data in JSON format; A state calculation module, used to calculate based on the analytical data to obtain the state of the low-altitude aircraft; The status return module is used to generate an information list based on the status of the low-altitude aircraft and send the information list to the front-end program for display.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the low-altitude airspace control system interface data processing method as described in any one of claims 1-6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the low-altitude airspace control system interface data processing method as described in any one of claims 1-6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the low-altitude airspace control system interface data processing method as described in any one of claims 1-6 is implemented.
Citation Information
Cited By
Airborne supervision data processing method and system
CN122373029A