Route Information Processing Method, Apparatus, Device, and Storage Medium

By detecting the start and end signals of the route information, the two-way buffer zones are switched, and the alternating cache and analysis of route information is realized, the problems of high delay and integrity influence caused by single-way buffering are solved, and the timeliness and integrity of route information acquisition is improved.

CN119803483BActive Publication Date: 2025-06-27BEIJING BLUESKY AVIATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510274407.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-10
Publication Date
2025-06-27
Estimated Expiration
2045-03-10

AI Technical Summary

Technical Problem

In the prior art, the processing delay of route information is high in the way of single-channel cache, which affects the integrity and timeliness of obtaining route information.

Method used

By detecting the start and end signal of the route information sent by the real machine navigation device, the preset dual-channel buffer area is switched based on the start and end signal, and the route information is alternately cached into the dual-channel buffer area for analysis.

Benefits of technology

The two-way alternating cache and analysis of route information is realized, ensuring the integrity and timeliness of route information obtained, and reducing processing delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119803483B_ABST
    Figure CN119803483B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of data processing, and provides a route information processing method, device, equipment and storage medium. The method includes: obtaining route information sent by a real aircraft navigation device in the current period; detecting start and end signals of the route information, where the start and end signals are used to represent the end of the previous route information and the start of a new route information; switching a preset dual-channel buffer based on the start and end signals, so as to alternately cache the route information into the dual-channel buffer for parsing. By switching the dual-channel buffer through the start and end signals, dual-channel alternating caching and parsing of the route information are realized, which can ensure that the route information parsed from the dual-channel buffer is complete. Moreover, the caching and parsing processes of the route information are separated based on the dual-channel caching, thereby realizing parallel processing of the caching and parsing of the route information, reducing the processing delay, and ensuring the integrity and timeliness of the obtained route information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method, device, equipment and storage medium for processing route information. Background Art

[0002] The route information of an aircraft is used to describe the flight plan of the aircraft. The route information generally includes multiple waypoints, and each waypoint generally includes information such as longitude and latitude, guiding the aircraft to fly from one waypoint to the next at a specified speed. The waypoints can generally be set by the pilot, so the number is uncertain. For a flight simulator, it is necessary to collect and analyze the route information set by the navigation equipment of the actual installation parts of the real aircraft system, and then provide it for use in the simulation environment of the flight simulator.

[0003] When collecting the route information of the actual installation parts navigation equipment, the ARINC429 bus is used for data interaction. The ARINC429 bus constructs an A429 data frame with 25-bit or 32-bit A429 data words. One waypoint information needs to be defined by several ARINC429 data words. A complete route contains multiple waypoints. Therefore, multiple 429 data words are required to complete the description of a complete route information. The ARINC429 bus baud rate generally has high and low speeds. For a low-speed baud rate bus, such as a bus with a baud rate of 12.5 Kbps, the data interaction period is 10 ms. Then, there are at most 12.5 1000 / 36 / 10 = 3.472 32-bit data words on the line in one cycle; if a high-speed bus with a baud rate of 100 Kbps is used, there are at most 27.7 32-bit data words on the line in one cycle. Considering that there are other data on the line in addition to the route information, it is impossible to ensure that a complete route information can be accommodated in one cycle. Therefore, a complete route information generally exists in multiple data interaction cycles.

[0004] In the existing route information processing method, the method of single-channel caching and parsing while caching the route information requires starting read and write threads to operate on the cache area at the same time, which is prone to thread conflicts. Therefore, generally, the parsing is performed uniformly after the cache area is full, and then the parsed route information is provided for use in the simulation environment. This method, on the one hand, requires parsing after receiving the route information of multiple data interaction cycles, resulting in a high latency in the processing of the route information and affecting the timeliness of the simulation environment to obtain the route information; on the other hand, when the cache area is full, the route information sent in multiple data interaction cycles is obtained, but since the number of waypoints corresponding to a complete route information is not fixed, and the size of the cache area is fixed, it is impossible to ensure that a complete route information or multiple complete route information is obtained when the cache area is full, affecting the integrity of the simulation environment to obtain the route information. Summary of the Invention

[0005] The present invention provides a method, apparatus, device and storage medium for processing route information, so as to solve the defect in the prior art that the single-channel caching method for route information has a high processing delay, which affects the integrity and timeliness of obtaining route information.

[0006] The present invention provides a method for processing route information, including:

[0007] Obtaining route information sent by a real aircraft navigation device in the current cycle;

