Method, apparatus and vehicle for operating a driver monitoring system

By virtualizing the DMS in the gateway device, using the allocation of computing resources between privileged virtual machines and user virtual machines, and combining it with a streamlined Linux operating system, the problem of high hardware consumption of the DMS is solved, and efficient processing of driver action information and safety alerts are achieved.

CN115658233BActive Publication Date: 2026-11-24GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211352744.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2026-11-24
Estimated Expiration
2042-10-31

AI Technical Summary

Technical Problem

Existing driver monitoring systems (DMS) involve a large number of algorithms and neural network models, which increases the hardware consumption of the system and affects the computational efficiency.

Method used

By virtualizing DMS into the gateway device, using a privileged virtual machine and user virtual machine computing resource allocation method, and leveraging a streamlined Linux operating system, hardware consumption is reduced and processing efficiency is improved.

Benefits of technology

It effectively processes driver action information without affecting system hardware consumption, promptly alerts the driver, avoids dangerous accidents, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115658233B_ABST
    Figure CN115658233B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, and vehicle for operating a driver monitoring system. The method includes: running a privileged virtual machine and a user virtual machine based on the allocation of computing resources. The privileged virtual machine is used to collect the driver's action information in the vehicle. The computing resources include the core of the gateway's processor and the gateway's RAM; running the driver monitoring system on the user virtual machine; and sending the driver's action information to the user virtual machine through the privileged virtual machine, so that the driver monitoring system can process the driver's action information. This method integrates the driver monitoring system into the gateway device through virtualization, reducing the hardware consumption of the gateway and improving the processing efficiency of the driver monitoring system without affecting its normal function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle virtualization, and more specifically, to a method, apparatus, and vehicle for operating a driver monitoring system in the field of vehicle virtualization. Background Technology

[0002] Currently in the automotive industry, with the development of internet technology and science, the safety of users while driving has been significantly improved.

[0003] For example, while a driver is driving a vehicle, the driver's actions can be monitored by the driver monitoring system (DMS) installed in the vehicle. The driver's actions can be further analyzed (e.g., whether the driver is driving while fatigued, making a phone call, or eating, which may affect driving), to determine whether there are any safety hazards while the driver is driving the vehicle.

[0004] In one possible scenario, the DMS (Driver Management System) processes and judges the driver's actions based on deep neural network models and a large number of artificial intelligence (AI) algorithms to process and compare the driver's actions captured by the cameras in the vehicle to obtain the judgment result.

[0005] During the above process, the DMS system involves a large number of algorithms and neural network models, which increases the hardware consumption of the system and affects the system's computing efficiency. Summary of the Invention

[0006] This application provides a method, apparatus, and vehicle for operating a driver monitoring system. The method integrates the driver monitoring system (DMS) into a gateway device through virtualization, thereby reducing the hardware consumption in the gateway and improving the processing efficiency of the DMS without affecting its normal function.

[0007] In a first aspect, a method for operating a driver monitoring system is provided. This method is executed by a gateway running a virtualization platform. The method includes: running a privileged virtual machine and a user virtual machine based on the allocation of computing resources. The privileged virtual machine is used to collect the driver's action information in the vehicle. The computing resources include the core of the gateway's processor and the gateway's RAM; running the driver monitoring system on the user virtual machine; and sending the driver's action information to the user virtual machine through the privileged virtual machine, so that the driver monitoring system can process the driver's action information.

[0008] The above technical solution proposes a method for virtualizing the gateway or gateway device to achieve the virtualization of the Driver Monitoring System (DMS). First, based on the computing resources allocated to the privileged virtual machine and the user virtual machine respectively, the privileged virtual machine and the user virtual machine are run. This process enables the rational allocation of gateway resources and ensures the normal operation of the privileged virtual machine and the user virtual machine. Next, the driver monitoring system is run in the user virtual machine, achieving the effect of DMS virtualization and avoiding system hardware consumption. Finally, the privileged virtual machine can send driver action information to the user virtual machine, allowing the driver monitoring system to process this information. Combined with the above DMS virtualization process, this process achieves driver action information processing without affecting system hardware consumption.

[0009] In conjunction with the first aspect, in some possible implementations, before running the privileged virtual machine and the user virtual machine based on the allocation results of computing resources, the method further includes: dividing the core of the gateway's processor into a first core and a second core according to a preset allocation rule, dividing the gateway's running memory into a first running memory and a second running memory, wherein the value of the first core is greater than the value of the second core, and the value of the first running memory is greater than the value of the second running memory; allocating the first core and the first running memory to the privileged virtual machine, and allocating the second core and the second running memory to the user virtual machine.

