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

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

Info

Publication number
CN115033347A
CN115033347A CN202210687166.XA CN202210687166A CN115033347A CN 115033347 A CN115033347 A CN 115033347A CN 202210687166 A CN202210687166 A CN 202210687166A CN 115033347 A CN115033347 A CN 115033347A
Authority
CN
China
Prior art keywords
virtual machine
machine system
touch
terminal
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210687166.XA
Other languages
Chinese (zh)
Inventor
楼赵辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Ecarx Hubei Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ecarx Hubei Tech Co Ltd filed Critical Ecarx Hubei Tech Co Ltd
Priority to CN202210687166.XA priority Critical patent/CN115033347A/en
Publication of CN115033347A publication Critical patent/CN115033347A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45566Nested virtual machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45579I/O management, e.g. providing access to device drivers or storage

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an information sharing method, device, equipment and medium based on a multi-virtual machine system, and relates to the technical field of communication. The method may be applied to a terminal configured to be installed with a host operating system and a plurality of virtual machine systems running on the host operating system, the method including: responding to touch operation on a terminal, and acquiring a touch message of the touch operation through a first virtual machine system in a plurality of virtual machine systems; if the first virtual machine system determines that the virtual machine system targeted by the touch message is the second virtual machine system in the multiple virtual machine systems, the touch message is forwarded to the second virtual machine system through the first virtual machine system, so that the multiple virtual machine systems can share one input device without affecting the implementation of specific functions of the virtual machine systems, the applicability of the terminal can be improved, and the manufacturing cost of the terminal can be reduced.

Description