[0008] Detecting the start and end signals of the route information; the start and end signals are used to represent the end of the previous route information and the start of a new route information;

[0009] Based on the start and end signals, switching a preset dual-channel buffer to alternately cache the route information into the dual-channel buffer for parsing.

[0010] According to the method for processing route information provided by the present invention, the dual-channel buffer includes a first-channel buffer and a second-channel buffer, and the route information includes a plurality of data words; the switching of the preset dual-channel buffer based on the start and end signals to alternately cache the route information into the dual-channel buffer for parsing includes:

[0011] Dividing the plurality of data words corresponding to the route information into a first data word and a second data word based on the start and end signals; the first data word is the data word before the start and end signals, and the second data word is the data word after the start and end signals;

[0012] Sending the first data word to the first-channel buffer, and switching the preset dual-channel buffer to switch the buffer for caching the route information in the dual-channel buffer from the first-channel buffer to the second-channel buffer;

[0013] Caching the second data word into the second-channel buffer, and parsing the data words of the route information cached in the first-channel buffer.

[0014] According to the method for processing route information provided by the present invention, the caching of the second data word into the second-channel buffer and the parsing of the data words of the route information cached in the first-channel buffer include:

[0015] Starting a first operation thread and a second operation thread;

[0016] Using the first operation thread to cache the second data word into the second-channel buffer, and using the second operation thread to parse the data words of the route information cached in the first-channel buffer.

[0017] According to the route information processing method provided by the present invention, after caching the second data word into the second cache area and parsing the data words of the route information cached in the first cache area, the method further includes:

[0018] Empty the first cache area.

[0019] According to the route information processing method provided by the present invention, the obtaining of the route information sent by the real aircraft navigation device in the current cycle includes:

[0020] Obtain the initial signal sent by the real aircraft navigation device in the current cycle; the initial signal contains one or more types of information;

[0021] Obtain the label identifiers of different types of information in the initial signal;

[0022] According to the label identifiers, obtain the route information sent by the real aircraft navigation device in the current cycle from the initial signal.

[0023] According to the route information processing method provided by the present invention, the obtaining of the initial signal sent by the real aircraft navigation device in the current cycle includes:

[0024] Read the initial signal sent by the real aircraft navigation device in the current cycle from a preset virtual bus;

[0025] Wherein, the initial signal is obtained by a data acquisition terminal operating a data acquisition board of the real aircraft navigation device to collect data of the real aircraft navigation device, and packing the collected data according to a preset data structure and sending it to a main control computer. The main control computer disassembles the received data and writes it into the virtual bus.

[0026] According to the route information processing method provided by the present invention, the start-stop signal includes indication information of the signal length of the route information.

[0027] The present invention also provides a route information processing device, including:

[0028] An acquisition module, configured to obtain the route information sent by the real aircraft navigation device in the current cycle;

[0029] A detection module, configured to detect the start-stop signal of the route information; the start-stop signal is used to indicate the end of the previous route information and the start of a new route information;

[0030] A processing module, configured to switch a preset dual cache area based on the start-stop signal, so as to alternately cache the route information into the dual cache area for parsing.

[0031] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of any one of the above-mentioned route information processing methods are implemented.

[0032] 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, the steps of any one of the above-mentioned route information processing methods are implemented.

[0033] The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of any one of the above-mentioned route information processing methods are implemented.

[0034] The route information processing method, device, equipment, and storage medium provided by the present invention detect the start and end signals of the route information sent by the real navigation device in the current cycle, and switch the dual buffer based on the start and end signals, so as to alternately cache the route information into the dual buffer for parsing and provide it for the simulation navigation device to use. By switching the dual buffer through the start and end signals of the route information, dual-channel alternating caching and parsing of the route information are realized, which can ensure that the complete route information is parsed from the dual buffer. Moreover, the caching and parsing processes of the route information are separated based on the dual buffer, thereby realizing parallel processing of the caching and parsing of the route information, reducing the processing delay of the route information, improving the timeliness of obtaining the route information, and ensuring the integrity and timeliness of the obtained route information. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0036] Figure 1 is a schematic flowchart of the route information processing method provided by the embodiment of the present invention;

[0037] Figure 2 is one of the schematic flowcharts of the route information processing provided by the embodiment of the present invention;

[0038] Figure 3 is another schematic flowchart of the route information processing provided by the embodiment of the present invention;

[0039] Figure 4 is a schematic structural diagram of the route information processing device provided by the embodiment of the present invention;

[0040] Figure 5 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0041] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without creative efforts shall fall within the protection scope of the present invention.

