Information sharing method, device, equipment and medium based on multi-virtual machine system

By realizing touch message forwarding between virtual machine systems in the main operating system of the on-board terminal, the problem of sharing input devices for multiple virtual machine systems is solved, reducing manufacturing costs and improving the applicability of the terminal.

CN115033347BActive Publication Date: 2025-03-21ECARX (HUBEI) TECHCO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210687166.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2025-03-21
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

When running multiple virtual machine systems in an on-board terminal, different input devices need to be configured for each virtual machine system, resulting in higher manufacturing costs.

Method used

The touch message of the touch operation is obtained through the first virtual machine system in the main operating system, and decide whether to forward it to other virtual machine systems based on the content of the message, so as to realize the function of multiple virtual machine systems sharing an input device.

Benefits of technology

Multiple virtual machine systems share an input device, reducing the manufacturing cost of the terminal and improving the applicability of the terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033347B_ABST
    Figure CN115033347B_ABST
Patent Text Reader

Abstract

The present application provides an information sharing method, device, equipment and medium based on a multi-virtual machine system, and relates to the field of communication technology. The method can be applied to a terminal, which is configured to be installed with a main operating system and multiple virtual machine systems running on the main operating system, and the method includes: in response to a touch operation on the terminal, a touch message of the touch operation is obtained through a first virtual machine system in multiple virtual machine systems; if the first virtual machine system determines that the virtual machine system targeted by the touch message is a second virtual machine system in multiple virtual machine systems, the touch message is forwarded to the second virtual machine system through the first virtual machine system, so that multiple virtual machine systems can share an input device without affecting the realization of specific functions of each virtual machine system, which can improve the applicability of the terminal and reduce the manufacturing cost of the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an information sharing method, device, equipment and medium based on a multi-virtual machine system. Background Art

[0002] The vehicle terminal is the front-end device of the vehicle monitoring and management system. It is generally installed secretly in various vehicles. The vehicle terminal equipment is mainly composed of various external devices such as vehicle video server, touch screen, external camera, call handle, car anti-theft device, etc.

[0003] In the related art, when the vehicle terminal displays information, it is mainly based on an actual operating system (OS) in the vehicle terminal through the touch screen in the vehicle terminal to display information, such as playing songs, map navigation, etc. Among them, when it is necessary to install large-scale game software and entertainment software in the vehicle terminal, since large-scale game software and entertainment software have certain requirements for the operating environment of the operating system, the vehicle terminal will run multiple virtual machine systems.

[0004] However, when the vehicle terminal runs multiple virtual machine systems, in order to ensure that the software in each virtual machine system can receive input information from the input devices in the vehicle terminal (such as touch screen, mouse, etc.), different input devices need to be configured for different virtual machine systems, which will result in higher manufacturing costs for the vehicle terminal. Summary of the invention

[0005] The purpose of this application is to provide an information sharing method, device, equipment and medium based on a multi-virtual machine system to address the deficiencies in the above-mentioned prior art. The application of the embodiments of this application can reduce the manufacturing cost of the terminal.

