CN-122018772-A - Intelligent cabin controller virtualization universal touch screen control method and intelligent cabin controller
Abstract
The invention discloses an intelligent cabin controller virtualization universal touch screen control method and an intelligent cabin controller, wherein the method comprises the steps of receiving and analyzing original input data from physical touch hardware through standard touch screen drive in a QNX host system to generate a standardized touch event containing coordinate information; the method comprises the steps of transmitting a standardized touch event to a touch event distributor running on a QNX host system, reading coordinate information of the touch event by the touch event distributor, and comparing the coordinate information with a preset distribution configuration rule, wherein the distribution configuration rule defines coordinate ranges of one or more areas on a screen and a corresponding target operating system. The invention replaces a plurality of sets of complete inputs by the central distributor, reduces the repeated occupation of system resources, improves the utilization rate of equipment, improves the data transmission efficiency, has higher overall safety of the system, and has extremely strong portability and expansibility.
Inventors
- LI RUIGAI
- LI JINXIAN
- ZHAO PIN
- ZHANG HONG
- CHU LIANRUI
Assignees
- 青岛城市学院
Dates
- Publication Date
- 20260512
- Application Date
- 20260130
Claims (7)
- 1. The intelligent cabin controller virtualization universal touch screen control method is characterized by comprising the following steps of: Step 1, touch event acquisition, namely, in a QNX host system, receiving and analyzing original input data from physical touch hardware through a standard touch screen driver to generate a standardized touch event containing coordinate information; step 2, transmitting the event to a distributor, namely transmitting the standardized touch event obtained in the step 1 to a touch event distributor running on a QNX host system; Step 3, coordinate range judgment and routing decision, namely the touch event distributor reads the coordinate information of the touch event and compares the coordinate information with a preset distribution configuration rule; the distribution configuration rule in the step 3 defines coordinate ranges of one or more areas on the screen and corresponding target operating systems thereof, wherein the target operating systems comprise at least one QNX host system and at least one Guest OS system.
- 2. The method for controlling the virtualized universal touch screen of the intelligent cabin controller according to claim 1, wherein the standardized touch event generated in the step 1 comprises absolute coordinates, touch state and time stamp.
- 3. The method for controlling the virtualized universal touch screen of the intelligent cabin controller according to claim 1, wherein the Guest OS system is one or more of an Android system, a Linux system and a QNX system.
- 4. The method for controlling the virtualized universal touch screen of the intelligent cabin controller according to claim 2 is characterized in that the step 3 is specifically that a target operating system corresponding to a triggering event is judged according to coordinate information, if coordinates belong to a QNX area, a QNX system branch is entered, coordinate mapping is entered, absolute coordinates are converted into relative coordinates, coordinate data and a touch state are injected into a QNX event queue, and the event is processed by an input system and an application program of the QNX; If the coordinates belong to the Guest OS system, the method enters a QNX Hypervisor virtual machine, absolute coordinates are converted into relative coordinates through coordinate mapping, coordinate data and touch states enter a Hypervisor virtual data transmission channel to send events to the virtual Guest OS system, a touch screen driver of the virtual Guest OS system receives the data, and then the data and the events are transmitted to an application framework of the Guest OS system to complete interaction response.
- 5. The method for controlling a virtualized universal touch screen of an intelligent cabin controller according to claim 4, wherein the specific method for converting absolute coordinates into relative coordinates is to subtract the initial coordinates of the corresponding target system area from the absolute coordinate values.
- 6. An intelligent cabin controller, which is characterized by being used for realizing the control method of the intelligent cabin controller virtualization universal touch screen according to any one of claims 1-5, comprising a hardware layer, a virtualization layer and a virtual machine layer, wherein the hardware layer comprises a processor, a memory and a physical touch screen; The virtualization layer adopts QNX Hypervisor to abstract and partition hardware resources; the virtual machine layer comprises at least one privileged virtual machine running a QNX operating system and at least one guest virtual machine running Guset OS; And the touch control function module is integrated in the privileged virtual machine running the QNX operating system and is used for collecting touch events and distributing the collected touch events to the corresponding target operating system.
- 7. The intelligent cockpit controller of claim 6 wherein said touch control function module includes: the touch screen driving module is used for collecting the original input of the physical touch screen; the touch event normalization module is used for converting the original input into a normalization event; the touch event distributor module is internally provided with a distribution rule configuration unit and a routing logic execution unit and is used for making a distribution decision according to the coordinate range; the coordinate mapping module is used for remapping the received coordinates for the HMI program to use; the QNX local event injection interface is used for distributing events to the system; and the Guest OS virtual machine event forwarding interface is used for forwarding the event to the Guest OS system through the Hypervisor.
Description
Intelligent cabin controller virtualization universal touch screen control method and intelligent cabin controller Technical Field The invention relates to the technical field of automobile control, in particular to an intelligent cabin controller virtualization universal touch screen control method and an intelligent cabin controller. Background With the rapid development of automobile intellectualization, intelligent cabin systems are evolving towards a high degree of integration and complexity. Modern intelligent cabin controllers generally need to run multiple operating systems with different functions and different real-time requirements at the same time, for example, an instrument panel system needs to run a high-safety and high-real-time QNX operating system to display key information of a vehicle, and an infotainment system is more suitable for running an Android operating system with rich ecology to provide functions of navigation, video and audio. To integrate these heterogeneous operating systems on a single hardware platform, virtualization techniques (particularly Type-1 hypervisors) are widely used. QNX Hypervisor is used as a mature embedded system virtualization scheme, and allows a plurality of client operating systems (Guest OS) such as QNX, android and the like to be simultaneously operated on a single system on chip (SoC), so that sharing and isolation of hardware resources are realized, and the cost and complexity of the system are reduced. However, this architecture also brings new human-machine interaction (HMI) challenges. One of the core issues is how to efficiently, accurately, and seamlessly distribute a single physical touch screen input to operating systems running in different virtual machines. The conventional solution has the following drawbacks: And the software redundancy is that an independent touch screen driving and input processing module is configured for each virtual machine, so that the system resource waste is caused, and the memory occupation and the CPU overhead are increased. Coordination complexity-lack of a global coordinator, requiring complex cross-virtual machine communication mechanisms to decide which system to respond to when a touch event occurs, adds complexity and delay to the system design. User experience splitting may result in erroneous distribution of touch events (e.g., the Android application would trigger a QNX system control) if the distribution logic is inaccurate, or require cumbersome manual switching (e.g., physical button switching) by the user, resulting in splitting and discontinuity of the user experience. The existing scheme is mostly strongly coupled with specific hardware or software versions, is difficult to adapt to cabin platforms with different screen sizes, resolutions or operating system versions, and has poor portability and universality. Disclosure of Invention In order to overcome the problems in the prior art, the invention provides an intelligent cabin controller virtualization universal touch screen control method and an intelligent cabin controller. The technical scheme adopted by the invention for solving the technical problems is that the intelligent cabin controller virtualization universal touch screen control method comprises the following steps: Step 1, touch event acquisition, namely, in a QNX host system, receiving and analyzing original input data from physical touch hardware through a standard touch screen driver to generate a standardized touch event containing coordinate information; step 2, transmitting the event to a distributor, namely transmitting the standardized touch event obtained in the step 1 to a touch event distributor running on a QNX host system; Step 3, coordinate range judgment and routing decision, namely the touch event distributor reads the coordinate information of the touch event and compares the coordinate information with a preset distribution configuration rule; the distribution configuration rule in the step 3 defines coordinate ranges of one or more areas on the screen and corresponding target operating systems thereof, wherein the target operating systems comprise at least one QNX host system and at least one Guest OS system. The standardized touch event generated in the step 1 comprises absolute coordinates, a touch state and a time stamp. According to the intelligent cabin controller virtualization universal touch screen control method, the Guest OS system is one or more of an Android system, a Linux system and a QNX system. Judging a target operating system corresponding to a triggering event according to coordinate information, if the coordinates belong to a QNX region, entering a QNX system branch, entering coordinate mapping, converting absolute coordinates into relative coordinates, injecting coordinate data and a touch state into a QNX event queue, and processing the event by an input system and an application program of the QNX; If the coordinates belong to the Guest OS sy