[0010] In the above technical solution, the gateway's computing resources include the cores of the gateway's processor and the gateway's RAM. By dividing the gateway device's computing resources, a first core and a second core, as well as a first RAM and a second RAM, can be obtained. The value of the first core is greater than the value of the second core, and the value of the first RAM is greater than the value of the second RAM. The first core and the first RAM represent the computing resources corresponding to privileged virtual machines, while the second core and the second RAM represent the computing resources corresponding to user virtual machines. During the allocation process, the value of the second core corresponding to the user virtual machine is controlled to be less than the value of the first core, and the value of the second RAM is less than the value of the first RAM. This ensures that the user virtual machine can run without affecting the processing efficiency of the privileged virtual machine, achieving the goal of rationally allocating the gateway device's computing resources.

[0011] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the driver monitoring system running on the user virtual machine includes: running the driver monitoring system on a first operating system in the user virtual machine, wherein the value of the computing resources required to run the first operating system is less than a preset threshold.

[0012] In one possible implementation, the first operating system is a simplified Linux operating system.

[0013] In the above technical solutions, compared with the traditional Linux system, the streamlined Linux system is a lightweight Linux system that can reduce the occupation of read-only memory (ROM) and random access memory (RAM), and has the characteristics of being lightweight and fast. Thus, it not only avoids the problem of resource occupation, but also realizes the speed of DMS processing driver action information.

[0014] In combination with the first aspect and the above implementation methods, in some possible implementation methods, sending the driver's action information to the user virtual machine through the privileged virtual machine includes: receiving a first request sent by the user virtual machine through the privileged virtual machine, the first request being used to request the acquisition of the driver's action information; and in response to the first request, sending the driver's action information to the user virtual machine through the privileged virtual machine.

[0015] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, receiving the first request sent by the user virtual machine through the privileged virtual machine includes: receiving the first request sent by the front-end driver module of the user virtual machine through the back-end driver module of the privileged virtual machine, the first request including the identifier of the user virtual machine; and, in response to the first request, sending the driver's action information to the user virtual machine through the privileged virtual machine includes: in response to the first request, determining the external device driver module corresponding to the user virtual machine in the privileged virtual machine according to the identifier of the user virtual machine; obtaining the driver's action information collected by the external device through the back-end driver module and the external device driver module; and sending the driver's action information to the user virtual machine through the back-end driver module.

[0016] In combination with the first aspect and the above implementation methods, in some possible implementation methods, after sending the driver's action information to the user virtual machine through the privileged virtual machine, the method further includes: processing the driver's action information through the driver monitoring system to obtain a processing result, the processing result being used to indicate whether the driver's action information has any security risks; and sending the processing result to the privileged virtual machine through the user virtual machine.

[0017] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the driver's action information includes the driver's image. The driver monitoring system processes the driver's action information to obtain a processing result, including: comparing the driver's image with images in a preset image library through the driver monitoring system to obtain the processing result of the driver's image; and sending the processing result to the privileged virtual machine through the user virtual machine, including: sending the processing result to the privileged virtual machine through the front-end driver module.

[0018] In combination with the first aspect and the above implementation methods, in some possible implementation methods, when the processing result indicates that there is a safety hazard in the driver's action information, the method further includes: generating a notification instruction corresponding to the processing result through the privileged virtual machine; and sending the notification instruction to the alarm device in the vehicle through the privileged virtual machine.

[0019] In the above technical solution, after the DMS processes the driver's action information, if the processing result indicates that the driver's current action information may cause danger, a notification command corresponding to the processing result can be generated through a privileged virtual machine to remind the driver. This process effectively avoids dangerous accidents, ensures the safety of passengers in the vehicle, and improves the user experience.

[0020] In summary, this application proposes a scheme for virtualizing a gateway or gateway device to achieve the virtualization of the Driver Monitoring System (DMS). First, based on the computing resources allocated to the privileged virtual machine and the user virtual machine respectively, the privileged virtual machine and the user virtual machine are run. This process enables the rational allocation of gateway resources and ensures the normal operation of the privileged virtual machine and the user virtual machine. Next, the driver monitoring system is run in the user virtual machine, achieving the effect of DMS virtualization and avoiding system hardware consumption. Finally, the privileged virtual machine can send driver action information to the user virtual machine, allowing the driver monitoring system to process the driver action information. Combined with the above-described DMS virtualization process, this process achieves the processing of driver action information without affecting system hardware consumption.

[0021] The gateway's computing resources include the gateway's processor cores and its RAM. By allocating these resources, we obtain a first core and a second core, as well as a first RAM and a second RAM. The first core's value is greater than the second core's value, and the first RAM's value is greater than the second RAM's value. The first core and first RAM represent the computing resources for privileged virtual machines, while the second core and second RAM represent the computing resources for user virtual machines. During allocation, the second core's value for user virtual machines is controlled to be less than the first core's value, and the second RAM's value is less than the first RAM's value. This ensures that user virtual machines can run without affecting the processing efficiency of privileged virtual machines, achieving the goal of rationally allocating the gateway device's computing resources.