[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, the present invention provides an information sharing method based on a multi-virtual machine system, which is applied to a terminal, wherein the terminal is configured to be installed with a main operating system and multiple virtual machine systems running on the main operating system, and the method comprises:

[0008] In response to a touch operation on the terminal, acquiring a touch message of the touch operation through a first virtual machine system among the plurality of virtual machine systems;

[0009] If the first virtual machine system determines that the virtual machine system targeted by the touch message is the second virtual machine system among the multiple virtual machine systems, the first virtual machine system forwards the touch message to the second virtual machine system to trigger the second virtual machine system to respond to the touch operation.

[0010] In an optional embodiment, the method further comprises:

[0011] If the first virtual machine system determines that the virtual machine system targeted by the touch message is the first virtual machine system, the first virtual machine system distributes the touch message to the first application software running in the first virtual machine system, so that the first application software responds to the touch operation.

[0012] In an optional implementation, the forwarding of the touch control message to the second virtual machine system by the first virtual machine system to trigger the second virtual machine system to respond to the touch control operation includes:

[0013] The touch control message is forwarded to the second virtual machine system through the first virtual machine system, so that the second virtual machine system distributes the touch control message to the second application software running in the second virtual machine system and triggers the second application software to respond to the touch control operation.

[0014] In an optional implementation manner, if determining, through the first virtual machine system, that the virtual machine system targeted by the touch message is a second virtual machine system among the multiple virtual machine systems, the method includes:

[0015] If the touch coordinates in the touch message are determined by the first virtual machine system to be the location of the second icon identifier corresponding to the second application software, or the application type indicated by the touch message is the application type corresponding to the second application software, then it is determined that the virtual machine system targeted by the touch message is the second virtual machine system.

[0016] In an optional implementation, before obtaining, in response to a touch operation on the terminal, a touch message of the touch operation through a first virtual machine system among the plurality of virtual machine systems, the method further includes:

[0017] In response to a first startup operation on the terminal, starting the main operating system in the terminal;

[0018] In response to a second startup operation on the first virtual machine system, the first virtual machine system is started on the main operating system, and the input device of the terminal is mounted to the first virtual machine system to respond to input operations of the input device through the first virtual machine system.

[0019] In an optional implementation, the first virtual machine system is configured to include a first virtual network card, and the second virtual machine system is configured to include a second virtual network card;

[0020] The forwarding the touch control message to the second virtual machine system through the first virtual machine system includes:

[0021] The touch message is forwarded to the second virtual machine system through the first virtual machine system via the first virtual network card and the second virtual network card based on a socket service.

[0022] In an optional implementation, the first virtual machine system is an Android virtual machine system, and the second virtual machine system is an Ubuntu virtual machine system.

[0023] In a second aspect, the present invention provides an information sharing device based on virtual multi-system, which is applied to a terminal, wherein the terminal is configured to be installed with a main operating system and multiple virtual machine systems running on the main operating system, and the information sharing device comprises:

[0024] A response module, configured to, in response to a touch operation on the terminal, obtain a touch message of the touch operation through a first virtual machine system among the plurality of virtual machine systems;

[0025] A forwarding module is used to forward the touch message to the second virtual machine system through the first virtual machine system to trigger the second virtual machine system to respond to the touch operation if it is determined through the first virtual machine system that the virtual machine system targeted by the touch message is the second virtual machine system among the multiple virtual machine systems.

[0026] In an optional embodiment, the forwarding module is specifically used to distribute the touch message to the first application software running on the first virtual machine system through the first virtual machine system if it is determined through the first virtual machine system that the virtual machine system targeted by the touch message is the first virtual machine system, so that the first application software responds to the touch operation.

[0027] In an optional implementation, the forwarding module is specifically used to forward the touch message to the second virtual machine system through the first virtual machine system, so that the second virtual machine system distributes the touch message to the second application software running on the second virtual machine system and triggers the second application software to respond to the touch operation.

[0028] In an optional embodiment, the forwarding module is specifically used to determine that the virtual machine system targeted by the touch message is the second virtual machine system if the touch coordinates in the touch message are determined by the first virtual machine system to be the location of the second icon identifier corresponding to the second application software, or the application type indicated by the touch message is the application type corresponding to the second application software.

[0029] In an optional implementation manner, the response module is further configured to start the main operating system in the terminal in response to a first startup operation on the terminal;

[0030] In response to a second startup operation on the first virtual machine system, the first virtual machine system is started on the main operating system, and the input device of the terminal is mounted to the first virtual machine system to respond to input operations of the input device through the first virtual machine system.

[0031] In an optional embodiment, the first virtual machine system is configured to include a first virtual network card, and the second virtual machine system is configured to include a second virtual network card; the forwarding module is specifically used to forward the touch message to the second virtual machine system through the first virtual machine system via the first virtual network card and the second virtual network card based on the socket service.

[0032] In an optional implementation, the first virtual machine system is an Android virtual machine system, and the second virtual machine system is an Ubuntu virtual machine system.

[0033] In a third aspect, the present invention provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform a method as described in any one of the foregoing embodiments.

[0034] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, executes a method as described in any one of the aforementioned embodiments.

[0035] In a fifth aspect, the present invention provides a vehicle comprising the electronic device described in the aforementioned embodiment.

[0036] The beneficial effects of this application are:

[0037] In the information sharing method, apparatus, device and medium based on a multi-virtual machine system provided in an embodiment of the present application, the method can be applied to a terminal, which is configured to be installed with a main operating system and multiple virtual machine systems running on the main operating system. The method includes: in response to a touch operation on the terminal, obtaining a touch message of the touch operation through a first virtual machine system among the multiple virtual machine systems; if it is determined through the first virtual machine system that the virtual machine system targeted by the touch message is a second virtual machine system among the multiple virtual machine systems, then forwarding the touch message to the second virtual machine system through the first virtual machine system to trigger the second virtual machine system to respond to the touch operation. The application of this method can enable multiple virtual machine systems to share an input device without affecting the realization of specific functions of each virtual machine system, thereby improving the applicability of the terminal; in addition, compared with the prior art, since no additional input device is required, the manufacturing cost of the terminal can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A flowchart of an information sharing method based on a multi-virtual machine system provided in an embodiment of the present application;

[0040] Figure 2 A flowchart of another information sharing method based on a multi-virtual machine system provided in an embodiment of the present application;

[0041] Figure 3 A flowchart of another information sharing method based on a multi-virtual machine system provided in an embodiment of the present application;

[0042] Figure 4 An information sharing architecture based on a multi-virtual machine system is provided in an embodiment of the present application;

[0043] Figure 5 A schematic diagram of functional modules of an information sharing device based on a multi-virtual machine system provided in an embodiment of the present application;

[0044] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0046] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0047] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0048] In the prior art, when a vehicle-mounted terminal runs multiple virtual machine systems, and each virtual machine system is independent of each other, in order to ensure that the application software installed in each virtual machine system can interact normally with the input devices in the vehicle-mounted terminal (for example, a touch screen, a mouse, etc.), different input devices need to be configured for different virtual machine systems, which will result in a higher manufacturing cost for the vehicle-mounted terminal.