[0042] To solve the problems existing in the single-path caching of route information, an embodiment of the present invention provides a route information processing method. By adopting a dual-path caching method, the caching area of the route information is switched according to the integrity of the route information, and the caching and parsing processes of the route information are separated, so as to realize the parallel isolation of the route information caching and parsing processes. While caching the route information sent in the current cycle, the complete route information sent in the previous period can be parsed, thereby reducing the processing delay of the route information and improving the integrity and timeliness of obtaining the route information.

[0043] Specifically, referring to Figure 1 , Figure 1 is a schematic flowchart of the route information processing method provided by an embodiment of the present invention. Based on Figure 1 , the route information processing method provided by an embodiment of the present invention includes:

[0044] Step 100: Obtain the route information sent by the real machine navigation device in the current cycle;

[0045] Step 200: Detect the start and end signals of the route information; the start and end signals are used to indicate the end of the previous route information and the start of a new route information;

[0046] Step 300: Switch a preset dual-path buffer area based on the start and end signals, so as to alternately cache the route information into the dual-path buffer area for parsing.

[0047] First, obtain the route information sent by the real aircraft navigation device within the current cycle. The current cycle is the current data interaction cycle. Generally, the real aircraft navigation device needs to go through multiple data interaction cycles to send a complete route information. Within each data interaction cycle, the real aircraft navigation device sends a part of a complete route information. Then, detect the start and end signals of the route information. The start and end signals are used to represent the end of the previous route information and the start of a new route information. That is, the route information sent in different cycles is distinguished based on the start and end signals. The start and end signals are used to represent the start and end positions of the data words belonging to different route information sent within a data interaction cycle. Based on the detected start and end signals, switch the preset dual-channel buffer to alternately cache the route information into the dual-channel buffer for parsing. The parsed route information can be used by the simulation navigation device of the flight simulator.

[0048] Preferably, when switching the dual-channel buffer based on the start and end signals of the route information, specifically, use the start and end signals of the route information as the switching identifier to switch the buffer area in the dual-channel buffer for caching the route information sent within the current cycle. It should be noted that the start and end signals do not exist in the route information sent in each cycle. Only when the data words of the route information sent within the same cycle do not belong to the same route information, will the start and end signals be generated to identify the end of the previous route information and the start of a new route information. Switch the buffer area in the dual-channel buffer based on the start and end signals, and switch the buffer area according to the integrity of the route information, which can ensure that a complete route information is cached in the buffer area. And, the size of the buffer area can be set according to the data volume of a complete route information. When the route information cached in the buffer area represents a complete route information, then perform buffer switching to ensure that data overflow does not occur.

[0049] Preferably, the detection of the start and end signals of the route information sent in each cycle can be achieved based on a specific tag identifier. By detecting the tag identifier corresponding to the start and end signals, the start and end signals are detected from the route information sent by the real aircraft navigation device.

[0050] Preferably, when the start and end signals of the route information are detected, it means that the previous route information has been sent completely, then immediately switch the dual-channel buffer, and use a buffer area different from the previous route information to alternately cache and parse the other route information within the current cycle.

[0051] In this embodiment, by detecting the start and end signals of the route information sent by the real aircraft navigation device in the current cycle, the dual-channel buffer is switched based on the start and end signals, so that the route information is alternately cached in the dual-channel buffer for parsing and provided for use by the simulation navigation device. By switching the dual-channel buffer based on the start and end signals of the route information, dual-channel alternate caching and parsing of the route information are realized, which can ensure that the complete route information is parsed from the dual-channel buffer. Moreover, the caching and parsing processes of the route information are separated based on the dual-channel buffer, and then parallel processing of the caching and parsing of the route information is realized, reducing the processing delay of the route information, thereby improving the timeliness of obtaining the route information, and further ensuring the integrity and timeliness of the obtained route information.

[0052] Preferably, the real aircraft navigation device sends the route information through interaction based on the ARINC429 bus, and the sent route information is an A429 data frame constructed by 25-bit or 32-bit A429 data words. Among the A429 data words related to a group of route information sent in each cycle, the first A429 data word corresponding to the start and end signals contains length indication information, which is used to indicate how many A429 data words exist after the start and end signals and are used to describe the route information, that is, it is used to indicate the signal length of the route information. Preferably, the first A429 data word describing the route information can be identified by a determined label number Label, and logically, based on the start and end signals of the route information sent in each cycle, the start and end of the 429 data words of the route information can be determined, and the switching of the dual-channel buffer can be completed.

