Device for generating aircraft serial number files based on aircraft type, number and aircraft number
By designing a serial number file device based on aircraft type and number, the problem of data interaction accuracy caused by inconsistent aircraft numbers in the UAV system is solved, safe and efficient serial number file generation and management is achieved, and aircraft information updates are simplified. Data integrity and uniqueness are ensured.
Patent Information
- Application Number
- CN202410773291.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-17
AI Technical Summary
In large UAV systems, due to inconsistent aircraft numbers, it is difficult to ensure the accuracy of data interaction between subsystems. Aircraft information needs to be calibrated multiple times, and existing technology cannot effectively solve this problem.
Design a serial number file device based on aircraft type, serial number and aircraft number. It includes a serial number file generation module and a serial number management module. It reads, writes and parses the serial number file in binary mode, and uses encryption and verification fields to ensure data integrity. and security, and provides import, export, add, delete, modify and query functions, and uses hash tables to optimize query efficiency.
It achieves safe and efficient generation and management of aircraft serial number files, simplifies the aircraft information update process, ensures the uniqueness and integrity of data, and improves the accuracy of data interaction between systems.
Smart Images

Figure CN118349526B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of aircraft serial number file generation, and more specifically, to a device for generating an aircraft serial number file based on an aircraft type, serial number and aircraft number. Background Art
[0002] For easy identification and management, each drone has a unique machine number. Because the machine number is unique, it can be located to a specific aircraft, aircraft type, and aircraft number. Similarly, the corresponding machine number can also be obtained according to the aircraft type and aircraft number. The machine number is composed according to certain rules. Compared with determining the aircraft by aircraft type and number, it has the advantages of high recognition, easy to remember, and uniformity.
[0003] Large-scale UAV system operations require the coordination of various subsystems to complete cooperation. Using a unified serial number can ensure the accuracy of data interaction between subsystems, but it is troublesome to calibrate aircraft information multiple times due to inconsistent aircraft numbers. People in this field have not yet solved this technical problem. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a device for generating an aircraft serial number file based on the aircraft type, number and machine number, which can generate the serial number file more safely and efficiently and is simple and easy to use.
[0005] The object of the present invention is achieved through the following solutions:
[0006] A device for generating an aircraft serial number file based on aircraft type, serial number and aircraft number, comprising:
[0007] The serial number file generation module is used to generate a serial number file consisting of a file header, a serial number, and a file footer, and store the aircraft type, number, and aircraft number information of the aircraft in the serial number file; wherein the file header is in the order of file identifier, serial number version, and serial number quantity, occupying 8 bytes; the file identifier occupies 4 bytes and is used as a unique identifier of the serial number file. When the file header starts with this, the parsing is started; otherwise, the parsing file process is exited; the serial number version occupies 2 bytes and is used to extend the serial number function and perform different versions of parsing according to the serial number; the serial number quantity occupies 2 bytes and is used to identify the aircraft in the current file. The number of serial numbers; the serial number includes a secret key field, an aircraft type field, an aircraft number field, an aircraft number field and a check field; the secret key occupies 1 byte and is used to identify the encryption and decryption algorithm; the aircraft type field occupies 2 bytes and is used to store the encrypted aircraft type; the aircraft number field occupies 2 bytes and is used to store the encrypted aircraft number; the aircraft number field occupies 2 bytes and is used to store the encrypted aircraft number; the check field occupies 1 byte and is used to perform verification on the secret key, aircraft type and aircraft number; the file tail is used to verify all bytes of the file header and the serial number to ensure the integrity and security of the file content;
[0008] The serial number management module is used to import, export, add, delete, modify and query aircraft records in the serial number file.
[0009] Furthermore, the serial number file is read, written and parsed in binary mode, so that it has the characteristic of consistent reading and writing content on multiple platforms.
[0010] Furthermore, the serial number file also includes a check field for storing check information to ensure data integrity.
[0011] Furthermore, in the same serial number file, the same aircraft number or the same aircraft type and number only appears once.
[0012] Furthermore, in the serial number management module, the import specifically includes: importing the contents of the serial number file into the memory, and supporting the import of multiple files; wherein, if there are conflicting aircraft records in different files, the import order shall prevail, and the later data shall be used to replace the previously imported records; if the file header information is wrong, the import process shall be exited.
[0013] Further, in the serial number management module, the export specifically includes: exporting all aircraft serial number records in the memory to a new serial number file.
[0014] Furthermore, in the serial number management module, the addition specifically includes: traversing whether there is the same serial number record in the current memory, if the same item exists, the addition fails, otherwise, the aircraft serial number record is added according to the aircraft type, number and machine number, and the addition is successful; and, the aircraft type, number and machine number are generated into a hash, and a hash table is maintained internally to shorten the query time.
[0015] Furthermore, in the serial number management module, the deletion specifically includes: detecting whether the aircraft type and number to be deleted exist or checking whether the aircraft number exists, if not, then the process ends; if so, then the record in the memory hash table is deleted and then the process ends.
[0016] Furthermore, in the serial number management module, the modification specifically includes: constructing a temporary modified serial number record, determining whether the modified serial number record exists in the memory hash table, if so, the modification fails and ends; otherwise, modifying the record in the memory hash table to a temporary record, the modification succeeds and ends.
[0017] Further, in the serial number management module, the query specifically includes: querying the aircraft number according to the aircraft type and the aircraft number; or querying the aircraft type and the aircraft number according to the aircraft number; or querying the serial number record according to the index.
[0018] The beneficial effects of the present invention include:
[0019] The present invention provides a safe and efficient serial number file generation solution for establishing and managing the correspondence between aircraft types and numbers and aircraft numbers, so that if aircraft information needs to be updated, only the serial number file needs to be replaced, which is simple and easy to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 This is the sequence number import process in the embodiment of the present invention;
[0022] Figure 2 This is the sequence number export process in the embodiment of the present invention;
[0023] Figure 3 Add a process to the sequence number in the embodiment of the present invention;
[0024] Figure 4This is the sequence number deletion process in the embodiment of the present invention;
[0025] Figure 5 The sequence number modification process in the embodiment of the present invention;
[0026] Figure 6 This is the sequence number query process in the embodiment of the present invention. DETAILED DESCRIPTION
[0027] All features disclosed in all embodiments in this specification, or steps in all methods or processes implicitly disclosed, except for mutually exclusive features and / or steps, can be combined and / or expanded or replaced in any manner.
[0028] The embodiment of the present invention provides a device for generating an aircraft serial number file based on an aircraft type, serial number and aircraft number, which specifically includes a serial number file generating module and a serial number management module.
[0029] In the serial number file generation module, the serial number file is read, written and parsed in binary mode, and has the characteristic of consistent reading and writing content on multiple platforms.
[0030] The serial number file format is designed as follows: the serial number file can store the aircraft type and number and machine number information of one or more aircraft. In order to prevent tampering with the file serial number, the file introduces a check field for storing check information to ensure data integrity. The serial number file is divided into three parts, in the following order: file header, serial number, and file footer. In the same file, the same machine number or the same aircraft type and number can only appear once, otherwise the uniqueness will be destroyed. The composition of the serial number file designed by the present invention is shown in Table 1.
[0031] Table 1 Serial number file composition
[0032]
[0033] In the serial number file generation module, the file header is designed as follows: the file header sequence is file identification, serial number version and serial number quantity, occupying 8 bytes. The description of each field of the file is shown in Table 2.
[0034] Table 2 File header composition
[0035]
[0036] In the serial number file generation module, the serial number is designed as follows: the serial number consists of the encrypted information of one or more aircraft. The order is: aircraft 1 serial number, aircraft 2 serial number... aircraft N serial number. To ensure security and reliability, the aircraft serial number is entered into the secret key field, which is used to identify the algorithm for encrypting and decrypting the aircraft type and number and the aircraft number field. The order of the aircraft serial number is secret key, aircraft type (encryption), aircraft number (encryption), aircraft number (encryption), and verification. Serial number generation rules: The aircraft number consists of English and numbers. The detailed design description of the serial number field is shown in Table 3.
[0037] Table 3 Serial number composition
[0038]
[0039] In the serial number file generation module, the file tail is designed as follows: all bytes of the file header and the serial number are checked, and the lower 2 bytes are stored. The purpose is to ensure the integrity and security of the file content.
[0040] In the serial number management module, functions such as adding, deleting, modifying, checking, importing and exporting aircraft records in the serial number file are provided. Among them, the import function imports the contents of the serial number file into the memory and supports importing multiple files. If there are conflicting aircraft records in different files, the import order shall prevail, and the later data shall replace the previously imported records. If the file header information is wrong, the import process is exited. In a specific implementation method, the flow chart of importing records is as follows Figure 1 shown.
[0041] In the export function design, all aircraft serial number records in the memory are exported to a new serial number file. For details on the export process, see Figure 2 shown.
[0042] In the design of adding function, the aircraft serial number record is added according to the aircraft type, number and machine number. Before adding, it is necessary to traverse whether there is the same serial number record in the current memory. If the same item exists, the addition fails, otherwise, the addition succeeds. In order to shorten the query time, the aircraft type, number and machine number can be generated into a hash, and a hash table is maintained internally to shorten the query time and complexity. In the specific implementation method, the process of adding aircraft serial number is shown in Figure 3 .
[0043] In the design of the deletion function, the aircraft type and number are unique, and the aircraft number is also unique. This feature can be used to complete the deletion. In the specific implementation method, the deletion process is detailed in Figure 4 .
[0044] In the modification function design, the modification of the three fields of aircraft type, serial number and aircraft number is provided. It is necessary to first determine whether the modified serial number record exists in the memory hash table. If it exists, the modification fails, otherwise, the modification succeeds. In the specific implementation method, the modification process of the serial number record is detailed in Figure 5 .
[0045] In the query function design, according to different usage scenarios, you can query the aircraft number based on the aircraft type and aircraft number, you can query the aircraft type and aircraft number based on the aircraft number, or you can query the serial number record based on the index. Since the key value is stored in the hash table, the query time complexity can be shortened. In the specific implementation, the aircraft serial number query process is detailed in Figure 6 .
[0046] In the embodiment of the present invention, the serial number file provides a container for the file content and determines the order of the file header, the serial number and the file tail; the file header stores important information for parsing the file, which is a prerequisite for parsing the serial number content; the serial number content is stored in ciphertext to ensure the security of aircraft information, and the serial number records are stored in hash format to shorten the time complexity of the query and greatly improve the efficiency.
[0047] The specific implementation of the present invention is not limited to the above-mentioned methods. The above description is only the preferred embodiment of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein. It is possible for those skilled in the art to make various obvious changes, adjustments and substitutions without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may also include more other equivalent embodiments without departing from the principles and concepts of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A device for generating an aircraft serial number file based on aircraft type, number and aircraft number, characterized in that: include: The serial number file generation module is used to generate a serial number file consisting of a file header, a serial number, and a file footer, and store the aircraft type, number, and aircraft number information of the aircraft in the serial number file; wherein the file header is in the order of file identifier, serial number version, and serial number quantity, occupying 8 bytes; the file identifier occupies 4 bytes and is used as a unique identifier of the serial number file. When the file header starts with this, the parsing is started; otherwise, the parsing file process is exited; the serial number version occupies 2 bytes and is used to extend the serial number function and perform different versions of parsing according to the serial number; the serial number quantity occupies 2 bytes and is used to identify the aircraft in the current file. The number of serial numbers; the serial number includes a secret key field, an aircraft type field, an aircraft number field, an aircraft number field and a check field; the secret key occupies 1 byte and is used to identify the encryption and decryption algorithm; the aircraft type field occupies 2 bytes and is used to store the encrypted aircraft type; the aircraft number field occupies 2 bytes and is used to store the encrypted aircraft number; the aircraft number field occupies 2 bytes and is used to store the encrypted aircraft number; the check field occupies 1 byte and is used to perform verification on the secret key, aircraft type and aircraft number; the file tail is used to verify all bytes of the file header and the serial number to ensure the integrity and security of the file content; The serial number management module is used to import, export, add, delete, modify and query aircraft records in the serial number file.
2. The device for generating an aircraft serial number file based on aircraft type, number and aircraft number according to claim 1, characterized in that: The serial number file is read, written and parsed in binary mode, so that it has the characteristic of consistent reading and writing content on multiple platforms.
3. The device for generating an aircraft serial number file based on aircraft type, number and aircraft number according to claim 1, characterized in that: The serial number file also includes a check field for storing check information to ensure data integrity.
4. The device for generating an aircraft serial number file based on aircraft type, number and aircraft number according to claim 1, characterized in that: In the same serial number file, the same aircraft number or the same aircraft type and number only appears once.
5. The device for generating an aircraft serial number file based on aircraft type, number and aircraft number according to claim 1, characterized in that: In the serial number management module, the import specifically includes: importing the contents of the serial number file into the memory, and supporting the import of multiple files; if there are conflicting aircraft records in different files, the import order shall prevail, and the later data shall be used to replace the previously imported records; if the file header information is wrong, the import process shall be exited.
6. The device for generating an aircraft serial number file based on aircraft type, number and aircraft number according to claim 1, characterized in that: In the serial number management module, the export specifically includes: exporting all aircraft serial number records in the memory to a new serial number file.
7. The device for generating an aircraft serial number file based on aircraft type, serial number and aircraft number according to claim 1, characterized in that: In the serial number management module, the addition specifically includes: traversing whether there is the same serial number record in the current memory. If the same item exists, the addition fails; otherwise, the aircraft serial number record is added according to the aircraft type, number and machine number, and the addition is successful; and the aircraft type, number and machine number are generated into a hash, and a hash table is maintained internally to shorten the query time.
8. The device for generating an aircraft serial number file based on aircraft type, serial number and aircraft number according to claim 7, characterized in that: In the serial number management module, the deletion specifically includes: detecting whether the aircraft type and number to be deleted exist or checking whether the aircraft number exists, if not, then the process ends; if so, then the record in the memory hash table is deleted and then the process ends.
9. The device for generating an aircraft serial number file based on aircraft type, number and aircraft number according to claim 1, characterized in that: In the serial number management module, the modification specifically includes: constructing a temporary modified serial number record, determining whether the modified serial number record exists in the memory hash table, if so, the modification fails and ends; otherwise, modifying the record in the memory hash table to a temporary record, the modification succeeds and ends.
10. The device for generating an aircraft serial number file based on aircraft type, serial number and aircraft number according to claim 1, characterized in that: In the serial number management module, the query specifically includes: querying the aircraft number according to the aircraft type and aircraft number; or querying the aircraft type and aircraft number according to the aircraft number; or querying the serial number record according to the index.
Citation Information
Patent Citations
Method for processing material exchange format files
CN101692340A
Method and apparatus for correlating flight identification data with secondary surveiliance radar data
US20020130814A1