[0022] When the primary operating system is a streamlined Linux operating system, compared to the traditional Linux system, the streamlined Linux system is a lightweight Linux system that can reduce the occupation of read-only memory (ROM) and random access memory (RAM), and has the characteristics of being lightweight and fast. This not only avoids the problem of resource occupation, but also improves the speed of DMS processing driver action information.

[0023] After the Driver Management System (DMS) processes the driver's action information, if the processing result indicates that the driver's current actions may pose a danger, it can also generate a notification command corresponding to the processing result through a privileged virtual machine to remind the driver. This process effectively prevents dangerous accidents, ensures the safety of passengers in the vehicle, and improves the user experience.

[0024] Secondly, an apparatus for running a driver monitoring system is provided. The apparatus includes: an operation module for running a privileged virtual machine and a user virtual machine based on the allocation result of computing resources, wherein the privileged virtual machine is used to collect the driver's action information in the vehicle, and the computing resources include the core of the gateway's processor and the gateway's running memory; and a transmission module for sending the driver's status information to the user virtual machine through the privileged virtual machine, so that the driver monitoring system can process the driver's action information.

[0025] In conjunction with the second aspect, in some possible implementations, before running the privileged virtual machine and the user virtual machine based on the allocation results of computing resources, the device further includes: an allocation module, configured to divide the core of the gateway's processor into a first core and a second core, and divide the gateway's running memory into a first running memory and a second running memory according to a preset allocation rule, wherein the value of the first core is greater than the value of the second core, and the value of the first running memory is greater than the value of the second running memory; allocate the first core and the first running memory to the privileged virtual machine, and allocate the second core and the second running memory to the user virtual machine.

[0026] In combination with the second aspect and the above implementation methods, in some possible implementation methods, the running module is specifically used to: run the driver monitoring system in the user virtual machine based on the first operating system, wherein the value of the computing resources required to run the first operating system is less than a preset threshold.

[0027] In one possible implementation, the first operating system is a simplified Linux operating system.

[0028] In combination with the second aspect and the above implementation methods, in some possible implementation methods, the sending module is specifically used to: receive a first request sent by the user virtual machine through the privileged virtual machine, the first request being used to request the driver's action information; and in response to the first request, send the driver's action information to the user virtual machine through the privileged virtual machine.

[0029] In conjunction with the second aspect and the above implementation methods, in some possible implementation methods, the sending module is further configured to: receive a first request sent by the front-end driver module of the user virtual machine through the back-end driver module of the privileged virtual machine, the first request including the identifier of the user virtual machine; in response to the first request, determine the external device driver module corresponding to the user virtual machine in the privileged virtual machine according to the identifier of the user virtual machine; obtain the driver's action information collected by the external device through the back-end driver module and the external device driver module; and send the driver's action information to the user virtual machine through the back-end driver module.

[0030] In combination with the second aspect and the above implementation methods, in some possible implementation methods, after the driver's action information is sent to the user virtual machine through the privileged virtual machine, the device further includes: a first processing module, used to process the driver's action information through the driver monitoring system to obtain a processing result, the processing result being used to indicate whether the driver's action information has any safety risks; and to send the processing result to the privileged virtual machine through the user virtual machine.

[0031] In combination with the second aspect and the above implementation methods, in some possible implementation methods, the driver's action information includes the driver's image. The first processing module is specifically used to: compare the driver's image with images in a preset image library through the driver monitoring system to obtain the processing result of the driver's image. The processing result is used to indicate whether there is a safety hazard in the driver's action information; and send the processing result to the privileged virtual machine through the front-end driver module.

[0032] In conjunction with the second aspect and the above implementation methods, in some possible implementation methods, when the processing result indicates that there is a safety hazard in the driver's action information, the device further includes: a second processing module, used to generate a notification instruction corresponding to the processing result through the privileged virtual machine; and to send the notification instruction to the alarm device in the vehicle through the privileged virtual machine.

[0033] Thirdly, a vehicle is provided, the vehicle including a gateway for performing the methods of the first aspect or any possible implementation thereof, the gateway including a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, causing the gateway to perform the methods of the first aspect or any possible implementation thereof.

[0034] Fourthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0035] Fifthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof. Attached Figure Description

[0036] Figure 1 This is a schematic flowchart illustrating a method for operating a driver monitoring system according to an embodiment of this application;

[0037] Figure 2 This is a schematic diagram illustrating a scenario of interaction between a privileged virtual machine and a user virtual machine, as provided in an embodiment of this application.

[0038] Figure 3 This is a schematic diagram of the structure of a device for monitoring a driver's operation provided in an embodiment of this application;

[0039] Figure 4 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application. Detailed Implementation

[0040] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0041] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0042] Before introducing the methods of the embodiments of this application, some basic concepts in the embodiments of this application will be briefly introduced first.

