System updating method of unmanned aerial vehicle and related equipment
Through server-side equipment monitoring and verification of drone system data packets, automatic update of drone system is achieved, solving the problems of cumbersome and unsafe update methods in the existing technology, and improving efficiency and security.
Patent Information
- Application Number
- CN202410975683.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-01
AI Technical Summary
The existing drone system update methods are cumbersome and unsafe, especially when the number of drones is large, a more convenient, fast and safe update method is needed.
Through the server device, the system data packet upload is monitored in real time, the drone connected to the server network is obtained, the system update prompt information is sent to it, the update selection results are received, the system packet signature is verified and the new system data packet is issued, so as to achieve no Automatic update of human-computer system.
It avoids the tedious process of using data cables to update firmware, improves efficiency, ensures the security of updates, and saves manpower, material resources and time.
Smart Images

Figure CN118890348A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of expansion docks, and in particular to a system updating method for an unmanned aerial vehicle and related equipment. Background Art
[0002] In the past ten years, due to the rapid development of society, various Internet products have also developed rapidly, and many unmanned equipment have also begun to develop rapidly. They have been widely used in many fields. UAV equipment can take off and run various functions. There are mainly two main modules at work, one is the UAV system module, and the other is the ground remote control device. The most important of them is the UAV system. The UAV system mainly receives data from the ground remote control device, and then distributes the data. According to the instructions sent by the ground remote control device, it is classified and processed, and then the corresponding functions are performed according to the instructions of the data. Since the UAV system needs to handle a lot of work, bugs are inevitable. Therefore, after we repair the system or add functions to the system, we need to update the UAV system again.
[0003] Currently, the way to update the drone system is to connect the drone to a computer with a data cable and then update the system. This method is currently widely used, but it is not only traditional but also troublesome. If there are too many drones, it will take a lot of time. Therefore, a more convenient, fast and safe method of updating the drone system is needed.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The present invention provides a system update method for a drone and related equipment. The main purpose of the present invention is to solve the technical problems mentioned in the background technology of the prior art.
[0006] A first aspect of the present invention provides a system update method for a drone, which is used for a server device, comprising:
[0007] Real-time monitoring of whether there are new system data packets uploaded;
[0008] In response to the new system data packet being uploaded, obtaining a drone connected to the server network;
[0009] Sending system update prompt information to all drones connected to the server network;
[0010] Receiving the update selection results returned by each of the drones;
[0011] Determine a target UAV that needs to update its system based on the update selection result;
[0012] For each of the target drones, obtaining a system package signature of the target drone, and verifying the system package signature;
[0013] A new system data packet is sent to the target drone that has passed the system packet signature verification.
[0014] In an optional implementation of the first aspect of the present invention, in response to uploading a new system data packet, obtaining a drone connected to the server network includes:
[0015] In response to uploading the new system data packet, extracting the drone applicable information of the new system data packet from the new system data packet;
[0016] Based on the applicable information of the drone, a set of applicable drones is obtained from a drone registry;
[0017] Sending a test signal to each drone in the set of applicable drones via the first communication address of each drone recorded in the drone registration table;
[0018] Based on the test signal response, a drone connected to the server network is obtained from the set of applicable drones.
[0019] In an optional implementation of the first aspect of the present invention, the group sending system update prompt information to all the drones connected to the server network includes:
[0020] Obtaining a second communication address of the drone connected to the server network from the test signal response;
[0021] Acquire description information of the new system data packet, and construct system update prompt information based on the description information;
[0022] The system update prompt information is sent in batches to all the drones connected to the server network through the second communication address of each drone.
[0023] In an optional implementation manner of the first aspect of the present invention, for each of the target drones, obtaining a system package signature of the target drone and verifying the system package signature includes:
[0024] For each of the target drones, obtaining a system package signature from the target drone via the second communication address;
[0025] Decoding the system package signature to obtain the drone number information, confidentiality information, and version information in the system package signature;
[0026] Compare the decoded drone number information, the confidential information, and the version information with the relevant information recorded in the system update record;
[0027] If the drone number information, the confidential information, and the version information obtained after decoding are the same as the relevant information recorded in the system update record, it is determined that the target drone has passed the verification;
[0028] If the drone number information, the confidential information and the version information obtained after decoding are not the same as the relevant information recorded in the system update record, it is determined that the target drone verification fails.
[0029] In an optional implementation manner of the first aspect of the present invention, decoding the system package signature to obtain the drone number information, confidentiality information, and version information in the system package signature includes:
[0030] The system package signature is segmented by a preset symbol to obtain a front part of a combined string and a rear part of a combined position value;
[0031] Segment the front part of the combined character string based on the value recorded at the rear part of the combined position value to obtain the odd-numbered character segment of the original character string and the even-numbered character segment of the original character string;
[0032] Performing parity restoration on the odd-numbered character segments of the original character string and the even-numbered character segments of the original character string to obtain the original character string;
[0033] The original string is base64 decoded to obtain the drone number information, confidentiality information and version information in the system package signature.
[0034] In an optional implementation manner of the first aspect of the present invention, the real-time monitoring of whether there is a new system data packet uploaded includes:
[0035] Receive system data packets uploaded by users;
[0036] Based on the storage location of the system data packet, obtaining the last MD5 value of the system data packet;
[0037] Compare the current MD5 value of the system data packet with the previous MD5 value of the system data packet;
[0038] If the current MD5 value of the system data packet is different from the previous MD5 value of the system data packet, it is determined that the system data packet is a new system data packet.
[0039] In an optional implementation of the first aspect of the present invention, after sending the new system data packet to the target drone that has passed the system packet signature verification, the method includes: updating the system information of each drone in the drone registration table.
[0040] A second aspect of the present invention provides a system update device for a drone, which is used for a server device. The system update device for the drone includes:
[0041] Monitoring module, used to monitor in real time whether there are new system data packets uploaded;
[0042] An acquisition module, configured to acquire a drone connected to the server network in response to a new upload of the system data packet;
[0043] A first sending module, used for sending system update prompt information to all drones connected to the server network;
[0044] A receiving module, used for receiving the update selection results returned by each of the drones;
[0045] A determination module, configured to determine a target UAV that needs to update its system based on the update selection result;
[0046] A verification module, used for obtaining a system package signature of each target drone and verifying the system package signature;
[0047] The second sending module is used to send a new system data packet to the target drone whose system packet signature has passed the verification.
[0048] A third aspect of the present invention provides a service-end device for updating a drone system, the service-end device comprising: a memory and at least one processor, the memory storing instructions, the memory and the at least one processor being interconnected via a line;
[0049] The at least one processor calls the instruction in the memory so that the server device executes the system update method for a drone as described in any one of the first aspects of the present invention.
[0050] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the system update method of a drone as described in any one of the first aspect of the present invention is implemented.
[0051] Beneficial effects: The present invention provides a method for updating the system of a drone and related equipment. The method is used for a server-side device, including real-time monitoring of whether there is a new system data packet uploaded; in response to the new system data packet uploaded, obtaining the drone connected to the server network; sending a group system update prompt message to all the drones connected to the server network; receiving the update selection results returned by each drone; determining the target drone that needs to update the system based on the update selection results; for each target drone, obtaining the system package signature of the target drone and verifying the system package signature; sending a new system data packet to the target drone whose system package signature has passed the verification. The system update method of the present invention avoids the use of a data cable to update the system firmware, which can improve efficiency and ensure the security of the update system, saving manpower, material resources and time. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of an embodiment of a method for updating a system of a drone according to the present invention;
[0053] Figure 2 A schematic diagram of an interactive framework of a method for updating a system of a drone according to the present invention;
[0054] Figure 3 A schematic diagram of the module composition of a system update device for a drone of the present invention;
[0055] Figure 4 A schematic diagram of an embodiment of a server device of the present invention. DETAILED DESCRIPTION
[0056] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above drawings are used to distinguish
[0057] Similar objects are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0058] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first aspect of the present invention provides a method for updating a system of a drone, which is used for a server device and includes:
[0059] S100, real-time monitoring of whether there is a new system data packet uploaded; in the present invention, the server device will detect whether there is a new system data packet uploaded. Once a new system data packet upload is detected, the message will be distributed to the drone connected to the server. Therefore, the first step of the present invention is to monitor the upload of the system data packet.
[0060] In an optional implementation of step S100 of the present invention, the real-time monitoring of whether there is a new system data packet uploaded includes: receiving a system data packet uploaded by a user; obtaining the last MD5 value of the system data packet based on the storage location of the system data packet; comparing the current MD5 value of the system data packet with the last MD5 value of the system data packet; if the current MD5 value of the system data packet is different from the last MD5 value of the system data packet, then determining that the system data packet is a new system data packet. In the present invention, the server device can pre-plan the storage area of the system data packets of different models of drones. By identifying the storage area of the system data packet, it can be known what model of drone needs to be upgraded this time. Every time the server receives a system data packet upload, it will calculate the MD5 value of the current system data packet and compare it with the MD5 value of the system data packet of the last upgrade record. If the MD5 value of the system data packet is different, it means that a new system data packet is received this time.
[0061] S200, in response to uploading the new system data packet, obtaining the drone connected to the server network; in the present invention, the purpose of step S200 is to obtain the drone that needs to upgrade the system data packet. The drone that needs to upgrade the system data packet of the present invention needs to first establish a network connection with the server, for example, through the Internet, but not all drones that have established a network connection with the server are suitable for this system data packet upgrade. Therefore, this step also includes screening the connected drones.
[0062] In an optional implementation of step S200 of the present invention, in response to the new system data packet upload, obtaining the drone connected to the server network includes: in response to the new system data packet upload, extracting the drone applicable information of the new system data packet from the new system data packet; obtaining the applicable drone set from the drone registry based on the drone applicable information; sending a test signal to each drone in the applicable drone set through the first communication address of each drone recorded in the drone registry; obtaining the drone connected to the server network from the applicable drone set based on the test signal response. In the present invention, all drones connected to the server need to be registered first, and the drone registry records information including drone type, drone ownership, drone number and drone communication address. In the present invention, each drone will be assigned two communication addresses, and the two communication addresses correspond to each data transmission channel in the coming year. The difference between the first communication address and the second communication address is that the data channel capacity of the first communication address and the second communication address is different, and the data transmitted by the first communication address does not need to be encrypted, while the data of the second communication address needs to be encrypted.
[0063] S300, sending system update prompt information to all the drones connected to the server network; in the present invention, after obtaining the drones that need to update the system data packet this time, the present invention will send system update prompt information to the drones that need to update the system data packet.
[0064] In an optional implementation of step S300 of the present invention, the group sending of system update prompt information to all the drones connected to the server network includes: obtaining the second communication address of the drone connected to the server network from the test signal response; obtaining the description information of the new system data packet, and constructing the system update prompt information based on the description information; and group sending the system update prompt information to all the drones connected to the server network through the second communication address of each drone. In the present invention, the second communication address of the drone will not be recorded in the drone registry of the server device, but in the storage of the drone itself. Only when the owner of the drone chooses to update the system, the server device will receive the second communication address. When the server device receives the second communication address, it triggers the activation of the corresponding data encryption and decryption means. In the present invention, the system update prompt information is combined with the system description information, so that the drone owner can choose whether to update the system data packet based on the update content.
[0065] S400, receiving the update selection results returned by each of the drones; in the present invention, the update selection results are returned to the server device in the form of 0 and 1. If the server device receives 0, it means that the drone does not need to perform a system update. If the server device receives 1, it means that the drone needs to perform a system update.
[0066] S500, determining the target drones that need to update the system based on the update selection results; in the present invention, after the server device receives the update selection results fed back by each drone, it will count all the results to obtain a list of target drones that need to update the system, and then update the system data packets of each target drone one by one based on the obtained drone list.
[0067] S600. For each of the target drones, obtain the system package signature of the target drone and verify the system package signature. In the present invention, in order to further improve the security of system updates, before sending the system update data packet, it is necessary to further verify the identity of the target drone, and the verification method is to use the system package signature of the target drone.
[0068] In an optional implementation of step S600 of the present invention, for each of the target drones, obtaining the system package signature of the target drone and verifying the system package signature includes:
[0069] S601. For each of the target drones, obtain a system package signature from the target drone through the second communication address. In the present invention, the system package signature of the target drone is obtained by encoding and encrypting various information of the current system data packet of the drone. The specific process of obtaining the system package signature is as follows: first, the system information and other data + system version are encoded by base64, and then the character strings of the two encoded data are intercepted according to single-digit characters, so that there are two groups of characters at this time; then, the two groups of characters are connected to form a new character string, and then the combination position of the two groups of character strings is recorded, and the information of the combination position is combined to the end of the combined character string through a preset match.
[0070] S602, decoding the system package signature to obtain the drone number information, confidential information and version information in the system package signature; in an optional implementation of step S602 of the present invention, decoding the system package signature to obtain the drone number information, confidential information and version information in the system package signature includes: segmenting the system package signature by preset symbols to obtain the front part of the combined string and the rear part of the combined position value; segmenting the front part of the combined string based on the numerical value recorded in the rear part of the combined position value to obtain the odd-numbered character segment of the original string and the even-numbered character segment of the original string; performing parity restoration on the odd-numbered character segment of the original string and the even-numbered character segment of the original string to obtain the original string; base64 decoding the original string to obtain the drone number information, confidential information and version information in the system package signature.
[0071] S603. Compare the decoded drone number information, the confidential information and the version information with the relevant information recorded in the system update record; if the decoded drone number information, the confidential information and the version information are the same as the relevant information recorded in the system update record, it is determined that the target drone has passed the verification; if the decoded drone number information, the confidential information and the version information are not the same as the relevant information recorded in the system update record, it is determined that the target drone has failed the verification.
[0072] S700, sending a new system data packet to the target drone that has passed the system packet signature verification. In an optional implementation of the first aspect of the present invention, after sending a new system data packet to the target drone that has passed the system packet signature verification, the method further includes: updating the system information of each drone in the drone registration table.
[0073] The method of the present invention is mainly used to upgrade the drone system. Currently, drone upgrades are all connected using a data cable, and then the system is written on the computer side to achieve the purpose of updating. This method is too old. If there is a virus on the computer side where the system is written, it may enter the drone through the connected data cable, causing the drone to malfunction during flight. Therefore, this method of updating the system is not only time-consuming and labor-intensive, but also very unsafe.
[0074] To put it more simply, the specific process of updating the drone system of the present invention can be found in Figure 2:First, the modified system package will be uploaded to the server for storage, and then the service distribution module will distribute the message (the service distribution module will detect whether there is a new system package uploaded. Once a new service package is detected, the message will be distributed to the drone connected to the server). After receiving the message, the drone system will prompt the user using the drone whether to update the system (system updates are divided into mandatory and optional. Mandatory will only prompt the user and the system will update itself, while optional requires the user to choose whether to update). If the system needs to be updated, the drone system will return a message to the server to prompt the update. After receiving the message, the server will start the verification management module to verify the drone, determine whether the drone system is an independently developed system, and verify whether the drone is an independently owned drone. It will then send the system package to the drone, and then the drone system will parse the system package to update the system operation.
[0075] Server device (with built-in service distribution module and verification management module): The service distribution module is mainly responsible for detecting and managing system update packages, as well as distributing messages to drones. When the server uploads a new system package, the service distribution module detects that there is a new package and compares it with the last uploaded system package (mainly comparing the system package version. There may be operational errors or some reasons that cause the system packages uploaded twice to be the same version, which requires prompting that there is a problem with the system package). After the comparison is passed, it is necessary to obtain the communication addresses of all drone devices in the server (if the drone needs to communicate with the server, the server must have the communication addresses of all drones), and then it is necessary to send a group message to all drone devices to prompt that there is a new update package. If a device returns that it needs to be updated, then the communication address of the drone device needs to be sent to the verification management module for verification. If it is not a mandatory update, when a drone device is updating the system, it is necessary to mark that the drone has updated the xxx system version. When the second group prompt update message is sent, the updated drone system will be filtered out, which can save communication resources.
[0076] The verification management module is mainly used to verify the drone equipment that is about to be updated in order to determine whether the drone is trustworthy. The specific functions are: when the service distribution module forwards the communication address of the drone equipment that needs to be updated to the verification management system, the verification management system needs to send a message to obtain the signature file of the drone system. The signature file is the only authentication method when the system is packaged, indicating that the system belongs to a certain person or company, and because it is a drone system, the signature file will be upgraded with the system, instead of using one signature like the software on the market now. The specific signature method and verification signature method are analyzed in detail below.
[0077] The technical solution of the present invention signs the system package in order to verify whether the system is a self-owned system. When updating the system, because there are many drones connected to the server, it is impossible to check one by one whether the drone is self-owned (it is possible that other drones or customer drones temporarily connect to the server and forget to clear them, etc.), so it is only necessary to verify whether the system signature belongs to oneself to verify it.
[0078] The specific process of system package signing can be as follows: first encode the system information and other data + system version through base64, and then extract the encoded string according to the single-digit characters. At this time, there are two groups of characters, which form a new string, and record the position of the combined string.
[0079] For example: {system: drone, confidentiality level: level 1, version: 2}
[0080] First base64 encode:
[0081] {System: UAV, Confidentiality Level: Level 1, Version: 2}->
[0082] e+ezu+e7n++8muaXoOS6uuacuu+8jOS / neWvhuetiee6p++8muS4gOe6p++8jOeJiOacrO+8mjJ9
[0083] The encoded string is truncated according to the unit (odd-number) characters, and there are two groups of characters at this time;
[0084] eeuen+maoSuau+jSnWheiep+mSgep+jeiar+mJ(the single-digit character in the original string (odd digit));
[0085] +z+7+8uXO6ucu8O / evute6+8u4O6+8OJOcO8j9 (double-digit characters in the original string (even digits));
[0086] Then reassemble the two strings of characters, and record the combination position (because you need to know where the combination is when parsing);
[0087] eeuen+maoSuau+jSnWheiep+mSgep+jeiar+mJ+z+7+8uXO6ucu8O / evute6+8u4O6+8OJOcO8j9->38 (finally use the -> symbol to connect the combined position number 38). When parsing is required, get the position number after ->, separate the string into two groups according to the position data, and then insert the second group of strings into the first group of characters one by one. Finally, base64 decoding can get the original data. After obtaining the data, compare the version inside with the system version stored on the server to determine whether the system on the drone is its own system.
[0088] The method of the present invention is applied to the update of the drone system, mainly to adapt to the convenience and safety of updating multiple drones. Specifically, first, after the system package is uploaded to the server, the service distribution module distributes the update message. After the drone system receives the message, it will prompt the user using the drone whether to update the system. If the system needs to be updated, the drone system will return a message to the server to prompt the update. After receiving the message, the server will start the verification management module to verify the drone. After the verification is passed, the system package will be sent to the drone, and then the drone system will parse the system package to update the system operation.
[0089] See also Figure 3 A second aspect of the present invention provides a system update device for a drone, which is used for a server device. The system update device for the drone includes:
[0090] Monitoring module 10, used for real-time monitoring whether there is a new system data packet uploaded;
[0091] An acquisition module 20, configured to acquire a drone connected to the server network in response to a new upload of the system data packet;
[0092] The first sending module 30 is used to send system update prompt information to all the drones connected to the server network;
[0093] A receiving module 40, configured to receive update selection results returned by each of the drones;
[0094] A determination module 50, configured to determine a target UAV that needs to update its system based on the update selection result;
[0095] A verification module 60, configured to obtain, for each target drone, a system package signature of the target drone and verify the system package signature;
[0096] The second sending module 70 is used to send a new system data packet to the target drone whose system packet signature has passed the verification.
[0097] In an optional implementation of the second aspect of the present invention, the acquisition module includes:
[0098] An extraction unit, configured to extract the drone applicable information of the new system data packet from the new system data packet in response to the new system data packet being uploaded;
[0099] A primary acquisition unit, configured to obtain a set of applicable drones from a drone registry based on the applicable information of the drone;
[0100] a connectivity test unit, configured to send a test signal to each drone in the applicable drone set via a first communication address of each drone recorded in the drone registration table;
[0101] The secondary acquisition unit is used to acquire a drone connected to the server network from the applicable drone set based on the test signal response.
[0102] In an optional implementation manner of the second aspect of the present invention, the first sending module includes:
[0103] An address acquisition unit, configured to obtain a second communication address of the drone connected to the server network from the test signal response;
[0104] An information construction unit, used for obtaining description information of the new system data packet, and constructing system update prompt information based on the description information;
[0105] The group sending unit is used to send the system update prompt information to all the drones connected to the server network through the second communication address of each drone.
[0106] In an optional implementation of the second aspect of the present invention, the verification module includes:
[0107] a signature acquisition unit, configured to acquire, for each of the target drones, a system package signature from the target drone via the second communication address;
[0108] A signature decoding unit, used to decode the system package signature to obtain the drone number information, confidentiality information and version information in the system package signature;
[0109] An information comparison unit, used to compare the decoded drone number information, the confidential information, and the version information with the relevant information recorded in the system update record;
[0110] The determination unit is used to determine that the verification of the target drone has been passed if the drone number information, the confidential information and the version information obtained after decoding are the same as the relevant information recorded in the system update record; and to determine that the verification of the target drone has not been passed if the drone number information, the confidential information and the version information obtained after decoding are not the same as the relevant information recorded in the system update record.
[0111] In an optional implementation of the second aspect of the present invention, the signature decoding unit includes:
[0112] A primary segmentation subunit, used to segment the system package signature by a preset symbol to obtain a front part of a combined string and a rear part of a combined position value;
[0113] A secondary segmentation subunit, used for segmenting the front part of the combined character string based on the value recorded at the rear part of the combined position value, to obtain the odd-numbered character segment of the original character string and the even-numbered character segment of the original character string;
[0114] A restoration subunit, used for performing parity restoration on the odd-numbered character segments of the original character string and the even-numbered character segments of the original character string to obtain the original character string;
[0115] The decoding subunit is used to perform base64 decoding on the original string to obtain the drone number information, confidentiality information and version information in the system package signature.
[0116] In an optional implementation of the second aspect of the present invention, the monitoring module includes:
[0117] A receiving unit, used for receiving system data packets uploaded by users;
[0118] An MD5 value acquisition unit, configured to acquire the last MD5 value of the system data packet based on the storage location of the system data packet;
[0119] An MD5 value comparison unit, used for comparing the current MD5 value of the system data packet with the last MD5 value of the system data packet;
[0120] The new and old judgment unit is used for judging that the system data packet is a new system data packet if the current MD5 value of the system data packet is different from the last MD5 value of the system data packet.
[0121] In an optional implementation of the second aspect of the present invention, the system updating device of the drone further includes: a system information updating module, which is used to update the system information of each drone in the drone registration table.
[0122] Figure 4It is a structural diagram of a server device provided by an embodiment of the present invention. The server device may have relatively large differences due to different configurations or performances, and may include one or more processors 80 (central processing units, CPU) (for example, one or more processors) and memory 90, and one or more storage media 100 for storing application programs or data (for example, one or more mass storage devices). Among them, the memory and storage medium can be short-term storage or permanent storage. The program stored in the storage medium may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server device. Furthermore, the processor can be configured to communicate with the storage medium and execute a series of instruction operations in the storage medium on the server device.
[0123] The server device of the present invention may also include one or more power supplies 110, one or more wired or wireless network interfaces 120, one or more input and output interfaces 130, and / or one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 4 The server device structure shown does not constitute a limitation on the server device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0124] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the system update method of the drone.
[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system or system or unit described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0126] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0127] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for updating the system of a drone, used for a server device, characterized in that: include: Real-time monitoring of whether there are new system data packets uploaded; In response to the new system data packet being uploaded, obtaining a drone connected to the server network; Sending system update prompt information to all drones connected to the server network; Receiving the update selection results returned by each of the drones; Determine a target UAV that needs to update its system based on the update selection result; For each of the target drones, obtaining a system package signature of the target drone, and verifying the system package signature; A new system data packet is sent to the target drone that has passed the system packet signature verification.
2. The method for updating the system of a drone according to claim 1, characterized in that: In response to uploading the new system data packet, obtaining the drone connected to the server network includes: In response to uploading the new system data packet, extracting the drone applicable information of the new system data packet from the new system data packet; Based on the applicable information of the drone, a set of applicable drones is obtained from a drone registry; Sending a test signal to each drone in the set of applicable drones via the first communication address of each drone recorded in the drone registration table; Based on the test signal response, a drone connected to the server network is obtained from the set of applicable drones.
3. The method for updating the system of a drone according to claim 2, characterized in that: The group sending of system update prompt information to all the drones connected to the server network includes: Obtaining a second communication address of the drone connected to the server network from the test signal response; Acquire description information of the new system data packet, and construct system update prompt information based on the description information; The system update prompt information is sent in batches to all the drones connected to the server network through the second communication address of each drone.
4. The method for updating the system of a drone according to claim 3, characterized in that: For each of the target drones, obtaining the system package signature of the target drone and verifying the system package signature includes: For each of the target drones, obtaining a system package signature from the target drone via the second communication address; Decoding the system package signature to obtain the drone number information, confidentiality information, and version information in the system package signature; Compare the decoded drone number information, the confidential information, and the version information with the relevant information recorded in the system update record; If the drone number information, the confidential information, and the version information obtained after decoding are the same as the relevant information recorded in the system update record, it is determined that the target drone has passed the verification; If the drone number information, the confidential information and the version information obtained after decoding are not the same as the relevant information recorded in the system update record, it is determined that the target drone verification fails.
5. The method for updating the system of a drone according to claim 4, characterized in that: Decoding the system package signature to obtain the drone number information, confidentiality information, and version information in the system package signature includes: The system package signature is segmented by a preset symbol to obtain a front part of a combined string and a rear part of a combined position value; Segment the front part of the combined character string based on the value recorded at the rear part of the combined position value to obtain the odd-numbered character segment of the original character string and the even-numbered character segment of the original character string; Performing parity restoration on the odd-numbered character segments of the original character string and the even-numbered character segments of the original character string to obtain the original character string; The original string is base64 decoded to obtain the drone number information, confidentiality information and version information in the system package signature.
6. The method for updating the system of a drone according to claim 5, characterized in that: The real-time monitoring of whether there is a new system data packet uploaded includes: Receive system data packets uploaded by users; Based on the storage location of the system data packet, obtaining the last MD5 value of the system data packet; Compare the current MD5 value of the system data packet with the previous MD5 value of the system data packet; If the current MD5 value of the system data packet is different from the previous MD5 value of the system data packet, it is determined that the system data packet is a new system data packet.
7. The method for updating the system of a drone according to claim 1, characterized in that: After sending the new system data packet to the target drone that has passed the system packet signature verification, the method includes: updating the system information of each drone in the drone registration table.
8. A system update device for a drone, used for a server device, characterized in that: The system updating device of the UAV comprises: Monitoring module, used to monitor in real time whether there are new system data packets uploaded; An acquisition module, configured to acquire a drone connected to the server network in response to a new upload of the system data packet; A first sending module, used for sending system update prompt information to all drones connected to the server network; A receiving module, used for receiving the update selection results returned by each of the drones; A determination module, configured to determine a target UAV that needs to update its system based on the update selection result; A verification module, used for obtaining a system package signature of each target drone and verifying the system package signature; The second sending module is used to send a new system data packet to the target drone whose system packet signature has passed the verification.
9. A service-end device for updating a drone system, characterized in that: The server device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instruction in the memory so that the server device executes the system update method of the drone according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the system updating method of the drone according to any one of claims 1 to 7 is implemented.