[0053] In one embodiment, the dual-channel buffer includes a first-channel buffer and a second-channel buffer. The route information sent in the current cycle includes multiple data words. Alternately caching the route information sent in the current cycle into the dual-channel buffer is specifically to switch the buffer for caching the route information according to the start and end signals. Based on this, in step 300, switching the preset dual-channel buffer based on the start and end signals of the route information to alternately cache the route information into the dual-channel buffer for parsing specifically includes:

[0054] Step 210, dividing the multiple data words corresponding to the route information into a first data word and a second data word based on the start and end signals; the first data word is the data word before the start and end signals, and the second data word is the data word after the start and end signals;

[0055] Step 220, sending the first data word to the first-channel buffer, and switching the preset dual-channel buffer to switch the buffer for caching the route information in the dual-channel buffer from the first-channel buffer to the second-channel buffer;

[0056] Step 230: Cache the second data word in the second cache area, and parse the data words of the route information cached in the first cache area.

[0057] When alternately caching the route information sent in the current cycle into the dual cache area, first, based on the detected start and end signals, divide the multiple data words corresponding to the route information sent in the current cycle into a first data word and a second data word. Among them, the first data word is the data word before the start and end signals, and the second data word is the data word after the start and end signals. The first data word is the data word of the previous route information, and the second data word is the data word of a new route information. That is, the first data word and the second data word belong to different route information, and both the first data word and the second data word can include one or more.

[0058] Send the first data word to the first cache area, then switch the cache area for caching the route information from the first cache area to the second cache area, and send the second data word to the second cache area for caching. At this time, all the data words of the route information corresponding to the first data word have been cached in the first cache area. After the cache switch, immediately parse the data words of the route information cached in the first cache area to obtain a complete route information. It should be noted that the first cache area is the cache area in the dual cache area that is currently used to cache the data words of the route information, for data caching, and the second cache area is the cache in the dual cache area that is currently used for parsing, for parsing cache. After sending the first data word to the first cache area for caching, all the data words of a complete route information have been cached in the first cache area, then perform a cache switch. After the cache switch, the first cache area becomes the parsing cache, and the second cache area becomes the data cache, then parse the complete route information cached in the first cache area and provide it for the real machine system to use.

[0059] Preferably, the dual buffer includes two buffers, namely the first buffer and the second buffer. When the route information of the first period is initially received, one of the two buffers is randomly selected, etc., as the first buffer to cache the route information, and the other buffer is the parsing buffer, but it is empty at this time and in an idle waiting state. Then, according to the route information received in each subsequent period, when the start-stop signal is first detected, it indicates that the route information of the first period has been sent. After that, before the second detection of the start-stop signal, the route information received in each period is a new piece of route information. The buffer is switched from the first buffer to the other buffer in the dual buffer, that is, the second buffer, and the route information before the start-stop signal received in each subsequent period is cached in the second buffer, and the route information cached in the first buffer is parsed to obtain a complete piece of route information for use by the simulation navigation device. The above buffer switching process is looped to ensure that at the same time, one buffer in the dual buffer is used for data caching and the other buffer is used for data parsing, and it can ensure that the parsed result is a complete piece of route information.

[0060] Preferably, the buffer size of the dual buffer can be fixed or variable, and this is not limited. In a preferred embodiment, the buffer size of the dual buffer is variable. The start-stop signal contains signal length indication information of the route information, which can be used to determine the number of data words corresponding to the route information. According to the signal length indication information detected in the start-stop signal, the buffer size for caching the route information after the start-stop signal is adaptively adjusted.

[0061] In this embodiment, for the route information sent by the real machine navigation device in cycles, when the start-stop signal of the route information is detected, the buffer in the dual buffer for caching the route information is switched, and the first buffer for caching the route information is switched to the other second buffer in the dual buffer. The route information after the start-stop signal is cached in the second buffer, and the previous piece of route information cached in the first buffer is parsed, so as to realize the parallel processing of caching and parsing different route information. Further, the second buffer is used to cache the route information in the current period. When the start-stop signal of the next piece of route information is detected, the dual buffer is switched again. The first buffer is used to cache the next piece of route information, and the route information cached in the second buffer is parsed, so as to alternately use the first buffer and the second buffer in the dual buffer to cache and parse the route information. One buffer is used to cache the route information sent in the current period, and the other buffer is used to parse the previous complete piece of route information.

[0062] Preferably, the caching and parsing of the route information are implemented based on different operation threads. In step 230, the second data word of the route information sent in the current period is cached in the second cache area, and the data words of the route information cached in the first cache area are parsed. Specifically, it further includes:

[0063] Step 201, start the first operation thread and the second operation thread;

[0064] Step 202, use the first operation thread to cache the second data word in the second cache area, and use the second operation thread to parse the data words of the route information cached in the first cache area.

[0065] When caching the second data word of the route information in the current period in the second cache area and parsing the data words of the route information cached in the first cache area, first start the first operation thread and the second operation thread. Use the first operation thread to cache the second data word of the route information in the current period in the second cache area, and use the second operation thread to parse the data words of the route information cached in the first cache area. Preferably, the first operation thread is a write operation thread, and the second operation thread is a read operation thread. By performing dual - caching on the route information and using different operation threads to operate on different cache areas in the dual - cache, read - write separation of the route information is achieved, thus avoiding thread conflicts.

[0066] Preferably, after caching the second data word in the second cache area and parsing the data words of the route information cached in the first cache area in step 220, it further includes:

[0067] Step 203, clear the first cache area.

[0068] After parsing the data words of the route information in the first cache area, perform cache cleaning on the first cache area to clear the cached route information data words, facilitating subsequent switching of the dual - cache areas.

[0069] Preferably, in step 100, when obtaining the route information sent by the real - machine navigation device in the current period, it may further include:

[0070] Step 110, obtain the initial signal sent by the real - machine navigation device in the current period; the initial signal contains one or more types of information;

[0071] Step 120, obtain the tag identifiers of different types of information in the initial signal;

[0072] Step 130, obtain the route information sent by the real - machine navigation device in the current period from the initial signal according to the tag identifiers.

[0073] Preferably, in the signals sent by the real aircraft navigation device within a data interaction cycle, there is not only route information, but also other types of information may be included. It is necessary to obtain the route information from different types of information sent by the real aircraft navigation device. Specifically, first, obtain the initial signal sent by the real aircraft navigation device in the current cycle. This initial signal contains one or more types of information. Then, obtain the label identifiers of different types of information in the initial signal, and obtain the route information sent by the real aircraft navigation device in the current cycle from the initial signal according to this label identifier.

[0074] In one embodiment, in the route information sent by the real aircraft navigation device, the label identifier is included in the A429 data word corresponding to the start and end signals. For example, it is the start word of the A429 data word corresponding to the start and end signals. Preferably, the A429 data word of each type of information sent by the real aircraft navigation device contains a label identifier, and different types of information are distinguished by different label identifiers.

[0075] Preferably, in step 110, obtaining the initial signal sent by the real aircraft navigation device in the current cycle may specifically further include:

[0076] Step 101, read the initial signal sent by the real aircraft navigation device in the current cycle from the preset virtual bus;

[0077] Wherein, the initial signal is obtained by the data acquisition terminal operating the data acquisition board card corresponding to the real aircraft navigation device, performing data acquisition on the real aircraft navigation device, and packing the acquired data according to a preset data structure and sending it to the main control computer. The main control computer disassembles the received data and writes it into the virtual bus.

[0078] For the acquisition of the initial signal sent by the real aircraft navigation device, it is specifically obtained by reading from the preset virtual bus. The initial signal sent by the real aircraft navigation device in the current cycle is obtained by the data acquisition terminal operating the board card to perform data acquisition on the real aircraft navigation device, then packing the acquired data according to a preset data structure and sending it to the main control computer. The main control computer disassembles the received data and writes it into the virtual bus.

[0079] In one embodiment, referring to Figure 2 the processing flow of the route information shown, in Figure 2Among them, taking a common GPS navigation device as the real aircraft navigation device and a GPS simulation program as the simulation navigation device of the flight simulator as an example, the route information processing method provided by the embodiment of the present invention is applied to the GPS simulation program. Among them, the data acquisition terminal includes a data acquisition program for manipulating the board, the main control computer includes a parsing program and a GPS simulation program, the board corresponding to the GPS navigation device is a common ARINC429 (i.e., A429) board, and the virtual bus is an A429 virtual bus.

[0080] Specifically, the data acquisition program SimIO in the data acquisition terminal manipulates the A429 board to complete the acquisition of the A429 data of the GPS navigation device, and packs the acquired data according to a certain TLV (Type, Length, Value) data structure and sends it to the main control computer. The parsing program IoServerUnit in the main control computer disassembles the received data, disassembles the data into A429 data words, and writes them into the A429 virtual bus; the GPS simulation program reads the A429 data words in the A429 virtual bus to obtain the route information of the GPS navigation device.

