Lightweight remote upgrading method applied to unmanned aerial vehicle flight control system

By decoupling the UAV flight control system software, storing the underlying algorithms and upper-layer task parameters separately, and only upgrading the upper-layer parameters, the problem of low upgrade efficiency in the existing technology is solved, and fast, flexible and lightweight upgrades are achieved. Adapt to different task scenarios.

CN118733083APending Publication Date: 2024-10-01UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814330.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing upgrade methods of UAV flight control systems are inefficient and have poor flexibility, and cannot meet the needs of rapid scene switching and multi-tasking. Especially in UAV swarm combat scenarios, the upgrade time is too long.

Method used

By decoupling the flight control software, it is divided into underlying algorithm software and upper-layer mission parameters. The underlying algorithm is stored in QSPI Flash, and the upper-layer mission parameters are stored in EEPROM. Only the upper-layer parameters are upgraded to achieve lightweight upgrades.

Benefits of technology

It greatly shortens the upgrade time, can complete the system upgrade within 5 seconds, adapts to different task scenarios, and improves the upgrade efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733083A_ABST
    Figure CN118733083A_ABST
Patent Text Reader

Abstract

The invention provides a lightweight remote upgrading method applied to an unmanned aerial vehicle flight control system, and belongs to the field of remote upgrading under an embedded platform. The method comprises the following steps of: reconstructing and decoupling a software architecture, storing invariant algorithm software at a bottom layer in a QSPI Flash storage unit, storing parameter contents related to an upper-layer task in an EEPROM storage unit, and only upgrading parameters related to the upper-layer task in the EEPROM storage unit during lightweight upgrading. The upgrading process comprises upper computer upgrading and lower computer upgrading. In the upgrading process, most application scenes adopt a key parameter upgrading mode, and the method can complete large-batch quick upgrading of the system, so that the time required by upgrading is greatly shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of remote upgrade under embedded platform, and in particular to the field with strict time constraints on remote upgrade, and specifically to a lightweight remote upgrade method applied to unmanned aerial vehicle flight control system. Background Art

[0002] With the rapid development of electronic information technology, embedded systems are widely used in all aspects of life, including industrial control, smart home, medical equipment, aerospace and other fields. Embedded systems have the characteristics of high integration, huge functions, wide application fields, flexible programmability, etc. Therefore, in most scenarios, you only need to reprogram the embedded system to generate an executable image file, and reburn the executable image file to redefine the functions of the embedded system.

[0003] As the most popular embedded platform today, drones have a wide range of applications. In the face of multi-scenario and multi-task switching of drones, it is particularly necessary to frequently burn image files to the embedded drone flight control system. However, no matter what scenario the drone is in or what task it is performing, the underlying flight control algorithm and collaborative formation control algorithm of the flight control system are the same. The only difference is that the flight parameters and flight constraints are different in different mission scenarios. When drones perform tasks such as emergency takeoff, rapid scene switching, and precise target strikes, drones need to quickly complete functional reconstruction. Therefore, lightweight upgrades, partial upgrades, and rapid upgrades to drone flight control systems are particularly important.

[0004] At present, the upgrade of drone flight control system is mostly online upgrade and remote upgrade. Online upgrade needs to be completed on PC with the help of emulator or burner. This method requires disassembling the flight control system and removing the corresponding loading port cover, which is time-consuming and labor-intensive, and some upgrade scenarios do not allow the removal of the system cover. Remote upgrade is mostly achieved through RS422 / Ethernet / 1553b / pcie and other interfaces to achieve remote upgrade of drone flight control on PC. This method requires full-function burning of the image, which takes a long time. For the application scenario of drone cluster combat, the time spent on burning multiple systems will increase exponentially. In time-sensitive combat scenarios, this upgrade method is also not allowed. Summary of the invention