[0049] In view of this, an embodiment of the present application provides an information sharing method based on a multi-virtual machine system, which can be applied to a terminal. By applying the embodiment of the present application, the manufacturing cost of the terminal can be reduced while ensuring that each application software in each virtual machine system can interact normally with the input device in the terminal (such as a touch screen, mouse, etc.).

[0050] Figure 1 A flowchart of an information sharing method based on a multi-virtual machine system provided in an embodiment of the present application, the method can be applied to a terminal, the terminal can be a mobile terminal, a vehicle terminal, an industrial terminal, etc., which is not limited here. Among them, the terminal can be configured to have a main operating system installed and multiple virtual machine systems running on the main operating system, and the multiple virtual machine systems can share input devices, display devices, etc. in the terminal, which is not limited here.

[0051] Optionally, the main operating system can be a Linux operating system, a UNIX operating system, a Windows operating system, etc., which is not limited here and may vary according to the actual application scenario; multiple virtual machine systems may include but are not limited to: Ubuntu system, Android system, macOS system, iOS system, etc., and this application does not limit the number of virtual machine systems in the main operating system, for example, it may include: 3, 5, etc. Among them, application software can be installed in the main operating system and in each virtual machine system, and the application software may include but is not limited to: instrument software, navigation software, music software, chat software, shopping software, game software, etc., which is not limited here and may vary according to the actual application scenario. In order to better understand the embodiments of the present application, some embodiments are described using the vehicle-mounted terminal as an example in the following description process.

[0052] like Figure 1 As shown, the method may include:

[0053] S101 . In response to a touch operation on a terminal, obtain a touch message of the touch operation through a first virtual machine system among multiple virtual machine systems.

[0054] The terminal may include an input device, and a touch operation for the terminal may be generated based on the input device. Optionally, the input device may include, but is not limited to, a touch screen, a headset, a mouse, a game controller, etc., which are not limited here. It is understandable that the corresponding touch operation may be different depending on the input device. For example, the touch operation may include, but is not limited to, clicking, long pressing, sliding, dragging, etc., which are not limited here.

[0055] In some embodiments, the first virtual machine system among the multiple virtual machine systems may be any virtual machine system among the multiple virtual machine systems, which may be determined by the main operating system according to preset rules or specified by the user, which is not limited here.

[0056] Among them, the terminal responds to the touch operation input through the input device and can obtain a touch message of the touch operation through the first virtual machine system. Optionally, the touch message may include: current interface identifier, touch time, touch coordinates, etc., which are not limited here.

[0057] S102: If the first virtual machine system determines that the virtual machine system targeted by the touch message is the second virtual machine system among the multiple virtual machine systems, the first virtual machine system forwards the touch message to the second virtual machine system to trigger the second virtual machine system to respond to the touch operation.

