Air route information processing method and device, equipment and storage medium

By introducing dual-channel caches into the route information processing system and using the start and end signals of route information for cache switching, the problem of delay and integrity of route information processing caused by single-channel cache is solved, and more efficient and timely acquisition of route information is achieved.

CN119803483AActive Publication Date: 2025-04-11BEIJING BLUESKY AVIATION TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202510274407.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-10
Publication Date
2025-04-11
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 in the current period, 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 that the complete route information obtained from the buffer area is obtained. Through the parallel processing of cache and analysis, the processing delay of route information is reduced, and the timeliness and integrity of obtaining route information is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119803483A_ABST
    Figure CN119803483A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and provides an air route information processing method, device and equipment and a storage medium, and the method comprises the following steps: obtaining air route information sent by real machine navigation equipment in a current period; detecting a start-stop signal of the air route information; the start-stop signal is used for representing the end of the previous route information and the start of the new route information; and switching a preset two-way cache region based on the start-stop signal, so as to alternately cache the airway information into the two-way cache region for analysis. The double-path cache region is switched through the start-stop signal, double-path alternate caching and analysis of the air route information are achieved, and it can be guaranteed that complete air route information is obtained through analysis in the double-path cache region. Moreover, the caching and analysis processes of the air route information are separated based on the two-way cache, so that parallel processing of caching and analysis of the air route information is realized, the processing time delay is reduced, and the integrity and timeliness of the obtained air route information are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a route information processing method, device, equipment and storage medium. 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. Each waypoint generally includes information such as longitude and latitude, which guides 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 not fixed. For flight simulators, it is necessary to collect and analyze the route information set by the navigation equipment of the actual aircraft system, and then provide it to the simulation environment of the flight simulator for use.

[0003] When collecting route information of the actual navigation equipment, the ARINC429 bus is used for data exchange. The ARINC429 bus constructs an A429 data frame with 25-bit or 32-bit A429 data words. A waypoint information requires several ARINC429 data words to define. A complete route contains multiple waypoints, so multiple 429 data words are required to complete the description of a complete route information. The A429 bus baud rate is generally divided into high and low speeds. For a low-speed baud rate bus, such as a bus with a baud rate of 12.5Kbps, the data exchange cycle is 10ms, and the 32-bit data word on the line can be at most 12.5 in one cycle. 1000 / 36 / 10=3.472; if a high-speed bus with a baud rate of 100Kbps is used, there are at most 27.7 32-bit data words on the line in one cycle. Considering that there is other data on the line besides 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 exchange cycles.

[0004] In the existing route information processing method, the route information is cached in a single way. The method of caching and parsing at the same time requires the simultaneous start of read and write threads to operate the cache area, which is easy to cause thread conflicts. Therefore, it is generally parsed uniformly after the cache area is full, and then the route information obtained by parsing is provided to the simulation environment for use. On the one hand, this method requires parsing after receiving route information of multiple data interaction cycles, and there is a high delay in processing route information, which affects the timeliness of the simulation environment to obtain route information; on the other hand, when the cache area is full, the route information sent in multiple data interaction cycles is obtained, but because the number of waypoints corresponding to a complete route information is not fixed, and the size of the cache area is fixed, it cannot be guaranteed that one or more complete route information is obtained when the cache area is full, which affects the integrity of the simulation environment to obtain route information. Summary of the invention

[0005] The present invention provides a route information processing method, device, equipment and storage medium, which are used to solve the defects of high processing delay in the prior art using a single-path cache method for route information, which affects the integrity and timeliness of obtaining route information.

[0006] The present invention provides a route information processing method, comprising: 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; The preset dual-path buffer area is switched based on the start and stop signals, so as to alternately buffer the route information into the dual-path buffer area for parsing.

[0007] According to the route information processing method provided by the present invention, 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 preset dual-path buffer area is switched based on the start and end signals to alternately cache the route information in the dual-path buffer area for parsing, including: 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; The second data word is cached in the second buffer area, and the data word of the route information cached in the first buffer area is parsed.