[0005] The purpose of the present invention is to provide a lightweight remote upgrade method for drone flight control systems, reconstruct the software of drone flight control systems, fix the unchanged underlying algorithms in the form of mirror images, and perform maintenance and upgrades in the form of key parameters for changing mission scenarios, so as to truly achieve lightweight upgrade and maintenance that adapts to different scenarios. This is to solve the technical problems of poor convenience, low efficiency, poor flexibility, and insufficient scalability of drone flight control system software upgrades in the prior art.

[0006] To solve the above technical problems, the lightweight remote upgrade method applied to the UAV flight control system of the present invention comprises the following steps:

[0007] The software architecture is reconstructed and decoupled, the underlying unchanged algorithm software is stored in the QSPI Flash storage unit, and the parameter content related to the upper-level tasks is stored in the EEPROM storage unit. During a lightweight upgrade, only the parameters related to the upper-level tasks in the EEPROM storage unit need to be upgraded.

[0008] Furthermore, the upgrade method includes an upper computer upgrade method and a lower computer upgrade method.

[0009] Compared with the prior art, the present invention has the following beneficial technical effects: by decoupling the flight control software, it is divided into the underlying algorithm software and the upper-layer task parameters, the underlying algorithm software is stored in the QSPI Flash, and the upper-layer task parameters are stored in the EEPROM. Most application scenarios adopt the method of upgrading key parameters, which can complete the system's large-scale rapid upgrade and greatly shorten the time required for the upgrade. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0011] Figure 1 This is a schematic diagram of the storage structure of the UAV flight control system of the present invention.

[0012] Figure 2 The figure is a schematic diagram of the host computer process of the lightweight upgrade method of the present invention.

[0013] Figure 3 The figure is a schematic diagram of the lower computer flow of the lightweight upgrade method of the present invention. DETAILED DESCRIPTION

[0014] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0015] For the scenario of drone cluster combat, the flight control algorithm and coordination algorithm of the drone unit are almost the same, and the only difference is the upper layer ID number, mission parameters, constraint parameters and other parameters. Based on this, the application divides the drone flight control system software into two parts according to the function: the bottom mirror software and the upper layer parameters. The bottom mirror software implements the flight control related algorithm, and this part of the software remains unchanged in different application scenarios; the upper layer parameters need to be modified repeatedly to adapt to different application scenario tasks. Therefore, for this kind of software, the components are stored, the core algorithm part is stored and deployed in one storage unit, and the key parameters are stored and deployed in another storage unit. For different application scenarios, only the key parameters need to be upgraded remotely and lightweight. After power-on and restart, the core algorithm will obtain the updated key parameters and perform algorithm calculations, and the upgrade can be completed quickly to adapt to the changing combat missions and combat scenarios. For users, whether it is for drone units or drone clusters, only the key parameters need to be maintained and upgraded, and there is no need to burn the entire software. The entire system can be upgraded and maintained lightweight to adapt to different mission scenarios, which greatly improves the efficiency of the upgrade.

[0016] The lightweight upgrade method for the UAV flight control system proposed in the present invention is implemented on an embedded platform. The UAV flight control system of the method uses a SOC chip (System on Chip), which includes an ARM processor unit and an FPGA hardware programmable logic unit. The storage unit of the UAV flight control system includes a QSPI Flash storage unit and an EEPROM storage unit, such as Figure 1 As shown. Aiming at the complex and changeable usage scenarios of the UAV flight control system, the present invention reconstructs and decouples the software architecture, adopts the strategy of no-upgrade and less-upgrade for the fixed algorithm part in the software, stores the underlying unchanged flight control strategy algorithm software in the QSPI Flash storage unit, adopts the strategy of fast upgrade and lightweight upgrade for the key parameters bound to the application scenario in the software, stores the key parameters related to the upper-level tasks in the EEPROM storage unit, and only needs to upgrade the parameters related to the upper-level tasks in the EEPROM storage unit during the lightweight upgrade, so that the flight control system can achieve the purpose of fast upgrade.