[0058] It is understandable that since multiple virtual machine systems share the same input device, after obtaining the touch message of the above-mentioned touch operation, it is necessary to determine through the first virtual machine system which virtual machine system among the multiple virtual machine systems the touch message is targeted at, so that the touch message can be forwarded to its corresponding virtual machine system, ensuring the correct forwarding of the touch message and that multiple virtual machine systems can normally share the same input device.

[0059] If it is determined that the virtual machine system targeted by the touch message is the second virtual machine system, the touch message can be forwarded to the second virtual machine system through the first virtual machine system so that the second virtual machine system responds to the touch operation, wherein the second virtual machine system can execute the first control operation in response to the touch operation.

[0060] For example, taking the second virtual machine system as a virtual machine system where a certain game software is located, the first control operation can specifically be: opening the game software, controlling the virtual character in the game battle interface to perform control operations such as displacement, attack, and defense. This is not limited here and may vary depending on the type of game software.

[0061] In some embodiments, a status detection service can be deployed in the first virtual machine system. The status detection service can run in the first virtual machine system in the form of a process or a thread. Based on the status detection service, it can be determined whether the virtual machine system targeted by the touch message is the second virtual machine system among multiple virtual machine systems. Of course, the specific judgment method is not limited to this and may vary according to the actual application scenario.

[0062] In summary, an embodiment of the present application provides an information sharing method based on a multi-virtual machine system, which can be applied to a terminal, which is configured to be installed with a main operating system and multiple virtual machine systems running on the main operating system. The method includes: in response to a touch operation on a vehicle, obtaining a touch message of the touch operation through a first virtual machine system among multiple virtual machine systems; if it is determined through the first virtual machine system that the virtual machine system targeted by the touch message is a second virtual machine system among multiple virtual machine systems, then the touch message is forwarded to the second virtual machine system through the first virtual machine system to trigger the second virtual machine system to respond to the touch operation. The application of this method can enable multiple virtual machine systems to share an input device without affecting the implementation of specific functions of each virtual machine system, thereby improving the applicability of the terminal; in addition, compared with the prior art, since there is no need to introduce additional input devices, the manufacturing cost of the terminal can be reduced.

[0063] Optionally, the input device may include a touch screen, which may be configured to display a first icon corresponding to a first application software installed in the first virtual machine system. Optionally, the first application software may be navigation software, music software, chat software, shopping software or other media entertainment software installed in the first virtual machine system.

[0064] Figure 2 A flowchart of another information sharing method based on a multi-virtual machine system provided in an embodiment of the present application is provided, based on the above embodiment, such as Figure 2 As shown, the above method also includes:

[0065] S201: If it is determined through the first virtual machine system that the virtual machine system targeted by the touch message is the first virtual machine system, the touch message is distributed to the first application software running in the first virtual machine system through the first virtual machine system, so that the first application software responds to the touch operation.

[0066] Optionally, the terminal may include a touch screen, which may display a first icon corresponding to a first application software installed in the first virtual machine system. Optionally, the user may perform touch operations such as single-clicking, multi-clicking, long pressing, sliding, and dragging on the touch screen to generate a touch operation. In response to the touch operation, if the first virtual machine system determines that the touch message corresponding to the touch operation is for the first virtual machine system, then the touch message may be distributed to the first application software through the first virtual machine system, thereby causing the first application software to respond to the touch operation.

[0067] For example, taking the first application software as a chat software, the first application software can perform the following second control operation in response to the touch operation: opening the chat software, sending voice, symbols, files, pictures, links, etc. to the user specified in the chat dialog box. This is not limited here and may be different depending on the first application software.

[0068] Optionally, the touch screen may also be configured to display a second icon corresponding to a second application software installed in the second virtual machine system. For the description of the second application software, reference may be made to the description of the first application software, which is not limited here.

[0069] In some embodiments, the step of forwarding the touch control message to the second virtual machine system through the first virtual machine system to trigger the second virtual machine system to respond to the touch control operation may include:

[0070] The touch control message is forwarded to the second virtual machine system through the first virtual machine system, so that the second virtual machine system distributes the touch control message to the second application software running in the second virtual machine system and triggers the second application software to respond to the touch control operation.

