UAV system resource virtualization method, device, equipment and readable storage medium
Using Hypervisor virtualization technology to build virtual machines and unify operating system versions solves the problems of low computing resource utilization and high weight in UAV systems, achieving efficient utilization of hardware resources and improving computing performance.
Patent Information
- Application Number
- CN202011063752.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-30
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-09-30
AI Technical Summary
The computing resource utilization rate of each functional domain in the existing UAV system is not high, resulting in partially vacant resources. Moreover, independent computer hardware and software design increase the power consumption and weight of the UAV, limiting the improvement of computing performance and system Capacity expansion.
Hypervisor virtualization technology is used to obtain the preset configuration files of each functional domain, build a virtual machine, and realize virtualization and effective utilization of hardware resources through software hierarchical processing and operating system version unification.
Virtualization technology significantly reduces the weight and power consumption of drones, improves computing performance, and supports application portability and virtual machine fault isolation.
Smart Images

Figure CN112148431B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of unmanned aerial vehicle technology, and in particular to a method, device, equipment and computer-readable storage medium for virtualizing resources of an unmanned aerial vehicle system. Background Art
[0002] See also Figure 1 , Figure 1 This is a structural block diagram of a UAV system in the prior art. The traditional avionics system of UAVs is divided into a flight control domain with a flight control computer as the core, a mission domain with a mission management computer as the core, and an electromechanical domain with an electromechanical management computer as the core according to the functional domain. The flight control domain includes flight control computers, wheel loads, landing gear, engines, inertial navigation, IMU, atmospheric engines, steering gears, etc.; the mission domain includes mission management computers, radars, air-to-ground communications, optoelectronic equipment, etc.; the electromechanical domain includes electromechanical management computers, environmental control, fuel, brakes, power supplies, hydraulics, etc.; the above three types of computers manage the corresponding systems of the UAV respectively, and design independent computer hardware and software.
[0003] After calculation, it was found that in the systems corresponding to each functional domain, some systems have low computing resource utilization and some computing resources are left idle. At the same time, the computers of each system are designed and deployed separately with independent computer hardware and software, which increases the power consumption and weight of the drone, restricts the power consumption and weight indicators of the drone's future computing performance improvement, and is not conducive to the future capability expansion requirements of the drone system.
[0004] In summary, how to effectively solve the problems of separately designing and deploying independent computer hardware and software for system computers in various functional domains of drones, the increase in drone power consumption and weight, and partial vacancy of resources are issues that technical personnel in this field urgently need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a method for virtualizing resources of an unmanned aerial vehicle system, which method enables effective utilization of hardware resources, greatly reduces the weight of the unmanned aerial vehicle, and reduces power consumption; another purpose of the present invention is to provide a device, equipment and computer-readable storage medium for virtualizing resources of an unmanned aerial vehicle system.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] A method for virtualizing resources of an unmanned aerial vehicle system, comprising:
[0008] Obtain the preset configuration files corresponding to each functional domain in the UAV system;
[0009] Using Hypervisor virtualization technology to retrieve the target resource sets corresponding to the preset configuration files;
[0010] The target resource sets are used to construct virtual machines corresponding to the functional domains, so that the applications in the functional domains are operated based on the corresponding virtual machines.
[0011] In a specific implementation of the present invention, after constructing virtual machines corresponding to the functional domains respectively using the target resource sets, the method further includes:
[0012] Software hierarchical processing is performed on each of the virtual machines.
[0013] In a specific implementation of the present invention, performing software hierarchical processing on each of the virtual machines includes:
[0014] A standard interface is used to perform software isolation operations on each of the virtual machines.
[0015] In a specific implementation of the present invention, after constructing virtual machines corresponding to the functional domains respectively using the target resource sets, the method further includes:
[0016] Obtaining the operating system version of each virtual machine respectively;
[0017] Determining whether the operating system versions are consistent;
[0018] If not, the versions of the operating systems are unified.
[0019] A drone system resource virtualization device, comprising:
[0020] The file acquisition module is used to obtain the preset configuration files corresponding to each functional domain in the UAV system;
[0021] A resource retrieval module, used to utilize Hypervisor virtualization technology to retrieve target resource sets corresponding to each of the preset configuration files;
[0022] The virtual machine construction module is used to use each of the target resource sets to construct virtual machines corresponding to each of the functional domains, so that applications in each of the functional domains can be operated based on the corresponding virtual machines.
[0023] In a specific embodiment of the present invention, it also includes:
[0024] The software hierarchical module is used to perform software hierarchical processing on each of the virtual machines after constructing the virtual machines corresponding to each of the functional domains using each of the target resource sets.
[0025] In a specific implementation of the present invention, the software hierarchical module is specifically a module that uses a standard interface to perform software isolation operations on each of the virtual machines.
[0026] In a specific embodiment of the present invention, it also includes:
[0027] A system version acquisition module, used to acquire the operating system version of each virtual machine after constructing the virtual machines corresponding to each functional domain using each target resource set;
[0028] A judgment module, used to judge whether the versions of the operating systems are consistent;
[0029] The version processing module is used to perform version unification processing on the operating systems when it is determined that the versions of the operating systems are inconsistent.
[0030] A drone system resource virtualization device, comprising:
[0031] Memory for storing computer programs;
[0032] A processor is used to implement the steps of the drone system resource virtualization method as described above when executing the computer program.
[0033] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the aforementioned method for virtualizing resources of an unmanned aerial vehicle system.
[0034] By applying the method provided in the embodiment of the present invention, the preset configuration files corresponding to each functional domain in the drone system are obtained; the target resource sets corresponding to each preset configuration file are retrieved using the Hypervisor virtualization technology; and the virtual machines corresponding to each functional domain are constructed using each target resource set, so that the applications in each functional domain can be operated based on the corresponding virtual machines. By virtualizing the drone hardware resources using the Hypervisor virtualization technology, corresponding virtual machines are constructed for each functional domain, so that the applications in each functional domain can be operated based on the corresponding virtual machines. Compared with the existing design and deployment of independent computer hardware and software for each functional domain, the present invention makes effective use of hardware resources, greatly reduces the weight of the drone, and reduces power consumption.
[0035] Correspondingly, the embodiments of the present invention also provide a drone system resource virtualization device, equipment and computer-readable storage medium corresponding to the above-mentioned drone system resource virtualization method, which have the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a structural block diagram of a UAV system in the prior art;
[0038] Figure 2 It is a flowchart of an implementation of the method for virtualizing resources of a drone system in an embodiment of the present invention;
[0039] Figure 3 This is a structural block diagram of a drone system in an embodiment of the present invention;
[0040] Figure 4 A software architecture block diagram of a drone system in an embodiment of the present invention;
[0041] Figure 5 Another implementation flow chart of the method for virtualizing resources of a drone system in an embodiment of the present invention;
[0042] Figure 6 A software architecture block diagram of another drone system in an embodiment of the present invention;
[0043] Figure 7 It is a structural block diagram of a UAV system resource virtualization device in an embodiment of the present invention;
[0044] Figure 8 The present invention is a block diagram of a UAV system resource virtualization device in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0046] Embodiment 1:
[0047] See also Figure 2 , Figure 2 This is a flowchart of an implementation method of a UAV system resource virtualization method in an embodiment of the present invention. The method may include the following steps:
[0048] S201: Obtain preset configuration files corresponding to each functional domain in the drone system.
[0049] The corresponding configuration files are set for each functional domain in advance according to the requirements of each functional domain. When the resources of the UAV system are virtualized, the preset configuration files corresponding to each functional domain in the UAV system are obtained.
[0050] The preset configuration file includes the memory, CPU, network, disk and other resources required by the corresponding functional domain.
[0051] S202: Using the Hypervisor virtualization technology, retrieve the target resource sets corresponding to the preset configuration files.
[0052] After obtaining the preset configuration files corresponding to the functional domains, the target resource sets corresponding to the preset configuration files are retrieved using the Hypervisor virtualization technology.
[0053] Hyperviosr virtualization technology allows multiple operating systems and applications to share a piece of hardware resources, which is also considered a hardware virtualizer. At startup, the Hypervisor virtualization technology is used to first detect the computer hardware resources and configure resources for each functional domain, such as memory, CPU, network and disk, space, scheduling time, interrupt resource delivery method, etc. It provides runtime virtual machine fault isolation disposal strategies and corresponding operation interfaces, and provides virtual machine scheduling management interfaces including regular scheduling operation interfaces such as start, reset, run, stop and suspend, which can support VxWorks, Tianmai, Linux and other commonly used embedded operating systems to run on virtual machines.
[0054] See also Figure 3 and Figure 4 , Figure 3 is a structural block diagram of a drone system in an embodiment of the present invention. Figure 4 The software architecture block diagram of a drone system in an embodiment of the present invention is shown in FIG. The hardware resources are virtualized by Hyperviosr virtualization technology to obtain a drone intelligent integrated computer. According to the preset configuration files corresponding to the flight control domain, mission domain, and electromechanical domain, the corresponding target resource sets are allocated to each functional domain. Specifically, the required intelligent middleware, functional software components, intelligent system software, hardware resources, etc. are allocated to each functional domain, so as to support the operation of related applications in each functional domain.
[0055] S203: Using each target resource set to construct a virtual machine corresponding to each functional domain, so that the application in each functional domain can be operated based on the corresponding virtual machine.
[0056] After retrieving the target resource sets corresponding to each preset configuration file, each target resource set is used to build a virtual machine corresponding to each functional domain, that is, the operating environment required for the application in each functional domain is obtained, so that the application in each functional domain can be operated based on the corresponding virtual machine.
[0057] By applying the method provided in the embodiment of the present invention, the preset configuration files corresponding to each functional domain in the drone system are obtained; the target resource sets corresponding to each preset configuration file are retrieved using the Hypervisor virtualization technology; and the virtual machines corresponding to each functional domain are constructed using each target resource set, so that the applications in each functional domain can be operated based on the corresponding virtual machines. By virtualizing the drone hardware resources using the Hypervisor virtualization technology, corresponding virtual machines are constructed for each functional domain, so that the applications in each functional domain can be operated based on the corresponding virtual machines. Compared with the existing design and deployment of independent computer hardware and software for each functional domain, the present invention makes effective use of hardware resources, greatly reduces the weight of the drone, and reduces power consumption.
[0058] It should be noted that, based on the above-mentioned embodiment 1, the embodiment of the present invention also provides a corresponding improvement scheme. In the subsequent embodiments, the same steps or corresponding steps as those in the above-mentioned embodiment 1 can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, and will not be repeated one by one in the following improved embodiments.
[0059] See also Figure 5 , Figure 5 Another implementation flow chart of the method for virtualizing resources of a drone system in an embodiment of the present invention is shown in FIG. 1 . The method may include the following steps:
[0060] S501: Obtain preset configuration files corresponding to each functional domain in the drone system.
[0061] S502: Using the Hypervisor virtualization technology, retrieve the target resource sets corresponding to the preset configuration files.
[0062] S503: Using each target resource set to construct a virtual machine corresponding to each functional domain, so that the application in each functional domain can be operated based on the corresponding virtual machine.
[0063] S504: Perform software isolation operations on each virtual machine using a standard interface.
[0064] After constructing the virtual machines corresponding to each functional domain, use the standard interface to perform software isolation operations on each virtual machine. Figure 6 , Figure 6This is a software architecture block diagram of another unmanned aerial vehicle system in an embodiment of the present invention. The software is isolated into an application layer, an operating system layer, and a hardware module support program layer composed of various functional components through various standard interfaces. The application layer of the electromechanical domain includes intelligent computing applications, maps, and data; the hardware module support program layer of the electromechanical domain includes deep learning / visual recognition computing components and digital map computing components; the operating system layer of the electromechanical domain is a LINUX operating system. The application layer of the flight control domain includes flight management applications; the hardware module support program layer of the flight control domain includes flight management computing components and navigation computing components; the operating system layer of the flight control domain is a safety-critical operating system. The application layer of the mission domain includes mission management applications; the hardware module support program layer of the mission domain includes mission management computing components; and the operating system layer of the mission domain is a mission operating system.
[0065] By using standard interfaces to perform software isolation operations on each virtual machine, the degree of coupling between layers is weakened, so that the application is only related to the aircraft function and not the hardware. New applications can be loaded without changing the hardware, which enhances the portability of the software and realizes virtual machine fault isolation.
[0066] S505: Obtain the operating system version of each virtual machine respectively.
[0067] After constructing the virtual machines corresponding to the functional domains, the operating system versions of the virtual machines are obtained respectively.
[0068] S506: Determine whether the versions of the operating systems are consistent. If so, do not process. If not, execute step S507.
[0069] After the operating system versions of the virtual machines are obtained, it is determined whether the operating system versions are consistent. If so, no processing is performed. If not, step S507 is executed.
[0070] S507: Unify the versions of the operating systems.
[0071] When it is determined that the versions of the operating systems are inconsistent, the versions of the operating systems are unified. By unifying the versions of the operating systems, the virtual machines corresponding to the functional domains use the same version of the operating system software (such as Linux, VxWorks, etc.), thereby building an application software operating environment that is the same as that of a real computer through virtualization technology. Therefore, the application software in the original computer can be directly run in the resource partition corresponding to other functional domains without software migration.
[0072] This embodiment is different from the embodiment 1 corresponding to the technical solution claimed for protection by the independent claim 1, and further adds the technical solution claimed for protection by the dependent claims 2 to 4. Of course, according to different actual conditions and requirements, the technical solutions claimed for protection by the dependent claims can be flexibly combined without affecting the integrity of the solutions, so as to better meet the requirements of different usage scenarios. This embodiment only provides one of the solutions with the most solutions and the best effects. Due to the complexity of the situation, it is impossible to list all possible solutions one by one. Those skilled in the art should be able to realize that there can be many examples based on the basic method principles provided by this application in combination with actual conditions, and they should all be within the scope of protection of this application without sufficient creative work.
[0073] Corresponding to the above method embodiment, the embodiment of the present invention further provides a drone system resource virtualization device. The drone system resource virtualization device described below and the drone system resource virtualization method described above can be referenced to each other.
[0074] See also Figure 7 , Figure 7 This is a structural block diagram of a drone system resource virtualization device in an embodiment of the present invention, and the device may include:
[0075] The file acquisition module 71 is used to acquire preset configuration files corresponding to each functional domain in the UAV system;
[0076] The resource retrieval module 72 is used to retrieve the target resource sets corresponding to the preset configuration files by using the Hypervisor virtualization technology;
[0077] The virtual machine construction module 73 is used to construct virtual machines corresponding to each functional domain using each target resource set, so that the application in each functional domain can be operated based on the corresponding virtual machine.
[0078] In a specific embodiment of the present invention, the device may further include:
[0079] The software hierarchical module is used to perform software hierarchical processing on each virtual machine after constructing the virtual machines corresponding to each functional domain respectively by using each target resource set.
[0080] In a specific implementation of the present invention, the software hierarchical module is specifically a module that performs software isolation operations on each virtual machine using a standard interface.
[0081] In a specific embodiment of the present invention, the device may further include:
[0082] A system version acquisition module, used to acquire the operating system version of each virtual machine after constructing the virtual machines corresponding to each functional domain using each target resource set;
[0083] A judgment module is used to judge whether the versions of various operating systems are consistent;
[0084] The version processing module is used to unify the versions of the operating systems when it is determined that the versions of the operating systems are inconsistent.
[0085] Corresponding to the above method embodiment, see Figure 8 , Figure 8 This is a schematic diagram of a drone system resource virtualization device provided by the present invention, and the device may include:
[0086] A memory 81, used for storing computer programs;
[0087] The processor 82, when used to execute the computer program stored in the memory 81, can implement the following steps:
[0088] Obtain the preset configuration files corresponding to each functional domain in the UAV system; use the Hypervisor virtualization technology to call the target resource sets corresponding to each preset configuration file; use each target resource set to build a virtual machine corresponding to each functional domain, so that the application in each functional domain can run based on the corresponding virtual machine.
[0089] For an introduction to the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.
[0090] Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:
[0091] Obtain the preset configuration files corresponding to each functional domain in the UAV system; use the Hypervisor virtualization technology to call the target resource sets corresponding to each preset configuration file; use each target resource set to build a virtual machine corresponding to each functional domain, so that the application in each functional domain can run based on the corresponding virtual machine.
[0092] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0093] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.
[0094] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0095] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, the present invention can also be improved and modified without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A method for virtualizing resources of an unmanned aerial vehicle system, characterized in that: include: Obtain the preset configuration files corresponding to each functional domain in the UAV system; Using Hypervisor virtualization technology to retrieve the target resource sets corresponding to the preset configuration files; Utilize each of the target resource sets to construct a virtual machine corresponding to each of the functional domains, and utilize standard interfaces to perform software isolation operations on each of the virtual machines, so as to isolate the software into an application layer, an operating system layer, and a hardware module support program layer composed of various functional components through various standard interfaces, so that the applications in each of the functional domains can be operated based on the corresponding virtual machines, wherein the application layer of the electromechanical domain includes intelligent computing applications, maps, and data; the hardware module support program layer of the electromechanical domain includes deep learning or visual recognition computing components, and digital map computing components; the operating system layer of the electromechanical domain is a LINUX operating system; the application layer of the flight control domain includes flight management applications; the hardware module support program layer of the flight control domain includes flight management computing components and navigation computing components; the operating system layer of the flight control domain is a safety-critical operating system; the application layer of the task domain includes task management applications; the hardware module support program layer of the task domain includes task management computing components; and the operating system layer of the task domain is a task operating system; Obtaining the operating system version of each virtual machine respectively; Determining whether the operating system versions are consistent; If not, the versions of the operating systems are unified.
2. A drone system resource virtualization device, characterized in that: include: The file acquisition module is used to obtain the preset configuration files corresponding to each functional domain in the UAV system; A resource retrieval module, used to utilize Hypervisor virtualization technology to retrieve target resource sets corresponding to each of the preset configuration files; A virtual machine construction module, used to construct virtual machines corresponding to each of the functional domains using each of the target resource sets; A software hierarchical module is used to perform software isolation operations on each of the virtual machines using a standard interface, so as to isolate the software into an application layer, an operating system layer and a hardware module support program layer composed of various functional components through various standard interfaces, so that the applications in each of the functional domains can be operated based on the corresponding virtual machines, wherein the application layer of the electromechanical domain includes intelligent computing applications, maps and data; the hardware module support program layer of the electromechanical domain includes deep learning or visual recognition computing components and digital map computing components; the operating system layer of the electromechanical domain is a LINUX operating system; the application layer of the flight control domain includes flight management applications; the hardware module support program layer of the flight control domain includes flight management computing components and navigation computing components; the operating system layer of the flight control domain is a safety-critical operating system; the application layer of the task domain includes task management applications; the hardware module support program layer of the task domain includes task management computing components; and the operating system layer of the task domain is a task operating system; A system version acquisition module, used to acquire the operating system version of each virtual machine after constructing the virtual machines corresponding to each functional domain using each target resource set; A judgment module, used to judge whether the versions of the operating systems are consistent; The version processing module is used to perform version unification processing on the operating systems when it is determined that the versions of the operating systems are inconsistent.
3. A drone system resource virtualization device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the drone system resource virtualization method as claimed in claim 1 when executing the computer program.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the method for virtualizing resources of a drone system as claimed in claim 1 are implemented.