[0017] The key parameters of the lightweight upgrade method of the present invention are stored in the EEPROM. During the startup of the flight control system, only the key parameters of the EEPROM need to be read and brought into the underlying control algorithm, thereby achieving the effect of lightweight upgrade of the flight control system.

[0018] The lightweight upgrade method of the present invention uses RS422 bus to upgrade the UAV flight control system, and the upgrade method involved includes an upper computer upgrade method and a lower computer upgrade method. Figure 2As shown, the following steps are included: Step S11: connect the serial port (com port) of the computer to the RS422 serial port of the drone; Step S12: initialize the upper computer software and set the default value of the interface; Step S13: then upgrade the underlying algorithm or upgrade the upper layer parameters according to the user's choice; if it is an upgrade of the underlying algorithm process, execute step S14, if it is an upgrade of the upper layer parameter process, execute step S17; Step S14: read the upgrade program file size to calculate the sub-package size; Step S15: the upper computer and the lower computer perform a bottom-level upgrade handshake process, that is, the upper computer sends an upgrade bottom-level handshake instruction to the lower computer, and the lower computer replies with a handshake response instruction; after the handshake is successful, the upper computer sends the upgrade program file to the lower computer; Step S16: the upgrade program file is sent successfully After that, the upper computer sends a burning command to the lower computer, and the lower computer burns the program. The burning process ends after the lower computer is completely burned; step S17: read the flight parameter file, calculate the file size, and display the parameter value. The display of the parameter value is used for the user to confirm whether the loaded parameters are correct; step S18: the upper computer and the lower computer perform a parameter loading handshake process, that is, the upper computer sends an upgrade upper-level parameter handshake instruction to the lower computer, and the lower computer replies with a handshake response instruction; after the handshake is successful, the upper computer sends the parameter content to the lower computer, step S19: the upper computer sends a burning command to the lower computer, and the lower computer burns the parameters; the upper computer sends a readback command to the lower computer, receives and displays the readback parameters returned by the lower computer, and determines whether the parameter burning is correct. The burning process ends after the burning is completed.

[0019] The upgrade method of the lower machine is as follows Figure 3 As shown, step S21: the lower computer determines whether to enter the upgrade process or the normal startup process according to whether the handshake instruction is received; if it enters the normal startup process, step S22 is executed, and if it enters the upgrade process, step S25 is executed; step S22: the processor moves the program from the QSPI flash to the DDR3 for execution; step S23: the program starts to execute and reads the key parameter values ​​of the EEPROM; step S24: execute related algorithms and operations to complete the self-startup of the flight control system. Step S25: Receive the upgrade program file or parameter content sent by the host computer and store it in DDR3 until the upgrade program file or parameter content is completely received; Step S26: The lower computer receives the burn command sent by the host computer and parses the handshake instruction sent by the host computer; Step S27: Determine whether to upgrade the underlying algorithm or the upper parameter according to the handshake instruction. If it is the process of upgrading the underlying algorithm, execute step S28; if it is the process of upgrading the upper parameter, execute step S29; Step S28: Write the upgrade program file in DDR3 into QPSI Flash until the writing is completed, completing the entire burning process; Step S29: Write the parameter content in DDR3 into EEPROM until the writing is completed, completing the entire burning process; Step S210: Receive the read-back command sent by the host computer and return the read-back parameters to the host computer.

[0020] The lightweight upgrade method of the UAV flight control system adopted by the present invention decouples the flight control software and divides it into the bottom algorithm software and the upper task parameters. The bottom algorithm software is stored in the QSPI Flash, and the upper task parameters are stored in the EEPROM. For the software upgrade of the UAV flight control system, most application scenarios adopt the method of upgrading key parameters, which can complete the large-scale rapid upgrade of the system. The upgrade method includes the upper computer upgrade process and the lower computer upgrade process, and adopts RS422 for upgrading. Compared with the existing upgrade, the lightweight upgrade method can greatly shorten the time required for the upgrade. At present, the upgrade time of the UAV flight control system is mostly more than 10 minutes. The upgrade time can be controlled within 5 seconds by adopting this lightweight upgrade method, which greatly shortens the time required for the system upgrade.

[0021] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.

Claims

1. A lightweight remote upgrade method for a UAV flight control system, characterized in that: The steps include: The software architecture is reconstructed and decoupled, the underlying unchanged algorithm software is stored in the QSPI Flash storage unit, and the parameter content related to the upper-level tasks is stored in the EEPROM storage unit. During a lightweight upgrade, only the parameters related to the upper-level tasks in the EEPROM storage unit need to be upgraded.

2. The lightweight remote upgrade method for a UAV flight control system according to claim 1 is characterized in that: The upgrade method includes upper computer upgrade and lower computer upgrade.

3. The lightweight remote upgrade method for a UAV flight control system according to claim 2 is characterized in that: The host computer upgrade includes the following steps: Step S11: Connect the com port of the computer to the RS422 serial port of the drone; Step S12: Initialize the host computer software and set the default values ​​of the interface; Step S13: Then, according to the user's choice, whether to upgrade the underlying algorithm or the upper layer parameters; if it is the process of upgrading the underlying algorithm, execute step S14; if it is the process of upgrading the upper layer parameters, execute step S17; Step S14: Read the upgrade program file size and calculate the sub-package; Step S15: The upper computer and the lower computer perform a bottom-level upgrade handshake process, that is, the upper computer sends a bottom-level upgrade handshake instruction to the lower computer, and the lower computer replies with a handshake response instruction; after the handshake is successful, the upper computer sends an upgrade program file to the lower computer; Step S16: After the upgrade program file is sent successfully, the upper computer sends a burning command to the lower computer, and the lower computer burns the program. After all the lower computers have finished burning, the burning process ends; Step S17: Read the flight parameter file, calculate the file size, and display the parameter value. The display of the parameter value is used for the user to confirm whether the loaded parameters are correct; Step S18: The upper computer and the lower computer perform a parameter loading handshake process, that is, the upper computer sends an upgrade upper layer parameter handshake instruction to the lower computer, and the lower computer replies with a handshake response instruction; after the handshake is successful, the upper computer sends the parameter content to the lower computer; Step S19: The upper computer sends a programming command to the lower computer, and the lower computer programs the parameters; the upper computer sends a readback command to the lower computer, receives and displays the readback parameters returned by the lower computer, and determines whether the parameter programming is correct. After the programming is completed, the programming process ends.

4. The lightweight remote upgrade method for a UAV flight control system according to claim 2, characterized in that: The upgrade of the lower computer includes the following steps: Step S21: The lower computer determines whether to enter the upgrade process or the normal startup process according to whether the handshake instruction is received; if entering the normal startup process, step S22 is executed; if entering the upgrade process, step S25 is executed; Step S22: the processor moves the program from the QSPI flash to the DDR3 for execution; Step S23: The program starts to read the key parameter values ​​of EEPROM; Step S24: Execute relevant algorithms and operations to complete the self-start of the flight control system; Step S25: receiving the upgrade program file or parameter content sent by the host computer, and storing it in DDR3 until the upgrade program file or parameter content is completely received; Step S26: The lower computer receives the programming command sent by the upper computer and parses the handshake instruction sent by the upper computer; Step S27: Determine whether to upgrade the underlying algorithm or the upper layer parameters according to the handshake instruction. If it is the process of upgrading the underlying algorithm, execute step S28; if it is the process of upgrading the upper layer parameters, execute step S29; Step S28: Write the upgrade program file in DDR3 into QPSIFlash until the writing is completed, completing the entire burning process; Step S29: writing the parameter contents in DDR3 into EEPROM until the writing is completed, thus completing the entire programming process; Step S210: receiving a read-back command sent by the host computer, and returning read-back parameters to the host computer.