[0071] Among them, if the touch message is specifically for the second application software running in the second virtual machine system, then when forwarding, the touch message can be distributed to the second application software through the second virtual machine system. Further, for the second application software, the second application software can respond to the touch operation. Of course, in some embodiments, the second application software can also be triggered to perform the first control operation. Optionally, the first control operation can be to enter the main interface corresponding to the second application software, etc., which is not limited here.

[0072] In some embodiments, the second application software may be a game category application software. It can be understood that by applying the embodiments of the present application, any type of game application software (for example, shooting, competitive, role-playing, etc.) can be installed in the terminal, which can avoid the situation where the existing virtual machine system in the terminal does not support the operation of the game application software, thereby reducing the production cost of the terminal and improving the applicability of the terminal.

[0073] In some embodiments, the step of responding to a touch operation on the terminal may include: responding to a touch operation on a second icon corresponding to a second application software on the touch screen.

[0074] Among them, the second icon logo can be displayed in any displayable position on the touch screen, and the user can act on the area where the second icon logo is displayed on the touch screen through touch operations such as clicking, sliding, and long pressing; optionally, the touch purpose corresponding to the touch operation can be: opening the second application software corresponding to the second icon logo, or entering the shortcut function corresponding to the second application software, or it can be other touch purposes, which are not limited here and may be different according to different touch messages of the touch operation.

[0075] Optionally, the above-mentioned touch message may include: touch coordinates, which can be used to characterize the touch position of the touch operation in the touch screen, that is, the coordinate position, wherein the touch coordinates can be represented by two-dimensional coordinates (x, y), x can represent the touch coordinate point of the touch operation on the first coordinate axis direction (x-axis) in the touch screen, and y can represent the touch coordinate point of the touch operation on the second coordinate axis direction (y-axis) in the touch screen.

[0076] Accordingly, if the step of determining, through the first virtual machine system, that the virtual machine system targeted by the touch message is the second virtual machine system among the multiple virtual machine systems, may include:

[0077] If the touch coordinates in the touch message are determined by the first virtual machine system to be the location of the second icon corresponding to the second application software, or the application type indicated by the touch message is the application type corresponding to the second application software, then the virtual machine system targeted by the touch message is determined to be the second virtual machine system.

[0078] Among them, it can be understood that when the icon logo of each application software is displayed through the touch screen, the position of each icon logo is unique, that is, according to the position of each icon logo, the application software corresponding to each icon logo can be determined. Therefore, if the touch coordinates in the touch message are determined by the first virtual machine system to be the position of the second icon logo corresponding to the second application software, it can be determined that the application software corresponding to the touch operation is the second application software; further, since the second application software is installed in the second virtual machine system, it can be further determined that the virtual machine system corresponding to the touch message is the second virtual machine system.

[0079] In some embodiments, different types of application software may be configured to correspond to different application type identifiers. Optionally, when a user acts on each application software through an input device, the generated touch message may also include an application type identifier. If the first virtual machine system determines that the application type indicated by the touch message is the application type corresponding to the second application software, then it can be determined that the virtual machine system targeted by the touch message is the second virtual machine system. Optionally, the application type corresponding to the second application software may be a game type, which is not limited here.

[0080] Of course, it should be noted that, in some embodiments, the touch message may also include the current interface identifier, so that the touch messages corresponding to each touch operation can be distinguished according to the interface identifier, and the touch messages can be accurately classified and forwarded. In addition, the present application does not limit the number of application software running in the second virtual machine system. According to the actual application scenario, it may also include: a third application software, a fourth application software, etc., wherein the third application software is used as an example for explanation, and the application type of the third application software may be the same as or different from the application type of the second application software, which is not limited here.

[0081] Figure 3 A flowchart of another information sharing method based on a multi-virtual machine system provided in an embodiment of the present application is shown below. Figure 3 As shown, in response to a touch operation on the terminal, before acquiring a touch message of the touch operation through a first virtual machine system among multiple virtual machine systems, the method further includes:

[0082] S401: In response to a first startup operation on a terminal, start a main operating system in the terminal.

[0083] Optionally, the first startup operation may be triggered by a user through a startup button in the terminal, and in response to the first startup operation, the main operating system may be started in the terminal.