[0081] Further, the GPS simulation program uses a double-buffer method to cache the A429 data words corresponding to the route information, and judges whether the cached A429 data words can completely describe the route information sent in the current cycle through the signal length indicated in the start and stop signals. If so, a cache exchange is performed, and the A429 data words of the next route information are cached in the other buffer in the dual buffer. Once a cache exchange occurs, it means that the cached A429 data words can completely describe a route information, and the A429 data words of the next new route information are continuously cached in the other buffer; if not, the A429 data words of this route information are continuously written into the cache.

[0082] Further, the parsing of the A429 data words corresponding to the cached route information is implemented based on the designed parsing class. Specifically, the A429Word and A429Signal classes are designed to parse the A429 data words. After binding the A429 data word information related to the route information through function calls during the program initialization phase, the automatic parsing of the A429 data words corresponding to the route information can be realized during the parsing phase.

[0083] Preferably, in one embodiment, assuming that the dual-channel buffer is Buffer 1 and Buffer 2, the label of the A429 data word of the start and end signals of the route information sent by the real aircraft navigation device is determined. Exemplarily, taking the label of the start A429 data word of the route information as 074, the start A429 data word contains the indication information of the route information signal length, which is used to illustrate how many A429 data words corresponding to the route information are there after the start word. Therefore, based on the label and the length indication information of the start A429 data word, it is possible to determine which A429 data words are related to the route information.

[0084] During the process of processing the A429 data words related to the route information, Buffer 1 and Buffer 2 are initialized to be empty; within each cycle, Buffer 1 is parsed and Buffer 2 is not parsed, and Buffer 2 is used to cache data, or Buffer 2 is parsed and Buffer 1 is not parsed, and Buffer 1 is used to cache data.

[0085] Exemplarily, if the real aircraft navigation device sends A429 data words containing the following labels: 001, 034, 074, 021, 056, 064, 074, 088, 076, 046. The A429 data words under each label are compared and judged in turn. 001!=074, 034!=074, they are not the start words of the route information; 074 is the start word of the route information and is stored in Buffer 2 which is currently used to cache data; 021, 056, 064 are after the start word of the route information and are also stored in Buffer 2; the second 074 represents the start word of a new route information, that is, the start and end signals of the new route information, indicating that the previous route information has been completely saved in Buffer 2. At this time, a buffer exchange is performed, Buffer 2 will be parsed, and the A429 data words with the second label of 074 and the subsequent A429 data words with labels of 088, 076, 046 are stored in Buffer 1 in turn; until the next A429 data word with the label of 074 is received, a buffer exchange is performed again, so as to realize the alternate caching and parsing of the dual-channel buffer.

[0086] In another embodiment, refer to Figure 3The flight path information processing flow shown in the figure is as follows. First, bind the starting 429 data words of the configured flight path information to the flight path point 429 data words, initialize the dual-channel buffer, set the first buffer as the parsing buffer and the second buffer as the data buffer, obtain the A429 data words of the flight path information in the current cycle, and send them to the data buffer. According to the detection result of the start and end signals, determine whether a complete flight path information has been cached in the data buffer. If not, increment the cycle by one and continue to obtain the next set of flight path information for caching in cycles. Until a complete flight path information has been cached in the data buffer, perform a cache switch between the parsing buffer and the data buffer, and parse the flight path information cached in the switched parsing buffer. Determine whether the information sending has ended. If not, increment the cycle by one and continue to obtain the A429 data words of the flight path information in cycles and send them to the data buffer. It should be noted that when performing the cache switch, switch the parsing buffer to the data buffer and the data buffer to the parsing buffer. After the cache switch occurs, while caching the flight path information in the data buffer, parse the flight path information cached in the parsing buffer to achieve the parallel execution of parsing the previous flight path information and caching a new flight path information.

[0087] Exemplarily, for example, the flight path information starting 429-word label is labeled with label = 085. This 429 data word contains the number information of the flight path points in this flight path information. A flight path information contains multiple flight path points, and each flight path point is represented by 3 429 data words. These 3 429 data words have fixed label numbers, such as 311, 312, and 313. Therefore, if there are 5 flight path points in a flight path information, then the number of 429 data words used to describe this flight path is 1 + 3 × 5 = 16. The label numbers of these 16 429 data words are 085, 311, 312, 313, 311, 312, 313, 311, 312, 313, 311, 312, 313, 311, 312, 313. The amount of data that can be sent in each data interaction cycle is determined. In addition to flight path information, the interacted data may also include other data. Therefore, multiple flight path points of the same flight path may take multiple data interaction cycles to be sent completely. Since the number of flight path points in each flight path is uncertain, a relatively large amount of flight path point data can be preset, such as 30, and initialize and bind the information of these 30 flight path points. Subsequently, the data words of the cached flight path information can be automatically parsed. The dual-channel buffer can be set as a variable buffer, and the size of the buffer can be adaptively set according to the number of flight path points of the flight path information to cache the flight path information, thereby avoiding data overflow or resource waste.