[0043] Xen: Xen is an open-source project developed by the Cambridge Computer Laboratory. It is an open-source virtualization software that can run directly on top of the hardware layer. It belongs to the Type-I virtualization system, supports general virtualization and hypervirtualization, and is known for its high performance and low resource consumption. Xen only directly manages the Central Processing Unit (CPU) and memory, while other input / output (I / O) hardware drivers are supported by the first virtual machine (privileged domain) running on it. It can run multiple guest operating systems concurrently on computer hardware.

[0044] Domain0: Privileged virtual machine, also called privileged domain, or "Dom0" for short, is a guest operating system that runs on top of the Xen hypervisor and has the privileges to directly access hardware and manage other guest operating systems. All Xen virtual environments require Dom0 to run before any other virtual guests or user virtual machines can run. Dom0 acts as the administrator in Xen, responsible for managing other user virtual machines.

[0045] Privileged domains possess native device drivers, granting them direct access to hardware devices. They control and manage other user domains by interacting with the control interfaces provided by Xen. During device access, Dom0 can receive I / O requests sent by other DomUs through frontend drivers and utilize backend drivers to invoke native device drivers to complete the I / O requests.

[0046] DomainU: User Virtual Machine, also known as User Domain, or simply "DomU", is a regular guest operating system or business operating system that runs on top of the Xen hypervisor. It cannot directly access hardware resources (such as memory, hard disk, etc.), but multiple instances can exist independently and in parallel.

[0047] Xen's Decoupled Device Driver Model: Introduced in Xen 2.0, the decoupled device driver model establishes a frontend device in each user domain and a backend device in each privileged domain. All user domain operating systems send requests to the frontend device as if using a normal device. The frontend device then forwards these requests, along with the user domain's identity information, to the backend device in the privileged domain via I / O request descriptors and device channels. The backend device retrieves the corresponding data by invoking the native device driver or a local device driver.

[0048] After introducing the basic concepts, the following section provides a detailed description of a method for operating a driver monitoring system according to an embodiment of this application, using the Xen virtualization platform as an example. The method for operating a driver monitoring system according to an embodiment of this application will be described in detail below.

[0049] Figure 1 This is a schematic flowchart illustrating a method for operating a driver monitoring system provided in an embodiment of this application.

[0050] For example, such as Figure 1 As shown, the method 100 includes:

[0051] 101. Based on the allocation of computing resources, privileged virtual machines and user virtual machines are run. The privileged virtual machine is used to collect the driver's action information in the vehicle. The computing resources include the core of the gateway's processor and the gateway's running memory.

[0052] In this embodiment, Xen virtualization technology is first used to virtualize the gateway. Specifically, the system-on-chip (SoC) in the gateway is virtualized by using an in-vehicle network processor or in-vehicle network controller (hereinafter referred to as "processor"). The processor is an NXP S32G3.

[0053] It should be understood that the main application scenario in this application embodiment is: during the process of a driver driving a vehicle, the driver's action information can be collected by a camera, and the driver's action information can be further processed by a DMS to determine whether the driver has engaged in dangerous driving behavior.

[0054] In the aforementioned process, the Driver Monitoring System (DMS) typically involves numerous AI algorithms and neural network models when processing driver action information. Therefore, it usually requires specialized AI processors or processing units to handle this process. Examples include embedded neural network processing units (NPUs), vector processing units (VPUs), and intelligence processing units (IPUs). These processors utilize deep neural network models and numerous artificial intelligence (AI) algorithms to process and compare the driver action information captured by the vehicle's cameras, obtaining the final action information result.

[0055] However, the S32G3 processor in the gateway of this embodiment is an in-vehicle network processor and does not involve professional deep learning, AI algorithms, or neural network-related calculations and processing. Therefore, in this embodiment, for non-AI configuration hardware, the driver's action information can be processed by the CPU in a virtualized environment running DMS.

[0056] It should be understood that in the process of virtualizing the DMS in this application embodiment, the processor's computing resources can first be allocated according to a preset allocation rule. Since the privileged virtual machine is responsible for managing and controlling the user virtual machine, and in this application embodiment, the privileged virtual machine mainly runs the Automotive Open System Architecture Adaptive Platform (Autosar AP), while the user virtual machine runs the DMS, the processor virtualization process must first ensure that the normal functions of the Autosar AP in the privileged virtual machine are implemented and that its performance is not affected. Simultaneously, it must also ensure that the DMS in the user virtual machine can run normally and at an appropriate processing speed.

[0057] In one possible implementation, the gateway's computing resources include the gateway's processor core and its RAM. The allocation of these computing resources specifically includes:

[0058] According to the preset allocation rules, the core of the gateway's processor is divided into a first core and a second core, and the gateway's running memory is divided into a first running memory and a second running memory. The value of the first core is greater than the value of the second core, and the value of the first running memory is greater than the value of the second running memory.

[0059] Allocate the first core and the first memory to the privileged virtual machine, and allocate the second core and the second memory to the user virtual machine.