[0008] According to the route information processing method provided by the present invention, the second data word is cached in the second buffer area, and the data word of the route information cached in the first buffer area is parsed, including: 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.

[0009] According to the route information processing method provided by the present invention, 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.

[0010] According to the route information processing method provided by the present invention, the step of obtaining the route information sent by the real machine 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.

[0011] According to the route information processing method provided by the present invention, the step of obtaining the initial signal sent by the real aircraft 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.

[0012] According to the route information processing method provided by the present invention, the start and end signals include indication information of the signal length of the route information.

[0013] The present invention also provides a route information processing device, comprising: 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; The processing module is used to switch the preset dual-path buffer area based on the start and end signals, so as to alternately cache the route information in the dual-path buffer area for parsing.

[0014] 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 the processor implements the steps of any of the above-mentioned route information processing methods when executing the computer program.

[0015] 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 of the above-mentioned route information processing methods are implemented.

[0016] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned route information processing methods are implemented.

[0017] 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-path buffer area based on the start and end signals, so that the route information is alternately cached in the dual-path buffer area for parsing, and provided to the simulation navigation device for use. By switching the dual-path buffer area through the start and end signals of the route information, dual-path alternate caching and parsing of the route information are achieved, which can ensure that the route information parsed from the dual-path buffer area is complete. In addition, the caching and parsing processes of the route information are separated based on the dual-path cache, thereby achieving parallel processing of the caching and parsing of the route information, reducing the processing delay of the route information, thereby improving the timeliness of the route information acquisition, and thus ensuring the integrity and timeliness of the acquired route information. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] 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.

[0019] Figure 1 is a flow chart of a method for processing route information provided by an embodiment of the present invention; Figure 2 This is one of the schematic diagrams of the route information processing flow provided by the embodiment of the present invention; Figure 3 This is the second schematic diagram of the route information processing flow provided by the embodiment of the present invention; Figure 4 is a schematic diagram of the structure of a route information processing device provided by an embodiment of the present invention; Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0020] 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.

[0021] In order 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, which adopts a dual-path caching method, switches the cache area of ​​the route information according to the integrity of the route information, separates the caching of the route information from the parsing processing process, and realizes parallel isolation of the route information caching and parsing processing. 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.

[0022] Specifically, refer to Figure 1 , Figure 1 A schematic diagram of a flow chart of a route information processing method provided by an embodiment of the present invention, based on Figure 1 , the route information processing method provided by the embodiment of the present invention includes: Step 100, obtaining route information sent by the real machine navigation device in the current cycle; Step 200, 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; Step 300: Switch the preset dual-path buffer area based on the start and end signals to alternately buffer the route information into the dual-path buffer area for parsing.

[0023] First, the route information sent by the real machine navigation device in the current cycle is obtained. The current cycle is the current data interaction cycle. The real machine navigation device generally needs to go through multiple data interaction cycles to send a complete route information. In each data interaction cycle, the real machine navigation device sends a part of a complete route information. Then the start and end signals of the route information are detected. The start and end signals are used to represent the end of the previous route information and the beginning 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 in a data interaction cycle. Based on the detected start and end signals, the preset dual-path buffer area is switched to alternately cache the route information in the dual-path buffer area for parsing. The parsed route information can be used by the simulation navigation device of the flight simulator.

[0024] Preferably, when the dual-path buffer area is switched based on the start and end signals of the route information, the start and end signals of the route information are used as the switching identifier to switch the cache area in the dual-path buffer area for caching the route information sent in 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 in the same cycle do not belong to the same route information, the start and end signals will be generated to mark the end of the previous route information and the beginning of a new route information. The cache areas in the dual-path buffer area are switched based on the start and end signals, and the cache areas are switched according to the integrity of the route information, which can ensure that a complete route information is cached in the cache area. In addition, the size of the cache area can be set according to the amount of data of a complete route information. When the route information cached in the cache area represents a complete route information, the cache is switched to ensure that no data overflow occurs.

[0025] 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, and the start and end signals can be detected from the route information sent by the real machine navigation device by detecting the tag identifier corresponding to the start and end signals.

[0026] Preferably, when the start and end signals of the route information are detected, it means that it is detected that the previous route information has been sent, and the dual-path buffer area is immediately switched, and a buffer area different from the previous route information is used to alternately cache and parse another route information in the current cycle.

[0027] In this embodiment, by detecting the start and end signals of the route information sent by the real navigation device in the current cycle, the dual-path buffer area is switched based on the start and end signals, so that the route information is alternately cached in the dual-path buffer area for parsing and provided to the simulation navigation device for use. By switching the dual-path buffer area by the start and end signals of the route information, the dual-path alternate caching and parsing of the route information is realized, which can ensure that the complete route information is obtained by parsing from the dual-path buffer area. In addition, the caching and parsing processes of the route information are separated based on the dual-path cache, thereby realizing parallel processing of the caching and parsing of the route information, reducing the processing delay of the route information, thereby improving the timeliness of the route information acquisition, and thus ensuring the integrity and timeliness of the acquired route information.

[0028] Preferably, the sending of route information by the real machine navigation device is realized through interaction based on the ARINC429 bus, and the route information sent is an A429 data frame constructed with 25-bit or 32-bit A429 data words. In a group of A429 data words related to 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 to describe the route information, that is, to indicate the signal length of the route information. Preferably, the first A429 data word describing the route information can be identified by a certain label number Label, and logically, it can determine the start and end of the route information 429 data word according to the start and end signals of the route information sent in each cycle, and complete the switching of the dual-path buffer area.

[0029] In one embodiment, the dual-path buffer includes a first-path buffer and a second-path buffer, and the route information sent in the current cycle includes multiple data words, and the route information sent in the current cycle is alternately cached in the dual-path buffer, specifically, the buffer used to cache the route information is switched according to the start and end signals. Based on this, in step 300, the preset dual-path buffer is switched based on the start and end signals of the route information, so as to alternately cache the route information in the dual-path buffer for parsing, specifically including: 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 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; Step 220, sending the first data word to the first-way buffer area, and switching the preset dual-way buffer area to switch the 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; Step 230, 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.

[0030] When alternately caching the route information sent in the current cycle into the dual-path buffer area, firstly, based on the detection of the start and end signals, the multiple data words corresponding to the route information sent in the current cycle are divided into the first data word and the second data word. Among them, the first data word is the data word before the start and end signals, 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 the first data word and the second data word may include one or more.

[0031] The first data word is sent to the first buffer area, and then the buffer area used for caching route information is switched from the first buffer area to the second buffer area, and the second data word is sent to the second buffer 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 buffer area. After the cache switching is performed, the data words of the route information cached in the first buffer area are immediately parsed to obtain a complete route information. It should be noted that the first buffer area is a dual-channel buffer area, and the buffer area currently used for caching route information data words is a data cache, and the second buffer area is a dual-channel buffer area, and the cache currently used for parsing is a parsing cache. After the first data word is sent to the first buffer area for caching, a complete data word of route information has been cached in the first buffer area, and then a cache switching is performed. After the cache switching is performed, the first buffer area becomes a parsing cache, and the second buffer area becomes a data cache, and the complete route information cached in the first buffer area is parsed and provided to the real machine system for use.

[0032] Preferably, the dual-path buffer includes two buffers, namely, the first buffer and the second buffer. When the route information of the first cycle is initially received, one buffer is selected from the two buffers by random selection or the like as the first buffer to cache the route information, and the other buffer is a parsing buffer, but it is empty at this time and is in an idle waiting state. Then, according to the route information received in each subsequent cycle, when the start and end signals are detected for the first time, it means that the route information of the first cycle has been sent. Thereafter, before the start and end signals are detected for the second time, a new route information is received in each cycle. The buffer is switched from the first buffer to another buffer in the dual-path buffer, namely, the second buffer, and the route information before the start and end signals received in each subsequent cycle is cached in the second buffer, and the route information cached in the first buffer is parsed to obtain a complete route information for use by the simulation navigation device. The cache switching process is executed cyclically to ensure that at the same time, one cache area in the dual-way cache area is used for data caching and the other cache area is used for data parsing, and it can be ensured that a complete route information is obtained through parsing.

[0033] Preferably, the buffer size of the dual-path buffer can be fixed or variable, and there is no limitation on this. In a preferred embodiment, the buffer size of the dual-path buffer is variable, and the start and end signals contain signal length indication information of the route information, which can be used to determine the number of data words corresponding to the route information, and according to the signal length indication information in the detected start and end signals, the buffer size for caching the data words of the route information after the start and end signals is adaptively adjusted.

[0034] In this embodiment, for the route information sent periodically by the real navigation device, when the start and end signals of the route information are detected, the buffer area used for caching the route information in the dual-path buffer area is switched, the first buffer area used for caching the route information is switched to the other second buffer area in the dual-path buffer area, the route information after the start and end signals is cached in the second buffer area, and the last route information cached in the first buffer area is parsed, thereby realizing the parallel processing of caching and parsing of different route information. Further, the second buffer area is used to cache the route information in the current cycle, and when the start and end signals of the next route information are detected, the dual-path buffer area is switched again, the first buffer area is used to cache the next route information, and the route information cached in the second buffer area is parsed, thereby alternately using the first buffer area and the second buffer area in the dual-path buffer area to cache and parse the route information. One buffer area is used to cache the route information sent in the current cycle, and the other buffer area is used to parse the last complete route information.

[0035] 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 cycle is cached in the second buffer area, and the data word of the route information cached in the first buffer area is parsed, which specifically includes: Step 201, start a first operation thread and a second operation thread; Step 202: Utilize the first operation thread to cache the second data word in the second buffer area, and utilize the second operation thread to parse the data word of the route information cached in the first buffer area.

[0036] When caching the second data word of the route information in the current cycle to the second buffer area and parsing the data word of the route information cached in the first buffer 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 cycle to the second buffer area, and use the second operation thread to parse the data word of the route information cached in the first buffer area. Preferably, the first operation thread is a write operation thread, and the second operation thread is a read operation thread. By dual-way caching of the route information, and using different operation threads to operate different cache areas in the dual-way cache, read and write separation of the route information is achieved, thereby avoiding thread conflicts.

[0037] Preferably, in step 220, 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: Step 203: clear the first buffer area.

[0038] After parsing the data words of the route information in the first buffer area, the first buffer area is cached and cleared to clear the cached data words of the route information, so as to facilitate the subsequent switching of the dual buffer areas.

[0039] Preferably, in step 100, obtaining the route information sent by the real machine navigation device in the current cycle may also include: Step 110, obtaining an initial signal sent by the real machine navigation device in the current cycle; the initial signal includes one or more types of information; Step 120, obtaining label identifiers of different types of information in the initial signal; Step 130: Acquire route information sent by the real machine navigation device in the current cycle from the initial signal according to the tag identifier.

[0040] Preferably, the signal sent by the real navigation device in a data interaction cycle includes not only route information but also other types of information, and the route information needs to be obtained from the different types of information sent by the real navigation device. Specifically, firstly, the initial signal sent by the real navigation device in the current cycle is obtained, and the initial signal includes one or more types of information, and then the label identifiers of the different types of information in the initial signal are obtained, and the route information sent by the real navigation device in the current cycle is obtained from the initial signal according to the label identifier.

[0041] In one embodiment, in the route information sent by the real machine navigation device, the tag 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 machine navigation device includes a tag identifier, and different types of information are distinguished by different tag identifiers.

[0042] Preferably, in step 110, obtaining the initial signal sent by the real machine navigation device in the current cycle may further include: Step 101, reading 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.

[0043] The acquisition of the initial signal sent by the real navigation device is specifically read from the preset virtual bus. The initial signal sent by the real navigation device in the current cycle is acquired by the data acquisition terminal operating the board card to collect data from the real navigation device, and then the collected data is packaged according to the preset data structure and sent to the main control computer. The main control computer disassembles the received data and writes it to the virtual bus.

[0044] In one embodiment, referring to Figure 2 The processing flow of route information shown in Figure 2 In the embodiment, a commonly used GPS navigation device is used as a real machine navigation device, and a GPS simulation program is used as a simulation navigation device of a flight simulator. The route information processing method provided by the embodiment of the present invention is applied to the GPS simulation program. The data acquisition terminal includes a data acquisition program for operating the board card, the main control computer includes a parsing program and a GPS simulation program, the board card corresponding to the GPS navigation device is a commonly used ARINC429 (ie, A429) board card, and the virtual bus is an A429 virtual bus.

[0045] Specifically, the data acquisition program SimIO in the data acquisition terminal manipulates the A429 board to complete the collection of A429 data of the GPS navigation device, and packages the collected 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 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.

[0046] Furthermore, the GPS simulation program uses a double buffering method to buffer the A429 data words corresponding to the route information, and determines whether the buffered A429 data words can fully describe the route information sent in the current cycle through the signal length indicated in the start and end signals. If yes, a buffer exchange is performed, and the other buffer area in the double buffer area is used to buffer the A429 data words of the next route information. Once a buffer exchange occurs, it means that the buffered A429 data words can fully describe a route information, and the other buffer area is used to continue to buffer the A429 data words of the next new route information; if not, the A429 data words of the route information are continued to be written into the cache.

[0047] Furthermore, 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 in the program initialization phase, the A429 data words corresponding to the route information can be automatically parsed in the parsing phase.

[0048] Preferably, in one embodiment, assuming that the dual-path buffer area is buffer 1 and buffer 2, the label identification label of the A429 data word of the start and end signal of the route information sent by the real machine navigation device is determined. For example, taking the label identification of the starting A429 data word of the route information as 074 as an example, the starting A429 data word contains the indication information of the length of the route information signal, which is used to indicate how many A429 data words corresponding to the route information there are after the starting word. Therefore, based on the label identification label and length indication information of the starting A429 data word, it is possible to determine which A429 data words are related to the route information.

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

[0050] For example, if the real machine navigation device sends the A429 data words containing the following labels: 001, 034, 074, 021, 056, 064, 074, 088, 076, 046, the A429 data words identified by each label are compared and determined in turn, 001! = 074, 034! =074, which is not the starting word of the route information; 074 is the starting word of the route information and is stored in cache 2 currently used to cache data; 021, 056, 064 are located after the starting word of the route information and are also stored in cache 2; the second 074 represents the starting word of the 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 cache 2. At this time, a cache exchange is performed, cache 2 is parsed, and the second A429 data word with a label of 074 and the subsequent A429 data words with labels of 088, 076, and 046 are stored in cache 1 in sequence; until the next A429 data word with a label of 074 is received, a cache exchange is performed again, thereby realizing the alternating caching and parsing of the dual-way cache.

[0051] In another embodiment, referring to Figure 3The route information processing flow shown in the figure first binds the configured route information start 429 data word with the waypoint 429 data word, initializes the dual-channel buffer area, sets the first buffer area as the parsing buffer area, and the second buffer area as the data buffer area, obtains the A429 data word of the route information in the current cycle, and sends it to the data buffer area. According to the detection results of the start and end signals, it is determined whether a complete route information has been cached in the data buffer. If not, the cycle is incremented by one, and the next set of route information is continuously acquired for caching in a cycle. Until a complete route information has been cached in the data buffer, the parsing buffer and the data buffer are cached, and the route information cached in the switched parsing buffer is parsed. It is determined whether the information sending is completed. If not, the cycle is incremented by one, and the A429 data word of the route information is continuously acquired in a cycle and sent to the data buffer. It should be noted that when cache switching is performed, the parsing cache is switched to the data cache, and the data cache is switched to the parsing cache. After the cache switching occurs, the route information is cached in the data cache while the route information cached in the parsing cache is parsed, thereby realizing the parallel execution of the parsing of the previous route information and the caching of the new route information.