[0088] In this embodiment, through cache switching, the route information is cached in a dual-channel manner according to the integrity of the route information, and operation threads are used to operate on different buffer areas respectively, realizing the read-write separation of the route information and avoiding thread conflicts. Moreover, based on the read-write separation of the dual-channel cache of the route information, the parallel execution of caching and parsing different route information can be realized, thereby reducing the processing delay of the route information and improving the timeliness of obtaining the route information.

[0089] The route information processing device provided by the present invention will be described below. The route information processing device described below can be correspondingly referred to the route information processing method described above.

[0090] Refer to Figure 4 , the route information processing device provided by the embodiment of the present invention includes:

[0091] The acquisition module 10 is used to obtain the route information sent by the real aircraft navigation device in the current cycle;

[0092] The detection module 20 is used to detect the start and end signals of the route information; the start and end signals are used to represent the end of the previous route information and the start of a new route information;

[0093] The processing module 30 is used to switch the preset dual-channel buffer area based on the start and end signals, so as to alternately cache the route information into the dual-channel buffer area for parsing according to the cycle.

[0094] In one embodiment, the dual-channel buffer area includes a first buffer area and a second buffer area, and the route information includes a plurality of data words; the processing module 30 is further used for:

[0095] Dividing the plurality of data words corresponding to the route information into a first data word and a second data word based on the start and end signals; the first data word is the data word before the start and end signals, and the second data word is the data word after the start and end signals;

[0096] Sending the first data word to the first buffer area, and switching the buffer area in the preset dual-channel buffer area for caching the route information from the first buffer area to the second buffer area;

[0097] Caching the second data word into the second buffer area, and parsing the data words of the route information cached in the first buffer area.

[0098] In one embodiment, the processing module 30 is further used for:

[0099] Starting a first operation thread and a second operation thread;

[0100] Use the first operation thread to cache the second data word into the second cache area, and use the second operation thread to parse the data word of the route information cached in the first cache area.

[0101] In one embodiment, the processing module 30 is further configured to:

[0102] Empty the first cache area.

[0103] In one embodiment, the acquisition module 10 is further configured to:

[0104] Obtain the initial signal sent by the real aircraft navigation device in the current cycle; the initial signal includes one or more types of information;

[0105] Obtain the label identifier of different types of information in the initial signal;

[0106] Obtain the route information sent by the real aircraft navigation device in the current cycle from the initial signal according to the label identifier.

[0107] In one embodiment, the acquisition module 10 is further configured to:

[0108] Read the initial signal sent by the real aircraft navigation device in the current cycle from a preset virtual bus;

[0109] Wherein, the initial signal is obtained by the data acquisition terminal manipulating the board corresponding to the real aircraft navigation device, collecting data from the real aircraft navigation device, packing the collected data according to a preset data structure and sending it to the main control computer, and after the main control computer disassembles the received data, writing it into the virtual bus.

[0110] In one embodiment, the start-stop signal includes indication information of the signal length of the route information.

[0111] Figure 5 Illustrates a schematic diagram of the physical structure of an electronic device, as Figure 5 shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540. Among them, the processor 510, the communication interface 520, and the memory 530 complete mutual communication through the communication bus 540. The processor 510 can call the logical instructions in the memory 530 to execute the route information processing method, and the method includes:

[0112] Obtain the route information sent by the real aircraft navigation device in the current cycle;

[0113] Detect the start and end signals of the route information; the start and end signals are used to represent the end of the previous route information and the start of a new route information;

[0114] Based on the start and end signals, switch a preset dual-channel buffer to alternately buffer the route information into the dual-channel buffer for parsing.

[0115] In addition, when the logical instructions in the above-mentioned memory 530 can be implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0116] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that 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 route information processing method provided by the above-mentioned various methods. The method includes:

[0117] Obtain the route information sent by the real machine navigation device in the current cycle;

[0118] Detect the start and end signals of the route information; the start and end signals are used to represent the end of the previous route information and the start of a new route information;

[0119] Based on the start and end signals, switch a preset dual-channel buffer to alternately buffer the route information into the dual-channel buffer for parsing.

[0120] In yet another aspect, 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 is implemented to execute the route information processing method provided by the above-mentioned various methods. The method includes:

[0121] Obtain the route information sent by the real machine navigation device in the current cycle;

[0122] Detect the start and end signals of the route information; the start and end signals are used to represent the end of the previous route information and the start of a new route information;

[0123] Based on the start and end signals, switch the preset dual-channel buffer to alternately cache the route information into the dual-channel buffer for parsing.

[0124] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.

[0125] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0126] 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 them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A route information processing method, characterized in that: include: Get the route information sent by the real aircraft navigation device in the current cycle; Detecting the start and end signals of the route information; The start and end signals are used to indicate the end of the previous route information and the start of a new route information; Switching the preset dual-path buffer area based on the start and stop signals to alternately buffer the route information into the dual-path buffer area for parsing; The dual-path buffer includes a first-path buffer and a second-path buffer, and the route information includes a plurality of data words; The switching of the preset dual-path buffer area based on the start and stop signals to alternately buffer the route information into the dual-path buffer area for parsing includes: Divide the multiple data words corresponding to the route information into a first data word and a second data word based on the start and stop signals; the first data word is the data word before the start and stop signals, and the second data word is the data word after the start and stop signals; Sending the first data word to a first-way buffer area, and switching a preset dual-way buffer area, so as to switch a buffer area in the dual-way buffer area for caching the route information from the first-way buffer area to the second-way buffer area; Cache the second data word in the second buffer area, and parse the data word of the route information cached in the first buffer area; The step of caching the second data word in the second buffer area and parsing the data word of the route information cached in the first buffer area includes: Start a first operation thread and a second operation thread; The second data word is cached in the second buffer area by using the first operation thread, and the data word of the route information cached in the first buffer area is parsed by using the second operation thread.

2. The route information processing method according to claim 1, characterized in that: After caching the second data word in the second buffer area and parsing the data word of the route information cached in the first buffer area, the method further includes: Clear the first buffer area.

3. The route information processing method according to claim 1, characterized in that: The obtaining of route information sent by the real aircraft navigation device in the current cycle includes: Acquire an initial signal sent by a real machine navigation device in a current cycle; the initial signal includes one or more types of information; Obtaining label identifiers of different types of information in the initial signal; The route information sent by the real machine navigation device in the current cycle is obtained from the initial signal according to the tag identifier.

4. The route information processing method according to claim 3, characterized in that: The obtaining of the initial signal sent by the real machine navigation device in the current cycle includes: Read the initial signal sent by the real navigation device in the current cycle from the preset virtual bus; Among them, the initial signal is controlled by the data acquisition terminal to operate the data acquisition board corresponding to the real machine navigation device, collect data from the real machine navigation device, and package the collected data according to a preset data structure and send it to the main control computer. The main control computer disassembles the received data and writes it to the virtual bus.

5. The route information processing method according to claim 1, characterized in that: The start and end signals include indication information of the signal length of the route information.

6. A route information processing device, characterized in that: include: The acquisition module is used to obtain the route information sent by the real aircraft navigation device in the current cycle; A detection module, used to detect the start and end signals of the route information; The start and end signals are used to indicate the end of the previous route information and the start of a new route information; A processing module, used for switching the preset dual-path buffer area based on the start and stop signals, so as to alternately buffer the route information into the dual-path buffer area for parsing; The dual-path buffer area includes a first-path buffer area and a second-path buffer area, and the route information includes a plurality of data words; the processing module is further used for: Divide the multiple data words corresponding to the route information into a first data word and a second data word based on the start and stop signals; the first data word is the data word before the start and stop signals, and the second data word is the data word after the start and stop signals; Sending the first data word to a first-way buffer area, and switching a preset dual-way buffer area, so as to switch a buffer area in the dual-way buffer area for caching the route information from the first-way buffer area to the second-way buffer area; Cache the second data word in the second buffer area, and parse the data word of the route information cached in the first buffer area; The processing module is further used for: Start a first operation thread and a second operation thread; The second data word is cached in the second buffer area by using the first operation thread, and the data word of the route information cached in the first buffer area is parsed by using the second operation thread.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the route information processing method according to any one of claims 1 to 5 are implemented.

8. 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 steps of the route information processing method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Hardware acceleration method applied to route planning system

    CN115790570A

  • Navigation radar echo wake display method based on double caches

    CN117741610A