[0060] The values ​​for "first core" and "second core" refer to the quantity. For example, if a gateway's processor has 8 cores, the number of first cores is 6 and the number of second cores is 2. The values ​​for "first RAM" and "second RAM" refer to the size. For example, the first RAM size is 3GB and the second RAM size is 1GB.

[0061] The aforementioned pre-defined allocation principle can be understood as described in the preceding text: it is necessary to ensure the normal operation of the Autosar AP running in the privileged virtual machine, as well as the normal operation of the DMS in the user virtual machine, while simultaneously considering the processing speed of both the privileged and user virtual machines. Based on this allocation principle, the cores and RAM of the gateway's processor can be divided to obtain a first computing resource containing a first core and a first RAM, and a second computing resource containing a second core and a second RAM. The first computing resource corresponds to the privileged virtual machine, and the second computing resource corresponds to the user virtual machine. Furthermore, the number of first cores is greater than the number of second cores, and the value of the first RAM is greater than the value of the second RAM.

[0062] By pre-allocating computing resources, the first computing resources corresponding to the privileged virtual machine and the second computing resources corresponding to the user virtual machine can be obtained. Then, the privileged virtual machine can be run based on the first core and the first RAM, and the user virtual machine can be run based on the second core and the second RAM.

[0063] For example, since the privileged virtual machine manages and controls other user virtual machines, in this embodiment of the application, the privileged virtual machine can be started first through the first computing resource, and then the user virtual machine can be started through the privileged virtual machine and the second computing resource.

[0064] In the above technical solution, the gateway's computing resources include the cores of the gateway's processor and the gateway's RAM. By dividing the gateway device's computing resources, a first core and a second core, as well as a first RAM and a second RAM, can be obtained. The value of the first core is greater than the value of the second core, and the value of the first RAM is greater than the value of the second RAM. The first core and the first RAM represent the computing resources corresponding to privileged virtual machines, while the second core and the second RAM represent the computing resources corresponding to user virtual machines. During the allocation process, the value of the second core corresponding to the user virtual machine is controlled to be less than the value of the first core, and the value of the second RAM is less than the value of the first RAM. This ensures that the user virtual machine can run without affecting the processing efficiency of the privileged virtual machine, achieving the goal of rationally allocating the gateway device's computing resources.

[0065] 102. Run the driver monitoring system on the user's virtual machine.

[0066] In this embodiment of the application, after starting the user virtual machine and the privileged virtual machine in step 101, the DMS in this embodiment of the application can be run in the user virtual machine, specifically including:

[0067] In the user virtual machine, the driver monitoring system runs on the first operating system, and the computing resources required to run the first operating system are less than a preset threshold.

[0068] The first operating system is a streamlined Linux system.

[0069] In the above technical solution, compared with the traditional Linux system, the streamlined Linux system is a lightweight Linux system that can reduce the occupation of ROM and RAM, and has the characteristics of being lightweight and fast. This not only avoids the problem of resource occupation, but also realizes the speed of DMS processing driver action information.

[0070] 103. The driver's action information is sent to the user virtual machine through the privileged virtual machine so that the driver monitoring system can process the driver's action information.

[0071] It should be understood that in the embodiments of this application, the privileged virtual machine has the function of directly accessing hardware devices. When the driver monitoring system processes the driver's action information, the privileged virtual machine first needs to obtain the driver's action information, and then the gateway sends the driver's action information to the user virtual machine through the privileged virtual machine for subsequent processing.

[0072] In one possible implementation, the gateway sends driver action information to the user virtual machine through a privileged virtual machine. This driver action information can be obtained by receiving I / O requests sent from the user virtual machine to the privileged virtual machine. Specifically, this includes:

[0073] The privileged virtual machine receives the first request sent by the user virtual machine. The first request is used to obtain the driver's action information.

[0074] In response to the first request, the driver's action information is sent to the user virtual machine via the privileged virtual machine.

[0075] Specifically, the data and request transmission between the privileged virtual machine and the user virtual machine is implemented based on the backend driver module in the privileged virtual machine and the frontend driver module in the user virtual machine. Specifically, receiving the first request sent by the user virtual machine through the privileged virtual machine includes:

[0076] The privileged virtual machine's backend driver module receives a first request sent by the user virtual machine's frontend driver module. The first request includes the user virtual machine's identifier.

[0077] And, in response to the first request, sending the driver's action information to the user virtual machine via the privileged virtual machine, including:

[0078] In response to the first request, the external device driver module corresponding to the user virtual machine is determined in the privileged virtual machine based on the identifier of the user virtual machine;

[0079] The driver's action information collected by the external device is obtained through the back-end driver module and the external device driver module.

[0080] The driver's action information is sent to the user's virtual machine through the backend driver module.

[0081] The external device driver module is the same as the native device driver module described earlier.