Information sharing method, device, equipment and medium based on multi-virtual machine system
Technical Field
The present application relates to the field of communications technologies, and in particular, to an information sharing method, apparatus, device, and medium based on a multiple virtual machine system.
Background
The vehicle-mounted terminal is front-end equipment of a vehicle monitoring and management system, is generally secretly installed in various vehicles, and mainly comprises various external equipment such as a vehicle-mounted video server, a touch screen, an external camera, a call handle, an automobile burglar alarm and the like.
In the related art, when the in-vehicle terminal displays information, the information display, such as playing a song, map navigation, etc., is mainly performed through a touch screen in the in-vehicle terminal based on an Operating System (OS) in the in-vehicle terminal. When large game software and entertainment software need to be installed in the vehicle-mounted terminal, the large game software and the entertainment software respectively have certain requirements on the operating environment of the operating system, so that the vehicle-mounted terminal runs a plurality of virtual machine systems.
However, when the in-vehicle terminal runs a plurality of virtual machine systems, in order to ensure that the software in each virtual machine system can receive the input information of the input device (e.g., a touch screen, a mouse, etc.) in the in-vehicle terminal, different input devices need to be configured for different virtual machine systems, which results in higher manufacturing cost of the in-vehicle terminal.
Disclosure of Invention
An object of the present application is to provide an information sharing method, apparatus, device and medium based on a multi-virtual machine system, which can reduce the manufacturing cost of a terminal by applying the embodiments of the present application.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, the present invention provides an information sharing method based on multiple virtual machine systems, applied to a terminal, where 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 includes:
responding to touch operation of the terminal, and acquiring a touch message of the touch operation through a first virtual machine system in a plurality of virtual machine systems;
if the first virtual machine system determines that the virtual machine system to which the touch message is directed is a second virtual machine system in the plurality of virtual machine systems, 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.
In an alternative embodiment, the method further comprises:
if the virtual machine system to which the touch message is directed is determined to be the first virtual machine system through the first virtual machine system, the touch message is distributed to first application software running on the first virtual machine system through the first virtual machine system, so that the first application software responds to the touch operation.
In an optional embodiment, the forwarding, by the first virtual machine system, the touch message to the second virtual machine system to trigger the second virtual machine system to respond to the touch operation includes:
forwarding, by the first virtual machine system, the touch message to the second virtual machine system, so that the second virtual machine system distributes the touch message to second application software running on the second virtual machine system, and triggering the second application software to respond to the touch operation.
In an optional implementation manner, if it is determined, by the first virtual machine system, that the virtual machine system to which the touch message is directed is a second virtual machine system in the plurality of virtual machine systems, the method includes:
if it is determined by the first virtual machine system that the touch coordinate in the touch message is the position 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, it is determined that the virtual machine system targeted by the touch message is the second virtual machine system.
In an optional implementation manner, before the obtaining, by the first virtual machine system of the multiple virtual machine systems, the touch message of the touch operation in response to the touch operation on the terminal, the method further includes:
responding to a first starting operation of the terminal, and starting the main operating system in the terminal;
responding to a second starting operation of the first virtual machine system, starting the first virtual machine system on the main operating system, and mounting the input device of the terminal into the first virtual machine system so as to respond to the input operation of the input device through the first virtual machine system.
In an alternative 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;
forwarding, by the first virtual machine system, the touch message to the second virtual machine system, including:
forwarding, by the first virtual machine system, the touch message to the second virtual machine system via the first virtual network card and the second virtual network card based on a socket service.
In an optional embodiment, the first virtual machine system is an android virtual machine system, and the second virtual machine system is an Uban diagram virtual machine system.
In a second aspect, the present invention provides an information sharing apparatus based on a virtual multisystem, applied to a terminal, where the terminal is configured to be installed with a host operating system and a plurality of virtual machine systems running on the host operating system, and the information sharing apparatus includes:
the response module is used for responding to touch operation of the terminal and acquiring touch information of the touch operation through a first virtual machine system in the virtual machine systems;
and the forwarding module is configured to forward the touch message to a 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 that the virtual machine system to which the touch message is directed is the second virtual machine system in the multiple virtual machine systems through the first virtual machine system.
In an optional implementation manner, the forwarding module is specifically configured to, if it is determined that the virtual machine system to which the touch message is directed is the first virtual machine system through the first virtual machine system, distribute the touch message to 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.
In an optional implementation manner, the forwarding module is specifically configured 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 second application software running on the second virtual machine system, and triggers the second application software to respond to the touch operation.
In an optional embodiment, the forwarding module is specifically configured to determine that the virtual machine system to which the touch message is directed is the second virtual machine system if it is determined that the touch coordinate in the touch message is the position where the second icon identifier corresponding to the second application software is located by the first virtual machine system, or the application type indicated by the touch message is the application type corresponding to the second application software.
In an optional embodiment, the response module is further configured to start the main operating system in the terminal in response to a first start operation on the terminal;
responding to a second starting operation of the first virtual machine system, starting the first virtual machine system on the main operating system, and mounting the input device of the terminal into the first virtual machine system so as to respond to the input operation of the input device through the first virtual machine system.
In an alternative 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 configured to forward, through the first virtual machine system based on a socket service, the touch message to the second virtual machine system via the first virtual network card and the second virtual network card.
In an optional embodiment, the first virtual machine system is an android virtual machine system, and the second virtual machine system is an Uban diagram virtual machine system.
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, when the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute the method according to any one of the preceding implementation modes.
In a fourth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method according to any of the preceding embodiments.
In a fifth aspect, the invention provides a vehicle comprising the electronic device of the foregoing embodiment.
The beneficial effect of this application is:
in an information sharing method, an apparatus, a device, and a medium based on a multi-virtual machine system provided in an embodiment of the present application, the method may be applied to a terminal, where 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 includes: responding to touch operation on a terminal, and acquiring touch information of the touch operation through a first virtual machine system in a plurality of virtual machine systems; if the first virtual machine system determines that the virtual machine system to which the touch message is directed is a second virtual machine system in 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, and by applying the method, the multiple virtual machine systems can share one input device without influencing the realization of specific functions of the virtual machine systems, so that the applicability of the terminal can be improved; in addition, compared with the prior art, because no additional input equipment is required to be introduced, the manufacturing cost of the terminal can be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flowchart of an information sharing method based on a multiple virtual machine system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another information sharing method based on a multiple virtual machine system according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another information sharing method based on a multiple virtual machine system according to an embodiment of the present application;
fig. 4 is an information sharing architecture based on a multi-virtual machine system according to an embodiment of the present disclosure;
fig. 5 is a schematic functional module diagram of an information sharing apparatus based on a multi-virtual machine system according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures.
In the prior art, when the vehicle-mounted terminal runs a plurality of virtual machine systems, and the virtual machine systems are independent from each other, in order to ensure that each application software installed in each virtual machine system can normally interact with an input device (e.g., a touch screen, a mouse, etc.) in the vehicle-mounted terminal, different input devices need to be configured for different virtual machine systems, which results in higher manufacturing cost of the vehicle-mounted terminal.
In view of this, the present application embodiment provides an information sharing method based on a multi-virtual machine system, where the method may be applied to a terminal, and by applying the present application embodiment, under a condition that it is ensured that each application software in each virtual machine system can normally interact with an input device (e.g., a touch screen, a mouse, etc.) in the terminal, manufacturing cost of the terminal may be reduced.
Fig. 1 is a schematic flowchart of an information sharing method based on a multi-virtual machine system according to an embodiment of the present disclosure, where the method may be applied to a terminal, and the terminal may be a mobile phone terminal, a vehicle-mounted terminal, an industrial terminal, and the like, which is not limited herein. The terminal may be configured to be installed with a host operating system and a plurality of virtual machine systems running on the host operating system, and the plurality of virtual machine systems may share an input device, a display device, and the like in the terminal, which is not limited herein.
Optionally, the main operating system may be a Linux operating system, a UNIX operating system, a Windows operating system, or the like, which is not limited herein, and may be different according to an actual application scenario; the plurality of virtual machine systems may include, but are not limited to: the virtual machine system may be a single virtual machine system, and the number of virtual machine systems in the main operating system is not limited herein, and may include: 3, 5, etc. Wherein, the main operating system and each virtual machine system can be installed with application software, which can include but is not limited to: the software may be, but is not limited to, meter software, navigation software, music software, chat software, shopping software, game software, and the like, and may be different according to an actual application scenario. In order to better understand the embodiments of the present application, some embodiments in the following description will be described by taking an in-vehicle terminal as an example.
As shown in fig. 1, the method may include:
s101, responding to touch operation on the terminal, and acquiring a touch message of the touch operation through a first virtual machine system in the multiple virtual machine systems.
The terminal can comprise an input device, and touch operation aiming at the terminal can be generated based on the input device. Alternatively, the input devices may include, but are not limited to: touch screen, headphones, mouse, gamepad, etc., without limitation. It is understood that the corresponding touch operations may be different according to the input device, for example, the touch operations may include but are not limited to: click, long press, slide, drag, etc., without limitation.
In some embodiments, the first virtual machine system of the plurality of virtual machine systems may be any virtual machine system of the plurality of virtual machine systems, which may be determined by the host operating system according to a preset rule, or may be specified by a user, which is not limited herein.
The terminal responds to a touch operation input through an input device, and may acquire, through the first virtual machine system, a touch message of the touch operation, where optionally, the touch message may include: current interface identification, touch time, touch coordinates, etc., without limitation.
And S102, if the first virtual machine system determines that the virtual machine system to which the touch message is directed is a second virtual machine system in the multiple virtual machine systems, 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.
It can be understood that, since the plurality of virtual machine systems share the same input device, after the touch message of the touch operation is acquired, it is necessary to determine, by the first virtual machine system, which virtual machine system of the plurality of virtual machine systems the virtual machine system to which the touch message is specific, so that the touch message can be forwarded to the corresponding virtual machine system, and it is ensured that the touch message is correctly forwarded and the plurality of virtual machine systems can normally share the same input device.
If it is determined that the virtual machine system targeted by the touch message is the second virtual machine system, the touch message may 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, where the second virtual machine system may execute the first control operation in response to the touch operation.
For example, taking the second virtual machine system as an example of a virtual machine system in which a certain game software is located, the first control operation may specifically be: the game software is opened, and the virtual character is controlled on the game battle interface to execute control operations such as displacement, attack, defense and the like, which are not limited herein and can be different according to different types of the game software.
In some embodiments, a state detection service may be deployed in the first virtual machine system, where the state detection service may run in the first virtual machine system in the form of a process or a thread, and based on the state detection service, it may be determined whether the virtual machine system targeted by the touch message is a second virtual machine system in the multiple virtual machine systems, and of course, a specific determination manner is not limited thereto, and may be different according to an actual application scenario.
In summary, an embodiment of the present application provides an information sharing method based on multiple virtual machine systems, where the method may be applied to a terminal configured to be installed with a main operating system and multiple virtual machine systems running on the main operating system, and the method includes: responding to the vehicle-mounted touch operation, and acquiring a touch message of the touch operation through a first virtual machine system in the multiple virtual machine systems; if the first virtual machine system determines that the virtual machine system to which the touch message is directed is a second virtual machine system in 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, and by applying the method, the multiple virtual machine systems can share one input device without influencing the realization of specific functions of the virtual machine systems, so that the applicability of the terminal can be improved; in addition, compared with the prior art, the manufacturing cost of the terminal can be reduced because no additional input equipment is required to be introduced.
Optionally, the input device may include a touch screen, and the touch screen may be configured to display a first icon identifier corresponding to first application software installed in the first virtual machine system, and optionally, the first application software may be media entertainment software such as navigation software, music software, chat software, shopping software, and the like installed in the first virtual machine system.
Fig. 2 is a schematic flow chart of another information sharing method based on a multiple virtual machine system according to an embodiment of the present application, where based on the foregoing embodiment, as shown in fig. 2, the method further includes:
s201, if it is determined that the virtual machine system targeted by the touch message is the first virtual machine system through the first virtual machine system, distributing the touch message to 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.
Optionally, the terminal may include a touch screen, where a first icon identifier corresponding to first application software installed in the first virtual machine system may be displayed on the touch screen, and optionally, a user may act on the first icon identifier through a single-click, multiple-click, long-press, sliding, dragging, and other touch operations based on the touch screen to generate a touch operation, and in response to the touch operation, if it is determined that a virtual machine system to which a touch message corresponding to the touch operation is directed is the first virtual machine system through the first virtual machine system, then the touch message may be distributed to the first application software through the first virtual machine system, so that the first application software responds to the touch operation.
For example, taking the first application software as chat software as an example for explanation, the first application software may perform the following second control operation in response to the touch operation: the chat software is opened, and voice, symbols, files, pictures, links, etc. are sent to the specified user in the chat dialog box, which is not limited herein, and may be different according to the first application software.
Optionally, the touch screen may be further configured to display a second icon identifier corresponding to a second application software installed in the second virtual machine system, and the description about the second application software may refer to the description about the first application software, which is not limited herein.
In some embodiments, the step of forwarding, by the first virtual machine system, the touch message to the second virtual machine system to trigger the second virtual machine system to respond to the touch operation may include:
and forwarding the touch message to a second virtual machine system through the first virtual machine system, so that the second virtual machine system distributes the touch message to second application software running on the second virtual machine system and triggers the second application software to respond to the touch operation.
If the touch message is specifically directed to a second application software running in a second virtual machine system, the touch message may be distributed to the second application software through the second virtual machine system when forwarding, and further, for the second application software, the second application software may respond to the touch operation, and of course, in some embodiments, the second application software may also be triggered to execute the first control operation. Optionally, the first control operation may be entering a main interface corresponding to the second application software, and the like, which is not limited herein.
In some embodiments, the second application software may be game-type application software, and it is understood that, by applying the embodiments of the present application, any type of game application software (for example, shooting type, sports type, role playing type, and the like) may be installed in the terminal, and a situation that the current existing virtual machine system in the terminal does not support the operation of the game application software may be avoided, so that the manufacturing cost of the terminal may be reduced, and the applicability of the terminal may be improved.
In some embodiments, the step of responding to the touch operation of the terminal may include: and responding to the touch operation of a second icon identifier corresponding to second application software in the touch screen.
The second icon identifier can be displayed at any displayable position in the touch screen, and a user can act on an area displayed by the second icon identifier in the touch screen through touch operations such as clicking, sliding, long pressing and the like; optionally, the touch purpose corresponding to the touch operation may be: the second application software corresponding to the second icon identifier is opened, or a shortcut function corresponding to the second application software is entered, or other touch purposes may be performed, which is not limited herein, and may be different according to different touch messages of the touch operation.
Optionally, the touch message may include: the touch coordinate may be used to represent a touch position of the touch operation on the touch screen, that is, a coordinate position, where the touch coordinate may be represented by two-dimensional coordinates (x, y), x may represent a touch coordinate point of the touch operation on a first coordinate axis direction (x axis) of the touch screen, and y may represent a touch coordinate point of the touch operation on a second coordinate axis direction (y axis) of the touch screen.
Accordingly, if the first virtual machine system determines that the virtual machine system to which the touch message is directed is the second virtual machine system in the multiple virtual machine systems, the step may include:
if the touch coordinate in the touch message is determined to be the position of the second icon identifier corresponding to the second application software by the first virtual machine system, or the application type indicated by the touch message is the application type corresponding to the second application software, the virtual machine system targeted by the touch message is determined to be the second virtual machine system.
The touch control method includes the steps that when icon identifications of application software are displayed through a touch screen, the position of each icon identification is unique, namely the application software corresponding to each icon identification can be determined according to the position of each icon identification, and therefore if a touch control coordinate in a touch control message is determined to be the position of a second icon identification corresponding to the second application software through a first virtual machine system, the application software corresponding to the touch control operation can be determined to be the second application software; further, since the second application software is installed in the second virtual machine system, it may be further determined that the virtual machine system corresponding to the touch message is the second virtual machine system.
In some embodiments, different types of application software may be configured to correspond to different application type identifiers, and optionally, when the user acts on each application software through the input device, the generated touch message may further include the application type identifier. If the application type indicated by the touch message is determined to be the application type corresponding to the second application software by the first virtual machine system, it may be determined that the virtual machine system to which the touch message is directed is the second virtual machine system. Optionally, the application type corresponding to the second application software may be a game type, and is not limited herein.
Certainly, it should be noted that, in some embodiments, the touch message may further include a current interface identifier, so that the touch messages corresponding to the touch operations may be distinguished according to the interface identifier, and the touch messages are accurately classified and forwarded. In addition, the application does not limit the number of the application software running in the second virtual machine system, and according to an actual application scenario, the application may further include: a third application software, a fourth application software, etc., wherein the third application software is taken as an example for explanation, and the application type of the third application software may be the same as or different from that of the second application software, and is not limited herein.
Fig. 3 is a schematic flowchart of another information sharing method based on a multiple virtual machine system according to an embodiment of the present application. Optionally, as shown in fig. 3, before the touch message of the touch operation is acquired by the first virtual machine system of the multiple virtual machine systems in response to the touch operation on the terminal, the method further includes:
s401, responding to a first starting operation of the terminal, and starting a main operating system in the terminal.
Alternatively, the first start operation may be triggered by a user through a start button in the terminal, and the main operating system may be started in the terminal in response to the first start operation.
S402, responding to a second starting operation of the first virtual machine system, starting the first virtual machine system on the main operating system, and mounting the input device of the terminal into the first virtual machine system so as to respond to the input operation of the input device through the first virtual machine system.
In some embodiments, the second start operation may be triggered by the user through the main operating system, or may be triggered by a start script pre-configured in the main operating system, which is not limited herein. In response to the second start operation, the first virtual machine system may be started in the main operating system, and in the starting process, the input device of the terminal may be mounted to the first virtual machine system, so that the input operation generated through the input device may be responded by mounting the first virtual machine system. For the description of the input device, reference may be made to the related parts mentioned above, which are not described herein again.
Optionally, the interface type of the input device may be an interface such as a Universal Serial Bus (USB), a Universal Asynchronous Receiver/Transmitter (UART), a Controller Area Network (CAN), and the like, which is not limited herein.
Fig. 4 is an information sharing architecture based on a multi-virtual machine system according to an embodiment of the present disclosure, as shown in fig. 4, the terminal may include other hardware devices such as an input device (e.g., a touch screen), a sound card, and a display screen (e.g., an instrument display screen), and is installed with a main operating system, the main operating system may include hardware drivers of various hardware devices (e.g., may include an input device driver, a network card driver, an audio driver, and a display card driver), and is installed with a QEMU virtual machine (which may be understood as a virtual machine software for simulating and running multiple virtual machine systems in the main operating system), where the QEMU virtual machine may run a first virtual machine system and a second virtual machine system in the main operating system.
Referring to fig. 4, the first virtual machine system may have first application software installed therein and be configured to include a first virtual network card, and the second virtual machine system may have second application software installed therein and be configured to include a second virtual network card. In addition, referring to the foregoing 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.
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:
and forwarding 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.
In some embodiments, the first virtual machine system may 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 the touch message may also be forwarded to the second virtual machine system based on a shared memory technology or the like according to an actual application scenario, which is not limited herein and may be flexibly selected according to the actual application scenario.
In some embodiments, the first virtual machine system may be an android virtual machine system, and the second virtual machine system may be a Wobban virtual machine system, and of course, the specific setting manner is not limited thereto.
In order to better understand the embodiment of the application, a terminal is taken as a vehicle-mounted terminal, a main operating system is taken as a Linux operating system, a first virtual machine system is taken as an android virtual machine system, a second virtual machine system is taken as an Uban image virtual machine system, first application software installed in the android virtual machine system is taken as multimedia software, and second application software installed in the Uban image virtual machine system is taken as game software.
Optionally, referring to fig. 4, the primary operating system may be set based on an amd (advanced Micro devices) platform, and after the vehicle-mounted terminal is powered on, the primary operating system may be normally powered on and started. Based on the started main operating system, driving parameters of an input device (such as a touch screen, a mouse, a game handle and the like) can be configured; mounting the input equipment into the Android virtual machine system so that the Android virtual machine system can respond to the input operation of the input equipment; starting the Android virtual machine system (for example, the Android virtual machine system can be started by means of QEMU virtual machine software), and it can be understood that an actually existing input device driver (for example, a USB-type input device driver) can be seen in the Android virtual machine system at this time; starting the ubuntu virtual machine system (e.g., it can be started by means of QEMU virtual machine software); it can be understood that, at this time, although the ubuntu virtual machine system is started, the entire system state is that the Android virtual machine system occupies the input device.
In some embodiments, further, a state detection service may be started in the Android virtual machine system, a touch message of a touch operation is obtained through the state detection service, and a socket network link is established between the ubuntu virtual machine system and the first virtual network card and the second virtual network card. For the ubuntu virtual machine system, the touch message forwarded by the Android virtual machine system through the state detection service can be received through the input device monitoring service.
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 may obtain a touch message of the touch operation through a state detection service; if the virtual machine system aimed at by the touch message is determined to be the Android virtual machine system through the state detection service, the touch message is sent to the Android virtual machine system; optionally, referring to fig. 4, the touch message may be specifically sent to a first input service in the Android virtual machine system, and the first input service further distributes the touch message to first application software, so that the first application software performs corresponding interface change operation according to the touch message.
If the virtual machine system targeted by the touch message is determined to be an ubuntu virtual machine system through the state detection service, optionally, the touch message can be forwarded to the ubuntu virtual machine system through the socket service; optionally, the touch message may be specifically sent to a second input service in the ubuntu virtual machine system, and the second input service further forwards the touch message to second application software, so that the second application software performs corresponding game interface control according to the touch message at this time.
In summary, when the information sharing method provided by the embodiment of the application is applied to the vehicle-mounted terminal, the plurality of virtual machine systems can share one input device without affecting the realization of the specific functions of the virtual machine systems, the manufacturing cost of the vehicle-mounted terminal can be reduced, the applicability of the vehicle-mounted terminal can be improved, and more and richer vehicle-mounted entertainment experience can be brought to users.
Of course, it should be noted that, according to an actual application scenario, when the input device is a touch screen, the virtual machine systems may share the input device in a split screen manner. For example, a part of the touch areas of the touch screen may be used by the first virtual machine system, and the rest of the touch areas may be used by the second virtual machine system.
Fig. 5 is a functional module schematic diagram of an information sharing apparatus based on multiple virtual machine systems according to an embodiment of the present application, where the apparatus may be a terminal, and the terminal is configured to be installed with a main operating system and multiple virtual machine systems running on the main operating system. As shown in fig. 5, the information sharing apparatus 100 may include:
a response module 110, configured to, in response to a touch operation on the terminal, obtain, by a first virtual machine system in the multiple virtual machine systems, a touch message of the touch operation;
a forwarding module 120, configured to forward, by the first virtual machine system, the touch message to a second virtual machine system of the multiple virtual machine systems if it is determined that the virtual machine system to which the touch message is directed is the second virtual machine system, so as to trigger the second virtual machine system to respond to the touch operation.
In an optional embodiment, the forwarding module 120 is specifically configured to, if it is determined that the virtual machine system to which the touch message is directed is the first virtual machine system through the first virtual machine system, distribute the touch message to 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.
In an optional embodiment, the forwarding module 120 is specifically configured 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 second application software running on the second virtual machine system, and triggers the second application software to respond to the touch operation.
In an optional embodiment, the forwarding module 120 is specifically configured to determine that the virtual machine system to which the touch message is directed is the second virtual machine system if it is determined, by the first virtual machine system, that the touch coordinate in the touch message is the position where the second icon identifier corresponding to the second application software is located, or the application type indicated by the touch message is the application type corresponding to the second application software.
In an optional embodiment, the response module 110 is further configured to respond to a first start operation on the terminal, and start the main operating system in the terminal;
responding to a second starting operation of the first virtual machine system, starting the first virtual machine system on the main operating system, and mounting the input device of the terminal into the first virtual machine system so as to respond to the input operation of the input device through the first virtual machine system.
In an alternative 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 configured to forward, through the first virtual machine system based on a socket service, the touch message to the second virtual machine system via the first virtual network card and the second virtual network card.
In an optional embodiment, the first virtual machine system is an android virtual machine system, and the second virtual machine system is an Uban diagram virtual machine system.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These 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), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device may be integrated in a terminal. As shown in fig. 6, the electronic device may include: a processor 210, a storage medium 220, and a bus 230, wherein the storage medium 220 stores machine-readable instructions executable by the processor 210, and when the electronic device is operated, the processor 210 communicates with the storage medium 220 via the bus 230, and the processor 210 executes the machine-readable instructions to perform the steps of the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
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 computer program performs the steps of the above method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. An information sharing method based on multiple virtual machine systems is applied to a terminal, the terminal is configured to be provided with a main operating system and multiple virtual machine systems running on the main operating system, and the method comprises the following steps:
responding to touch operation of the terminal, and acquiring a touch message of the touch operation through a first virtual machine system in a plurality of virtual machine systems;
if the first virtual machine system determines that the virtual machine system to which the touch message is directed is a second virtual machine system in the plurality of virtual machine systems, 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.
2. The method of claim 1, further comprising:
if the virtual machine system to which the touch message is directed is determined to be the first virtual machine system through the first virtual machine system, the touch message is distributed to first application software running on the first virtual machine system through the first virtual machine system, so that the first application software responds to the touch operation.
3. The method of claim 1, wherein forwarding, by the first virtual machine system, the touch message to the second virtual machine system to trigger the second virtual machine system to respond to the touch operation comprises:
forwarding, by the first virtual machine system, the touch message to the second virtual machine system, so that the second virtual machine system distributes the touch message to second application software running on the second virtual machine system, and triggering the second application software to respond to the touch operation.
4. The method of claim 3, wherein if the first virtual machine system determines that the virtual machine system to which the touch message is directed is a second virtual machine system of the plurality of virtual machine systems, the method comprises:
if it is determined by the first virtual machine system that the touch coordinate in the touch message is the position 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, 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, wherein before the touch message of the touch operation is obtained by a first virtual machine system of the plurality of virtual machine systems in response to the touch operation on the terminal, the method further comprises:
responding to a first starting operation of the terminal, and starting the main operating system in the terminal;
responding to a second starting operation of the first virtual machine system, starting the first virtual machine system on the main operating system, and mounting the input device of the terminal into the first virtual machine system so as to respond to the input operation of the input device through the first virtual machine system.
6. The method of claim 1, wherein 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;
forwarding, by the first virtual machine system, the touch message to the second virtual machine system, including:
and forwarding the touch message to the second virtual machine system through the first virtual network card and the second virtual network card by the first virtual machine system based on socket service.
7. The method of any one of claims 1-6, wherein the first virtual machine system is an android virtual machine system and the second virtual machine system is a Uban graph virtual machine system.
8. An information sharing apparatus based on a virtual multisystem, applied to a terminal configured to be installed with a host operating system and a plurality of virtual machine systems running on the host operating system, the information sharing apparatus comprising:
the response module is used for responding to touch operation of the terminal and acquiring touch information of the touch operation through a first virtual machine system in the plurality of virtual machine systems;
and the forwarding module is configured to forward the touch message to a 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 that the virtual machine system to which the touch message is directed is the second virtual machine system in the multiple virtual machine systems through the first virtual machine system.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202210687166.XA 2022-06-16 2022-06-16 Information sharing method, device, equipment and medium based on multi-virtual machine system Pending CN115033347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210687166.XA CN115033347A (en) 2022-06-16 2022-06-16 Information sharing method, device, equipment and medium based on multi-virtual machine system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210687166.XA CN115033347A (en) 2022-06-16 2022-06-16 Information sharing method, device, equipment and medium based on multi-virtual machine system