[0084] S402: In response to a second startup operation on the first virtual machine system, the first virtual machine system is started on the main operating system, and an input device of the terminal is mounted to the first virtual machine system, so as to respond to input operations of the input device through the first virtual machine system.

[0085] In some embodiments, the second startup operation can be triggered by a user through the main operating system, or can be triggered by a startup script pre-configured in the main operating system, which is not limited here. In response to the second startup operation, the first virtual machine system can be started in the main operating system, and during the startup process, the input device of the terminal can be mounted to the first virtual machine system, so that the input operation generated by the input device can be responded to by mounting the first virtual machine system. Among them, the description of the input device can be found in the relevant part mentioned above, which will not be repeated here.

[0086] Optionally, the interface type of the input device may be a Universal Serial Bus (USB), a Universal Asynchronous Receiver / Transmitter (UART), a Controller Area Network (CAN), or the like, which is not limited here.

[0087] Figure 4 An information sharing architecture based on a multi-virtual machine system is provided in an embodiment of the present application, such as Figure 4 As shown, the terminal may include other hardware devices such as input devices (e.g., touch screens), sound cards, display screens (e.g., instrument display screens), and a main operating system is installed. The main operating system may include hardware drivers for various hardware devices (e.g., input device drivers, network card drivers, audio drivers, graphics card drivers, etc.), and a QEMU virtual machine is installed (which can be understood as a virtual machine software for simulating the operation of multiple virtual machine systems in the main operating system), wherein the first virtual machine system and the second virtual machine system can be run in the main operating system through the QEMU virtual machine.

[0088] Reference Figure 4, the first virtual machine system may be installed with a first application software and configured to include a first virtual network card, the second virtual machine system may be installed with a second application software and configured to include a second virtual network card. Of course, the present application does not limit the number of application software installed in each virtual machine system, and one or more may be included according to the actual application scenario. In addition, referring to the above description, it can be understood that the input device is mounted in the first virtual machine system, that is, the virtual hardware driver corresponding to the first virtual machine system may include the input device virtual driver. Of course, it may be different according to the actual application scenario.

[0089] Based on the above description, the step of forwarding the touch message to the second virtual machine system through the first virtual machine system may include:

[0090] The touch message is forwarded to the second virtual machine system through the first virtual network card and the second virtual network card through the first virtual machine system based on the socket service.

[0091] In some embodiments, the first virtual machine system can forward the acquired touch message to the second virtual machine system through the first virtual network card and the second virtual network card based on the socket service. Of course, it should be noted that, according to the actual application scenario, the touch message can also be forwarded to the second virtual machine system based on shared memory technology, etc., which is not limited here and can be flexibly selected according to the actual application scenario.

[0092] In some embodiments, the first virtual machine system may be an Android virtual machine system, and the second virtual machine system may be an Ubuntu virtual machine system. Of course, the specific configuration method is not limited thereto.

[0093] In order to better understand the embodiments of the present application, an example is given in which the terminal is a vehicle-mounted terminal, the main operating system is a Linux operating system, the first virtual machine system is an Android virtual machine system, the second virtual machine system is an Ubuntu virtual machine system, the first application software installed in the Android virtual machine system is multimedia software, and the second application software installed in the Ubuntu virtual machine system is game software.

[0094] Optionally, refer to Figure 4, the main operating system can be set based on the AMD (Advanced Micro Devices) platform. After the vehicle terminal is powered on, the main operating system can be started normally. Based on the main operating system after startup, the driver parameters of the input device (such as touch screen, mouse, game controller, etc.) can be configured; the input device is mounted to the Android virtual machine system so that the Android virtual machine system can respond to the input operation of the input device; start the Android virtual machine system (for example, it can be started with the help of QEMU virtual machine software). It can be understood that at this time in the Android virtual machine system, an actual input device driver can be seen (for example, it can be a USB type input device driver); start the ubuntu virtual machine system (for example, it can be started with the help of QEMU virtual machine software); it can be understood that although the ubuntu virtual machine system has been started at this time, the entire system state is that the Android virtual machine system occupies the input device.

[0095] In some embodiments, further, a state detection service can be started in the Android virtual machine system, and the touch message of the touch operation can be obtained through the state detection service, and a socket network link can be established between the first virtual network card and the second virtual network card and the Ubuntu virtual machine system. For the Ubuntu virtual machine system, it can receive the touch message forwarded by the Android virtual machine system through the state detection service through the input device monitoring service.

[0096] Based on the above description, it can be understood that when a user acts on an input device to generate a touch operation, in response to the touch operation, the Android virtual machine system can obtain a touch message of the touch operation through a state detection service; wherein, if it is determined through the state detection service that the virtual machine system targeted by the touch message is an Android virtual machine system, the touch message is sent to the Android virtual machine system; optionally, referring to Figure 4 Specifically, the touch message can be sent to the first input service in the Android virtual machine system, and the first input service further distributes the touch message to the first application software. At this time, the first application software can perform corresponding interface change operations according to the touch message.

[0097] If it is determined through the status detection service that the virtual machine system targeted by the touch message is the Ubuntu virtual machine system, optionally, the touch message can be forwarded to the Ubuntu virtual machine system through the socket service; optionally, the touch message can be sent to a second input service in the Ubuntu virtual machine system, and the second input service further forwards the touch message to the second application software. At this time, the second application software can perform corresponding game interface control according to the touch message.

[0098] In summary, when the information sharing method provided in the embodiment of the present application is applied to a vehicle-mounted terminal, multiple virtual machine systems can share one input device without affecting the realization of the specific functions of each virtual machine system, which can reduce the manufacturing cost of the vehicle-mounted terminal and improve the applicability of the vehicle-mounted terminal, bringing users more and richer in-vehicle entertainment experience.

[0099] Of course, it should be noted that, according to the actual application scenario, when the input device is a touch screen, each virtual machine system can also share the input device in split screen. For example, part of the touch area of ​​the touch screen can be used by the first virtual machine system, and the remaining touch area can be used by the second virtual machine system. Of course, the specific setting method is not limited to this and can be different according to the actual application scenario.

[0100] Figure 5 This is a functional module diagram of an information sharing device based on a multi-virtual machine system provided in an embodiment of the present application. The device may be a terminal, which is configured to be installed with a main operating system and multiple virtual machine systems running on the main operating system. The basic principle and technical effects of the device are the same as those of the corresponding method embodiment described above. For the sake of brief description, the parts not mentioned in this embodiment may refer to the corresponding contents in the method embodiment. Figure 5 As shown, the information sharing device 100 may include:

[0101] A response module 110, configured to, in response to a touch operation on the terminal, obtain a touch message of the touch operation through a first virtual machine system among the plurality of virtual machine systems;

[0102] The forwarding module 120 is used to forward the touch message to the second virtual machine system through the first virtual machine system to trigger the second virtual machine system to respond to the touch operation if the virtual machine system targeted by the touch message is determined by the first virtual machine system to be the second virtual machine system among the multiple virtual machine systems.

[0103] In an optional embodiment, the forwarding module 120 is specifically used to distribute the touch message to the first application software running on the first virtual machine system through the first virtual machine system if it is determined through the first virtual machine system that the virtual machine system targeted by the touch message is the first virtual machine system, so that the first application software responds to the touch operation.

[0104] In an optional implementation, the forwarding module 120 is specifically used to forward the touch message to the second virtual machine system through the first virtual machine system, so that the second virtual machine system distributes the touch message to the second application software running in the second virtual machine system and triggers the second application software to respond to the touch operation.

[0105] In an optional embodiment, the forwarding module 120 is specifically used to determine that the virtual machine system targeted by the touch message is the second virtual machine system if the touch coordinates in the touch message are determined by the first virtual machine system to be the location of the second icon identifier corresponding to the second application software, or the application type indicated by the touch message is the application type corresponding to the second application software.

[0106] In an optional implementation, the response module 110 is further configured to start the main operating system in the terminal in response to a first startup operation on the terminal;

[0107] In response to a second startup operation on the first virtual machine system, the first virtual machine system is started on the main operating system, and the input device of the terminal is mounted to the first virtual machine system to respond to input operations of the input device through the first virtual machine system.

[0108] In an optional embodiment, the first virtual machine system is configured to include a first virtual network card, and the second virtual machine system is configured to include a second virtual network card; the forwarding module 120 is specifically used to forward the touch message to the second virtual machine system through the first virtual machine system via the first virtual network card and the second virtual network card based on the socket service.

[0109] In an optional implementation, the first virtual machine system is an Android virtual machine system, and the second virtual machine system is an Ubuntu virtual machine system.