[0082] Specifically, the gateway above sends the driver's action information to the user virtual machine through the privileged virtual machine. The process can be understood as follows: the application of the user virtual machine accesses the virtual I / O device, the core of the user virtual machine calls the front-end driver module in the user virtual machine to generate an I / O request. This I / O request describes the address and length of the data to be obtained, and writes it into the I / O shared ring.

[0083] The front-end driver module places the required data into the authorization table, granting access permissions to the privileged virtual machine (VM). The front-end driver module then notifies the privileged VM via an event channel. The Xen virtualization platform schedules the privileged VM to run, checks events, detects new I / O requests, and then the privileged VM calls the back-end driver module for processing. Specifically, the back-end driver module retrieves the I / O request from the I / O shared ring and analyzes it. Through operations on the authorization table, the back-end driver module determines the data the user VM needs to acquire. After preprocessing the I / O request, the back-end driver module calls the actual device driver to perform the data writing operation, i.e., the operation to obtain the driver's action information.

[0084] After the IO request is completed, the backend driver module generates an IO response, places the driver's action information into the IO shared ring, and notifies the user virtual machine again through the event channel mechanism. The Xen virtualization platform schedules the user virtual machine to run, checks the events, and if a new IO response is found, it calls the frontend driver module to read the IO response from the IO shared ring, thus obtaining the driver's action information.

[0085] Furthermore, once the gateway sends the driver's status information to the user's virtual machine through the privileged virtual machine, the driver's actions can be processed through the driver monitoring system, specifically including:

[0086] The driver monitoring system processes the driver's action information to obtain the processing results, which are used to indicate whether the driver's action information poses a safety hazard.

[0087] The processing results are sent from the user virtual machine to the privileged virtual machine.

[0088] In one possible implementation, the driver's motion information includes an image of the driver. The driver's motion information is processed by a driver monitoring system to obtain a processing result, including:

[0089] The driver monitoring system compares the driver's image with images in a pre-set image library to obtain the processed image of the driver.

[0090] And, sending the processing results to the privileged virtual machine via the user virtual machine, including:

[0091] The processing results are sent to the privileged virtual machine via the front-end driver module.

[0092] Specifically, the aforementioned process of processing driver action information through the driver monitoring system and sending the processing results to the privileged virtual machine can be understood as follows: After the front-end driver device reads the IO response from the IO shared ring and obtains the driver's action information, it calls the driver monitoring system in the user virtual machine to compare the driver's image information with images in a preset image library to determine whether the driver's action information poses a safety hazard. For example, the images in the preset image library may contain preset actions (such as making a phone call, eating, etc.). If the driver's image has a high degree of matching with the preset actions, a processing result such as a matching degree value, a voice prompt, or a text prompt can be obtained. The processing result is then placed in the authorization table, and the privileged virtual machine is notified for review through an event channel mechanism.

[0093] To make it easier to understand, the interaction between privileged virtual machines and user virtual machines will be briefly introduced below.

[0094] Figure 2 This is a schematic diagram illustrating a scenario of interaction between a privileged virtual machine and a user virtual machine, as provided in an embodiment of this application.

[0095] For example, such as Figure 2 As shown, the first computing resources in the privileged virtual machine Dom0 include virtual memory 1 and virtual processing module 1. Virtual processing module 1 mainly includes six processor cores (also called kernels). The second computing resources in the user virtual machine include virtual memory 2 and virtual processing module 2. Virtual processing module 2 includes two processor cores.

[0096] Privileged virtual machines include backend driver modules, while user virtual machines include frontend driver modules. The XL tool in privileged virtual machines is a lightweight virtual machine (VM) management tool based on libxenlight, responsible for managing commands and data within the privileged VM.

[0097] The privileged virtual machine can access three types of data: Controller Area Network (CAN) data, network (NET) data, and Universal Serial Bus (USB) data. In this embodiment, the driver's action information is primarily transmitted via USB signals.

[0098] Furthermore, when the user virtual machine needs to process driver action information, the user virtual machine system within the user virtual machine can send a request to the front-end driver module. Upon receiving the request, the front-end driver module forwards it to the back-end driver module in the privileged virtual machine. After receiving the request, the back-end driver module accesses the actual device (such as a camera inside the vehicle) through the external device driver (USB driver) and USB interface in the privileged virtual machine to collect or acquire the driver's action information.

[0099] Furthermore, the privileged virtual machine sends the driver's action information to the user virtual machine through the backend driver module, and then the frontend driver module forwards it to the driver monitoring system in the user virtual machine for processing.

[0100] For example, the driver's action information includes the driver's image. In the process of processing the driver's action information through the driver monitoring system, the image can be compared with the current driver's image using a preset image library in the driver monitoring system, and the comparison result can be used as the processing result.

[0101] After the driver monitoring system has finished processing the driver's action information, it sends the processing result to the adaptive platform in the privileged virtual machine via a network protocol (such as Transmission Control Protocol / Internet Protocol, TCP / IP).

