Method and device for announcing flight data of unmanned aerial vehicle
By generating verification codes through HMAC operations, the security risks of plaintext transmission of drone flight data are resolved, thereby improving the reliability and security of drone data notifications and preventing forgery and tampering.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WEBRAY TECH BEIJING CO LTD
- Filing Date
- 2025-12-30
- Publication Date
- 2026-04-28
AI Technical Summary
Current drone flight data broadcasts use plaintext transmission, which poses a security risk to the transmission of critical information and makes it vulnerable to being forged or tampered with by attackers.
The message authentication code (HMAC) using a hash function is used to encrypt the information to be transmitted by the drone using a verification key, generate a verification code, and combine it with the original information to form an announcement message for broadcast. The receiving end verifies the identity and information integrity using the verification key.
It effectively solves the security risks of plaintext transmission of drone broadcasts, improves the reliability and security of data notification transmission, prevents forgery and tampering, and enables verification of drone identity and information.
Smart Images

Figure CN121940754A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information security technology, and in particular to a method and apparatus for announcing unmanned aerial vehicle (UAV) flight data. Background Technology
[0002] Drones broadcasting flight data is a core technology for low-altitude safety monitoring. By transmitting key parameters such as position, altitude, and heading in real time, it can effectively prevent aerial conflicts, optimize airspace resource allocation, and improve the efficiency of emergency response.
[0003] In terms of broadcasting announcements, existing drones transmit flight data (including sensitive information such as latitude, longitude, and altitude) and unique identification codes in plaintext when broadcasting to surrounding airspace and ground equipment via wireless channels, which poses a security risk to the transmission of critical information by drones. Summary of the Invention
[0004] This invention provides a method and apparatus for announcing UAV flight data, which addresses the shortcomings of existing technologies where UAVs transmit data in plaintext, leading to security risks in the transmission of critical UAV information, and improves the reliability of UAV data announcement transmission.
[0005] This invention provides a method for announcing unmanned aerial vehicle (UAV) flight data, comprising the following steps: Obtain the information to be transmitted from the drone; the information to be transmitted includes at least the drone's unique identification code, the drone's location information, and the drone's key management terminal information; Based on the verification key, a message authentication code (HMAC) operation based on a hash function is performed on the information to be transmitted by the drone to obtain the verification code of the information to be transmitted; the verification key is assigned to the drone by the key management terminal before the drone leaves the factory; Based on the information to be transmitted and the verification code, a notification message for the drone is constructed and sent in a broadcast notification manner; The notification message is received by the receiving end, which then parses the notification message and, based on the parsed key management terminal information and unique identification code, requests the verification key of the drone from the key management terminal. Based on the verification key and the notification message, the receiving end verifies the identity of the drone and the information to be transmitted by the drone.
[0006] According to a method for announcing UAV flight data provided by the present invention, the step of obtaining the UAV's information to be transmitted further includes: Based on the communication quality data between the UAV and the receiver, the communication quality index of the UAV is determined; If the communication quality index is within a first range, the location information of the UAV in the information to be transmitted is determined to be the latitude, longitude, and altitude information of the UAV. If the communication quality index is within the second range, it is determined that the information to be transmitted also includes the message sequence number of the UAV; If the communication quality index is in the third range, the information to be transmitted is determined to also include the message sequence number of the UAV and the generation time information of the information to be transmitted.
[0007] According to a method for announcing UAV flight data provided by the present invention, the message sequence number is used by the receiving end to verify whether the announcement message is a retransmission message.
[0008] A method for announcing UAV flight data according to the present invention further includes: The receiving end receives a control message, which is generated after the receiving end decrypts the verification code based on the verification key, and determines the identity of the drone and the drone's information to be transmitted based on the decrypted information, and determines that the drone is in an air traffic control area based on the location information in the notification message. Based on the control message, the flight trajectory of the drone is adjusted.
[0009] According to a method for announcing UAV flight data provided by the present invention, the step of performing HMAC operation on the UAV's information to be transmitted based on a verification key to obtain a verification code for the information to be transmitted includes: Based on the HMAC encryption method, the verification key is used to perform HMAC operation on the information to be transmitted by the UAV to obtain the verification code of the information to be transmitted.
[0010] According to a method for announcing UAV flight data provided by the present invention, the verification key is stored in the UAV's one-time programmable memory eFuse.
[0011] The present invention also provides a device for notifying unmanned aerial vehicle (UAV) flight data, comprising the following modules: The transmission information acquisition module is used to acquire the information to be transmitted by the UAV; the information to be transmitted includes at least the UAV's unique identification code, the UAV's location information, and the UAV's key management terminal information; The processing module is used to perform HMAC (Message Authentication Code) operation based on a hash function on the information to be transmitted by the UAV, based on the verification key, to obtain the verification code of the information to be transmitted; the verification key is assigned to the UAV by the key management terminal before the UAV leaves the factory; The broadcast notification module is used to construct a notification message for the drone based on the information to be transmitted and the verification code, and to send the notification message in a broadcast notification manner; The notification message is received by the receiving end, which then parses the notification message and, based on the parsed key management terminal information and unique identification code, requests the verification key of the drone from the key management terminal. Based on the verification key and the notification message, the receiving end verifies the identity of the drone and the information to be transmitted by the drone.
[0012] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the program to implement the notification method for UAV flight data as described above.
[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the notification method for UAV flight data as described above.
[0014] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the notification method for UAV flight data as described above.
[0015] The present invention provides a method and apparatus for announcing drone flight data. It acquires information to be transmitted, including the drone's unique identifier and key management terminal information. Then, based on a verification key bound to the drone's identity, it performs HMAC processing on the information to be transmitted to generate a verification code. Finally, it combines the original information to be transmitted and the verification code to construct a complete announcement message for broadcast. Upon receiving the announcement message, the receiving end can use the publicly available information to be transmitted to request a key from a designated key management terminal. This verifies the drone's identity and validates the drone's message to be transmitted, effectively solving the security risk of plaintext transmission in drone broadcasts, which allows attackers to easily forge drone identities or tamper with flight data. This improves the reliability and security of drone data announcement transmission. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 This is a flowchart illustrating the drone flight data notification method provided by the present invention.
[0018] Figure 2 This is a schematic diagram of the verification key issuance process provided by the present invention.
[0019] Figure 3 This is a schematic diagram of the activation verification process for the verification key provided by the present invention.
[0020] Figure 4 This is a schematic diagram of the structure of the drone flight data notification device provided by the present invention.
[0021] Figure 5 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0023] Figure 1 This is a flowchart illustrating the drone flight data notification method provided by the present invention, as shown below. Figure 1 As shown, the method includes the following: Step 110: Obtain the information to be transmitted from the drone; the information to be transmitted includes at least the drone's unique identification code, the drone's location information, and the drone's key management terminal information; Step 120: Based on the verification key, perform HMAC (Hash Authentication Code) operation on the information to be transmitted by the drone to obtain the verification code of the information to be transmitted; the verification key is assigned to the drone by the key management terminal before the drone leaves the factory; Step 130: Based on the information to be transmitted and the verification code, construct the announcement message of the drone, and send the announcement message in a broadcast announcement manner; The notification message is received by the receiving end, which then parses the notification message and, based on the parsed key management terminal information and unique identification code, requests the verification key of the drone from the key management terminal. Based on the verification key and the notification message, the receiving end verifies the identity of the drone and the information to be transmitted by the drone.
[0024] The following section uses the method for announcing UAV flight data provided by this invention, executed by the control module in an aircraft, as an example to illustrate the technical solution of this invention in detail.
[0025] In step 110, the information to be transmitted by the UAV is obtained.
[0026] The information to be transmitted refers to the core data that the drone plans to broadcast. This information must contain at least three key parts: the drone's unique identifier, its location information, and its key management terminal information. The unique identifier is an unchangeable identity assigned to each drone. For example, it can be a 20-character code generated according to relevant standards, embedded in the hardware during the drone's manufacturing phase to ensure its uniqueness and tamper-proof nature. The drone's unique identifier is the basis for subsequent identity authentication and information verification. The drone's location information can include latitude, longitude, and altitude.
[0027] Key management terminal information is used to indicate the organization or system that assigns and manages authentication for the drone. For example, it can be a fixed-length 4-character string representing a specific authentication management unit.
[0028] In practical applications, a three-tiered verification key derivation system can be established by the regulatory authority, covering the regulatory body, drone manufacturers, and drone terminals. The specific process can be as follows: Figure 2 The verification key issuance process provided by this invention is illustrated in the diagram. A key management terminal establishes a verification management system for the UAV system. The key management terminal issues verification keys and key management terminal information (specifically, a key management terminal number) to the UAV manufacturer. The UAV manufacturer then issues the verification key to the UAV and embeds it into the UAV's hardware security module. Based on the key management terminal information, the recipient can accurately determine which management system to request the verification key from for subsequent verification.
[0029] For acquiring the information to be transmitted, the drone's built-in control module can retrieve a pre-configured unique identification code and key management terminal information from its internal storage unit.
[0030] Optionally, the information to be transmitted may also include interactive information such as the drone's notification to other terminals and time information.
[0031] In step 120, based on the verification key, an HMAC operation is performed on the information to be transmitted by the UAV to obtain the verification code of the information to be transmitted.
[0032] The verification key can be a symmetric key, which is distributed to the drone by the key management terminal through a secure channel. For example, the verification key can be pre-installed in the hardware security module by the manufacturer during the drone's production phase, or it can be obtained by requesting and deriving from the key management terminal online when the drone is first powered on and activated.
[0033] The verification key can be bound to the drone's unique identification code, which can be used for retrieval and association. The process of performing a hash-based message authentication code (HMAC) operation on the information to be transmitted can be performed by the drone's internal control module, which executes a preset encryption algorithm, takes the information to be transmitted as input, uses the verification key, and generates a verification code.
[0034] In step 130, a notification message for the drone is constructed based on the information to be transmitted and the verification code.
[0035] The original information to be transmitted is combined with the verification code generated by HMAC operations to form a complete data packet, i.e., an announcement message. This can be constructed by arranging these information fields in a predefined order and format. For example, an announcement message can be a data frame whose structure consists of the information to be transmitted (containing at least a unique identifier and key management terminal information) and the verification code.
[0036] The notification message is sent via broadcast notification. Broadcast notification is a one-to-many communication method in which the drone transmits its flight data indiscriminately to all potentially receiving entities in the vicinity. These potentially receiving entities include ground air traffic control systems, other drones, and monitoring terminals.
[0037] After receiving the notification message, the receiving end will perform two verification processes based on the received notification message: one is to verify the identity of the drone, and the other is to verify the information to be transmitted by the drone.
[0038] Specifically, the receiving end parses the notification message and separates the plaintext information to be transmitted (including at least a unique identifier and key management terminal information) and the verification code.
[0039] Based on the parsed key management terminal information, the receiving end initiates a request to the corresponding key management terminal to obtain the verification key bound to the drone's unique identification code. After obtaining the verification key, the receiving end uses the same algorithm as the drone to perform an HMAC operation on the received verification code and compares the result with the verification code in the notification message. If they match, it proves that the notification message was indeed sent by the drone corresponding to the unique identification code, and that the message content has not been tampered with during transmission, thus verifying the drone's identity and the message to be transmitted by the drone.
[0040] Optionally, the activation verification process for the verification key can be as follows: Figure 3The activation and verification process of the verification key provided by this invention is illustrated in the following diagram. First, the UAV activates the verification key; the UAV performs HMAC operation on the information to be transmitted based on the verification key to obtain a verification code; the UAV constructs an announcement message based on the information to be transmitted and the verification code, and sends the announcement message via broadcast; after receiving the announcement message, the receiving end initiates a request to the corresponding key management terminal based on the parsed key management terminal information, requesting to obtain the verification key bound to the UAV's unique identification code, and after successful verification based on the verification key, obtains the information to be transmitted.
[0041] The drone flight data notification method provided by this invention obtains information to be transmitted containing the drone's unique identifier and key management terminal information. Then, based on a verification key bound to the drone's identity, it performs HMAC operations on the information to be transmitted to generate a verification code. Finally, the original information to be transmitted and the verification code are combined to construct a complete notification message for broadcast. Upon receiving the notification message, the receiving end can use the publicly available information to be transmitted to request a verification key from a designated key management terminal. This verifies the drone's identity and validates the drone's message to be transmitted, effectively solving the security risk of plaintext transmission in drone broadcasts, which allows attackers to easily forge drone identities or tamper with flight data. This improves the reliability and security of drone data notification transmission.
[0042] In one embodiment, acquiring the information to be transmitted from the drone further includes: Based on the communication quality data between the UAV and the receiver, the communication quality index of the UAV is determined; If the communication quality index is within a first range, the location information of the UAV in the information to be transmitted is determined to be the latitude, longitude, and altitude information of the UAV. If the communication quality index is within the second range, it is determined that the information to be transmitted also includes the message sequence number of the UAV; If the communication quality index is in the third range, the information to be transmitted is determined to also include the message sequence number of the UAV and the generation time information of the information to be transmitted.
[0043] It should be noted that communication quality data can be channel state information monitored by the UAV communication module, such as signal strength, signal-to-noise ratio (SNR), bit error rate (BER), etc.
[0044] Drones can calculate a comprehensive communication quality index based on this data. The communication quality index can be obtained by weighting multiple communication quality data points. The communication quality index can be divided into different ranges; for example, the first range indicates poor communication quality; the second range indicates average communication quality; and the third range indicates good communication quality.
[0045] Based on different communication quality indices, the drone dynamically determines the specific content contained in the information to be transmitted: When the communication quality index is in the first range, the location information of the UAV in the information to be transmitted is determined to be the UAV's latitude, longitude, and altitude. At this time, the communication quality is poor, and transmitting only the most essential location information (such as longitude, latitude, and altitude) is sufficient to meet basic monitoring needs. Simultaneously, the data packet size is minimized, resulting in the highest transmission efficiency. The location information can be represented using an 8-bit floating-point format for longitude and 8-bit for latitude, and a 4-bit integer format for altitude.
[0046] When the communication quality index is in the second range, the information to be transmitted also includes the drone's message sequence number. When the channel quality is average, packet loss or retransmission may occur. In this case, adding the message sequence number can help the receiver identify and discard outdated or duplicate messages, and effectively defend against retransmission attacks.
[0047] When the communication quality index is in the third range, determining the information to be transmitted also includes the drone's message sequence number and the time information of the information's generation. When communication quality is good, adding the generation time information (e.g., a timestamp consisting of an 8-digit date and an 8-digit time) allows the receiver to accurately determine the data's transmission time; adding the message sequence number helps the receiver identify and discard outdated or duplicate messages and effectively defend against retransmission attacks.
[0048] The verification code obtained by performing HMAC operations on the transmitted information can be calculated using the verification key using the following formulas: "Current Location (Longitude, Latitude, Altitude) + Unique Product Identifier + Key Management Terminal Number", "Current Location (Longitude, Latitude, Altitude) + Unique Product Identifier + Serial Number + Key Management Terminal Number", or "Current Time + Current Location (Longitude, Latitude, Altitude) + Unique Product Identifier + Serial Number + Key Management Terminal Number". Specifically, it can be based on hash algorithms such as SM3, SHA-2 (Secure Hash Algorithm 2), SHA-1 (Secure Hash Algorithm 1), and MD5 (Message-Digest Algorithm 5). The HMAC value length can be adjusted according to actual needs. HMAC value length options include: original length, 16 bytes, 8 bytes, and 4 bytes. HMAC length compression methods include: truncating HMAC segments at specified locations, and XORing HMAC values grouped by fixed length. The key management terminal needs to specify the algorithm function and length compression method in advance.
[0049] After receiving the notification message from the drone, the ground supervision and security departments access the key management terminal according to the key management terminal number, obtain the drone's verification key through the unique product identification code, and then verify the drone's identity and the integrity of the notification message by verifying the HMAC value.
[0050] The UAV flight data notification method provided by this invention achieves effective utilization of communication bandwidth while ensuring necessary security by using an adaptive data load adjustment strategy based on the communication quality between the UAV and the receiver, and intelligently balances information transmission rate and transmission efficiency according to real-time channel conditions.
[0051] In one embodiment, the message sequence number is used by the receiving end to verify whether the notification message is a retransmission message.
[0052] The primary function of the message sequence number is for the receiving end to verify whether an announcement message is a retransmission, thus preventing replay attacks. Specifically, the message sequence number can be a monotonically increasing counter, such as a 4-byte integer. Each time the drone sends a new announcement message, the sequence number is incremented by one.
[0053] The receiver caches the latest valid serial numbers received from a specific drone. When a new notification message is received, the receiver compares the serial number in the new message with the cached serial number. If the serial number of the new message is greater than the cached value, the message is considered up-to-date, received, and the cache is updated; if it is less than or equal to the cached value, the message is considered outdated or a replay attack message and is discarded.
[0054] By introducing message sequence numbers, attackers were effectively prevented from intercepting and replaying historical notification messages, ensuring the real-time nature and effectiveness of the drone status information obtained by the receiving end.
[0055] In one embodiment, it also includes: The receiving end receives a control message, which is generated after the receiving end decrypts the verification code based on the verification key, and determines the identity of the drone and the drone's information to be transmitted based on the decrypted information, and determines that the drone is in an air traffic control area based on the location information in the notification message. Based on the control message, the flight trajectory of the drone is adjusted.
[0056] The control message in this invention is a response based on information such as the drone's location after the receiving end has successfully verified the drone's identity and information integrity.
[0057] For example, when the receiving end of the ground monitoring terminal confirms that a drone has entered an air traffic control area such as an airport or power plant, a control message will be generated.
[0058] Based on the control messages, the drone's flight trajectory is adjusted. Upon receiving the control messages, the drone's flight control system parses the message content and executes corresponding commands, such as immediately hovering, changing course to leave the controlled area, or performing a return-to-home operation. By adding this interactive element, secure one-way data notification is extended to reliable two-way communication and control, enabling the monitoring end not only to passively monitor but also to actively intervene in the drone's flight behavior when necessary, thereby achieving real-time and effective management of air traffic.
[0059] In one embodiment, based on the verification key, an HMAC operation is performed on the information to be transmitted by the UAV to obtain a verification code for the information to be transmitted, including: Based on the HMAC encryption method, the verification key is used to perform HMAC operation on the information to be transmitted by the UAV to obtain the verification code of the information to be transmitted.
[0060] The HMAC encryption method performs an HMAC operation on the information to be transmitted using a verification key. HMAC is a message authentication method that combines a cryptographic hash function and a key. It does not directly encrypt and hide the data content; instead, it generates an authentication tag based on the data content and the key. Specifically, the drone uses a shared verification key to calculate the HMAC value of the original information to be transmitted and appends it to the message. The receiver can use the same key to perform the same calculation on the received information to be transmitted and compare the result with the received HMAC value. If they match, the integrity of the information and the authenticity of its source can be confirmed.
[0061] In practical implementation, the HMAC value length can be adjusted based on the actual communication bandwidth of the drone and to balance security requirements. The length of the generated announcement data packet is optimized to the range of 49-97 bytes, which can adapt to the narrow bandwidth transmission requirements specified by the drone link layer protocol. This maintains the existing real-time communication while meeting the security requirements for identity authentication. Using the HMAC method, identity authentication and data integrity verification can be achieved with low computational overhead without complex public key encryption, making it suitable for resource-constrained drone terminals and broadcast announcement scenarios requiring low latency.
[0062] Furthermore, the drone identity security system built on the HMAC mechanism employs cryptographic algorithms and serial number strategies to collaboratively achieve identity authentication and data integrity protection, effectively defending against man-in-the-middle attacks and replay attacks. By optimizing the data packet structure and compressing authentication data to a minimum of 49 bytes, it meets drone security standards and specifications while adapting to narrow bandwidth communication scenarios, ensuring the security and real-time performance of drone one-way broadcast communication.
[0063] In one embodiment, the verification key is stored in the drone's one-time programmable memory eFuse.
[0064] In this invention, eFuse is a non-volatile memory whose data, once written, cannot be modified again. Storing the verification key in eFuse is equivalent to permanently and physically embedding it within the drone's chip. This method constitutes hardware-level security protection, which can greatly resist the cracking and extraction of the key through software attacks or physical probing methods.
[0065] The key can be programmed during the initialization phase on the production line, deeply integrating with the drone's hardware. By storing the key in a hardware security module like eFuse, the risk of malicious tampering or theft is reduced, thus elevating security to the hardware level.
[0066] The drone flight data notification device provided by the present invention is described below. The drone flight data notification device described below and the drone flight data notification method described above can be referred to in correspondence.
[0067] like Figure 4 As shown, the device includes: The transmission information acquisition module 410 is used to acquire the information to be transmitted by the UAV; the information to be transmitted includes at least the unique identification code of the UAV, the location information of the UAV, and the key management terminal information of the UAV. The calculation module 420 is used to perform a message authentication code (HMAC) operation based on a hash function on the information to be transmitted by the UAV, based on the verification key, to obtain the verification code of the information to be transmitted; the verification key is assigned to the UAV by the key management terminal before the UAV leaves the factory; The broadcast notification module 430 is used to construct a notification message for the drone based on the information to be transmitted and the verification code, and to send the notification message in a broadcast notification manner. The notification message is received by the receiving end, which then parses the notification message and, based on the parsed key management terminal information and unique identification code, requests the verification key of the drone from the key management terminal. Based on the verification key and the notification message, the receiving end verifies the identity of the drone and the information to be transmitted by the drone.
[0068] The drone flight data notification device provided by this invention acquires information to be transmitted, including the drone's unique identifier and key management terminal information. Then, based on a verification key bound to the drone's identity, it performs HMAC processing on the information to be transmitted to generate a verification code. Finally, the original information to be transmitted and the verification code are combined to construct a complete notification message for broadcast. Upon receiving the notification message, the receiving end can use the publicly available information to be transmitted to request a key from a designated key management terminal. This verifies the drone's identity and checks the drone's message to be transmitted, effectively solving the security risk of plaintext transmission in drone broadcasts, which allows attackers to easily forge drone identities or tamper with flight data. This improves the reliability and security of drone data notification transmission.
[0069] In one embodiment, the transmission information acquisition module 410 is specifically used for: The acquisition of the information to be transmitted from the drone further includes: Based on the communication quality data between the UAV and the receiver, the communication quality index of the UAV is determined; If the communication quality index is within a first range, the location information of the UAV in the information to be transmitted is determined to be the latitude, longitude, and altitude information of the UAV. If the communication quality index is within the second range, it is determined that the information to be transmitted also includes the message sequence number of the UAV; If the communication quality index is in the third range, the information to be transmitted is determined to also include the message sequence number of the UAV and the generation time information of the information to be transmitted.
[0070] In one embodiment, the information acquisition module 410 is further configured to: The message sequence number is used by the receiving end to verify whether the notification message is a retransmission message.
[0071] In one embodiment, the broadcast notification module 430 is specifically used for: The receiving end receives a control message, which is generated after the receiving end decrypts the verification code based on the verification key, and determines the identity of the drone and the drone's information to be transmitted based on the decrypted information, and determines that the drone is in an air traffic control area based on the location information in the notification message. Based on the control message, the flight trajectory of the drone is adjusted.
[0072] In one embodiment, the arithmetic module 420 is specifically used for: The step of performing HMAC operations on the information to be transmitted by the UAV based on the verification key to obtain the verification code for the information to be transmitted includes: Based on the HMAC encryption method, the verification key is used to perform HMAC operation on the information to be transmitted by the UAV to obtain the verification code of the information to be transmitted.
[0073] In one embodiment, the transmission information acquisition module 410 is specifically used for: The verification key is determined to be stored in the one-time programmable memory eFuse of the UAV.
[0074] Figure 5 An example is a schematic diagram of the physical structure of an electronic device, such as... 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, communications interface 520, and memory 530 communicate with each other via the communication bus 540. The processor 510 can call logical instructions in the memory 530 to execute a method for announcing UAV flight data. This method includes: acquiring information to be transmitted from the UAV; the information to be transmitted includes at least the UAV's unique identifier, the UAV's location information, and the UAV's key management terminal information. Based on the verification key, a message authentication code (HMAC) operation based on a hash function is performed on the information to be transmitted by the drone to obtain the verification code of the information to be transmitted; the verification key is assigned to the drone by the key management terminal before the drone leaves the factory; Based on the information to be transmitted and the verification code, a notification message for the drone is constructed and sent in a broadcast notification manner; The notification message is received by the receiving end, which then parses the notification message and, based on the parsed key management terminal information and unique identification code, requests the verification key of the drone from the key management terminal. Based on the verification key and the notification message, the receiving end verifies the identity of the drone and the information to be transmitted by the drone.
[0075] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the 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 to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0076] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being able to be stored on a non-transitory computer-readable storage medium, the computer program being executed by a processor, the computer being able to execute the drone flight data notification method provided by the above methods, the method including: acquiring drone information to be transmitted; the information to be transmitted including at least the drone's unique identification code, the drone's location information, and the drone's key management terminal information; Based on the verification key, a message authentication code (HMAC) operation based on a hash function is performed on the information to be transmitted by the drone to obtain the verification code of the information to be transmitted; the verification key is assigned to the drone by the key management terminal before the drone leaves the factory; Based on the information to be transmitted and the verification code, a notification message for the drone is constructed and sent in a broadcast notification manner; The notification message is received by the receiving end, which then parses the notification message and, based on the parsed key management terminal information and unique identification code, requests the verification key of the drone from the key management terminal. Based on the verification key and the notification message, the receiving end verifies the identity of the drone and the information to be transmitted by the drone.
[0077] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for announcing UAV flight data provided by the methods described above. The method includes: acquiring information to be transmitted from the UAV; the information to be transmitted includes at least the UAV's unique identification code, the UAV's location information, and the UAV's key management terminal information. Based on the verification key, a message authentication code (HMAC) operation based on a hash function is performed on the information to be transmitted by the drone to obtain the verification code of the information to be transmitted; the verification key is assigned to the drone by the key management terminal before the drone leaves the factory; Based on the information to be transmitted and the verification code, a notification message for the drone is constructed and sent in a broadcast notification manner; The notification message is received by the receiving end, which then parses the notification message and, based on the parsed key management terminal information and unique identification code, requests the verification key of the drone from the key management terminal. Based on the verification key and the notification message, the receiving end verifies the identity of the drone and the information to be transmitted by the drone.
[0078] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0079] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for announcing unmanned aerial vehicle (UAV) flight data, characterized in that, include: Acquire the information to be transmitted from the drone; The information to be transmitted includes at least the drone's unique identification code, the drone's location information, and the drone's key management terminal information; Based on the verification key, a message authentication code (HMAC) operation based on a hash function is performed on the information to be transmitted by the drone to obtain the verification code of the information to be transmitted; the verification key is assigned to the drone by the key management terminal before the drone leaves the factory; Based on the information to be transmitted and the verification code, a notification message for the drone is constructed and sent in a broadcast notification manner; The notification message is received by the receiving end, which then parses the notification message and, based on the parsed key management terminal information and unique identification code, requests the verification key of the drone from the key management terminal. Based on the verification key and the notification message, the receiving end verifies the identity of the drone and the information to be transmitted by the drone.
2. The method for announcing UAV flight data according to claim 1, characterized in that, The acquisition of the information to be transmitted from the drone further includes: Based on the communication quality data between the UAV and the receiver, the communication quality index of the UAV is determined; If the communication quality index is within a first range, the location information of the UAV in the information to be transmitted is determined to be the latitude, longitude, and altitude information of the UAV. If the communication quality index is within the second range, it is determined that the information to be transmitted also includes the message sequence number of the UAV; If the communication quality index is in the third range, the information to be transmitted is determined to also include the message sequence number of the UAV and the generation time information of the information to be transmitted.
3. The method for announcing UAV flight data according to claim 2, characterized in that, The message sequence number is used by the receiving end to verify whether the notification message is a retransmission message.
4. The method for announcing UAV flight data according to claim 1, characterized in that, Also includes: The receiving end receives a control message, which is generated after the receiving end decrypts the verification code based on the verification key, and determines the identity of the drone and the drone's information to be transmitted based on the decrypted information, and determines that the drone is in an air traffic control area based on the location information in the notification message. Based on the control message, the flight trajectory of the drone is adjusted.
5. The method for announcing UAV flight data according to claim 1, characterized in that, The step of performing HMAC operations on the information to be transmitted by the UAV based on the verification key to obtain the verification code for the information to be transmitted includes: Based on the HMAC encryption method, the verification key is used to perform HMAC operation on the information to be transmitted by the UAV to obtain the verification code of the information to be transmitted.
6. The method for announcing UAV flight data according to claim 1, characterized in that, The verification key is stored in the UAV's one-time programmable memory eFuse.
7. A device for announcing unmanned aerial vehicle (UAV) flight data, characterized in that, include: The transmission information acquisition module is used to acquire the information to be transmitted by the UAV; The information to be transmitted includes at least the drone's unique identification code, the drone's location information, and the drone's key management terminal information; The calculation module is used to perform HMAC (Hash Authentication Code) calculation on the information to be transmitted by the UAV based on the verification key to obtain the verification code of the information to be transmitted; the verification key is assigned to the UAV by the key management terminal before the UAV leaves the factory; The broadcast notification module is used to construct a notification message for the drone based on the information to be transmitted and the verification code, and to send the notification message in a broadcast notification manner; The notification message is received by the receiving end, which then parses the notification message and, based on the parsed key management terminal information and unique identification code, requests the verification key of the drone from the key management terminal. Based on the verification key and the notification message, the receiving end verifies the identity of the drone and the information to be transmitted by the drone.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the method for announcing UAV flight data as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for announcing UAV flight data as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for announcing UAV flight data as described in any one of claims 1 to 6.