[0110] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0111] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0112] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device can be integrated into a terminal. Figure 6 As shown, the electronic device may include: a processor 210, a storage medium 220 and a bus 230, the storage medium 220 stores machine-readable instructions executable by the processor 210, when the electronic device is running, the processor 210 and the storage medium 220 communicate through the bus 230, and the processor 210 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0113] Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiment are executed. The specific implementation method and technical effect are similar and will not be repeated here.

[0114] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0115] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0116] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0117] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0118] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0119] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. An information sharing method based on a multi-virtual machine system, characterized in that: Applied to a terminal, the terminal is configured to be installed with a main operating system and multiple virtual machine systems running on the main operating system, the terminal is a vehicle-mounted terminal, and the method includes: In response to a touch operation on the terminal, acquiring a touch message of the touch operation through a first virtual machine system among the plurality of virtual machine systems; If it is determined through the first virtual machine system that the virtual machine system targeted by the touch control message is a second virtual machine system among the multiple virtual machine systems, the touch control message is forwarded to the second virtual machine system through the first virtual machine system to trigger the second virtual machine system to respond to the touch control operation; The first virtual machine system is configured to include a first virtual network card, and the second virtual machine system is configured to include a second virtual network card; The forwarding the touch control message to the second virtual machine system through the first virtual machine system includes: The touch message is forwarded to the second virtual machine system through the first virtual machine system via the first virtual network card and the second virtual network card based on a socket service.

2. The method according to claim 1, characterized in that: The method further comprises: If the first virtual machine system determines that the virtual machine system targeted by the touch message is the first virtual machine system, the first virtual machine system distributes the touch message to the first application software running in the first virtual machine system, so that the first application software responds to the touch operation.

3. The method according to claim 1, characterized in that The step of forwarding the touch control message to the second virtual machine system through the first virtual machine system to trigger the second virtual machine system to respond to the touch control operation includes: The touch control message is forwarded to the second virtual machine system through the first virtual machine system, so that the second virtual machine system distributes the touch control message to the second application software running in the second virtual machine system and triggers the second application software to respond to the touch control operation.

4. The method according to claim 3, characterized in that If it is determined through the first virtual machine system that the virtual machine system targeted by the touch message is a second virtual machine system among the multiple virtual machine systems, the method includes: If the touch coordinates in the touch message are determined by the first virtual machine system to be the location of the second icon identifier corresponding to the second application software, or the application type indicated by the touch message is the application type corresponding to the second application software, then it is determined that the virtual machine system targeted by the touch message is the second virtual machine system.

5. The method according to claim 1, characterized in that Before, in response to the touch operation on the terminal, acquiring, by the first virtual machine system among the plurality of virtual machine systems, a touch message of the touch operation, the method further includes: In response to a first startup operation on the terminal, starting the main operating system in the terminal; In response to a second startup operation on the first virtual machine system, the first virtual machine system is started on the main operating system, and the input device of the terminal is mounted to the first virtual machine system to respond to input operations of the input device through the first virtual machine system.

6. The method according to any one of claims 1 to 5, characterized in that: The first virtual machine system is an Android virtual machine system, and the second virtual machine system is an Ubuntu virtual machine system.

7. An information sharing device based on virtual multi-system, characterized in that: Applied to a terminal, the terminal is configured to be installed with a main operating system and multiple virtual machine systems running on the main operating system, the terminal is a vehicle-mounted terminal, and the information sharing device includes: A response module, configured to, in response to a touch operation on the terminal, obtain a touch message of the touch operation through a first virtual machine system among the plurality of virtual machine systems; a forwarding module, configured to forward the touch message to the second virtual machine system through the first virtual machine system to trigger the second virtual machine system to respond to the touch operation if it is determined through the first virtual machine system that the virtual machine system targeted by the touch message is a second virtual machine system among the multiple virtual machine systems; The first virtual machine system is configured to include a first virtual network card, and the second virtual machine system is configured to include a second virtual network card; The forwarding module is specifically configured to forward the touch message to the second virtual machine system through the first virtual machine system via the first virtual network card and the second virtual network card based on a socket service.

8. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is executed.

Citation Information

Patent Citations

  • Method for constructing lightweight virtualization system

    CN111290837A

  • Touch control method and device based on multiple operating systems of vehicle machine and computer equipment

    CN114327137A