[0052] For example, the route information starts with a 429-word label label = 085. The 429 data word contains the number of waypoints in this route information. A route information contains multiple waypoints, each waypoint is represented by 3 429 data words, and these 3 429 data words have fixed label numbers, such as 311, 312, and 313. Therefore, if a route information has 5 waypoints, the number of 429 data words used to describe this route 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 exchange cycle is fixed. In addition to route information, the exchanged data may also contain other data. Therefore, multiple waypoints on the same route may take multiple data exchange cycles to be sent. Since the number of waypoints in each route is uncertain, a larger waypoint data volume can be preset, for example, set to 30, and the information of these 30 waypoints is initialized and bound. The data words of the cached route information can be automatically parsed later. The dual-channel buffer area can be set as a variable buffer area. According to the number of waypoints in the route information, the size of the buffer area is adaptively set to cache the route information, thereby avoiding data overflow or resource waste.

[0053] In this embodiment, the route information is dual-way cached according to the integrity of the route information through cache switching, and the operation threads are used to operate different cache areas respectively, so as to realize the read-write separation of the route information and avoid thread conflicts. In addition, based on the read-write separation of the dual-way cache of the route information, the parallel execution of the cache and analysis of different route information can be realized, thereby reducing the processing delay of the route information and improving the timeliness of the route information acquisition.

[0054] The route information processing device provided by the present invention is described below. The route information processing device described below and the route information processing method described above can be referred to each other.

[0055] Reference Figure 4 , the route information processing device provided by the embodiment of the present invention includes: The acquisition module 10 is used to obtain the route information sent by the real aircraft navigation device in the current cycle; 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 indicate the end of the previous route information and the start of a new route information; The processing module 30 is used to switch the preset dual-path buffer area based on the start and end signals, so as to cache the route information in the dual-path buffer area alternately according to a period for parsing.

[0056] In one embodiment, 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 processing module 30 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; The second data word is cached in the second buffer area, and the data word of the route information cached in the first buffer area is parsed.

[0057] In one embodiment, the processing module 30 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.

[0058] In one embodiment, the processing module 30 is further used for: Clear the first buffer area.

[0059] In one embodiment, the acquisition module 10 is further used for: 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.

[0060] In one embodiment, the acquisition module 10 is further used for: 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 that the data acquisition terminal controls the board corresponding to the real machine navigation device to collect data from the real machine navigation device, and packages the collected data according to a preset data structure and sends it to the main control computer. The main control computer disassembles the received data and writes it to the virtual bus.

[0061] In one embodiment, the start and stop signals include indication information of the signal length of the route information.

[0062] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communications interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communications interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the route information processing method, which includes: 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; The preset dual-path buffer area is switched based on the start and stop signals, so as to alternately buffer the route information into the dual-path buffer area for parsing.

[0063] In addition, the logic instructions in the above-mentioned memory 530 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 such an understanding, the technical solution of the present invention, in essence, 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 for 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, etc. Various media that can store program codes.

[0064] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in 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 methods, the method includes: 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; The preset dual-path buffer area is switched based on the start and stop signals, so as to alternately buffer the route information into the dual-path buffer area for parsing.

[0065] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for processing route information provided by the above methods is implemented, and the method includes: 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; The preset dual-path buffer area is switched based on the start and stop signals, so as to alternately buffer the route information into the dual-path buffer area for parsing.

[0066] 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.

[0067] 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.

[0068] 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 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; The preset dual-path buffer area is switched based on the start and stop signals, so as to alternately buffer the route information into the dual-path buffer area for parsing.

2. The route information processing method according to claim 1, characterized in that: 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; The second data word is cached in the second buffer area, and the data word of the route information cached in the first buffer area is parsed.

3. The route information processing method according to claim 2, characterized in that: 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.

4. The route information processing method according to claim 2, 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.

5. 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.

6. The route information processing method according to claim 5, 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.

7. 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.

8. 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; The processing module is used to switch the preset dual-path buffer area based on the start and end signals, so as to alternately cache the route information in the dual-path buffer area for parsing.

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

10. 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 7 are implemented.

Citation Information

Patent Citations

  • TACAN signal detection method and device and storage medium

    CN110458103A

  • Navigation method and device

    CN113932800A

  • Hardware acceleration method applied to route planning system

    CN115790570A

  • Cross-regional path planning method and system, and storage medium

    CN116625378A

  • Air route map data pre-caching method, storage medium and electronic equipment

    CN116680493A