Vehicle control method and device
By using container technology in vehicles, dynamically allocated operating system resources, the problems that the resources cannot be fully utilized in existing technology have been solved, and the stability of the vehicle performance is improved.
Patent Information
- Application Number
- CN202010618843.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2040-06-30
AI Technical Summary
The resource allocation method of the existing vehicle operating system is relatively simple, which leads to the inability to fully utilize the system resources and the problems of oversupply or tight resources.
Through the first operating system, the load information of the second operating system in each container is determined, and the system resources in the vehicle are dynamically distributed according to the load information to use the container technology to achieve the full use of system resources.
The dynamic allocation of system resources is realized, the problem of excess resources or tension is avoided, and the stability of vehicle performance is improved.
Smart Images

Figure CN111752683B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle technology, and in particular to a vehicle control method and device. Background Art
[0002] The vehicle includes multiple operating systems, such as an infotainment operating system, a driving interaction operating system, a communication network operating system, etc. Among them, the infotainment operating system is an operating system set up for the in-vehicle infotainment system (In-Vehicle Infotainment, referred to as IVI), the driving interaction operating system is an operating system set up for the assisted driving system, the assisted driving system may include an instrument panel, a head-up display system (Head Up Display, referred to as HUD), a camera, etc., and the communication network operating system is an operating system set up for the communication system.
[0003] Currently, vehicles allocate fixed system resources to each operating system, such as a fixed central processing unit and memory, etc. The allocation method of system resources is relatively simple, which is not conducive to full utilization of system resources. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a vehicle control method and device.
[0005] According to a first aspect of an embodiment of the present disclosure, a vehicle control method is provided, which is applied to a vehicle, wherein the vehicle includes a first operating system and a plurality of second operating systems set for different mechanisms of the vehicle, and when the vehicle is started, the plurality of second operating systems are deployed in different containers, and the method includes:
[0006] Determine load information of the second operating system in each container by using the first operating system;
[0007] The first operating system allocates system resources in the vehicle to each container where the second operating system is located according to the load information of each second operating system.
[0008] Optionally, allocating system resources in the vehicle to the container where each second operating system is located according to the load information of each second operating system by the first operating system includes:
[0009] For each second operating system, determining, through the first operating system, a relationship between the load information of the second operating system and the total load information of all second operating systems;
[0010] Determine, according to the system resources allocated by the vehicle to the first operating system and the relationship, the system resources to be allocated to the container where the second operating system is located;
[0011] Allocate the determined system resources to the container where the second operating system is located.
[0012] Optionally, the method further comprises:
[0013] When the vehicle is started, starting the container manager through the first operating system;
[0014] Creating and starting multiple containers through the container manager;
[0015] The plurality of second operating systems are deployed in different containers through the container manager.
[0016] Optionally, the method further comprises:
[0017] receiving a vehicle control instruction through the first operating system, wherein the vehicle mechanism control instruction indicates a target mechanism to be controlled;
[0018] The target second operating system for controlling the target mechanism is started by using the container manager through the first operating system, so that the target mechanism is controlled by the started target second operating system.
[0019] Optionally, the method further comprises:
[0020] In response to the container manager determining that a container exits due to an operation abnormality, the container manager records the cause of the container operation abnormality and restarts the container.
[0021] Optionally, the vehicle further includes a real-time operating system; and the method further includes:
[0022] When the vehicle is started, starting the virtual machine manager;
[0023] Creating two virtual machines through the virtual machine manager;
[0024] The real-time operating system and the first operating system are deployed in different virtual machines through the virtual machine manager, and the multiple second operating systems are deployed in the virtual machine where the first operating system is located.
[0025] Optionally, the method further comprises:
[0026] Starting the real-time operating system through the virtual machine manager;
[0027] The first operating system is started through the real-time operating system.
[0028] According to a second aspect of an embodiment of the present disclosure, a vehicle control device is provided, which is applied to a vehicle, wherein the vehicle includes a first operating system and a plurality of second operating systems arranged for different mechanisms of the vehicle, wherein the plurality of second operating systems are deployed in different containers when the vehicle is started, and the device includes:
[0029] a determination module, configured to determine load information of the second operating system in each container through the first operating system;
[0030] The allocation module is configured to allocate system resources in the vehicle to the container where each second operating system is located according to the load information of each second operating system through the first operating system.
[0031] Optionally, the allocation module includes:
[0032] A first determining submodule is configured to determine, for each second operating system, through the first operating system, a relationship between the load information of the second operating system and the total load information of all the second operating systems;
[0033] A second determining submodule is configured to determine the system resources to be allocated to the container where the second operating system is located according to the system resources allocated to the first operating system by the vehicle and the relationship;
[0034] The allocation submodule is configured to allocate the determined system resources to the container where the second operating system is located.
[0035] Optionally, the device further comprises:
[0036] A first startup module, configured to start a container manager through the first operating system when the vehicle is started;
[0037] A first creation module is configured to create and start multiple containers through the container manager;
[0038] The first deployment module is configured to deploy the plurality of second operating systems in different containers through the container manager.
[0039] Optionally, the device further comprises:
[0040] a receiving module, configured to receive a vehicle control instruction through the first operating system, wherein the vehicle mechanism control instruction indicates a target mechanism to be controlled;
[0041] The second startup module is configured to start a target second operating system for controlling the target mechanism by using the container manager through the first operating system, so as to control the target mechanism through the started target second operating system.
[0042] Optionally, the device further comprises:
[0043] a recording module configured to record, through the container manager, a reason for the abnormal operation of the container in response to the container manager determining that a container exits due to abnormal operation;
[0044] The startup module is configured to restart the container through the container manager.
[0045] Optionally, the vehicle further comprises a real-time operating system; and the device further comprises:
[0046] A third startup module is configured to start the virtual machine manager when the vehicle is started;
[0047] A second creation module is configured as a module configured to create two virtual machines through the virtual machine manager;
[0048] The second deployment module is configured to deploy the real-time operating system and the first operating system in different virtual machines through the virtual machine manager, and deploy the multiple second operating systems in the virtual machine where the first operating system is located.
[0049] Optionally, the device further comprises:
[0050] a fourth startup module, configured to start the real-time operating system through the virtual machine manager;
[0051] A fifth startup module is configured to start the first operating system through the real-time operating system.
[0052] According to a third aspect of an embodiment of the present disclosure, there is provided a non-temporary computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0053] According to a fourth aspect of an embodiment of the present disclosure, a vehicle is provided, comprising:
[0054] A memory for storing machine executable instructions corresponding to vehicle control;
[0055] A processor is configured to read the machine executable instructions on the memory and execute the machine executable instructions to implement the following operations:
[0056] Determine load information of the second operating system in each container by using the first operating system;
[0057] The first operating system allocates system resources in the vehicle to each container where the second operating system is located according to the load information of each second operating system.
[0058] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0059] In the disclosed embodiment, the vehicle includes a first operating system and a plurality of second operating systems set for different mechanisms of the vehicle. When the vehicle is started, the plurality of second operating systems are deployed in different containers. The load information of the second operating systems in each container is determined by the first operating system. According to the load information of each second operating system, the system resources in the vehicle are allocated to the container where each second operating system is located. By adopting the container technology, the disclosed embodiment enables the vehicle to dynamically allocate system resources to the second operating system, which is conducive to the full utilization of system resources.
[0060] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 is a flow chart of a vehicle control method according to an exemplary embodiment;
[0062] Figure 2 is a schematic structural diagram of a vehicle according to an exemplary embodiment;
[0063] Figure 3 is a block diagram of a vehicle control device according to an exemplary embodiment;
[0064] Figure 4 It is a schematic diagram of the structure of another vehicle according to an exemplary embodiment. DETAILED DESCRIPTION
[0065] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0066] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0067] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0068] Figure 1 is a flow chart of a vehicle control method according to an exemplary embodiment. Figure 1 The method shown is applied to a vehicle, the vehicle includes a first operating system and a plurality of second operating systems set for different mechanisms of the vehicle, and the plurality of second operating systems are deployed in different containers when the vehicle is started, and the method includes:
[0069] In step 101, load information of a second operating system in each container is determined by a first operating system.
[0070] In this embodiment, the first operating system may be a Linux operating system or other applicable operating systems. There are multiple second operating systems, such as an infotainment operating system, a driving interaction operating system, a communication network operating system, etc., wherein the driving interaction operating system may be a driving interaction operating system set for a display screen or a driving interaction operating system set for a camera.
[0071] The load information indicates the task size of the second operating system and determines the system resources required by the second operating system. The load information of the second operating system can be determined based on the code complexity and / or the external device information required to run the system.
[0072] In one embodiment, when the vehicle is started, the container manager is started through the first operating system, multiple containers are created and started through the container manager, and multiple second operating systems are deployed in different containers. The number of containers created by the container manager can be determined based on the number of second operating systems. For example, the number of second operating systems is equal to the number of created containers.
[0073] The vehicle is provided with a container manager program, and the container manager is started by the container manager program. The container manager program can be placed in the first operating system.
[0074] In one embodiment, the vehicle may further include a real-time operating system, which is used by the vehicle to quickly perform data calculations and processing and output data in a short time.
[0075] The vehicle is provided with a virtual machine manager program, and the virtual machine manager is started through the virtual machine manager program. The vehicle can load and run the virtual machine manager program after the hardware is powered on, thereby starting the virtual machine manager.
[0076] During use, the vehicle starts the virtual machine manager when it starts up. The vehicle creates two virtual machines through the virtual machine manager, and deploys the real-time operating system and the first operating system in different virtual machines. The vehicle deploys multiple second operating systems in the virtual machine where the first operating system is located through the virtual machine manager.
[0077] The real-time operating system and the first operating system may be started in the following manner: the vehicle uses a virtual machine manager to start the real-time operating system, and uses the real-time operating system to start the first operating system.
[0078] In step 102, the first operating system allocates system resources in the vehicle to the container where each second operating system is located according to the load information of each second operating system.
[0079] System resources may include hardware resources, and hardware resources may include a central processing unit (CPU), memory, and the like.
[0080] In one embodiment, first, for each second operating system, the relationship between the load information of the second operating system and the total load information of all second operating systems is determined through the first operating system; secondly, based on the system resources allocated by the vehicle to the first operating system and the determined relationship, the system resources to be allocated to the container where the operating system is located are determined; thirdly, the determined system resources are allocated to the container where the operating system is located.
[0081] The relationship between the load information of a second operating system and the total load information of all second operating systems can be the ratio of the load of a second operating system to the total load of all second operating systems. The system resources allocated to the first operating system by the vehicle are multiplied by the ratio to obtain the system resources to be allocated to the container where the second operating system is located.
[0082] Based on the characteristics of container technology, the embodiment of the present disclosure adopts container technology to enable the first operating system to dynamically allocate system resources to the second operating system, which is conducive to full utilization of system resources and avoids the problems existing in the background technology such as excess system resources due to a small operating system load and shortage of system resources due to a large operating system load, thereby ensuring the stable performance of the vehicle.
[0083] In one embodiment, during the use of the vehicle, a vehicle control instruction is received through a first operating system, the vehicle mechanism control instruction indicates a target mechanism to be controlled, and a target second operating system for controlling the target mechanism is started through the first operating system using a container manager, and the target mechanism is controlled through the started target second operating system.
[0084] The vehicle sends instructions to the container manager through the first operating system, triggering the container manager to start the target second operating system, and the vehicle controls the target mechanism through the started target second operating system.
[0085] In one embodiment, during use of the vehicle, in response to the container manager determining that a container exits due to abnormal operation, the container manager records the reason for the abnormal operation of the container and restarts the container.
[0086] There are many reasons why containers may fail, for example, the critical program running in the container crashes, the remaining resources are insufficient to run the critical program, etc. The container manager can record the reasons for the container failure and generate a log for management personnel to use during maintenance and debugging.
[0087] After determining that the container has exited due to abnormal operation, the container is restarted so that the vehicle can continue to provide corresponding functions, ensuring the stability of the vehicle's performance.
[0088] In this embodiment, the container manager has the functions of detecting abnormal operation of the container, determining the cause of the abnormal operation of the container, recording the cause of the abnormal operation of the container, and restarting the container.
[0089] Figure 2 is a schematic diagram of a vehicle structure according to an exemplary embodiment. Figure 2 The vehicle includes a real-time operating system and a Linux operating system. The vehicle also includes an infotainment operating system, a first driving interaction operating system set for the instrument panel and HUD, a second driving interaction operating system set for the camera, and a communication network operating system (hereinafter referred to as four operating systems).
[0090] When the vehicle starts, the virtual machine manager is started, and two virtual machines are created through the virtual machine manager, the real-time operating system and the Linux operating system are deployed in different virtual machines, and four operating systems are deployed in the virtual machine where the Linux operating system is located; the real-time operating system is started through the virtual machine manager, and the Linux operating system is started through the real-time operating system; after the Linux operating system is started, the container manager is started through the Linux operating system, four containers are created and started through the container manager, and the four operating systems are deployed in different containers.
[0091] The Linux operating system determines the load information of each of the four operating systems during use, and dynamically allocates system resources to the containers where each operating system is located based on the load information of each operating system. Specifically, more system resources are allocated to the container where the operating system with a large load is located, and fewer system resources are allocated to the container where the operating system with a small load is located, thereby achieving full utilization of system resources.
[0092] The vehicle receives a vehicle control instruction through the Linux operating system. The vehicle mechanism control instruction indicates a target mechanism to be controlled. The Linux operating system uses a container manager to start a target second operating system for controlling the target mechanism, and the target mechanism is controlled by the started target second operating system.
[0093] For example, after the person in the car inputs the command to turn on the camera, the corresponding command is sent to the container manager through the Linux operating system. The container manager starts the second driving interaction operating system in container 3 and controls the camera to turn on through the started second driving interaction operating system.
[0094] In the disclosed embodiment, the vehicle includes a first operating system and a plurality of second operating systems set for different mechanisms of the vehicle. When the vehicle is started, the plurality of second operating systems are deployed in different containers. The load information of the second operating systems in each container is determined by the first operating system. According to the load information of each second operating system, the system resources in the vehicle are allocated to the container where each second operating system is located. By adopting the container technology, the disclosed embodiment enables the vehicle to dynamically allocate system resources to the second operating system, which is conducive to the full utilization of system resources.
[0095] The disclosed embodiment adopts virtualization technology, which can save vehicle hardware resources and reduce vehicle production costs.
[0096] For the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.
[0097] Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0098] Corresponding to the aforementioned application function implementation method embodiment, the present disclosure also provides an application function implementation device and a corresponding terminal embodiment.
[0099] Figure 3The present invention is a block diagram of a vehicle control device according to an exemplary embodiment. The vehicle control device block diagram is applied to a vehicle. The vehicle includes a first operating system and a plurality of second operating systems for controlling different mechanisms of the vehicle. When the vehicle is started, the plurality of second operating systems are deployed in different containers. The device includes: a determination module 21 and an allocation module 22; wherein,
[0100] The determination module 21 is configured to determine the load information of the second operating system in each container through the first operating system;
[0101] The allocation module 22 is configured to allocate system resources in the vehicle to the container where each second operating system is located according to the load information of each second operating system through the first operating system.
[0102] In an optional embodiment, Figure 3 Based on the vehicle control device shown, the allocation module 22 may include: a first determination submodule, a second determination submodule and an allocation submodule; wherein,
[0103] The first determining submodule is configured to determine, for each second operating system, through the first operating system, a relationship between the load information of the second operating system and the total load information of all the second operating systems;
[0104] The second determining submodule is configured to determine the system resources to be allocated to the container where the second operating system is located according to the system resources allocated by the vehicle to the first operating system and the relationship;
[0105] The allocation submodule is configured to allocate the determined system resources to the container where the second operating system is located.
[0106] In an optional embodiment, Figure 3 Based on the vehicle control device shown, the device may further include: a first starting module, a first creating module and a first deploying module; wherein,
[0107] The first startup module is configured to start the container manager through the first operating system when the vehicle is started;
[0108] The first creation module is configured to create and start multiple containers through the container manager;
[0109] The first deployment module is configured to deploy the multiple second operating systems in different containers through the container manager.
[0110] In an optional embodiment, the device may further include: a receiving module and a second starting module; wherein,
[0111] The receiving module is configured to receive a vehicle control instruction through the first operating system, wherein the vehicle mechanism control instruction indicates a target mechanism to be controlled;
[0112] The second startup module is configured to start a target second operating system for controlling the target mechanism by using the container manager through the first operating system, so as to control the target mechanism through the started target second operating system.
[0113] In an optional embodiment, the device may further include: a recording module and a starting module; wherein,
[0114] The recording module is configured to record the reason for the abnormal operation of the container through the container manager in response to the container manager determining that a container exits due to abnormal operation;
[0115] The startup module is configured to restart the container through the container manager.
[0116] In an optional embodiment, Figure 3 Based on the vehicle control device shown, the vehicle also includes a real-time operating system; the device may also include: a third startup module, a second creation module and a second deployment module; wherein,
[0117] The third startup module is configured to start the virtual machine manager when the vehicle is started;
[0118] The second creation module is configured as a module configured to create two virtual machines through the virtual machine manager;
[0119] The second deployment module is configured to deploy the real-time operating system and the first operating system in different virtual machines through the virtual machine manager, and to deploy the multiple second operating systems in the virtual machine where the first operating system is located.
[0120] In an optional embodiment, the device may further include: a fourth starting module and a fifth starting module; wherein,
[0121] The fourth startup module is configured to start the real-time operating system through the virtual machine manager;
[0122] The fifth startup module is configured to start the first operating system through the real-time operating system.
[0123] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art may understand and implement it without creative work.
[0124] The disclosed embodiment also provides a vehicle. Figure 4 is a schematic structural diagram of another vehicle according to an exemplary embodiment. Figure 4 The vehicle shown includes: a first operating system, a plurality of second operating systems arranged for different mechanisms of the vehicle, an internal bus 310, and a memory 320, a processor 330, and an external interface 340 connected via the internal bus 310;
[0125] Wherein, the external interface 340 is used to obtain data;
[0126] Memory 320, for storing machine-readable instructions corresponding to vehicle control;
[0127] The processor 330 is configured to read the machine-readable instructions on the memory 320 and execute the machine-executable instructions to implement the following operations:
[0128] Determine load information of the second operating system in each container by using the first operating system;
[0129] The first operating system allocates system resources in the vehicle to each container where the second operating system is located according to the load information of each second operating system.
[0130] In the disclosed embodiments, the computer-readable storage medium may be in various forms. For example, in different examples, the machine-readable storage medium may be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as a hard disk drive), solid-state drive, any type of storage disk (such as a CD, DVD, etc.), or similar storage medium, or a combination thereof. In particular, the computer-readable medium may also be paper or other suitable medium capable of printing programs. Using these media, these programs may be acquired electrically (e.g., optically scanned), compiled, interpreted, and processed in a suitable manner, and then stored in a computer medium.
[0131] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0132] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A vehicle control method, characterized in that: Applied to a vehicle, the vehicle includes a first operating system and a plurality of second operating systems set for different mechanisms of the vehicle, the plurality of second operating systems are deployed in a virtual machine where the first operating system is located, when the vehicle is started, a container manager is started by the first operating system, a plurality of containers are created and started by the container manager, and the plurality of second operating systems are deployed in different containers by the container manager, the method comprising: Determine load information of the second operating system in each container by using the first operating system; The first operating system allocates system resources in the vehicle to each container where the second operating system is located according to the load information of each second operating system.
2. The method according to claim 1, characterized in that The allocating, by the first operating system according to the load information of each second operating system, system resources in the vehicle to each container where the second operating system is located, includes: For each second operating system, determining, through the first operating system, a relationship between the load information of the second operating system and the total load information of all second operating systems; Determine, according to the system resources allocated by the vehicle to the first operating system and the relationship, the system resources to be allocated to the container where the second operating system is located; Allocate the determined system resources to the container where the second operating system is located.
3. The method according to claim 1, characterized in that The method further comprises: receiving a vehicle control instruction through the first operating system, wherein the vehicle mechanism control instruction indicates a target mechanism to be controlled; The target second operating system for controlling the target mechanism is started by using the container manager through the first operating system, so that the target mechanism is controlled by the started target second operating system.
4. The method according to claim 3, characterized in that: The method further comprises: In response to the container manager determining that a container exits due to an operation abnormality, the container manager records the cause of the container operation abnormality and restarts the container.
5. The method according to claim 1, characterized in that The vehicle also includes a real-time operating system; the method also includes: When the vehicle is started, starting the virtual machine manager; Creating two virtual machines through the virtual machine manager; The real-time operating system and the first operating system are deployed in different virtual machines through the virtual machine manager, and the multiple second operating systems are deployed in the virtual machine where the first operating system is located.
6. The method according to claim 5, characterized in that The method further comprises: Starting the real-time operating system through the virtual machine manager; The first operating system is started through the real-time operating system.
7. A vehicle control device, characterized in that: Applied to a vehicle, the vehicle includes a first operating system and a plurality of second operating systems set for different mechanisms of the vehicle, the plurality of second operating systems are deployed in a virtual machine where the first operating system is located, when the vehicle is started, a container manager is started by the first operating system, a plurality of containers are created and started by the container manager, and the plurality of second operating systems are deployed in different containers by the container manager, the device includes: a determination module, configured to determine load information of the second operating system in each container through the first operating system; The allocation module is configured to allocate system resources in the vehicle to the container where each second operating system is located according to the load information of each second operating system through the first operating system.
8. The device according to claim 7, characterized in that The allocation module comprises: A first determining submodule is configured to determine, for each second operating system, through the first operating system, a relationship between the load information of the second operating system and the total load information of all the second operating systems; A second determining submodule is configured to determine the system resources to be allocated to the container where the second operating system is located according to the system resources allocated to the first operating system by the vehicle and the relationship; The allocation submodule is configured to allocate the determined system resources to the container where the second operating system is located.
9. The device according to claim 7, characterized in that The device also includes: a receiving module, configured to receive a vehicle control instruction through the first operating system, wherein the vehicle mechanism control instruction indicates a target mechanism to be controlled; The second startup module is configured to start a target second operating system for controlling the target mechanism by using the container manager through the first operating system, so as to control the target mechanism through the started target second operating system.
10. The device according to claim 9, characterized in that The device also includes: a recording module configured to record, through the container manager, a reason for the abnormal operation of the container in response to the container manager determining that a container exits due to abnormal operation; The startup module is configured to restart the container through the container manager.
11. The device according to claim 7, characterized in that The vehicle further includes a real-time operating system; the device further includes: A third startup module is configured to start the virtual machine manager when the vehicle is started; A second creation module is configured as a module configured to create two virtual machines through the virtual machine manager; The second deployment module is configured to deploy the real-time operating system and the first operating system in different virtual machines through the virtual machine manager, and deploy the multiple second operating systems in the virtual machine where the first operating system is located.
12. The device according to claim 11, characterized in that The device also includes: a fourth startup module, configured to start the real-time operating system through the virtual machine manager; A fifth startup module is configured to start the first operating system through the real-time operating system.
13. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.
14. A vehicle, characterized in that: The vehicle includes a first operating system and a plurality of second operating systems set for different mechanisms of the vehicle, the plurality of second operating systems are deployed in a virtual machine where the first operating system is located, when the vehicle is started, a container manager is started by the first operating system, a plurality of containers are created and started by the container manager, and the plurality of second operating systems are deployed in different containers by the container manager, including: A memory for storing machine executable instructions corresponding to vehicle control; A processor is configured to read the machine executable instructions on the memory and execute the machine executable instructions to implement the following operations: Determine load information of the second operating system in each container by using the first operating system; The first operating system allocates system resources in the vehicle to each container where the second operating system is located according to the load information of each second operating system.
Citation Information
Patent Citations
Control method and device of vehicle-mounted system
CN106341269A
Managing system of operating system for vehicle, managing method and error detecting method of the same
KR101027415B1
Autonomous vehicle fleet model training and testing
US10459444B1
Managing allocation of hardware resources in a virtualized environment
US20140245297A1