[0102] Furthermore, when the processing results indicate that the driver's actions pose a safety hazard, it also includes:

[0103] The privileged virtual machine generates notification instructions corresponding to the processing results.

[0104] The notification command is sent to the vehicle's alarm device via the privileged virtual machine.

[0105] Specifically, after receiving the current processing result, the adaptive platform in the privileged virtual machine can generate a notification command based on the result and send it to the vehicle's alarm devices. For example, a microphone or a head unit (HU) can provide voice prompts via the microphone or display prompts via the HU.

[0106] In the above technical solution, after the DMS processes the driver's action information, if the processing result indicates that the driver's current action information may cause danger, a notification command corresponding to the processing result can be generated through a privileged virtual machine to remind the driver. This process effectively avoids dangerous accidents, ensures the safety of passengers in the vehicle, and improves the user experience.

[0107] Figure 3 This is a schematic diagram of the structure of a device for monitoring a driver's operation provided in an embodiment of this application.

[0108] For example, such as Figure 3 As shown, the device 300 includes:

[0109] The running module 301 is used to run a privileged virtual machine and a user virtual machine based on the allocation results of computing resources. The privileged virtual machine is used to collect the driver's action information in the vehicle. The computing resources include the core of the gateway's processor and the gateway's running memory. The driver monitoring system is run on the user virtual machine.

[0110] The sending module 302 is used to send the driver's status information to the user virtual machine through the privileged virtual machine, so that the driver monitoring system can process the driver's action information.

[0111] Optionally, before running the privileged virtual machine and the user virtual machine based on the allocation results of computing resources, the device further includes: an allocation module, configured to divide the core of the gateway's processor into a first core and a second core, and divide the gateway's running memory into a first running memory and a second running memory according to a preset allocation rule, wherein the value of the first core is greater than the value of the second core, and the value of the first running memory is greater than the value of the second running memory; allocate the first core and the first running memory to the privileged virtual machine, and allocate the second core and the second running memory to the user virtual machine.

[0112] In one possible implementation, the running module 301 is specifically used to: run the driver monitoring system in the user virtual machine based on the first operating system, wherein the value of the computing resources required to run the first operating system is less than a preset threshold.

[0113] In one possible implementation, the sending module is specifically used to: receive a first request sent by the user virtual machine through the privileged virtual machine, the first request being used to request the driver's action information; and in response to the first request, send the driver's action information to the user virtual machine through the privileged virtual machine.

[0114] In one possible implementation, the sending module is further configured to: receive a first request sent by the front-end driver module of the user virtual machine through the back-end driver module of the privileged virtual machine, the first request including the identifier of the user virtual machine; in response to the first request, determine the external device driver module corresponding to the user virtual machine in the privileged virtual machine according to the identifier of the user virtual machine; obtain the driver's action information collected by the external device through the back-end driver module and the external device driver module; and send the driver's action information to the user virtual machine through the back-end driver module.

[0115] Optionally, after sending the driver's action information to the user virtual machine through the privileged virtual machine, the device further includes: a first processing module, used to process the driver's action information through the driver monitoring system to obtain a processing result, the processing result being used to indicate whether the driver's action information has any safety risks; and to send the processing result to the privileged virtual machine through the user virtual machine.

[0116] In one possible implementation, the driver's action information includes the driver's image. The first processing module is specifically used to: compare the driver's image with images in a preset image library through the driver monitoring system to obtain the processing result of the driver's image; and send the processing result to the privileged virtual machine through the front-end driver module.

[0117] Optionally, if the processing result indicates that there is a safety hazard in the driver's action information, the device further includes: a second processing module, used to generate a notification instruction corresponding to the processing result through the privileged virtual machine; and to send the notification instruction to the alarm device in the vehicle through the privileged virtual machine.

[0118] Figure 4 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application.

[0119] For example, such as Figure 4 As shown, the vehicle 400 includes a gateway 401: the gateway 401 includes a memory 4011 and a processor 4012, wherein the memory 4011 stores executable program code 40111, and the processor 4012 is used to call and execute the executable program code 40111 to perform a method for running a driver monitoring system.

[0120] This embodiment can divide the gateway into functional modules according to the above method example. For example, each module can correspond to a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0121] When each functional module is divided according to its corresponding function, the gateway may include: an allocation module, a running module, etc. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.

[0122] The gateway provided in this embodiment is used to execute the above-described method for operating a driver monitoring system, and therefore can achieve the same effect as the above-described implementation method.

[0123] When using integrated units, the gateway may include a processing module and a storage module. The processing module is used to control and manage the gateway's operations. The storage module supports the gateway in executing program code and storing data.

[0124] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits as disclosed in this application. The processor may also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and microprocessors, etc., and the storage module may be a memory.

[0125] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement a method for operating a driver monitoring system as described in the above embodiment.

[0126] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement a method for operating a driver monitoring system as described in the above embodiment.

[0127] In this embodiment, the gateway, computer-readable storage medium, computer program product, or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0128] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0129] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0130] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for operating a driver monitoring system, characterized in that, The method is executed by a gateway running a virtualization platform, and the method includes: Based on the allocation of computing resources, privileged virtual machines and user virtual machines are run. The privileged virtual machines are used to collect the driver's action information in the vehicle. The computing resources include the core of the gateway's processor and the gateway's running memory. The driver monitoring system is run on the user virtual machine; The privileged virtual machine sends the driver's action information to the user virtual machine, so that the driver monitoring system can process the driver's action information; The process of running privileged virtual machines and user virtual machines based on the allocation of computing resources includes: Based on the first computing resources of the privileged virtual machine, the privileged virtual machine is started, wherein the first computing resources include a first core and a first running memory; The user virtual machine is started based on the second computing resources of the privileged virtual machine and the user virtual machine; the second computing resources include a second core and a second running memory, the number of the first core is greater than the number of the second core, and the value of the first running memory is greater than the value of the second running memory.

2. The method according to claim 1, characterized in that, Before running privileged virtual machines and user virtual machines based on the allocation of computing resources, the method further includes: According to the preset allocation rules, the core of the gateway's processor is divided into a first core and a second core, and the gateway's running memory is divided into a first running memory and a second running memory. The first core and the first running memory are allocated to the privileged virtual machine, and the second core and the second running memory are allocated to the user virtual machine.

3. The method according to claim 1 or 2, characterized in that, The driver monitoring system running on the user virtual machine includes: In the user virtual machine, the driver monitoring system runs on a first operating system, and the computing resources required to run the first operating system are less than a preset threshold.

4. The method according to claim 1 or 2, characterized in that, Sending the driver's action information to the user virtual machine through the privileged virtual machine includes: The privileged virtual machine receives a first request sent by the user virtual machine, the first request being used to request the driver's action information; In response to the first request, the driver's action information is sent to the user virtual machine via the privileged virtual machine.

5. The method according to claim 4, characterized in that, The step of receiving the first request sent by the user virtual machine through the privileged virtual machine includes: The privileged virtual machine's backend driver module receives a first request sent by the user virtual machine's frontend driver module, the first request including the identifier of the user virtual machine; And, in response to the first request, sending the driver's action information to the user virtual machine via the privileged virtual machine includes: In response to the first request, the external device driver module corresponding to the user virtual machine is determined in the privileged virtual machine based on the identifier of the user virtual machine; The driver's action information collected by the external device is obtained through the back-end driver module and the external device driver module. The driver's action information is sent to the user virtual machine via the backend driver module.

6. The method according to claim 1 or 2, characterized in that, After sending the driver's action information to the user virtual machine through the privileged virtual machine, the method further includes: The driver monitoring system processes the driver's action information to obtain a processing result, which is used to indicate whether the driver's action information poses a safety hazard. The processing result is sent to the privileged virtual machine via the user virtual machine.

7. The method according to claim 6, characterized in that, The driver's motion information includes an image of the driver. The process of processing the driver's motion information through the driver monitoring system to obtain a processing result includes: The driver monitoring system compares the driver's image with images in a preset image library to obtain the processing result of the driver's image. And, sending the processing result to the privileged virtual machine via the user virtual machine includes: The processing result is sent to the privileged virtual machine via the front-end driver module.

8. The method according to claim 6, characterized in that, If the processing result indicates that the driver's actions pose a safety hazard, the method further includes: The privileged virtual machine generates a notification instruction corresponding to the processing result; The notification instruction is sent to the alarm device in the vehicle via the privileged virtual machine.

9. A device for operating a driver monitoring system, characterized in that, The device includes: The running module is used to run a privileged virtual machine and a user virtual machine based on the allocation results of computing resources. The privileged virtual machine is used to collect the driver's action information in the vehicle. The computing resources include the core of the gateway's processor and the gateway's running memory. The driver monitoring system is run on the user virtual machine. The sending module is used to send the driver's status information to the user virtual machine through the privileged virtual machine, so that the driver monitoring system can process the driver's action information; The running module is specifically used to start the privileged virtual machine based on the first computing resources of the privileged virtual machine, the first computing resources including a first core and a first running memory; and to start the user virtual machine based on the second computing resources of the privileged virtual machine and the user virtual machine; the second computing resources including a second core and a second running memory, the number of the first cores being greater than the number of the second cores, and the value of the first running memory being greater than the value of the second running memory.

10. A vehicle, characterized in that, The vehicle includes a gateway for performing the method as described in any one of claims 1 to 8, the gateway comprising: Memory, used to store executable program code; A processor for calling and running the executable program code from the memory, causing the gateway to perform as claimed in the claim.