Publications (1)

Publication Number Publication Date
CN115033347A true CN115033347A (en) 2022-09-09

Family

ID=83124128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210687166.XA Pending CN115033347A (en) 2022-06-16 2022-06-16 Information sharing method, device, equipment and medium based on multi-virtual machine system

Country Status (1)

Country Link
CN (1) CN115033347A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115686887A (en) * 2022-12-27 2023-02-03 蔚来汽车科技(安徽)有限公司 Input event distribution method and system for intelligent cockpit and vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115686887A (en) * 2022-12-27 2023-02-03 蔚来汽车科技(安徽)有限公司 Input event distribution method and system for intelligent cockpit and vehicle

Similar Documents

Publication Publication Date Title
CN108197976B (en) Reward issuing method, device and server
CN111991813B (en) Method and device for logging in game, electronic equipment and storage medium
US9218212B2 (en) Pairing physical devices to virtual devices to create an immersive environment
KR102656642B1 (en) Method, system, and computer program for providing chatroom embedded content
CN109032732B (en) Notification display method and device, storage medium and electronic equipment
CN111857858A (en) Method and apparatus for processing information
CN110659013A (en) Message processing method and device and storage medium
CN111481939B (en) Game account control method, device, medium and electronic equipment
CN115033347A (en) Information sharing method, device, equipment and medium based on multi-virtual machine system
CN112684959A (en) Control method and device and electronic equipment
CN113082707A (en) Virtual object prompting method and device, storage medium and computer equipment
CN113489637A (en) Method and device for adding reminding object, storage medium and computer equipment
CN113332719A (en) Virtual article marking method, device, terminal and storage medium
CN109107148B (en) Control method, control device, storage medium and mobile terminal
JP2014221620A (en) Display controller and program
CN113138786B (en) Application updating method and device
CN111399960B (en) Screen locking method and device, electronic equipment and storage medium
CN113521727A (en) Game reconnection method, device, equipment and storage medium
CN112989234A (en) Data display method and device, terminal equipment and storage medium
CN111800551A (en) Voice navigation menu generation method and device, electronic equipment and storage medium
CN114443868A (en) Multimedia list generation method and device, storage medium and electronic equipment
WO2019240305A1 (en) Method, system, and non-transitory computer-readable recording medium for processing chat room on basis of degree of use
CN112162838B (en) Multimedia file playing method and device and electronic equipment
WO2023029557A1 (en) Information pushing method and apparatus, and electronic device and storage medium
CN112988160B (en) Server compiling method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination