WO2023284755A1 - Switching control method and apparatus, interactive smart tablet, and storage medium - Google Patents

Switching control method and apparatus, interactive smart tablet, and storage medium Download PDF

Info

Publication number
WO2023284755A1
WO2023284755A1 PCT/CN2022/105293 CN2022105293W WO2023284755A1 WO 2023284755 A1 WO2023284755 A1 WO 2023284755A1 CN 2022105293 W CN2022105293 W CN 2022105293W WO 2023284755 A1 WO2023284755 A1 WO 2023284755A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
application
icon
interface
virtual system
Prior art date
Application number
PCT/CN2022/105293
Other languages
French (fr)
Chinese (zh)
Inventor
苏良虎
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
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 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2023284755A1 publication Critical patent/WO2023284755A1/en

Links

Images

Classifications

    • 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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/451Execution arrangements for user interfaces
    • 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/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt

Definitions

  • the embodiments of the present application relate to the technical field of virtual machines, and in particular, to a switching control method and device, an interactive smart tablet, and a storage medium.
  • the interactive smart tablet is an integrated device that controls the content displayed on the tablet and realizes human-computer interaction through touch technology. It integrates a projector, electronic whiteboard, curtain, audio, TV and video conference terminal or multiple functions. Large-sized interactive smart tablets are widely used in the education market and conference market.
  • multiple operating systems are installed in the interactive smart panel, such as installing Windows system and Android system, so as to realize the corresponding functions of running different operating systems in the interactive smart panel.
  • the device cost and hardware design complexity of the interactive smart panel are increased.
  • the embodiment of the present application provides a switching control method, device, interactive smart tablet and storage medium to solve the technical problems of high equipment cost and high complexity of hardware design in the related art when the interactive smart tablet supports multiple operating systems.
  • a switching control method including:
  • the first interface of the first virtual system is displayed, the first interface is the system desktop of the first virtual system, and the first interface is displayed with the first virtual system installed in the first virtual system.
  • the first application icon of the application and the second application icon of the second application installed in the second virtual system, the second virtual system is at least one;
  • the first selection instruction is used to select a target application icon among the second application icons;
  • the first interface is replaced with a second interface
  • the second interface is an application interface displayed after the second application corresponding to the target application icon is started.
  • the third interface being the second virtual system to which the second application belongs system desktop
  • the third interface displays the first application icon of the first virtual system and the second application icon of the second virtual system.
  • the start-up screen stops displaying, after displaying the first interface of the first virtual system, it further includes:
  • the virtual control area displays a first system icon of the first virtual system and a second system icon of the second virtual system ;
  • the second selection instruction being used to select a target system icon among the second system icons
  • the first interface is replaced with a fourth interface, and the fourth interface is the system desktop of the second virtual system corresponding to the target system icon.
  • starting the interactive smart tablet and displaying a customized startup screen includes:
  • start the main operating system of the interactive smart panel In response to the device startup instruction, start the main operating system of the interactive smart panel, the first virtual system and the second virtual system are installed in the main operating system, and the main operating system is a system that does not have a desktop environment. operating system;
  • a customized startup screen is displayed.
  • the start-up screen after the start-up screen stops displaying, before displaying the first interface of the first virtual system, it includes:
  • displaying the first interface of the first virtual system includes:
  • the startup screen stops displaying, display the startup screen of the first virtual system, and suspend the second virtual system in the background;
  • the start-up image stops displaying
  • the first interface of the first virtualization system is displayed.
  • the VMM service is a service provided by the main operating system, and the VMM message management service drives the management and operation of the first virtual system and the second virtual system.
  • the starting the first virtual system and the second virtual system includes:
  • the first virtual system is configured with a first icon service
  • the second virtual system is configured with a second icon service
  • replacing the first interface with the second interface includes:
  • the switching message including the target application icon and the second virtual system to which the target application icon belongs;
  • the VMM message management service notifies the second icon service of the second virtual system to which the target application icon belongs to start the second application corresponding to the target application icon;
  • the VMM service obtains the second interface of the second application, and replaces the first interface with the second interface.
  • the VMM message management service notifies the second icon service of the second virtual system to which the target application icon belongs to enable the second icon service corresponding to the target application icon.
  • Applications include:
  • the VMM message management service instructs to delete the touch device of the first virtual system
  • the VMM message management service instructs to delete the USB device of the first virtual system
  • the VMM message management service instructs to resume running the second virtual system to which the target application icon belongs;
  • the VMM message management service notifies the second icon service of the second virtual system to start the second application corresponding to the target application icon;
  • the VMM message management service instructs the second virtual system to add a USB device.
  • the first virtual system and the second virtual system when starting the first virtual system and the second virtual system, it also includes:
  • the first application information and the second application information are respectively collected by the first icon service and the second icon service, the first application information includes a first application icon and first path information of the first application, so The second application information includes a second application icon and second path information of the second application;
  • the second application icon is displayed on the first interface by the first icon service according to the second application information.
  • the first application information and/or the second application information in the shared directory are updated synchronously.
  • the virtual control area is provided by a display component of an interactive smart panel
  • the display screen component sends a query instruction to the first virtual system and the second virtual system through the VMM service, so as to obtain the first system icon of the first virtual system and the second virtual system through the query instruction.
  • the second system icon of the virtual system
  • the receiving the second selection instruction includes:
  • the VMM message management service of the VMM service receives the second selection instruction sent by the display screen component
  • replacing the first interface with the fourth interface includes:
  • the VMM message management service instructs to delete the touch device of the first virtual system
  • the VMM message management service instructs to delete the USB device of the first virtual system
  • a USB device is added to the second virtual system by the VMM message management service.
  • a switching control device including:
  • the first receiving module is configured to receive a device startup instruction
  • the first response module is configured to respond to the device startup instruction, start the interactive smart tablet and display a customized startup screen;
  • the first display module is configured to display the first interface of the first virtual system after the startup screen stops displaying, the first interface is the system desktop of the first virtual system, and the first interface displays the first The first application icon of the first application installed in the virtual system and the second application icon of the second application installed in the second virtual system, the second virtual system is at least one;
  • the second receiving module is configured to receive a first selection instruction, the first selection instruction is used to select a target application icon among the second application icons;
  • the second response module is configured to replace the first interface with a second interface in response to the first selection instruction, and the second interface is an application interface displayed after the second application corresponding to the target application icon is started. .
  • an interactive smart tablet including:
  • processors one or more processors
  • memory for storing one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the handover control method as described in the first aspect.
  • an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the handover control method as described in the first aspect is implemented.
  • an embodiment of the present application further provides a switching control program.
  • the program When the program is executed, operations related to the switching control method described in the first aspect can be realized.
  • the interactive smart tablet is started and a custom startup screen is displayed by receiving a device startup command.
  • the startup screen stops displaying, the first interface of the first virtual system is displayed, and the first interface displays the first The first application icon of the virtual system and the second application icon of the second virtual system, after that, receiving a first selection instruction for selecting the second application icon, and replacing the first interface with the second application according to the first selection instruction.
  • the technical means of the second interface after the second application corresponding to the icon is opened solves the technical problems of high equipment cost and high hardware design complexity when the interactive smart tablet supports multiple operating systems, and uses virtualization technology to use each operating system as a virtual
  • the operating system is installed in the interactive smart tablet, and there is no need to configure the corresponding physical CPU for each virtual operating system, only the physical CPU of the main operating system needs to be configured, which reduces the equipment cost and hardware design complexity.
  • virtualization technology when virtualization technology is applied to small-sized devices such as mobile phones and tablet computers, most of them are aimed at a single operating system. For example, when virtualization technology is applied to the Android system, it can accelerate the startup speed of the Android system. However, multiple operations cannot be applied to the device. system, and in an embodiment of the present application, a plurality of operating systems are installed in a large-sized interactive smart tablet through virtualization technology, thereby improving the functionality of the interactive smart tablet.
  • FIG. 1 is a flowchart of a handover control method provided by an embodiment of the present application
  • FIG. 2 is a first frame diagram of the system provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of another handover control method provided by an embodiment of the present application.
  • FIG. 4 is a flow chart of VMM service operation provided by an embodiment of the present application.
  • Fig. 5 is a schematic diagram of a first interface provided by an embodiment of the present application.
  • FIG. 6 is a flow chart of application startup provided by an embodiment of the present application.
  • FIG. 7 is a flow chart of application program switching provided by an embodiment of the present application.
  • FIG. 8 is a flowchart of a VMM service and icon service provided by an embodiment of the present application.
  • FIG. 9 is a second framework diagram of the system provided by an embodiment of the present application.
  • FIG. 10 is a flowchart of another handover control method provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a virtual control area provided by an embodiment of the present application.
  • FIG. 12 is a flow chart of virtual operating system switching provided by an embodiment of the present application.
  • FIG. 13 is a flowchart of a VMM service provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a switching control device provided by an embodiment of the present application.
  • Fig. 15 is a schematic structural diagram of an interactive smart tablet provided by an embodiment of the present application.
  • An embodiment of the present application provides a handover control method, which can be executed by a handover control device, which can be implemented by software and/or hardware, and the handover control device can be two or more A physical entity constitutes, or a physical entity constitutes.
  • the switching control device may be a smart device such as a laptop computer, a mobile phone, a tablet computer, or an interactive smart tablet.
  • the description is made by taking the switching control device as an interactive smart tablet as an example.
  • the interactive smart tablet can be selected as a large-sized interactive smart tablet.
  • a large-sized interactive smart tablet refers to an interactive smart tablet that reaches a set size threshold.
  • the size threshold can be set according to the actual situation. For example, when the size threshold is 55 inches, If the size of the interactive smart tablet reaches 55 inches, it can be considered as a large-sized interactive smart tablet.
  • the interactive smart tablet is installed with multiple types of operating systems, wherein the operating systems include but are not limited to iOS system, Android system, Linux system, Windows system, UOS system and so on.
  • the interactive smart tablet is installed with a Linux system, and the Linux system is installed in a chip of the interactive smart tablet as a main operating system of the interactive smart tablet, and the chip can be understood as a physical CPU.
  • the interactive smart tablet is also installed with operating systems such as Android system, Windows system, and UOS system, and the above operating systems are installed in the Linux system in the form of a virtual operating system.
  • a virtual operating system refers to an operating system installed on the basis of a virtualization technology.
  • virtualization usually means that computing elements run on a virtual basis instead of a real basis.
  • Virtualization technology can expand the capacity of hardware and simplify the reconfiguration process of software.
  • the Linux system is used as the Host OS of the interactive smart tablet.
  • an operating system can be installed on a physical machine, and then virtualization software can be installed on this operating system, so that several partitions can be virtualized on the physical machine to install different operating systems respectively.
  • the operating system installed on the physical machine is called Host OS.
  • Host OS is the main operating system, which is a Linux system.
  • each virtual operating system is implemented by a corresponding virtual machine
  • a virtual machine refers to a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment.
  • a virtual machine corresponds to an interactive A partition in the smart tablet to install the corresponding virtual operating system.
  • Each virtual machine includes a virtual GPU and a virtual CPU, and the virtual GPU generates and sends images during the running of the virtual operating system, such as the system desktop of the virtual operating system and the application interface of the running application program installed in the virtual operating system.
  • the virtual CPU implements the operation of the virtual operating system.
  • the Host OS communicates with each virtual operating system through a virtual machine manager (Virtual Machine Manager, VMM) service in the Host OS, wherein the VMM service is a system service of the Host OS for starting and managing Multiple virtualization systems.
  • VMM Virtual Machine Manager
  • the interactive smart panel further includes at least one display screen, which may be a display screen with a touch function or a display screen without a touch function.
  • the interactive smart The display screen with the control function is described as an example, that is, the user of the interactive smart tablet can control the interactive smart tablet by touching the display on the display screen.
  • the interactive smart panel is also equipped with an interactive smart panel module, which includes components related to display, touch control and output such as a displayed screen, touch control and high definition multimedia interface (High Definition Multimedia Interface, HDMI) channel.
  • HDMI High Definition Multimedia Interface
  • the VMM service can also perform data communication with the interactive smart panel module, so that when the display screen receives some touch operations related to the virtual operating system, the interactive smart panel module notifies the VMM service to respond to the touch operation , so as to control the virtual operating system, such as switching the currently running virtual operating system.
  • the interactive smart tablet can install at least one application program based on each operating system (including the main operating system and the virtual operating system), where the implementation of the function of the application program is not limited.
  • the application program may be a built-in application program of each operating system, or may be an application program downloaded from a third-party device or server.
  • the virtual operating system is used to install the application program as an example.
  • each virtual operating system installs at least one application program, and the application icon of the installed application program can be displayed on the system desktop of the corresponding virtual operating system superior.
  • the Linux system does not have a desktop environment installed, that is, the Linux system is always running in the background, and for the user of the interactive smart tablet, the running interface of the Linux system will not be seen on the display screen.
  • each virtual operating system has a desktop environment, that is, when the user of the interactive smart tablet uses the virtual operating system, the system desktop of the virtual operating system can be displayed on the display screen.
  • FIG. 1 is a flowchart of a handover control method provided by an embodiment of the present application.
  • the switching control method specifically includes:
  • Step 110 receiving a device startup instruction.
  • the device start command is used to start the interactive smart tablet.
  • the interactive smart tablet is turned off, the interactive smart tablet can be turned on through the device startup command.
  • Step 120 In response to the device startup instruction, start the interactive smart tablet and display a customized startup screen.
  • the interactive smart tablet starts up according to the device startup command, and starts the Host OS.
  • a startup screen is displayed.
  • the open source plymouth project can support a custom boot screen to display a custom startup screen.
  • plymouth is an open source component of the splash screen.
  • the self-defined start-up screen can be set according to actual conditions, such as a logo that is set as the self-defined start-up screen, and at this time, during the start-up process, the interactive smart panel displays the logo.
  • Step 130 After the start-up screen stops displaying, display the first interface of the first virtual system, the first interface is the system desktop of the first virtual system, and the first interface displays the first application of the first application installed in the first virtual system
  • the icon and the second application icon of the second application installed in the second virtual system, the second virtual system is at least one.
  • the VMM service is automatically run, and then all the virtual operating systems are started.
  • the default virtual operating system outputs the screen, stop displaying the current boot screen.
  • the default virtual operating system is a pre-set virtual operating system.
  • the system desktop of the default virtual operating system is displayed, that is, after the startup is completed, the default virtual operating system is the virtual operating system running in the foreground.
  • both the main operating system and the default virtual operating system are running, and other virtual operating systems are suspended in the background. Background suspension means that the virtual operating system saves the current state, and when the virtual operating system runs again, it is still in the saved state.
  • the default virtual operating system is recorded as the first virtual system, and other virtual operating systems are recorded as the second virtual system. Wherein, there may be one or more second virtual systems.
  • the start-up screen is stopped, and then the screen of the first virtual system is displayed, wherein the currently displayed interface of the first virtual system can be recorded as the first virtual system's first screen. an interface.
  • the first interface may be the system desktop of the first virtual system.
  • the first interface displays the application icons of the application programs installed in the first virtual system
  • the application programs installed in the first virtual system may be recorded as the first application
  • the application icons of the first application may be recorded as the first application icon.
  • the first interface may also display other content, such as displaying application icons of application programs installed in other virtual operating systems.
  • the application program installed in the second virtual system is recorded as the second application, and the application image of the second application is marked as the second application icon.
  • the first interface further displays a second application icon of a second application installed in the second virtual system.
  • the VMM service may acquire application information of the application programs in each virtual operating system, where the application information may include application icons of the application programs and path information of the application programs.
  • the first virtual system can obtain the application information of the second application in the second virtual system through the VMM service, and display the second application icon of the second application on the first interface according to the application information middle.
  • all second application icons in each second virtual system may be displayed on the first interface, and part of the second application icons in each second virtual system may also be displayed on the first interface.
  • the second application icons that can be displayed on the first interface may be preset in the second virtual system. In one embodiment, the description is made by taking the example of displaying part of the second application icons in each second virtual system on the first interface.
  • each virtual operating system is provided with a corresponding icon service
  • the icon service can obtain the application information of its own virtual operating system and send it to the VMM service, and can also obtain the application information of other virtual operating systems from the VMM service to Realize displaying application icons of other virtual operating systems on the system desktop of its own virtual operating system.
  • a configured shared directory is mounted to each virtual operating system as a file system device.
  • the icon service of each virtual operating system can write the application information of its own virtual operating system into the shared directory, and can obtain the application information of other virtual operating systems by accessing the shared directory.
  • Step 140 receiving a first selection instruction, where the first selection instruction is used to select a target application icon among the second application icons.
  • the user of the interactive smart tablet can make the interactive smart tablet open the second application in the second virtual system by selecting the second application icon in the first interface.
  • the instruction for selecting the second application icon in the first interface is marked as the first selection instruction
  • the second application image selected by the first selection instruction is marked as the target application icon.
  • the user can issue the first selection instruction by touching (such as clicking, long pressing, etc.) the second application icon, or the user can use an external device (such as a mouse, keyboard, etc.) , smart pen, etc.) to select the second application icon to issue the first selection instruction.
  • Step 150 in response to the first selection instruction, replace the first interface with a second interface, the second interface is an application interface displayed after the second application corresponding to the target application icon is launched.
  • the interactive smart tablet can determine the corresponding second application and the second virtual system where the second application is located according to the target application icon, and then start the second virtual system The second application in the system, and display the application interface after the second application is started.
  • the application interface displayed after the second application is started is recorded as the second interface, and at this time, the displayed first interface is replaced with the second interface.
  • the first virtual system when receiving the first selection instruction, is a virtual operating system running in the foreground, and the second virtual system is a virtual operating system suspended in the background.
  • the first virtual system needs to be suspended in the background A virtual system, and resume running the second virtual system, that is, run the second virtual system in the foreground, and open the second application corresponding to the target application icon in the second virtual system, so that the second virtual system outputs the second Interface, after that, replace the first interface with the second interface.
  • the first virtual system determines the second virtual system to which the target application icon belongs according to the target application icon selected by the first selection instruction, and then, the first virtual system compares the target application icon and its belonging The second virtual system of the second virtual system is sent to the Host OS, and the Host OS background suspends the first virtual system, resumes the operation of the second virtual system to which it belongs, and instructs the second virtual system to open the second application corresponding to the target application icon.
  • the icon service of the first virtual system sends the icon of the target application and the second virtual system to which it belongs to the VMM service, and then the VMM service notifies the icon service of the second virtual system, so that the icon of the second virtual system The service starts the corresponding second application.
  • the user can also select the first application icon.
  • the first virtual system can directly start the first application corresponding to the first application icon. That is, after the user selects an application icon in the first interface, the first virtual system confirms whether the selected application icon is the first application icon or the second application icon, and if it is the first application icon, directly starts the first application icon , if it is the second application icon, the above method is used to switch the virtual operating system and start the corresponding second application, and then display the corresponding second interface.
  • the interactive smart tablet by receiving the device start command, start the interactive smart tablet and display the customized boot screen, after the boot screen stops displaying, the first interface of the first virtual system is displayed, and the first interface displays the first application icon of the first virtual system And the second application icon of the second virtual system, after that, receiving the first selection instruction for selecting the second application icon, and according to the first selection instruction, replacing the first interface with the second application corresponding to the second application icon to open.
  • the latter technical means of the second interface solves the technical problems of high equipment cost and high hardware design complexity when the interactive smart panel supports multiple operating systems, and uses virtualization technology to install each operating system as a virtual operating system on the interactive smart panel.
  • each virtual operating system is provided with an iocn Server (icon service), and the VMM service of the Host OS communicates with each icon service to display and manage the application icons of the application programs in each virtual operating system.
  • Fig. 2 is the first frame diagram of the system that an embodiment of the present application provides, with reference to Fig. 2, the operating system of interactive smart panel includes Host OS (for Linux system) and a plurality of virtual operating systems, and a plurality of virtual operating systems includes Windows system, Android system, UOS system, etc., wherein, the Windows system is realized through the Windows virtual machine (Windows VM), the Android system is realized through the Android virtual machine (Android VM), and the UOS system is realized through the UOS virtual machine (UOS VM).
  • the Windows system is realized through the Windows virtual machine (Windows VM)
  • the Android system is realized through the Android virtual machine (Android VM)
  • UOS system is realized through the UOS virtual machine (UOS VM).
  • the Windows icon server is installed in the Windows system
  • the Android icon server is installed in the Android system
  • the UOS icon server is installed in the UOS system.
  • the VMM service communicates with each icon service to display and manage application icons of application programs in each virtual operating system, such as displaying application icons of other virtual operating systems in each virtual operating system.
  • the icon service of the first virtual system is marked as the first icon service
  • the icon service of the second virtual system is marked as the second icon service.
  • Fig. 3 is a flowchart of another handover control method provided by an embodiment of the present application.
  • the switching control method shown in FIG. 3 is applicable to the framework shown in FIG. 2 .
  • the switching control method includes:
  • Step 210 receiving a device startup instruction.
  • Step 220 In response to the device startup instruction, start the main operating system of the interactive smart tablet.
  • the first virtual system and the second virtual system are installed in the main operating system, and the main operating system is an operating system without a desktop environment.
  • the main operating system refers to the Host OS.
  • the Host OS is a Linux system, and the Linux system does not have a desktop environment.
  • a first virtual system and a second virtual system are installed in the Linux system.
  • the first virtual system and the second virtual system include a Windows system, an Android system, a UOS system, and the like.
  • Step 230 during the start-up process of the main operating system, display a customized start-up screen.
  • the Linux system supports a custom boot screen through the open source plymouth project.
  • Step 240 start the first virtual system and the second virtual system.
  • the VMM service is automatically run.
  • the VMM service is running, the first virtual system and the second virtual system are started.
  • the interactive smart tablet also displays a customized startup screen, and starts the first virtual system and the second virtual system in the background.
  • the VMM service sets a background listening port, and the listening port can perform data communication with each virtual operating system.
  • step 240 may include step 241-step 243:
  • Step 241 read the configuration file of the VMM service in the host operating system.
  • the configuration file of the VMM service is read according to the running parameters.
  • the running parameters are parameters during the running process of the main operating system
  • the configuration file is configuration parameters and initial settings of the VMM service.
  • the specific content of operating parameters and configuration files can be set according to actual conditions.
  • Step 242 Analyze configuration parameters of the first virtual system and the second virtual system according to the configuration file.
  • the normal operation of the VMM service can be realized through configuration files.
  • the configuration parameters of each virtual operating system can be parsed out through the configuration file, that is, the configuration parameters of the first virtual system and the second virtual system can be parsed out.
  • the configuration parameters of the virtual operating system may be the configuration parameters of each virtual machine on which the virtual operating system is installed. Through the configuration parameters, each virtual machine can be run, and then each virtual operating system can be run. Wherein, the content of the configuration parameter can be set according to the actual situation.
  • configuration parameters include: the shared directory of Host OS and virtual operating system (equivalent to the shared directory of configuration); the number of virtual machines (equivalent to the number of virtual operating systems), the virtual operation of each virtual machine System information, and the default virtual machine (equivalent to confirming which virtual operating system the first virtual system is); the peripheral (i.e., external device) information of the interactive smart panel; the port for each virtual machine to communicate with the VMM service (equivalent to the VMM service and each virtual operating system for data communication); the virtual operating system image path of each virtual machine; the configuration parameters of the virtual GPU of each virtual machine; the virtual network configuration parameters and execution scripts of each virtual machine, The execution script is used to manage the virtual network of the virtual operating system; the configuration parameters of the virtual CPU of each virtual machine; the configuration parameters of the memory of each virtual machine; the boot file information of each virtual machine, and the boot file information is used to realize virtual The booting of the machine; the USB port designated by each virtual machine, through which the virtual machine can be connected to an external USB device; the
  • Step 243 start the first virtual system and the second virtual system according to the configuration parameters.
  • all virtual machines are started, that is, the first virtual system and the second virtual system are started.
  • when starting the first virtual system and the second virtual system it also includes: mounting the shared directory configured in the main operating system to the first virtual system and the second virtual system by the VMM service;
  • the icon service and the second icon service respectively collect the first application information and the second application information, the first application information includes the first application icon and the first path information of the first application, and the second application information includes the second application information of the second application Icon and second path information; the first application information and the second application information are respectively updated to the shared directory by the first icon service and the second icon service.
  • the VMM service when the main operating system is started, the VMM service is automatically run, and the shared directory set by the VMM service configuration (the shared directory can be determined through configuration parameters), the shared directory is used to record the application information of the application icon in each virtual operating system , such as recording application icons of application programs installed in each virtual operating system and corresponding path information, where the path information is used to describe the path where the application programs are located.
  • the VMM service uses the shared directory as a file system device and mounts it to each virtual operating system (it can also be understood as mounting to each virtual machine).
  • the file system device refers to the device belonging to the file system (management and storage of file information) in the operating system, and mounting to each virtual operating system means that the virtual operating system directly uses the shared directory.
  • the VirtFS virtualized file system is mounted to each virtual operating system.
  • VirtFS is a system layer virtualization technology, which can directly transfer the system service interface (equivalent to the interface of the shared directory) of the host machine (equivalent to the interactive smart tablet) to the virtual machine for use.
  • the icon service in each virtual operating system is run as a system service of the virtual operating system during the startup process of the virtual operating system.
  • the application events that the icon service can handle include application icon collection, and application icon collection refers to writing application information of application programs installed in the virtual operating system into a shared directory.
  • the application information of the first application icon in the first virtual system is collected, wherein the application information of the first application icon is recorded as the first application information, and each first application icon corresponds to a The first application information, where the first application information includes a first application icon and first path information, where the first path information refers to path information of the first application in the first virtual system.
  • the first icon service After the first icon service collects the first application information, it may write the first application information into the shared directory.
  • the application information of the second application icon in the corresponding second virtual system is collected, wherein the application information of the second application icon is recorded as the second application information, and each second application icon corresponds to a
  • the second application information includes a second application icon and second path information, and the second path information refers to path information of the second application in the second virtual system.
  • the second icon service After the second icon service collects the second application information, it may write the second application information into the shared directory.
  • the application event that the icon service can handle also includes: updating the shared directory.
  • the first application information and/or the second application information in the shared directory are updated synchronously. For example, when the first application is added and/or deleted in the first virtual system, the first application installed in the first virtual system changes, that is, the first application is updated.
  • the first icon service Writing the first application information of the newly added first application into the shared directory and/or deleting the first application information of the first application in the shared directory.
  • Step 250 when the first virtual system outputs the startup screen, stop displaying the startup screen.
  • the shared directory is mounted to the stage of each virtual operating system, and the VMM service can also monitor the virtual GPU of the default virtual operating system (ie, the first virtual system) to monitor that the virtual GPU is ready to send the first virtual system screen message.
  • the virtual GPU when the virtual GPU is ready to send the first virtual system picture, its state will change, that is, the state changes to the state of the output picture.
  • the VMM service determines to monitor the message that the virtual GPU is ready to send the first virtual system picture.
  • the first virtual system When the first virtual system is ready to send the first virtual system screen, the first virtual system outputs the corresponding screen.
  • the first output screen is the startup screen during the startup process of the first virtual system.
  • the startup screen may be a preset screen in the first virtual system.
  • Step 260 after the start-up screen stops displaying, display the start-up screen of the first virtual system, and suspend the second virtual system in the background.
  • the virtual operating system running on the first virtual system as the foreground sends a suspend command to the second virtual system, so that the second virtual system is suspended in the background, that is, the second virtual system is suspended.
  • the VMM service when each virtual operating system is running, in order to optimize the operating efficiency of the virtual operating system, the VMM service can send a query command to the virtual CPU of each virtual operating system, and the virtual CPU can return the process and ID information of the virtual CPU according to the query command , so that the VMM service can specify the running status of the virtual operating system through the process and ID information of the virtual CPU.
  • the process of the virtual CPU refers to each process currently running in the virtual CPU.
  • the VMM service can bind each virtual CPU to the physical CPU of the interactive smart panel through the taskset command, wherein the physical CPU can be regarded as a processor installed in the interactive smart panel, which is installed with a Linux system.
  • the taskset command is a command used to view and set the usage of physical CPU cores in the Linux system.
  • Step 270 start the VMM message management service in the VMM service
  • the VMM service is a service provided by the main operating system
  • the VMM message management service drives the management and operation of the first virtual system and the second virtual system.
  • the VMM message management service drives the management and operation of the virtual operating system through messages.
  • the VMM service may include multiple message threads, wherein the multiple message threads include at least a virtual machine message thread, an application message thread, a virtual machine screen status message thread, and a USB peripheral message thread.
  • the virtual machine message thread can monitor the port of communication between each virtual machine and VMM service in the configuration parameters, so as to realize the following types of message communication between the VMM service and each virtual operating system: add and delete USB peripherals of the virtual operating system Message communication; message communication for adding and deleting virtual operating system touch devices (device used to realize touch control in the display screen); message communication for suspending and resuming virtual operating system and querying virtual operating system status; switching display Message communication of the virtual operating system; message communication of binding the virtual CPU of the virtual operating system to the physical CPU.
  • the application message line can listen to the virtual socket ID of each virtual machine in the configuration parameters, so as to realize the following types of message communication between the VMM service and each virtual operating system: open the application program selected by the user in the virtual operating system suspended in the background message communication.
  • the virtual machine screen state message thread monitors the state of the virtual GPU of each virtual operating system, so as to judge whether the switching is completed through the state of the virtual GPU when the virtual operating system is switched. Wherein, the status of the virtual GPU refers to whether the virtual GPU is ready to output images.
  • the USB peripheral message thread monitors hot plug messages of all USB peripherals of the interactive smart tablet, wherein the USB peripherals are external devices connected to the interactive smart tablet through USB. Hot swapping refers to plugging or unplugging without turning off the power.
  • the USB peripheral message thread can send the USB hot-plug message to the VMM service, and the VMM service converts the message into a corresponding USB peripheral message and sends it to the corresponding virtual operating system.
  • the messages communicated by each process in the VMM message management service can be divided into two categories: one is the messages communicated in the virtual machine screen status message thread when monitoring the state of the virtual GPU. uevnet message mechanism; one type is messages other than the above, that is, messages communicated in the virtual machine message thread, application message thread, and USB peripheral message thread. This type of message adopts the general socket mechanism.
  • this type of message The format is: ⁇ Message Header ⁇ Message Type ⁇ Separator ⁇ Message Parameter ⁇ Message Footer ⁇ , where the message header indicates the beginning of the message, the message end indicates the end of the message, and the separator is used to distinguish the message type and message parameters, the message type refers to the message type of communication in the above-mentioned virtual machine message thread, application message thread, and USB peripheral message thread.
  • the above message types can be divided into message with parameter and message without parameter parameter message.
  • the message parameter in the message format is empty.
  • For messages with parameters write the corresponding parameters in the message parameters in the message format. For example, when the message type is that the second virtual system suspended in the background opens a second application, relevant content of the second virtual system and relevant content of the second application must be written in the message parameters.
  • Fig. 4 is the flow chart of VMM service operation provided by one embodiment of the present application.
  • the VMM service runs, and when it runs, it first goes through the initialization phase (that is, according to the running Parameter reads VMM configuration file), afterwards, analyze the configuration parameter of running each virtual operating system, afterward, start each virtual operating system (equivalent to starting each virtual machine) according to the configuration parameter, afterward, when the first virtual system outputs the splash screen, The startup screen of the first virtual system is displayed, and the VMM message management service is started.
  • Step 280 After the startup screen stops displaying, display the first interface of the first virtual system, the first interface is the system desktop of the first virtual system, and the first interface displays the first application of the first application installed in the first virtual system
  • the icon and the second application icon of the second application installed in the second virtual system, the second virtual system is at least one.
  • displaying the first interface of the first virtual system includes steps 281-282:
  • Step 281. The first icon service reads the second application information recorded in the shared directory.
  • the first icon service reads the second application information corresponding to all the second virtual systems in the background according to the first application information and the second application information in the shared directory, that is, the first The icon service reads out all the second application information.
  • Step 282 The first icon service displays the second application icon on the first interface according to the second application information.
  • the corresponding second application icon is determined according to the second application information, and the second application icon is displayed on the first interface.
  • each first application icon and each second application icon are displayed on the first interface.
  • the sorting rules of the first application icons and the second application icons can be set according to actual conditions.
  • FIG. 5 is a schematic diagram of the first interface provided by an embodiment of the present application.
  • the Windows system is used as the first virtual system
  • the Android system and the UOS system are used as the second virtual system as an example for description.
  • the application icons of the Windows system, the application icons of the Android system, and the application icons of the UOS system are displayed in sequence.
  • Step 290 Receive a first selection instruction, where the first selection instruction is used to select a target application icon among the second application icons.
  • the first virtual system when the first virtual system detects that a certain second application icon is selected by the user, it determines that the first selection instruction is received.
  • Step 2100 The first icon service generates a switching message according to the first selection instruction, and the switching message includes the target application icon and the second virtual system to which the target application icon belongs.
  • the application event that the icon service can handle also includes: opening a specified application, for example, when the user thinks of opening the application program of the virtual operating system in the background, the icon service can send the relevant message (ie switching message) to the VMM message management service Application message thread.
  • the first icon service determines the selected target application icon and the second virtual system to which the target application icon belongs.
  • the target application icon can be specified according to the second application information.
  • the messages are recorded as handover messages.
  • Step 2110 the first icon service sends the switching message to the VMM message management service.
  • the first icon service sends the switching message to the VMM message management service, specifically to the application message thread of the VMM message management service.
  • Step 2120 According to the switching message, the VMM message management service notifies the second icon service of the second virtual system to which the target application icon belongs to start the second application corresponding to the target application icon.
  • the application message thread of the VMM message management service receives the switching message, it notifies the second icon service of the corresponding second virtual system according to the switching message, that is, the application message thread sends to the second icon service the icon corresponding to the opened target application.
  • the second icon service opens the second application according to the message of the application message thread.
  • step 2120 includes step 2121-step 2126:
  • Step 2121 according to the switching message, the VMM message management service instructs to delete the touch device of the first virtual system.
  • a touch device refers to a device that realizes a touch operation.
  • a touch device refers to a touch detection device and a touch chip related to a touch operation installed in a display screen.
  • a display screen can be an infrared touch screen, an electromagnetic touch screen 1.
  • the touch detection device is an infrared touch frame
  • the touch chip is connected to the infrared touch frame.
  • the touch frame detects the touch action
  • the touch chip determines the touch position and touch time according to the touch action detected by the infrared touch frame, so as to realize the detection touch operation.
  • the touch device of the first virtual system refers to a touch device that can be used by the first virtual system, for example, when the first virtual system is running in the foreground, the touch device on the display screen belongs to the touch device of the first virtual system, At this time, the touch operation detected by the touch device may be regarded as an operation performed on the first virtual system.
  • the virtual machine message thread of the VMM message management service After the application message thread of the VMM message management service receives the switching message, the virtual machine message thread of the VMM message management service sends a message of deleting the touch device to the first virtual system, and after receiving the message, the first virtual system deletes the first touch device.
  • the touch device of the virtual system at this time, the touch operation received by the touch device has nothing to do with the first virtual system.
  • Step 2122 the VMM message management service instructs to delete the USB device of the first virtual system.
  • the USB device of the first virtual system refers to the USB peripheral of the first virtual system, that is, the USB peripheral used by the first virtual system.
  • the virtual machine message thread of the VMM message management service sends a message of deleting the USB peripheral to the first virtual system, and after receiving the message, the first virtual system deletes the first virtual system.
  • a USB device of a virtual system at this time, the operation received by the USB device has nothing to do with the first virtual system.
  • Step 2123 the VMM message management service instructs the background to suspend the first virtual system.
  • the virtual machine message thread of the VMM message management service sends a background suspension message to the first virtual system, and after receiving the message, the first virtual system hangs in the background At this time, the first virtual system stops running in the foreground.
  • Step 2124 The VMM message management service instructs to resume running the second virtual system to which the icon of the target application belongs.
  • the virtual machine message thread of the VMM message management service sends a resume message to the second virtual system corresponding to the target application icon, and after the second virtual system receives the message, It is running in the foreground, and the state of the second virtual system during running is the same as that of the second virtual system when it is suspended. At this time, the second virtual system is running in the foreground, so as to realize the switching of the virtual operating system.
  • the second icon service when the second virtual system is running in the foreground, the second icon service works, the second icon service can read the first application information in the shared directory and the second application information of other second virtual systems, and based on the read content
  • the first application icon corresponding to the first application information and the second application icon corresponding to the second application information are displayed on the system desktop of the second virtual system, that is, in the system desktop of the second virtual system, the application except the application program installed by itself is displayed icon, and also displays app icons for applications installed in other virtual operating systems.
  • Step 2125 the VMM message management service instructs the second virtual system to add a touch device.
  • the virtual machine message thread of the VMM message management service sends a message of adding a touch device to the second virtual system, and after receiving the message, the second virtual system adds a touch device, such as The touch device deleted from the first virtual system is added to the second virtual system, and at this time, the touch operation received by the touch device is a touch operation for controlling the second virtual system.
  • Step 2126 The VMM message management service notifies the second icon service of the second virtual system to start the second application corresponding to the target application icon.
  • the application message thread of the VMM message management service sends a message of opening the second application of the target application icon to the second icon service of the second virtual system, so as to notify the second icon service to open the second application of the target application icon.
  • Step 2130 start the second application corresponding to the target application icon by the second icon service.
  • the second icon service opens the second application according to the message.
  • FIG. 6 is a flow chart of application startup provided by an embodiment of the present application.
  • the application message thread of the VMM message management service sends an open target application message to the second icon service of the second virtual system through a virtual socket.
  • the second icon service opens the second application through the interface of the second application corresponding to the target application icon in the second virtual system, so as to start the second application in the second virtual system.
  • Step 2140 obtain the second interface of the second application by the VMM service, and replace the first interface with the second interface.
  • the VMM service obtains the screen output by the virtual GPU in the second virtual system, that is, obtains the second interface, and replaces the first interface in the display screen with the second interface.
  • the virtual machine screen status message thread of the VMM message management service can determine whether the switching is successful by monitoring the virtual GPU status of the second virtual system.
  • the method further includes: instructing the second virtual system to add a USB device by the VMM message management service.
  • the virtual machine message thread of the VMM message management service sends a message of adding a USB device to the second virtual system, and after receiving the message, the second virtual system adds the USB device of the second virtual system.
  • Devices such as adding a USB device deleted from the first virtual system to the second virtual system, at this time, the USB device can be used by the second virtual system.
  • FIG. 7 is a flowchart of application program switching provided by an embodiment of the present application.
  • the VMM message management service first deletes the touch device of the first virtual system (running in the foreground), and then deletes the USB device of the first virtual system, and then suspends the first virtual system and restores the second The virtual system runs, instructs the second virtual system to add a touch device, and then notifies the second virtual system to open the second application corresponding to the target application icon, switches the first interface to the second interface, and then adds a USB device for the second virtual system to Switching the first virtual system to the second virtual system and starting the second application corresponding to the target application icon in the second virtual system are implemented.
  • FIG. 8 is a flowchart of a VMM service and icon service provided by an embodiment of the present application.
  • VMM configuration file according to the operating parameters
  • each virtual operating system the first virtual system and the second virtual system
  • mount the shared directory to each virtual operating system.
  • each application information (including application icon and path information) is written in the shared directory by the icon service of each virtual operating system.
  • the VMM message management service After each virtual operating system is started according to the configuration parameters parsed from the VMM configuration file, the VMM message management service must be run to monitor virtual machine messages (realized by virtual machine message threads), monitor application messages (realized by application message threads), and monitor and display System messages (realized by the virtual machine screen status message thread) and listening to USB device messages (realized by the USB peripheral message thread), wherein, when listening to application messages, the current virtual operating system can be switched according to the selection instruction of the target application icon Go to the virtual operating system to which the target application icon belongs, and then open the application program corresponding to the target application icon.
  • monitor virtual machine messages realized by virtual machine message threads
  • monitor application messages realized by application message threads
  • monitor and display System messages realized by the virtual machine screen status message thread
  • USB device messages realized by the USB peripheral message thread
  • Step 2150 receiving an application exit instruction.
  • the application exit instruction is an instruction to exit the currently opened second application.
  • the second virtual system determines that an application exit instruction is received.
  • the user can issue an application exit command by touching the display screen or operating the USB device.
  • Step 2160 in response to the application exit instruction, exit the second application corresponding to the target application icon, and replace the second interface with a third interface, the third interface is the system desktop of the second virtual system to which the second application belongs, and the third interface A first application icon of the first virtual system and a second application icon of the second virtual system are displayed.
  • the second virtual system exits the second application after receiving the application exit instruction. It can be understood that when the application exit instruction is used to close the second application, exiting the second application refers to closing the second application. When the application exit instruction When used to run the second application in the background, exiting the second application refers to switching the second application to run in the background.
  • the application interface of the second application is no longer displayed on the display screen.
  • the display screen is switched from the second interface to the third interface.
  • the third interface is the system desktop of the second virtual system.
  • the system desktop of the second virtual system is displayed, the first application icon of the first application installed in the first virtual system and the second application icon of the second application installed in the second virtual system are displayed on the system desktop.
  • the user can start the application programs of other virtual operating systems by selecting the application icons of other virtual operating systems.
  • the device startup command start the main operating system of the interactive smart tablet, display a custom startup screen, and then start the first virtual system and the second virtual system, and stop displaying the startup screen when the first virtual system outputs the startup screen.
  • screen display the startup screen of the first virtual system, and suspend the second virtual system in the background, then start the VMM message management service, and after the startup screen stops displaying, display the first interface of the first virtual system, the first interface displays The first application icon of the first virtual system and the second application icon of the second virtual system receive the first selection instruction for selecting the second application icon, and the first icon service generates a switching message according to the first selection instruction and sends it to VMM message management service, the VMM message management service notifies the second icon service of the second virtual system to which the target application icon belongs to open the second application corresponding to the target application icon, so that the second icon service starts the second application, and the first interface
  • the technical means of replacing the second interface solves the technical problems of high equipment cost and high hardware design complexity when the interactive smart tablet supports multiple operating
  • each virtual operating system In the virtual operating system, there is no need to configure a corresponding physical CPU for each virtual operating system, only the physical CPU of the main operating system needs to be configured, which reduces equipment cost and hardware design complexity.
  • VMM service and the icon service of each virtual operating system it is possible to manage and run multiple virtual operating systems.
  • each virtual operating system Through the shared directory, each virtual operating system can share its own application information, so that all virtual operating systems can be displayed on the desktop of each virtual operating system.
  • the application icon of the virtual operating system thereby realizing the quick switching and starting of the application.
  • the processing of the touch device is prior to the processing of the USB device, which can optimize the loading time for the touch device to realize the touch function when switching the virtual operating system.
  • the second interface displayed at the first time can be the application interface after the second application is opened, and the second virtual system will not be displayed.
  • the system desktop improves the user experience when switching applications.
  • the virtual operating system can also be switched through the interactive smart tablet module and the VMM service of the interactive smart tablet.
  • the interactive smart panel module provides "channel management, screen sound setting system", which can be used to manage various components related to setting display, touch and output, etc., and the system can communicate with VMM service to realize Switch virtual operating systems.
  • Fig. 9 is the second frame diagram of the system provided by one embodiment of the present application.
  • the PC module of the interactive smart panel refers to the module where the main operating system is located, and the Host OS in the PC module is a Linux system, and multiple virtual operating systems Including Windows system, Android system, UOS system, etc.
  • FIG. 10 is a flow chart of another switching control method provided by an embodiment of the present application.
  • the switching control method shown in FIG. 10 is applicable to the framework shown in FIG. 9 . Referring to FIG. 10, when switching from one virtual operating system to another virtual operating system, the switching control method includes:
  • Step 310 receiving a device startup instruction
  • Step 320 In response to the device startup instruction, start the interactive smart tablet and display a customized startup screen.
  • step 120 and step 230 In response to the device startup instruction, start the main operating system of the interactive smart tablet, and display a customized startup screen during the startup process of the main operating system. For this step, reference may be made to related descriptions in step 120 and step 230 .
  • the VMM service is automatically run.
  • start the first virtual system and the second virtual system wherein starting the first virtual system and the second virtual system includes: reading the configuration file of the VMM service in the main operating system, and parsing the first virtual system according to the configuration file.
  • the configuration parameters of the system and the second virtual system are analyzed according to the configuration file to obtain the configuration parameters of the first virtual system and the second virtual system. For this process, refer to the relevant descriptions of steps 241-243.
  • the configuration parameters analyzed in this step do not include the shared directory of the Host OS and the virtual operating system, but add the IP address of the interactive smart tablet module and the port for the interactive smart tablet module to communicate with the VMM service.
  • the VMM service is provided with a background monitoring port (that is, the port in the configuration parameters) for communicating with the "channel management, screen sound setting system" in the interactive smart tablet module.
  • the display component after starting the interactive smart panel and displaying the customized start-up screen, it further includes: the display component sends query instructions to the first virtual system and the second virtual system through the VMM service, so as to obtain the first virtual system through the query instruction.
  • the first system icon of the system and the second system icon of the second virtual system; the first system icon and the second system icon are added in the virtual control area by the display screen component.
  • the display screen component refers to an interactive smart panel module.
  • the interactive smart panel module sends a query command to the VMM service, and then the VMM service queries the first virtual system and the second virtual system, that is, the VMM service sends a query command to the first virtual system and the second virtual system.
  • the query command can obtain the system information of the first virtual system and the second virtual system.
  • Each virtual operating system corresponds to a system message.
  • the content of the system message can be set according to the actual situation.
  • the type of the currently started virtual operating system can be clarified through the system message .
  • the system message includes at least a system icon, wherein the system icon refers to an icon representing the corresponding virtual operating system.
  • the corresponding system icon is an icon displaying the Android system.
  • the system diagram of the second virtual system is marked as the second system icon
  • the system diagram of the first virtual system is marked as the first system icon.
  • the VMM service enables the interactive smart panel module to obtain the first system icon and the second system icon through the VMM service, and then, the first system icon and the second system icon are displayed by the "channel management, screen sound setting system" of the interactive smart panel module .
  • the "channel management, screen sound setting system” of the interactive smart panel module provides a graphical setting interface, which is recorded as a virtual control area, and the size and display position of the virtual control area can be adjusted according to the actual situation. set up.
  • the virtual control area can be displayed and hidden in the display screen through a set touch interaction method. It can be understood that the virtual control area is an interface generated by an interactive smart tablet module, rather than an interface output by a virtual operating system. A first system icon and a second system icon are displayed in the control area.
  • Step 330 after the start-up screen stops displaying, display a first interface of the first virtual system, where the first interface is the system desktop of the first virtual system.
  • the first virtual system When the first virtual system outputs the startup screen, stop displaying the startup screen, after the startup screen stops displaying, display the startup screen of the first virtual system, and suspend the second virtual system in the background, after the startup screen stops displaying, display the first virtual system
  • the first interface of the system For this process, reference may be made to related descriptions in step 250 , step 260 and step 280 .
  • only the first application icon of the first virtual system may be displayed on the first interface.
  • the VMM message management service in the VMM service can also be started, wherein, compared to the VMM message management service in step 270, The VMM message management service in this step retains the virtual machine message thread, the virtual machine screen status message thread, and the USB peripheral message thread, and does not reserve the application message thread, and adds an interactive smart tablet module message thread.
  • the interactive smart tablet module can monitor the communication port between the VMM service and the interactive smart tablet module in the configuration parameters, so as to realize the following types of message communication between the VMM service and the interactive smart tablet module: query the message communication of all virtual operating systems; query the currently running virtual Message communication of the operating system; message communication of querying the running status of all virtual operating systems; message communication of switching virtual operating systems; message communication of querying the IP address of the Host OS. It can be understood that the interactive smart panel module can send a query command to the VMM service through the message thread of the interactive smart panel module, so as to obtain the information of all virtual operating systems, and display the corresponding system icon in the virtual control area according to the information of the virtual operating system .
  • the messages communicated by each process in the VMM message management service can also be divided into two types, which are the same as the two types of messages described in step 270, and will not be repeated here.
  • the message type is a query command for all virtual operating systems
  • its message parameter is empty
  • the message type is a query command for a specified virtual operating system
  • the relevant content is written in the message parameter.
  • FIG. 4 for the operation flowchart of the VMM service.
  • Step 340 receiving a screen control instruction.
  • the screen control instruction is used to call out the virtual control area.
  • the screen control command can be triggered by a preset touch interaction method, for example, the preset touch interaction method is a touch operation of swiping upward from the bottom of the display screen, and when the touch operation is detected, it is determined that the screen control is received instruction.
  • the screen control instruction is detected by the interactive smart panel module.
  • Step 350 In response to the screen control instruction, display a virtual control area on the first interface, where a first system icon of the first virtual system and a second system icon of the second virtual system are displayed in the virtual control area.
  • the virtual control area in response to the screen control instruction, the virtual control area is invoked on the display screen, that is, the virtual control area is displayed on the first interface.
  • the interactive smart panel module can obtain the first system icon and the second system icon through the query command, and the "channel management, screen sound setting system" of the interactive smart panel module can be set in the virtual control area.
  • the first system icon and the second system icon are displayed, so when the virtual control area is called, the first system icon and the second system icon are displayed in the virtual control area.
  • the virtual control area is provided by the display component of the interactive smart panel.
  • the virtual control area is provided by the "channel management, screen sound setting system" in the interactive smart panel module.
  • FIG. 11 is a schematic diagram of a virtual control area provided by an embodiment of the present application.
  • the virtual operating system includes a Windows system, an Android system, and a UOS system, and the Windows system, Android system, and Windows system are displayed in the virtual control area.
  • the system icons of the system and UOS system also display content such as display settings, sound settings, and HDMI.
  • the corresponding system icon can be highlighted in the virtual control area, for example, highlighted by means of highlighting.
  • the first virtual system runs in the foreground, and the first virtual system is a Windows system. Therefore, a system icon of the Windows system is highlighted in the virtual control area.
  • Step 360 receiving a second selection instruction, where the second selection instruction is used to select a target system icon among the second system icons.
  • the user of the interactive smart tablet can enable the interactive smart tablet to open the second virtual system corresponding to the second system icon by selecting the second system icon in the virtual control area.
  • the instruction for selecting the second system icon in the virtual control area is recorded as the second selection instruction, and the second system diagram selected by the second selection instruction is marked as the target system icon.
  • the user can issue the second selection command by touching (such as clicking, long pressing, etc.) the second system icon.
  • receiving the second selection instruction includes step 361-step 362:
  • Step 361 the display screen component generates a second selection instruction according to the touch operation acting on the second system icon.
  • the display screen component can detect the user's touch operation, and when it is determined that the touch operation is a touch for selecting the second system icon In operation, a second selection instruction is generated.
  • Step 362 the VMM message management service of the VMM service receives the second selection instruction sent by the display screen component.
  • the display screen component After the display screen component generates the second selection instruction, it sends the second selection instruction to the interactive smart panel module message thread of the VMM message management service, and then, the interactive smart panel module message thread determines the message type according to the second selection instruction as The virtual operating system displays the toggle and responds accordingly.
  • Step 370 In response to the second selection instruction, replace the first interface with a fourth interface, where the fourth interface is the system desktop of the second virtual system corresponding to the icon of the target system.
  • the VMM message management service determines that the display of the virtual operating system is switched, it indicates that the first virtual system is suspended in the background, and resumes the second virtual system corresponding to the target system icon as the virtual operating system running in the foreground. , acquire and display the picture output by the virtual GPU in the second virtual system, and switch the first interface.
  • the interface displayed after switching is recorded as the fourth interface.
  • the image output by the GPU is the system desktop of the second virtual system
  • the fourth interface is the system desktop of the second virtual system. Since switching of application programs is not currently involved, only the second application icon of the second virtual system may be displayed on the system interface of the second virtual system. In practical applications, when the second virtual system is suspended in the background, an application interface of a second application is displayed, then, when the second virtual system is resumed, the application interface can be displayed.
  • the second system icon of the second virtual system in the virtual control area is highlighted.
  • replacing the first interface with the fourth interface includes Step 371-Step 377:
  • Step 371 In response to the second selection instruction, the VMM message management service instructs to delete the touch device of the first virtual system.
  • the virtual machine message thread of the VMM message management service sends a message of deleting the touch device to the first virtual system, and then the first virtual system receives the message Afterwards, the touch device of the first virtual system is deleted, and at this time, the touch operation received by the touch device has nothing to do with the first virtual system.
  • Step 372 the VMM message management service instructs to delete the USB device of the first virtual system.
  • the virtual machine message thread of the VMM message management service sends a message of deleting the USB peripheral to the first virtual system, and after receiving the message, the first virtual system deletes the first virtual system.
  • a USB device of a virtual system at this time, the operation received by the USB device has nothing to do with the first virtual system.
  • Step 373 The VMM message management service instructs the background to suspend the first virtual system.
  • the virtual machine message thread of the VMM message management service sends a background suspension message to the first virtual system, and after receiving the message, the first virtual system hangs in the background At this time, the first virtual system stops running in the foreground.
  • Step 374 The VMM message management service instructs to resume running the second virtual system corresponding to the icon of the target system.
  • the virtual machine message thread of the VMM message management service sends a resume message to the second virtual system corresponding to the target system icon, and after the second virtual system receives the message, It is running in the foreground, and the state of the second virtual system during running is the same as that of the second virtual system when it is suspended. At this time, the second virtual system is running in the foreground, so as to realize the switching of the virtual operating system.
  • Step 375 The VMM message management service instructs the second virtual system to add a touch device.
  • the virtual machine message thread of the VMM message management service sends a message of adding a touch device to the second virtual system, and after receiving the message, the second virtual system adds a touch device, such as The touch device deleted from the first virtual system is added to the second virtual system, and at this time, the touch operation received by the touch device is a touch operation for controlling the second virtual system.
  • Step 376 The VMM service obtains the fourth interface of the second virtual system, and replaces the first interface with the fourth interface.
  • the VMM service obtains the virtual GPU output screen (the fourth interface in the embodiment) of the second virtual system, and sends it to the display screen for display.
  • the virtual machine screen status message thread of the VMM message management service can By monitoring the state of the virtual GPU of the second virtual system, it is determined whether the switching is successful.
  • Step 377 add a USB device for the second virtual system by the VMM message management service.
  • the virtual machine message thread of the VMM message management service sends a message for adding a USB device to the second virtual system, and after receiving the message, the second virtual system adds the USB device of the second virtual system, such as adding The touch device deleted by the first virtual system is added to the second virtual system, and at this time, the USB device can be used by the second virtual system.
  • FIG. 12 is a flow chart of virtual operating system switching provided by an embodiment of the present application.
  • the VMM message management service first deletes the touch device of the first virtual system (running in the foreground), and then deletes the USB device of the first virtual system, and then suspends the first virtual system and resumes The second virtual system runs, instructs the second virtual system to add a touch device, switches the first interface to the fourth interface, and then adds a USB device to the second virtual system, so as to switch the first virtual system to the second virtual system.
  • FIG. 13 is a flowchart of a VMM service provided by an embodiment of the present application.
  • the VMM service when switching virtual operating systems, the VMM service first goes through the initialization phase (that is, reads the VMM configuration according to the operating parameters.
  • the current virtual operating system can be switched to the virtual operating system to which the target system icon belongs according to the selection instruction for selecting the target system icon.
  • the device startup command start the interactive smart tablet and display the customized boot screen, after the boot screen stops displaying, the first interface of the first virtual system is displayed, and then, according to the received screen control command, the first interface contains The virtual control area of the first system icon and the second system icon receives a second selection instruction for selecting the second system icon, and replaces the first interface with the fourth interface corresponding to the second virtual system according to the second selection instruction.
  • the technical means solves the technical problems of high equipment cost and high hardware design complexity when the interactive smart tablet supports multiple operating systems, and uses virtualization technology to install each operating system as a virtual operating system in the interactive smart tablet, without requiring each
  • the virtual operating system configures the corresponding physical CPU, only the physical CPU of the main operating system needs to be configured, which reduces equipment cost and hardware design complexity.
  • Through the VMM service and the interactive smart tablet module it is possible to manage and run multiple virtual operating systems, thereby realizing fast switching and starting of the virtual operating systems.
  • the processing of the touch device is prior to the processing of the USB device, which can optimize the loading time of the touch device to realize the touch function when switching the virtual operating system, and improve the user experience when switching applications.
  • Fig. 14 is a schematic structural diagram of a switching control device provided by an embodiment of the present application.
  • the switching control device includes a first receiving module 401, a first response module 402, a first display module 403, and a second receiving module 404.
  • the first receiving module 401 is configured to receive a device startup instruction; the first response module 402 is configured to respond to the device startup instruction, start the interactive smart tablet and display a custom startup screen; the first display module 403 is configured to stop the startup screen After displaying, the first interface of the first virtual system is displayed, the first interface is the system desktop of the first virtual system, and the first interface displays the first application icon of the first application installed in the first virtual system and the second virtual system
  • the second application icon of the second application installed in the second virtual system is at least one;
  • the second receiving module 404 is configured to receive a first selection instruction, and the first selection instruction is used to select a target application icon in the second application icon
  • the second response module 405 is configured to respond to the first selection instruction and replace the first interface with a second interface, the second interface is an application interface displayed after the second application corresponding to the target application icon is started.
  • a third receiving module configured to receive an application exit instruction after replacing the first interface with a second interface
  • a third responding module configured to exit the target application in response to the application exit instruction
  • the icon corresponds to the second application, and the second interface is replaced with a third interface
  • the third interface is the system desktop of the second virtual system to which the second application belongs, and the third interface displays the first application icon of the first virtual system and A second application icon of the second virtual system.
  • a fourth receiving module configured to receive a screen control instruction after the first interface of the first virtual system is displayed after the start-up screen stops displaying; a fourth responding module configured to respond to the screen
  • the control instruction is to display a virtual control area in the first interface, and the virtual control area displays the first system icon of the first virtual system and the second system icon of the second virtual system;
  • the fifth receiving module is configured to receive the second selection instruction , the second selection instruction is configured to select the target system icon in the second system icon;
  • the fifth response module is configured to respond to the second selection instruction and replace the first interface with the fourth interface, the fourth interface corresponds to the target system icon The system desktop of the second virtual system.
  • the first response module 402 includes: a main system starting unit configured to start the main operating system of the interactive smart tablet in response to the device starting instruction, and the first virtual system and the second virtual system are installed in the main operating system.
  • the main operating system is an operating system without a desktop environment;
  • the boot display unit is configured to display a customized boot screen during the boot process of the main operating system.
  • a first startup module configured to start the first virtual system and the second virtual system before displaying the first interface of the first virtual system after the start-up screen stops displaying; stop the display module, It is configured to stop displaying the start-up picture when the first virtual system outputs the start-up picture.
  • the first display module 403 includes: a start-up display unit configured to display the start-up picture of the first virtual system after the start-up picture stops displaying, and suspend the second virtual system in the background; an interface display unit configured to stop the start-up picture After displaying, the first interface of the first virtualization system is displayed, the first interface is the system desktop of the first virtual system, and the first interface displays the first application icon and the second virtualization icon of the first application installed in the first virtual system. There is at least one second application icon of the second application installed in the system, and the second virtual system is at least one.
  • a second startup module configured to display the startup screen of the first virtual system, and start the VMM message management service in the VMM service after the second virtual system is suspended in the background, and the VMM service As a service provided by the host operating system, the VMM message management service drives the management and operation of the first virtual system and the second virtual system.
  • the first startup module includes: a file reading unit configured to read the configuration file of the VMM service in the main operating system after the startup screen stops displaying and before displaying the first interface of the first virtual system;
  • the parameter analysis unit is configured to analyze the configuration parameters of the first virtual system and the second virtual system according to the configuration file;
  • the first system startup unit is configured to start the first virtual system and the second virtual system according to the configuration parameters.
  • the first virtual system is provided with a first icon service
  • the second virtual system is provided with a second icon service
  • the second response module 405 includes: a switching message generating unit configured to use the first icon service The service generates a switching message according to the first selection instruction, the switching message includes the target application icon and the second virtual system to which the target application icon belongs;
  • the switching message sending unit is configured to send the switching message to the VMM message management service by the first icon service; notify The unit is configured to start the second application corresponding to the target application icon by the VMM message management service to notify the second icon service of the second virtual system to which the target application icon belongs according to the switching message;
  • the application opening unit is configured to be opened by the second icon service A second application corresponding to the target application icon; an interface switching unit configured to obtain a second interface of the second application by the VMM service, and replace the first interface with a second interface, the second interface being the second application corresponding to the target application icon The application interface displayed after opening.
  • the notification unit includes: a first deletion subunit, configured to delete the touch device of the first virtual system according to a switching message, instructed by the VMM message management service;
  • the management service instructs to delete the USB device of the first virtual system;
  • the first suspend subunit is configured to be instructed by the VMM message management service to suspend the first virtual system in the background;
  • the first running subunit is configured to be instructed by the VMM message management service to resume operation The second virtual system to which the target application icon belongs;
  • the first adding subunit is configured to instruct the second virtual system to add a touch device by the VMM message management service;
  • the first opening subunit is configured to notify the second virtual system by the VMM message management service
  • the second icon service starts the second application corresponding to the target application icon.
  • it also includes: a second adding module configured to, after the first interface is replaced with the second interface, the VMM message management service instructs the second virtual system to add the USB device.
  • the first startup module includes: a second system startup unit configured to start the first virtual system and the second virtual system; a directory mount unit configured to use the VMM service to The shared directory is mounted to the first virtual system and the second virtual system; the information collection unit is configured to collect the first application information and the second application information respectively by the first icon service and the second icon service, and the first application information includes the first The first application icon and the first path information of the application, the second application information includes the second application icon and the second path information of the second application; the shared update unit is configured to be served by the first icon service and the second icon service respectively The first application information and the second application information are updated to the shared directory.
  • the first display module 403 when configured to display the first interface of the first virtual system, it also includes: an information reading unit configured to use the first icon service to read the second application information recorded in the shared directory; the icon display unit , configured to display the second application icon on the first interface by the first icon service according to the second application information.
  • the first application information and/or the second application information in the shared directory are updated synchronously.
  • the virtual control area is provided by the display screen component of the interactive smart panel. Also includes: a query module, configured to start the interactive smart panel and display a customized boot screen, the display component sends a query command to the first virtual system and the second virtual system through the VMM service, so as to obtain the first virtual system through the query command.
  • the first system icon of the system and the second system icon of the second virtual system configured to add the first system icon and the second system icon in the virtual control area by the display screen component.
  • the fifth receiving module includes: an instruction generation unit configured to generate a second selection instruction by the display component according to a touch selection operation acting on the second system icon; an instruction sending unit configured to be used by the VMM The VMM message management service of the service receives the second selection instruction sent by the display screen component; the fifth response module includes: a third deletion unit, in response to the second selection instruction, the VMM message management service instructs to delete the touch device of the first virtual system; The fourth deletion unit is configured to delete the USB device of the first virtual system by the VMM message management service; the second suspension unit is configured to suspend the first virtual system in the background by the VMM message management service; the second operation unit is configured The VMM message management service instructs the second virtual system corresponding to the target system icon to be resumed; the third adding unit is configured to be instructed by the VMM message management service to add a touch device to the second virtual system; the second opening unit is configured to be served by the VMM The fourth interface of the second virtual system is obtained, and the first interface is replaced with the
  • the switching control device provided above can be configured to execute the switching control method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
  • the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, each The specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application.
  • Fig. 15 is a schematic structural diagram of an interactive smart tablet provided by an embodiment of the present application.
  • the interactive smart panel includes a processor 50, a memory 51, an input device 52, an output device 53, and a display screen 54;
  • a processor 50 is taken as an example.
  • the processor 50, the memory 51, the input device 52, the output device 53, and the display screen 54 in the interactive smart panel can be connected through a bus or in other ways. In FIG. 15, connection through a bus is taken as an example.
  • the memory 51 can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the handover control method in the embodiment of the present application (for example, the first receiver in the handover control device module 401, a first response module 402, a first display module 403, a second receiving module 404, and a second response module 405).
  • the processor 50 executes various functional applications and data processing of the interactive smart panel by running software programs, instructions and modules stored in the memory 51 , that is, realizes the above switching control method. Multiple virtual operating systems can be installed and run through the memory 51 and the processor 50 .
  • the memory 51 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required by a function; the data storage area may store data created according to the use of the interactive smart tablet, and the like.
  • the memory 51 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices.
  • the memory 51 may further include a memory that is remotely located relative to the processor 50, and these remote memories may be connected to the interactive smart panel through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input device 52 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the interactive smart tablet, and can also include an audio collection device.
  • the output device 53 may include audio playback equipment such as speakers.
  • the display screen 54 is used to display data according to the instructions of the processor 50, such as displaying the first interface, or switching the first interface to the second interface and so on.
  • the above-mentioned interactive smart tablet includes a switching control device, which can be used to execute any switching control method, and has corresponding functions and beneficial effects.
  • An embodiment of the present application further provides a switching control program.
  • the program When the program is executed, operations related to the switching control method in the above embodiments can be implemented.
  • the switching control program when executed, it is specifically: receiving a device startup instruction; in response to the device startup instruction, starting the interactive smart panel and displaying a custom startup screen; the startup screen stops After displaying, the first interface of the first virtual system is displayed, the first interface is the system desktop of the first virtual system, and the first interface displays the first application icon of the first application installed in the first virtual system and the second virtual system There is at least one second application icon of the second application installed in the second virtual system; a first selection instruction is received, and the first selection instruction is used to select a target application icon among the second application icons; in response to the first selection instruction, The first interface is replaced with a second interface, and the second interface is an application interface displayed after the second application corresponding to the target application icon is started.
  • any operation mentioned in the above switching control method embodiments may also be performed, and have corresponding functions and beneficial effects.
  • an embodiment of the present application also provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to perform related operations in the handover control method provided in any embodiment of the present application when executed by a computer processor. , and have corresponding functions and beneficial effects.
  • the storage medium containing the computer-executable instructions can be installed in the corresponding electronic device.
  • the electronic device installed therein is an interactive smart tablet.
  • the operating systems include but are not limited to iOS system, Android system, Linux system, Windows system, UOS system and so on.
  • the interactive smart tablet is installed with a Linux system, and the Linux system is installed in a chip of the interactive smart tablet as a main operating system of the interactive smart tablet, and the chip can be understood as a physical CPU.
  • the interactive smart tablet is also installed with operating systems such as Android system, Windows system, and UOS system, and the above operating systems are installed in the Linux system in the form of a virtual operating system.
  • a virtual operating system refers to an operating system installed on the basis of a virtualization technology.
  • virtualization generally means that computing elements run on a virtual basis rather than a real basis.
  • Virtualization technology can expand the capacity of hardware and simplify the reconfiguration process of software.
  • the Linux system is used as the Host OS of the interactive smart tablet.
  • an operating system can be installed on a physical machine, and then virtualization software can be installed on this operating system, so that several partitions can be virtualized on the physical machine to install different operating systems respectively.
  • the operating system installed on the physical machine is called Host OS.
  • Host OS is the main operating system, which is a Linux system.
  • each virtual operating system is implemented by a corresponding virtual machine, and a virtual machine refers to a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment.
  • a virtual machine corresponds to an interactive A partition in the smart tablet to install the corresponding virtual operating system.
  • Each virtual machine includes a virtual GPU and a virtual CPU, and the virtual GPU generates and sends images during the running of the virtual operating system, such as the system desktop of the virtual operating system and the application interface of the running application program installed in the virtual operating system.
  • the virtual CPU implements the operation of the virtual operating system.
  • the Host OS communicates with each virtual operating system through a virtual machine manager (Virtual Machine Manager, VMM) service in the Host OS, wherein the VMM service is a system service of the Host OS for starting and managing Multiple virtualization systems.
  • VMM Virtual Machine Manager
  • the interactive smart panel further includes at least one display screen, which may be a display screen with a touch function or a display screen without a touch function.
  • the interactive smart The display screen with the control function is described as an example, that is, the user of the interactive smart tablet can control the interactive smart tablet by touching the display on the display screen.
  • the interactive smart panel is also equipped with an interactive smart panel module, which includes components related to display, touch control and output such as a displayed screen, touch control and high definition multimedia interface (High Definition Multimedia Interface, HDMI) channel.
  • the VMM service can also perform data communication with the interactive smart panel module, so that when the display screen receives some touch operations related to the virtual operating system, the interactive smart panel module notifies the VMM service to respond to the touch operation , so as to control the virtual operating system, such as switching the currently running virtual operating system.
  • the interactive smart tablet can install at least one application program based on each operating system (including the main operating system and the virtual operating system), where the implementation of the function of the application program is not limited.
  • the application program may be a built-in application program of each operating system, or may be an application program downloaded from a third-party device or server.
  • the virtual operating system is used to install the application program as an example. At this time, each virtual operating system installs at least one application program, and the application icon of the installed application program can be displayed on the system desktop of the corresponding virtual operating system superior.
  • the Linux system does not have a desktop environment installed, that is, the Linux system is always running in the background, and for the user of the interactive smart tablet, the running interface of the Linux system will not be seen on the display screen.
  • each virtual operating system has a desktop environment, that is, when the user of the interactive smart tablet uses the virtual operating system, the system desktop of the virtual operating system can be displayed on the display screen.
  • the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
  • the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • the present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions.
  • These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash random access memory
  • Computer-readable media including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

Landscapes

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

Abstract

Embodiments of the present application provide a switching control method and apparatus, an interactive smart tablet, and a storage medium, comprising: receiving a device start instruction; in response to the device start instruction, starting an interactive smart tablet and displaying a customized boot screen; after the boot screen stops displaying, displaying a first interface of a first virtual system, the first interface being a system desktop of the first virtual system, and the first interface displaying a first application icon of a first application installed in the first virtual system and a second application icon of a second application installed in a second virtual system; receiving a first selection instruction for selecting a target application icon from the second application icons; and in response to the first selection instruction, replacing the first interface with a second interface, the second interface being an application interface displayed after a second application corresponding to the target application icon is started. By adoption of the method, the technical problems in the related art of high device cost and high hardware design complexity when an interactive smart tablet supports multiple operating systems can be solved.

Description

切换控制方法、装置、交互智能平板及存储介质Switching control method, device, interactive smart tablet and storage medium
本申请要求于2021年07月12日提交中国专利局、申请号为202110786882.9、发明名称为“切换控制方法、装置、交互智能平板及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on July 12, 2021, with the application number 202110786882.9, and the title of the invention is "switching control method, device, interactive smart tablet and storage medium", the entire content of which is incorporated by reference incorporated in this application.
技术领域technical field
本申请实施例涉及虚拟机技术领域,尤其涉及一种切换控制方法、装置、交互智能平板及存储介质。The embodiments of the present application relate to the technical field of virtual machines, and in particular, to a switching control method and device, an interactive smart tablet, and a storage medium.
背景技术Background technique
交互智能平板是通过触控技术对显示在平板上的内容进行操控和实现人机交互操作的一体化设备,其集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。大尺寸的交互智能平板被广泛应用于教育市场和会议市场中。为了丰富交互智能平板的功能,一般在交互智能平板中安装多个操作系统,如安装Windows系统和Android系统,以实现在交互智能平板中运行不同操作系统对应的功能。为了使交互智能平板支持多个操作系统,普遍在交互智能平板中安装多个不同的芯片模块,并在每个芯片模块中运行一个操作系统,这样虽然使得交互智能平板支持了多个操作系统,但是,增加了交互智能平板的设备成本以及硬件设计复杂度。The interactive smart tablet is an integrated device that controls the content displayed on the tablet and realizes human-computer interaction through touch technology. It integrates a projector, electronic whiteboard, curtain, audio, TV and video conference terminal or multiple functions. Large-sized interactive smart tablets are widely used in the education market and conference market. In order to enrich the functions of the interactive smart panel, generally multiple operating systems are installed in the interactive smart panel, such as installing Windows system and Android system, so as to realize the corresponding functions of running different operating systems in the interactive smart panel. In order to enable the interactive smart panel to support multiple operating systems, it is common to install multiple different chip modules in the interactive smart panel, and run an operating system in each chip module, so that although the interactive smart panel supports multiple operating systems, However, the device cost and hardware design complexity of the interactive smart panel are increased.
发明内容Contents of the invention
本申请实施例提供了一种切换控制方法、装置、交互智能平板及存储介质,以解决相关技术中交互智能平板支持多操作系统时,设备成本高以及硬件设计复杂度高的技术问题。The embodiment of the present application provides a switching control method, device, interactive smart tablet and storage medium to solve the technical problems of high equipment cost and high complexity of hardware design in the related art when the interactive smart tablet supports multiple operating systems.
第一方面,在本申请的一个实施例,提供了一种切换控制方法,包括:In the first aspect, in an embodiment of the present application, a switching control method is provided, including:
接收设备启动指令;Receive device startup instructions;
响应于所述设备启动指令,启动交互智能平板并显示自定义的开机画面;In response to the device startup instruction, start the interactive smart tablet and display a customized startup screen;
开机画面停止显示后,显示第一虚拟系统的第一界面,所述第一界面为所述第一虚拟系统的系统桌面,所述第一界面显示有所述第一虚拟系统中安装的第一应用的第一应用图标和第二虚拟系统中安装的第二应用的第二应用图标,所述第二虚拟系统为至少一个;After the start-up screen stops displaying, the first interface of the first virtual system is displayed, the first interface is the system desktop of the first virtual system, and the first interface is displayed with the first virtual system installed in the first virtual system. The first application icon of the application and the second application icon of the second application installed in the second virtual system, the second virtual system is at least one;
接收第一选择指令,所述第一选择指令用于在所述第二应用图标中选择目标应用图标;receiving a first selection instruction, the first selection instruction is used to select a target application icon among the second application icons;
响应于所述第一选择指令,将所述第一界面更换为第二界面,所述第二界面是所述目标应用图标对应的第二应用开启后显示的应用界面。In response to the first selection instruction, the first interface is replaced with a second interface, and the second interface is an application interface displayed after the second application corresponding to the target application icon is started.
根据本申请的一个实施例,所述将所述第一界面更换为第二界面之后,还包括:According to an embodiment of the present application, after replacing the first interface with the second interface, it further includes:
接收应用退出指令;Receive an application exit command;
响应于所述应用退出指令,退出所述目标应用图标对应的第二应用,并将所述第二界面更换为第三界面,所述第三界面为所述第二应用所属的第二虚拟系统的系统桌面,所述第三界面显示有所述第一虚拟系统的所述第一应用图标和所述第二虚拟系统的所述第二应用图标。In response to the application exit instruction, exit the second application corresponding to the target application icon, and replace the second interface with a third interface, the third interface being the second virtual system to which the second application belongs system desktop, the third interface displays the first application icon of the first virtual system and the second application icon of the second virtual system.
根据本申请的一个实施例,所述开机画面停止显示后,显示第一虚拟系统的第一界面之 后,还包括:According to an embodiment of the present application, after the start-up screen stops displaying, after displaying the first interface of the first virtual system, it further includes:
接收屏幕控制指令;Receive screen control commands;
响应于所述屏幕控制指令,在所述第一界面中显示虚拟控制区域,所述虚拟控制区域显示有所述第一虚拟系统的第一系统图标和所述第二虚拟系统的第二系统图标;In response to the screen control instruction, displaying a virtual control area in the first interface, the virtual control area displays a first system icon of the first virtual system and a second system icon of the second virtual system ;
接收第二选择指令,所述第二选择指令用于在所述第二系统图标中选择目标系统图标;receiving a second selection instruction, the second selection instruction being used to select a target system icon among the second system icons;
响应于所述第二选择指令,将所述第一界面更换为第四界面,所述第四界面是所述目标系统图标对应的第二虚拟系统的系统桌面。In response to the second selection instruction, the first interface is replaced with a fourth interface, and the fourth interface is the system desktop of the second virtual system corresponding to the target system icon.
根据本申请的一个实施例,所述响应于所述设备启动指令,启动交互智能平板并显示自定义的开机画面包括:According to an embodiment of the present application, in response to the device startup instruction, starting the interactive smart tablet and displaying a customized startup screen includes:
响应于所述设备启动指令,启动交互智能平板的主操作系统,所述主操作系统中安装有所述第一虚拟系统和所述第二虚拟系统,所述主操作系统为不具备桌面环境的操作系统;In response to the device startup instruction, start the main operating system of the interactive smart panel, the first virtual system and the second virtual system are installed in the main operating system, and the main operating system is a system that does not have a desktop environment. operating system;
所述主操作系统的启动过程中,显示自定义的开机画面。During the startup process of the main operating system, a customized startup screen is displayed.
根据本申请的一个实施例,所述开机画面停止显示后,显示第一虚拟系统的第一界面之前,包括:According to an embodiment of the present application, after the start-up screen stops displaying, before displaying the first interface of the first virtual system, it includes:
启动第一虚拟系统和第二虚拟系统;start the first virtual system and the second virtual system;
当所述第一虚拟系统输出启动画面时,停止显示所述开机画面;When the first virtual system outputs a startup screen, stop displaying the startup screen;
所述开机画面停止显示后,显示第一虚拟系统的第一界面包括:After the startup screen stops displaying, displaying the first interface of the first virtual system includes:
所述开机画面停止显示后,显示所述第一虚拟系统的所述启动画面,并在后台挂起所述第二虚拟系统;After the startup screen stops displaying, display the startup screen of the first virtual system, and suspend the second virtual system in the background;
所述启动画面停止显示后,显示所述第一虚拟化系统的第一界面。After the start-up image stops displaying, the first interface of the first virtualization system is displayed.
根据本申请的一个实施例,所述显示所述第一虚拟系统的所述启动画面,并在后台挂起所述第二虚拟系统之后,包括:According to an embodiment of the present application, after displaying the startup screen of the first virtual system and suspending the second virtual system in the background, it includes:
启动VMM服务中的VMM消息管理服务,所述VMM服务为所述主操作系统提供的服务,所述VMM消息管理服务驱动所述第一虚拟系统和所述第二虚拟系统的管理和运行。Starting the VMM message management service in the VMM service, the VMM service is a service provided by the main operating system, and the VMM message management service drives the management and operation of the first virtual system and the second virtual system.
根据本申请的一个实施例,所述启动第一虚拟系统和第二虚拟系统包括:According to an embodiment of the present application, the starting the first virtual system and the second virtual system includes:
读取所述主操作系统中所述VMM服务的配置文件;Read the configuration file of the VMM service in the host operating system;
根据所述配置文件解析出所述第一虚拟系统和所述第二虚拟系统的配置参数;Analyzing configuration parameters of the first virtual system and the second virtual system according to the configuration file;
根据所述配置参数启动所述第一虚拟系统和所述第二虚拟系统。Starting the first virtual system and the second virtual system according to the configuration parameters.
根据本申请的一个实施例,所述第一虚拟系统设置有第一图标服务,所述第二虚拟系统设置有第二图标服务;According to an embodiment of the present application, the first virtual system is configured with a first icon service, and the second virtual system is configured with a second icon service;
所述响应于所述第一选择指令,将所述第一界面更换为第二界面包括:In response to the first selection instruction, replacing the first interface with the second interface includes:
由所述第一图标服务根据所述第一选择指令生成切换消息,所述切换消息包括所述目标应用图标和所述目标应用图标所属的第二虚拟系统;generating a switching message by the first icon service according to the first selection instruction, the switching message including the target application icon and the second virtual system to which the target application icon belongs;
由所述第一图标服务将所述切换消息发送至所述VMM消息管理服务;sending the switching message to the VMM message management service by the first icon service;
根据所述切换消息,由所述VMM消息管理服务通知所述目标应用图标所属的第二虚拟系统的第二图标服务开启所述目标应用图标对应的第二应用;According to the switching message, the VMM message management service notifies the second icon service of the second virtual system to which the target application icon belongs to start the second application corresponding to the target application icon;
由所述第二图标服务开启所述目标应用图标对应的第二应用;Opening a second application corresponding to the target application icon by the second icon service;
由所述VMM服务获取所述第二应用的第二界面,并将所述第一界面更换为所述第二界面。The VMM service obtains the second interface of the second application, and replaces the first interface with the second interface.
根据本申请的一个实施例,所述根据所述切换消息,由所述VMM消息管理服务通知所述目标应用图标所属的第二虚拟系统的第二图标服务开启所述目标应用图标对应的第二应用包括:According to an embodiment of the present application, according to the switching message, the VMM message management service notifies the second icon service of the second virtual system to which the target application icon belongs to enable the second icon service corresponding to the target application icon. Applications include:
根据所述切换消息,由所述VMM消息管理服务指示删除所述第一虚拟系统的触摸设备;According to the switching message, the VMM message management service instructs to delete the touch device of the first virtual system;
由所述VMM消息管理服务指示删除所述第一虚拟系统的USB设备;The VMM message management service instructs to delete the USB device of the first virtual system;
由所述VMM消息管理服务指示在后台挂起所述第一虚拟系统;Instructing by the VMM message management service to suspend the first virtual system in the background;
由所述VMM消息管理服务指示恢复运行所述目标应用图标所属的第二虚拟系统;The VMM message management service instructs to resume running the second virtual system to which the target application icon belongs;
由所述VMM消息管理服务指示所述第二虚拟系统添加触摸设备;instructing the second virtual system to add a touch device by the VMM message management service;
由所述VMM消息管理服务通知所述第二虚拟系统的第二图标服务开启所述目标应用图标对应的第二应用;The VMM message management service notifies the second icon service of the second virtual system to start the second application corresponding to the target application icon;
所述将所述第一界面更换为第二界面之后,包括:After replacing the first interface with the second interface, it includes:
由所述VMM消息管理服务指示所述第二虚拟系统添加USB设备。The VMM message management service instructs the second virtual system to add a USB device.
根据本申请的一个实施例,所述启动第一虚拟系统和第二虚拟系统时,还包括:According to an embodiment of the present application, when starting the first virtual system and the second virtual system, it also includes:
由所述VMM服务将所述主操作系统中配置的共享目录挂载到所述第一虚拟系统和所述第二虚拟系统;Mounting the shared directory configured in the main operating system to the first virtual system and the second virtual system by the VMM service;
由所述第一图标服务和所述第二图标服务分别收集第一应用信息和第二应用信息,所述第一应用信息包括所述第一应用的第一应用图标和第一路径信息,所述第二应用信息包括所述第二应用的第二应用图标和第二路径信息;The first application information and the second application information are respectively collected by the first icon service and the second icon service, the first application information includes a first application icon and first path information of the first application, so The second application information includes a second application icon and second path information of the second application;
由所述第一图标服务和所述第二图标服务分别将所述第一应用信息和所述第二应用信息更新到所述共享目录;updating the first application information and the second application information to the shared directory by the first icon service and the second icon service, respectively;
所述显示第一虚拟系统的第一界面时,还包括:When displaying the first interface of the first virtual system, it also includes:
由所述第一图标服务读取所述共享目录中记录的第二应用信息;reading the second application information recorded in the shared directory by the first icon service;
由所述第一图标服务根据所述第二应用信息在所述第一界面中显示所述第二应用图标。The second application icon is displayed on the first interface by the first icon service according to the second application information.
根据本申请的一个实施例,当所述第一应用和/或第二应用更新时,所述共享目录中的第一应用信息和/或第二应用信息同步更新。According to an embodiment of the present application, when the first application and/or the second application are updated, the first application information and/or the second application information in the shared directory are updated synchronously.
根据本申请的一个实施例,所述虚拟控制区域由交互智能平板的显示屏组件提供;According to an embodiment of the present application, the virtual control area is provided by a display component of an interactive smart panel;
所述启动交互智能平板并显示自定义的开机画面之后,包括:After starting the interactive smart tablet and displaying the customized boot screen, it includes:
由所述显示屏组件通过VMM服务向所述第一虚拟系统和所述第二虚拟系统发送查询指令,以通过所述查询指令获取所述第一虚拟系统的第一系统图标和所述第二虚拟系统的第二系统图标;The display screen component sends a query instruction to the first virtual system and the second virtual system through the VMM service, so as to obtain the first system icon of the first virtual system and the second virtual system through the query instruction. The second system icon of the virtual system;
由所述显示屏组件在所述虚拟控制区域中添加所述第一系统图标和所述第二系统图标。adding the first system icon and the second system icon in the virtual control area by the display screen component.
根据本申请的一个实施例,所述接收第二选择指令包括:According to an embodiment of the present application, the receiving the second selection instruction includes:
由所述显示屏组件根据作用于第二系统图标的触控选择操作生成第二选择指令;generating a second selection instruction by the display screen component according to a touch selection operation acting on a second system icon;
由所述VMM服务的VMM消息管理服务接收所述显示屏组件发送的所述第二选择指令;The VMM message management service of the VMM service receives the second selection instruction sent by the display screen component;
所述响应于所述第二选择指令,将所述第一界面更换为第四界面包括:In response to the second selection instruction, replacing the first interface with the fourth interface includes:
响应于所述第二选择指令,由所述VMM消息管理服务指示删除所述第一虚拟系统的触摸设备;In response to the second selection instruction, the VMM message management service instructs to delete the touch device of the first virtual system;
由所述VMM消息管理服务指示删除所述第一虚拟系统的USB设备;The VMM message management service instructs to delete the USB device of the first virtual system;
由所述VMM消息管理服务指示在后台挂起所述第一虚拟系统;Instructing by the VMM message management service to suspend the first virtual system in the background;
由所述VMM消息管理服务指示恢复运行所述目标系统图标对应的第二虚拟系统;Instructing by the VMM message management service to resume running the second virtual system corresponding to the target system icon;
由所述VMM消息管理服务指示所述第二虚拟系统添加触摸设备;instructing the second virtual system to add a touch device by the VMM message management service;
由所述VMM服务获取所述第二虚拟系统的第四界面,并将所述第一界面更换为所述第四界面;obtaining a fourth interface of the second virtual system by the VMM service, and replacing the first interface with the fourth interface;
由所述VMM消息管理服务为所述第二虚拟系统添加USB设备。A USB device is added to the second virtual system by the VMM message management service.
第二方面,在本申请的一个实施例,还提供了一种切换控制装置,包括:In the second aspect, in an embodiment of the present application, a switching control device is also provided, including:
第一接收模块,配置为接收设备启动指令;The first receiving module is configured to receive a device startup instruction;
第一响应模块,配置为响应于所述设备启动指令,启动交互智能平板并显示自定义的开机画面;The first response module is configured to respond to the device startup instruction, start the interactive smart tablet and display a customized startup screen;
第一显示模块,配置为开机画面停止显示后,显示第一虚拟系统的第一界面,所述第一界面为所述第一虚拟系统的系统桌面,所述第一界面显示有所述第一虚拟系统中安装的第一应用的第一应用图标和第二虚拟系统中安装的第二应用的第二应用图标,所述第二虚拟系统为至少一个;The first display module is configured to display the first interface of the first virtual system after the startup screen stops displaying, the first interface is the system desktop of the first virtual system, and the first interface displays the first The first application icon of the first application installed in the virtual system and the second application icon of the second application installed in the second virtual system, the second virtual system is at least one;
第二接收模块,配置为接收第一选择指令,所述第一选择指令用于在所述第二应用图标中选择目标应用图标;The second receiving module is configured to receive a first selection instruction, the first selection instruction is used to select a target application icon among the second application icons;
第二响应模块,配置为响应于所述第一选择指令,将所述第一界面更换为第二界面,所述第二界面是所述目标应用图标对应的第二应用开启后显示的应用界面。The second response module is configured to replace the first interface with a second interface in response to the first selection instruction, and the second interface is an application interface displayed after the second application corresponding to the target application icon is started. .
第三方面,在本申请的一个实施例,还提供了一种交互智能平板,包括:In a third aspect, in an embodiment of the present application, an interactive smart tablet is also provided, including:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序;memory for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面所述的切换控制方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the handover control method as described in the first aspect.
第四方面,在本申请的一个实施例,还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所述的切换控制方法。In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the handover control method as described in the first aspect is implemented.
第五方面,在本申请的一个实施例,还提供了一种切换控制的程序,该程序被执行时,可以实现如第一方面所述的切换控制方法有关的操作。In the fifth aspect, an embodiment of the present application further provides a switching control program. When the program is executed, operations related to the switching control method described in the first aspect can be realized.
在本申请的一个实施例中,通过接收设备启动指令,启动交互智能平板并显示自定义的开机画面,开机画面停止显示后,显示第一虚拟系统的第一界面,第一界面显示有第一虚拟系统的第一应用图标以及第二虚拟系统的第二应用图标,之后,接收用于选择第二应用图标的第一选择指令,并根据第一选择指令,将第一界面更换为第二应用图标对应的第二应用开启后的第二界面的技术手段,解决了交互智能平板支持多操作系统时,设备成本高以及硬件设计复杂度高的技术问题,利用虚拟化技术将各操作系统作为虚拟操作系统安装在交互智能平板中,无需为每个虚拟操作系统配置对应的物理CPU,只需要配置主操作系统的物理CPU,降低了设备成本以及硬件设计复杂度。并且当前手机、平板电脑等小尺寸的设备应用虚拟化技术时,大多针对单一的操作系统,比如针对Android系统应用虚拟化技术时可加速Android系统启动速度,但是,无法在设备中应用多个操作系统,而本申请的一个实施例中,通过虚拟化技术在大尺寸的交互智能平板中安装了多个操作系统,提高了交互智能平板的功能性。同时,虚拟操作系统的系统界面中除了显示自身虚拟操作系统的应用图标,还显示其他虚拟操作系统的应用图标,以通过在一个虚拟操作系统中选择另一个虚拟操作系统的应用图标的 方式,进行虚拟操作系统的切换以及打开对应的应用程序,实现了多个虚拟操作系统中应用程序的快速切换和启动。In one embodiment of the present application, the interactive smart tablet is started and a custom startup screen is displayed by receiving a device startup command. After the startup screen stops displaying, the first interface of the first virtual system is displayed, and the first interface displays the first The first application icon of the virtual system and the second application icon of the second virtual system, after that, receiving a first selection instruction for selecting the second application icon, and replacing the first interface with the second application according to the first selection instruction The technical means of the second interface after the second application corresponding to the icon is opened solves the technical problems of high equipment cost and high hardware design complexity when the interactive smart tablet supports multiple operating systems, and uses virtualization technology to use each operating system as a virtual The operating system is installed in the interactive smart tablet, and there is no need to configure the corresponding physical CPU for each virtual operating system, only the physical CPU of the main operating system needs to be configured, which reduces the equipment cost and hardware design complexity. Moreover, when virtualization technology is applied to small-sized devices such as mobile phones and tablet computers, most of them are aimed at a single operating system. For example, when virtualization technology is applied to the Android system, it can accelerate the startup speed of the Android system. However, multiple operations cannot be applied to the device. system, and in an embodiment of the present application, a plurality of operating systems are installed in a large-sized interactive smart tablet through virtualization technology, thereby improving the functionality of the interactive smart tablet. At the same time, in addition to displaying the application icons of its own virtual operating system on the system interface of the virtual operating system, it also displays application icons of other virtual operating systems, so that by selecting an application icon of another virtual operating system in one virtual operating system, The switching of the virtual operating system and the opening of the corresponding application program realize the fast switching and starting of the application program in multiple virtual operating systems.
附图说明Description of drawings
图1为本申请一个实施例提供的一种切换控制方法的流程图;FIG. 1 is a flowchart of a handover control method provided by an embodiment of the present application;
图2为本申请一个实施例提供的系统第一框架图;FIG. 2 is a first frame diagram of the system provided by an embodiment of the present application;
图3为本申请一个实施例提供的另一种切换控制方法的流程图;FIG. 3 is a flowchart of another handover control method provided by an embodiment of the present application;
图4为本申请一个实施例提供的VMM服务运行流程图;FIG. 4 is a flow chart of VMM service operation provided by an embodiment of the present application;
图5为本申请一个实施例提供的第一界面的示意图;Fig. 5 is a schematic diagram of a first interface provided by an embodiment of the present application;
图6为本申请一个实施例提供的一种应用启动流程图;FIG. 6 is a flow chart of application startup provided by an embodiment of the present application;
图7为本申请一个实施例提供的一种应用程序切换流程图;FIG. 7 is a flow chart of application program switching provided by an embodiment of the present application;
图8为本申请一个实施例提供的一种VMM服务与图标服务的流程图;FIG. 8 is a flowchart of a VMM service and icon service provided by an embodiment of the present application;
图9为本申请一个实施例提供的系统第二框架图;FIG. 9 is a second framework diagram of the system provided by an embodiment of the present application;
图10为本申请一个实施例提供的又一种切换控制方法的流程图;FIG. 10 is a flowchart of another handover control method provided by an embodiment of the present application;
图11为本申请一个实施例提供的一种虚拟控制区域的示意图;FIG. 11 is a schematic diagram of a virtual control area provided by an embodiment of the present application;
图12为本申请一个实施例提供的一种虚拟操作系统切换流程图;FIG. 12 is a flow chart of virtual operating system switching provided by an embodiment of the present application;
图13为本申请一个实施例提供的一种VMM服务的流程图;FIG. 13 is a flowchart of a VMM service provided by an embodiment of the present application;
图14为本申请一个实施例提供的一种切换控制装置的结构示意图;FIG. 14 is a schematic structural diagram of a switching control device provided by an embodiment of the present application;
图15为本申请一个实施例提供的一种交互智能平板的结构示意图。Fig. 15 is a schematic structural diagram of an interactive smart tablet provided by an embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are used to explain the present application rather than limit the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.
本申请一个实施例提供了一种切换控制方法,该切换控制方法可以由切换控制设备执行,该切换控制设备可以通过软件和/或硬件的方式实现,该切换控制设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。例如,切换控制设备可以是笔记本电脑、手机、平板电脑或交互智能平板等智能设备。在一个实施例中,以切换控制设备为交互智能平板为例进行描述。该交互智能平板可选为大尺寸的交互智能平板,大尺寸的交互智能平板是指达到设定的尺寸阈值的交互智能平板,尺寸阈值可根据实际情况设定,如尺寸阈值为55寸时,若交互智能平板的尺寸达到55寸,则可以认为是大尺寸的交互智能平板。An embodiment of the present application provides a handover control method, which can be executed by a handover control device, which can be implemented by software and/or hardware, and the handover control device can be two or more A physical entity constitutes, or a physical entity constitutes. For example, the switching control device may be a smart device such as a laptop computer, a mobile phone, a tablet computer, or an interactive smart tablet. In one embodiment, the description is made by taking the switching control device as an interactive smart tablet as an example. The interactive smart tablet can be selected as a large-sized interactive smart tablet. A large-sized interactive smart tablet refers to an interactive smart tablet that reaches a set size threshold. The size threshold can be set according to the actual situation. For example, when the size threshold is 55 inches, If the size of the interactive smart tablet reaches 55 inches, it can be considered as a large-sized interactive smart tablet.
示例性的,交互智能平板安装有多类操作系统,其中,操作系统包括但不限定于iOS系统、Android系统、Linux系统、Windows系统、UOS系统等。在一个实施例中,交互智能平板安装有Linux系统,并将Linux系统作为交互智能平板的主操作系统安装在交互智能平板的芯片中,该芯片可理解为物理CPU。交互智能平板安装还安装有Android系统、Windows系统、UOS系统等操作系统,并将上述操作系统以虚拟操作系统的方式安装在Linux系统中。一般而言,虚拟操作系统是指依托于虚拟化技术安装的操作系统。其中,虚拟化通常是指计算元件在虚拟的基础上而不是真实的基础上运行,虚拟化技术可以扩大硬件的容量,简化软 件的重新配置过程。应用虚拟化技术时,Linux系统作为交互智能平板的Host OS。可理解,虚拟化技术中,可以在物理机器上安装操作系统,然后在这个操作系统上安装虚拟化软件,这样就可以在物理机器上虚拟化出若干分区,以分别安装不同的操作系统,这时,在物理机器上安装的操作系统就叫做Host OS。交互智能平板作为物理机器时,Host OS为主操作系统,其是Linux系统。一个实施例中,每个虚拟操作系统均通过对应的虚拟机实现,虚拟机是指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统,一个虚拟机对应交互智能平板中的一个分区,以安装对应的虚拟操作系统。每个虚拟机包含虚拟GPU和虚拟CPU,虚拟GPU生成并发送虚拟操作系统运行过程中的画面,如虚拟操作系统的系统桌面、虚拟操作系统安装的应用程序运行时的应用界面。虚拟CPU实现虚拟操作系统的运行。一个实施例中,通过Host OS中的虚拟机管理器(Virtual Machine Manager,VMM)服务使Host OS与各虚拟操作系统进行通信,其中,VMM服务是Host OS的一个系统服务,用于启动与管理多个虚拟化系统。Exemplarily, the interactive smart tablet is installed with multiple types of operating systems, wherein the operating systems include but are not limited to iOS system, Android system, Linux system, Windows system, UOS system and so on. In one embodiment, the interactive smart tablet is installed with a Linux system, and the Linux system is installed in a chip of the interactive smart tablet as a main operating system of the interactive smart tablet, and the chip can be understood as a physical CPU. The interactive smart tablet is also installed with operating systems such as Android system, Windows system, and UOS system, and the above operating systems are installed in the Linux system in the form of a virtual operating system. Generally speaking, a virtual operating system refers to an operating system installed on the basis of a virtualization technology. Among them, virtualization usually means that computing elements run on a virtual basis instead of a real basis. Virtualization technology can expand the capacity of hardware and simplify the reconfiguration process of software. When virtualization technology is applied, the Linux system is used as the Host OS of the interactive smart tablet. It can be understood that in virtualization technology, an operating system can be installed on a physical machine, and then virtualization software can be installed on this operating system, so that several partitions can be virtualized on the physical machine to install different operating systems respectively. , the operating system installed on the physical machine is called Host OS. When the interactive smart tablet is used as a physical machine, Host OS is the main operating system, which is a Linux system. In one embodiment, each virtual operating system is implemented by a corresponding virtual machine, and a virtual machine refers to a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment. A virtual machine corresponds to an interactive A partition in the smart tablet to install the corresponding virtual operating system. Each virtual machine includes a virtual GPU and a virtual CPU, and the virtual GPU generates and sends images during the running of the virtual operating system, such as the system desktop of the virtual operating system and the application interface of the running application program installed in the virtual operating system. The virtual CPU implements the operation of the virtual operating system. In one embodiment, the Host OS communicates with each virtual operating system through a virtual machine manager (Virtual Machine Manager, VMM) service in the Host OS, wherein the VMM service is a system service of the Host OS for starting and managing Multiple virtualization systems.
示例性的,交互智能平板还包括至少一块显示屏,该显示屏可以是具有触控功能的显示屏也可以是不具有触控功能的显示屏,一个实施例中,以交互智能平板包含具有触控功能的显示屏为例进行描述,即交互智能平板的使用者可以通过触摸显示屏的显示对交互智能平板进行控制。此时,交互智能平板还安装有交互智能平板模块,交互智能平板模块包括显示的屏幕、触摸控制和高清多媒体接口(High Definition Multimedia Interface,HDMI)通道等与显示、触控和输出相关的组件。一个实施例中,VMM服务还可以与交互智能平板模块进行数据通信,以在显示屏接收到一些与虚拟操作系统有关的触控操作时,通过交互智能平板模块通知VMM服务对触控操作进行响应,以实现对虚拟操作系统的控制,如切换当前运行的虚拟操作系统。Exemplarily, the interactive smart panel further includes at least one display screen, which may be a display screen with a touch function or a display screen without a touch function. In one embodiment, the interactive smart The display screen with the control function is described as an example, that is, the user of the interactive smart tablet can control the interactive smart tablet by touching the display on the display screen. At this time, the interactive smart panel is also equipped with an interactive smart panel module, which includes components related to display, touch control and output such as a displayed screen, touch control and high definition multimedia interface (High Definition Multimedia Interface, HDMI) channel. In one embodiment, the VMM service can also perform data communication with the interactive smart panel module, so that when the display screen receives some touch operations related to the virtual operating system, the interactive smart panel module notifies the VMM service to respond to the touch operation , so as to control the virtual operating system, such as switching the currently running virtual operating system.
示例性的,交互智能平板可以基于各操作系统(包括主操作系统和虚拟操作系统)安装至少一个应用程序,其中,应用程序可实现的功能实施例不作限定。应用程序可以是各操作系统自带的应用程序,也可以是从第三方设备或服务器中下载的应用程序。一个实施例中,以虚拟操作系统安装应用程序为例进行描述,此时,每个虚拟操作系统均安装至少一个应用程序,且安装的应用程序的应用图标可以显示在对应虚拟操作系统的系统桌面上。一个实施例中,Linux系统没有安装桌面环境,即Linux系统始终在后台运行,对于交互智能平板的使用者而言,在显示屏中不会观看到Linux系统的运行界面。而各虚拟操作系统具备桌面环境,即交互智能平板的使用者使用虚拟操作系统时,虚拟操作系统的系统桌面可以显示在显示屏中。Exemplarily, the interactive smart tablet can install at least one application program based on each operating system (including the main operating system and the virtual operating system), where the implementation of the function of the application program is not limited. The application program may be a built-in application program of each operating system, or may be an application program downloaded from a third-party device or server. In one embodiment, the virtual operating system is used to install the application program as an example. At this time, each virtual operating system installs at least one application program, and the application icon of the installed application program can be displayed on the system desktop of the corresponding virtual operating system superior. In one embodiment, the Linux system does not have a desktop environment installed, that is, the Linux system is always running in the background, and for the user of the interactive smart tablet, the running interface of the Linux system will not be seen on the display screen. And each virtual operating system has a desktop environment, that is, when the user of the interactive smart tablet uses the virtual operating system, the system desktop of the virtual operating system can be displayed on the display screen.
示例性的,图1为本申请一个实施例提供的一种切换控制方法的流程图。参考图1,该切换控制方法具体包括:Exemplarily, FIG. 1 is a flowchart of a handover control method provided by an embodiment of the present application. Referring to Fig. 1, the switching control method specifically includes:
步骤110、接收设备启动指令。 Step 110, receiving a device startup instruction.
设备启动指令用于启动交互智能平板。交互智能平板关闭时,可以通过设备启动指令使交互智能平板开机启动。The device start command is used to start the interactive smart tablet. When the interactive smart tablet is turned off, the interactive smart tablet can be turned on through the device startup command.
步骤120、响应于设备启动指令,启动交互智能平板并显示自定义的开机画面。Step 120: In response to the device startup instruction, start the interactive smart tablet and display a customized startup screen.
交互智能平板根据设备启动指令开机,并启动Host OS。一个实施例中,在启动过程中,显示开机画面。示例性的,Host OS的Linux系统启动过程中没有图形界面(即没有开机画面),此时,通过开源的plymouth项目可支持自定义的开机画面,以在交互智能平板启动过程中显 示自定义的开机画面。plymouth为启动画面的开源组件。自定义的开机画面可以根据实际情况设定,如自定义的开机画面为设定的一个logo,此时,在开机过程中,交互智能平板显示该logo。The interactive smart tablet starts up according to the device startup command, and starts the Host OS. In one embodiment, during the startup process, a startup screen is displayed. Exemplarily, there is no graphical interface (that is, no boot screen) during the boot process of the Linux system of the Host OS. At this time, the open source plymouth project can support a custom boot screen to display a custom startup screen. plymouth is an open source component of the splash screen. The self-defined start-up screen can be set according to actual conditions, such as a logo that is set as the self-defined start-up screen, and at this time, during the start-up process, the interactive smart panel displays the logo.
步骤130、开机画面停止显示后,显示第一虚拟系统的第一界面,第一界面为第一虚拟系统的系统桌面,第一界面显示有第一虚拟系统中安装的第一应用的第一应用图标和第二虚拟系统中安装的第二应用的第二应用图标,第二虚拟系统为至少一个。Step 130: After the start-up screen stops displaying, display the first interface of the first virtual system, the first interface is the system desktop of the first virtual system, and the first interface displays the first application of the first application installed in the first virtual system The icon and the second application icon of the second application installed in the second virtual system, the second virtual system is at least one.
一个实施例中,交互智能平板启动过程中,自动运行VMM服务,之后,启动全部的虚拟操作系统。当默认的虚拟操作系统输出画面时,停止显示当前的开机画面。其中,默认的虚拟操作系统是预先设置的一个虚拟操作系统,交互智能平板完成启动后显示默认的虚拟操作系统的系统桌面,即完成启动后,默认的虚拟操作系统为前台运行的虚拟操作系统,此时,主操作系统和默认的虚拟操作系统均处于运行状态,其他的虚拟操作系统处于后台挂起的状态。后台挂起是指虚拟操作系统保存当前的状态,当虚拟操作系统再次运行时还处于保存的这个状态。一个实施例中,将默认的虚拟操作系统记为第一虚拟系统,将其他的虚拟操作系统记为第二虚拟系统。其中,第二虚拟系统可以为一个或多个。In one embodiment, during the startup process of the interactive smart tablet, the VMM service is automatically run, and then all the virtual operating systems are started. When the default virtual operating system outputs the screen, stop displaying the current boot screen. Wherein, the default virtual operating system is a pre-set virtual operating system. After the interactive smart panel is started, the system desktop of the default virtual operating system is displayed, that is, after the startup is completed, the default virtual operating system is the virtual operating system running in the foreground. At this point, both the main operating system and the default virtual operating system are running, and other virtual operating systems are suspended in the background. Background suspension means that the virtual operating system saves the current state, and when the virtual operating system runs again, it is still in the saved state. In one embodiment, the default virtual operating system is recorded as the first virtual system, and other virtual operating systems are recorded as the second virtual system. Wherein, there may be one or more second virtual systems.
一个实施例中,检测到第一虚拟系统输出画面时,停止显示开机画面,之后,显示第一虚拟系统的画面,其中,当前显示的第一虚拟系统的界面可记为第一虚拟系统的第一界面。一般而言,虚拟操作系统启动后最先显示对应的系统桌面,因此,第一界面可以为第一虚拟系统的系统桌面。In one embodiment, when the output screen of the first virtual system is detected, the start-up screen is stopped, and then the screen of the first virtual system is displayed, wherein the currently displayed interface of the first virtual system can be recorded as the first virtual system's first screen. an interface. Generally speaking, after the virtual operating system is started, the corresponding system desktop is firstly displayed. Therefore, the first interface may be the system desktop of the first virtual system.
示例性的,第一界面显示有第一虚拟系统中安装的应用程序的应用图标,第一虚拟系统中安装的应用程序可记为第一应用,第一应用的应用图标可记为第一应用图标。可选的,第一界面还可以显示其他的内容,如显示其他虚拟操作系统中安装的应用程序的应用图标。示例性的,将第二虚拟系统安装的应用程序记为第二应用,将第二应用的应用图标记为第二应用图标。Exemplarily, the first interface displays the application icons of the application programs installed in the first virtual system, the application programs installed in the first virtual system may be recorded as the first application, and the application icons of the first application may be recorded as the first application icon. Optionally, the first interface may also display other content, such as displaying application icons of application programs installed in other virtual operating systems. Exemplarily, the application program installed in the second virtual system is recorded as the second application, and the application image of the second application is marked as the second application icon.
一个实施例中,第一界面还显示有第二虚拟系统中安装的第二应用的第二应用图标。示例性的,在各虚拟操作系统启动过程中,VMM服务可获取各虚拟操作系统中应用程序的应用信息,其中,应用信息可以包括应用程序的应用图标和应用程序的路径信息。当第一虚拟系统显示第一界面时,第一虚拟系统可以通过VMM服务获取第二虚拟系统中第二应用的应用信息,并根据应用信息将第二应用的第二应用图标显示在第一界面中。可选的,可以将每个第二虚拟系统中的全部第二应用图标显示在第一界面中,还可以将每个第二虚拟系统中的部分第二应用图标显示在第一界面中。当显示部分第二应用图标时,可以在第二虚拟系统中预先设置可显示在第一界面中的第二应用图标。一个实施例中,以将每个第二虚拟系统中的部分第二应用图标显示在第一界面中为例进行描述。In an embodiment, the first interface further displays a second application icon of a second application installed in the second virtual system. Exemplarily, during the startup process of each virtual operating system, the VMM service may acquire application information of the application programs in each virtual operating system, where the application information may include application icons of the application programs and path information of the application programs. When the first virtual system displays the first interface, the first virtual system can obtain the application information of the second application in the second virtual system through the VMM service, and display the second application icon of the second application on the first interface according to the application information middle. Optionally, all second application icons in each second virtual system may be displayed on the first interface, and part of the second application icons in each second virtual system may also be displayed on the first interface. When displaying part of the second application icons, the second application icons that can be displayed on the first interface may be preset in the second virtual system. In one embodiment, the description is made by taking the example of displaying part of the second application icons in each second virtual system on the first interface.
一个实施例中,每个虚拟操作系统均设置对应的图标服务,图标服务可以获取自身虚拟操作系统的应用信息并发送至VMM服务,还可以从VMM服务中获取其他虚拟操作系统的应用信息,以实现在自身虚拟操作系统的系统桌面中显示其他虚拟操作系统的应用图标。一个实施例中,VMM服务运行时,将配置的一共享目录作为文件系统设备,挂载到各虚拟操作系统中。此时,各虚拟操作系统的图标服务可以将自身虚拟操作系统的应用信息写入至共享目录中,并可通过访问共享目录获取其他虚拟操作系统的应用信息。In one embodiment, each virtual operating system is provided with a corresponding icon service, and the icon service can obtain the application information of its own virtual operating system and send it to the VMM service, and can also obtain the application information of other virtual operating systems from the VMM service to Realize displaying application icons of other virtual operating systems on the system desktop of its own virtual operating system. In one embodiment, when the VMM service is running, a configured shared directory is mounted to each virtual operating system as a file system device. At this time, the icon service of each virtual operating system can write the application information of its own virtual operating system into the shared directory, and can obtain the application information of other virtual operating systems by accessing the shared directory.
步骤140、接收第一选择指令,第一选择指令用于在第二应用图标中选择目标应用图标。Step 140, receiving a first selection instruction, where the first selection instruction is used to select a target application icon among the second application icons.
示例性的,第一界面中显示第二应用图标后,交互智能平板的使用者可以通过选择第一界面中的第二应用图标使得交互智能平板打开第二虚拟系统中的第二应用。一个实施例中,将在第一界面中选择第二应用图标的指令记为第一选择指令,将第一选择指令所选择的第二应用图标记为目标应用图标。可选的,使用者可通过触控(如点击、长按等)第二应用图标的方式发出第一选择指令,或者是,使用者可通过与交互智能平板关联的外接设备(如鼠标、键盘、智能笔等)选择第二应用图标,以发出第一选择指令。Exemplarily, after the second application icon is displayed in the first interface, the user of the interactive smart tablet can make the interactive smart tablet open the second application in the second virtual system by selecting the second application icon in the first interface. In one embodiment, the instruction for selecting the second application icon in the first interface is marked as the first selection instruction, and the second application image selected by the first selection instruction is marked as the target application icon. Optionally, the user can issue the first selection instruction by touching (such as clicking, long pressing, etc.) the second application icon, or the user can use an external device (such as a mouse, keyboard, etc.) , smart pen, etc.) to select the second application icon to issue the first selection instruction.
步骤150、响应于第一选择指令,将第一界面更换为第二界面,第二界面是目标应用图标对应的第二应用开启后显示的应用界面。Step 150, in response to the first selection instruction, replace the first interface with a second interface, the second interface is an application interface displayed after the second application corresponding to the target application icon is launched.
示例性的,根据第一选择指令进行响应,在响应过程中,交互智能平板可以根据目标应用图标确定其所对应的第二应用以及第二应用所在的第二虚拟系统,之后,开启第二虚拟系统中的第二应用,并显示第二应用开启后的应用界面。一个实施例中,将第二应用开启后显示的应用界面记为第二界面,此时,显示的第一界面更换为第二界面。Exemplarily, responding according to the first selection instruction, during the response process, the interactive smart tablet can determine the corresponding second application and the second virtual system where the second application is located according to the target application icon, and then start the second virtual system The second application in the system, and display the application interface after the second application is started. In one embodiment, the application interface displayed after the second application is started is recorded as the second interface, and at this time, the displayed first interface is replaced with the second interface.
一个实施例中,接收第一选择指令时,第一虚拟系统为前台运行的虚拟操作系统,第二虚拟系统为后台挂起的虚拟操作系统,响应第一选择指令时,需要先后台挂起第一虚拟系统,并恢复运行第二虚拟系统,即前台运行第二虚拟系统,并在第二虚拟系统中打开目标应用图标对应的第二应用,以使第二虚拟系统输出第二应用的第二界面,之后,将第一界面更换为第二界面。In one embodiment, when receiving the first selection instruction, the first virtual system is a virtual operating system running in the foreground, and the second virtual system is a virtual operating system suspended in the background. When responding to the first selection instruction, the first virtual system needs to be suspended in the background A virtual system, and resume running the second virtual system, that is, run the second virtual system in the foreground, and open the second application corresponding to the target application icon in the second virtual system, so that the second virtual system outputs the second Interface, after that, replace the first interface with the second interface.
一个实施例中,第一虚拟系统接收第一选择指令后,根据第一选择指令所选择的目标应用图标确定目标应用图标所属的第二虚拟系统,之后,第一虚拟系统将目标应用图标和所属的第二虚拟系统发送给Host OS,由Host OS后台挂起第一虚拟系统,恢复运行所属的第二虚拟系统,并指示第二虚拟系统开启目标应用图标对应的第二应用。In one embodiment, after receiving the first selection instruction, the first virtual system determines the second virtual system to which the target application icon belongs according to the target application icon selected by the first selection instruction, and then, the first virtual system compares the target application icon and its belonging The second virtual system of the second virtual system is sent to the Host OS, and the Host OS background suspends the first virtual system, resumes the operation of the second virtual system to which it belongs, and instructs the second virtual system to open the second application corresponding to the target application icon.
一个实施例中,由第一虚拟系统的图标服务将目标应用图标和所属的第二虚拟系统发送至VMM服务,之后,VMM服务通知第二虚拟系统的图标服务,以由第二虚拟系统的图标服务开启相应的第二应用。In one embodiment, the icon service of the first virtual system sends the icon of the target application and the second virtual system to which it belongs to the VMM service, and then the VMM service notifies the icon service of the second virtual system, so that the icon of the second virtual system The service starts the corresponding second application.
可理解,第一界面中显示第一应用图标和第二应用图标时,使用者还可以选择第一应用图标,此时,第一虚拟系统直接启动第一应用图标对应的第一应用即可。即使用者选择第一界面中的某个应用图标后,第一虚拟系统确认所选择的应用图标为第一应用图标还是第二应用图标,若为第一应用图标,则直接启动第一应用图标,若为第二应用图标,则通过上述方法实现虚拟操作系统的切换并启动对应的第二应用,之后,显示对应的第二界面。It can be understood that when the first application icon and the second application icon are displayed on the first interface, the user can also select the first application icon. At this time, the first virtual system can directly start the first application corresponding to the first application icon. That is, after the user selects an application icon in the first interface, the first virtual system confirms whether the selected application icon is the first application icon or the second application icon, and if it is the first application icon, directly starts the first application icon , if it is the second application icon, the above method is used to switch the virtual operating system and start the corresponding second application, and then display the corresponding second interface.
上述,通过接收设备启动指令,启动交互智能平板并显示自定义的开机画面,开机画面停止显示后,显示第一虚拟系统的第一界面,第一界面显示有第一虚拟系统的第一应用图标以及第二虚拟系统的第二应用图标,之后,接收用于选择第二应用图标的第一选择指令,并根据第一选择指令,将第一界面更换为第二应用图标对应的第二应用开启后的第二界面的技术手段,解决了交互智能平板支持多操作系统时,设备成本高以及硬件设计复杂度高的技术问题,利用虚拟化技术将各操作系统作为虚拟操作系统安装在交互智能平板中,无需为每个虚拟操作系统配置对应的物理CPU,只需要配置主操作系统的物理CPU,降低了设备成本以及硬件设计复杂度。并且当前手机、平板电脑等小尺寸的设备应用虚拟化技术时,大多针对单一的操作系统,比如针对Android系统应用虚拟化技术时可加速Android系统启动速度,但是,无法在设备中应用多个操作系统,而本申请的一个实施例中,通过虚拟化技术在大尺 寸的交互智能平板中安装了多个操作系统,提高了交互智能平板的功能性。同时,虚拟操作系统的系统界面中除了显示自身虚拟操作系统的应用图标,还显示其他虚拟操作系统的应用图标,以通过在一个虚拟操作系统中选择另一个虚拟操作系统的应用图标的方式,进行虚拟操作系统的切换以及打开对应的应用程序,实现了多个虚拟操作系统中应用程序的快速切换和启动。As mentioned above, by receiving the device start command, start the interactive smart tablet and display the customized boot screen, after the boot screen stops displaying, the first interface of the first virtual system is displayed, and the first interface displays the first application icon of the first virtual system And the second application icon of the second virtual system, after that, receiving the first selection instruction for selecting the second application icon, and according to the first selection instruction, replacing the first interface with the second application corresponding to the second application icon to open The latter technical means of the second interface solves the technical problems of high equipment cost and high hardware design complexity when the interactive smart panel supports multiple operating systems, and uses virtualization technology to install each operating system as a virtual operating system on the interactive smart panel. In the virtual operating system, there is no need to configure a corresponding physical CPU for each virtual operating system, only the physical CPU of the main operating system needs to be configured, which reduces equipment cost and hardware design complexity. Moreover, when virtualization technology is applied to small-sized devices such as mobile phones and tablet computers, most of them are aimed at a single operating system. For example, when virtualization technology is applied to the Android system, it can accelerate the startup speed of the Android system. However, multiple operations cannot be applied to the device. system, and in an embodiment of the present application, a plurality of operating systems are installed in a large-sized interactive smart tablet through virtualization technology, thereby improving the functionality of the interactive smart tablet. At the same time, in addition to displaying the application icons of its own virtual operating system on the system interface of the virtual operating system, it also displays application icons of other virtual operating systems, so that by selecting an application icon of another virtual operating system in one virtual operating system, The switching of the virtual operating system and the opening of the corresponding application program realize the fast switching and starting of the application program in multiple virtual operating systems.
在一个实施例中,每个虚拟操作系统中均设置有iocn Server(图标服务),通过Host OS的VMM服务与各图标服务进行通信,可以实现显示和管理各虚拟操作系统中应用程序的应用图标。图2为本申请一个实施例提供的系统第一框架图,参考图2,交互智能平板的操作系统包括Host OS(为Linux系统)和多个虚拟操作系统,多个虚拟操作系统包括Windows系统、Android系统、UOS系统等,其中,Windows系统通过Windows虚拟机(WindowsVM)实现,Android系统通过Android虚拟机(Android VM)实现,UOS系统通过UOS虚拟机(UOS VM)实现。Windows系统中安装有Windows图标服务(Windows icon Server),Android系统中安装有Android图标服务(Android icon Server),UOS系统中安装有UOS图标服务(UOS icon Server)。VMM服务与各图标服务进行通信,以实现显示和管理各虚拟操作系统中应用程序的应用图标,如在各虚拟操作系统中显示其他虚拟操作系统的应用程序的应用图标。其中,将第一虚拟系统的图标服务记为第一图标服务,将第二虚拟系统的图标服务记为第二图标服务。In one embodiment, each virtual operating system is provided with an iocn Server (icon service), and the VMM service of the Host OS communicates with each icon service to display and manage the application icons of the application programs in each virtual operating system. . Fig. 2 is the first frame diagram of the system that an embodiment of the present application provides, with reference to Fig. 2, the operating system of interactive smart panel includes Host OS (for Linux system) and a plurality of virtual operating systems, and a plurality of virtual operating systems includes Windows system, Android system, UOS system, etc., wherein, the Windows system is realized through the Windows virtual machine (Windows VM), the Android system is realized through the Android virtual machine (Android VM), and the UOS system is realized through the UOS virtual machine (UOS VM). The Windows icon server is installed in the Windows system, the Android icon server is installed in the Android system, and the UOS icon server is installed in the UOS system. The VMM service communicates with each icon service to display and manage application icons of application programs in each virtual operating system, such as displaying application icons of other virtual operating systems in each virtual operating system. Wherein, the icon service of the first virtual system is marked as the first icon service, and the icon service of the second virtual system is marked as the second icon service.
图3为本申请一个实施例提供的另一种切换控制方法的流程图。图3所示的切换控制方法适用于图2所示的框架。参考图3,该切换控制方法包括:Fig. 3 is a flowchart of another handover control method provided by an embodiment of the present application. The switching control method shown in FIG. 3 is applicable to the framework shown in FIG. 2 . Referring to Fig. 3, the switching control method includes:
步骤210、接收设备启动指令。 Step 210, receiving a device startup instruction.
步骤220、响应于设备启动指令,启动交互智能平板的主操作系统,主操作系统中安装有第一虚拟系统和第二虚拟系统,主操作系统为不具备桌面环境的操作系统。Step 220: In response to the device startup instruction, start the main operating system of the interactive smart tablet. The first virtual system and the second virtual system are installed in the main operating system, and the main operating system is an operating system without a desktop environment.
其中,主操作系统是指Host OS,一个实施例中,Host OS为Linux系统,Linux系统不具备桌面环境。Linux系统中安装有第一虚拟系统和第二虚拟系统。第一虚拟系统和第二虚拟系统包括Windows系统、Android系统、UOS系统等。Wherein, the main operating system refers to the Host OS. In one embodiment, the Host OS is a Linux system, and the Linux system does not have a desktop environment. A first virtual system and a second virtual system are installed in the Linux system. The first virtual system and the second virtual system include a Windows system, an Android system, a UOS system, and the like.
步骤230、主操作系统的启动过程中,显示自定义的开机画面。 Step 230 , during the start-up process of the main operating system, display a customized start-up screen.
一个实施例中,通过开源的plymouth项目,使Linux系统支持自定义的开机画面。In one embodiment, the Linux system supports a custom boot screen through the open source plymouth project.
步骤240、启动第一虚拟系统和第二虚拟系统。 Step 240, start the first virtual system and the second virtual system.
主操作系统的启动过程中,自动运行VMM服务。VMM服务运行时,启动第一虚拟系统和第二虚拟系统,此时,交互智能平板还显示自定义的开机画面,并在后台启动第一虚拟系统和第二虚拟系统。一个实施例中,VMM服务设置后台监听端口,该监听端口可以与各虚拟操作系统进行数据通信。During the startup process of the main operating system, the VMM service is automatically run. When the VMM service is running, the first virtual system and the second virtual system are started. At this time, the interactive smart tablet also displays a customized startup screen, and starts the first virtual system and the second virtual system in the background. In one embodiment, the VMM service sets a background listening port, and the listening port can perform data communication with each virtual operating system.
一个实施例中,步骤240可包括步骤241-步骤243:In one embodiment, step 240 may include step 241-step 243:
步骤241、读取主操作系统中VMM服务的配置文件。Step 241, read the configuration file of the VMM service in the host operating system.
VMM服务运行时,在初始化阶段,根据运行参数读取VMM服务的配置文件。其中,运行参数是主操作系统运行过程中的参数,配置文件是VMM服务的配置参数和初始设置。运行参数和配置文件的具体内容可根据实际情况设置。When the VMM service is running, in the initialization phase, the configuration file of the VMM service is read according to the running parameters. Wherein, the running parameters are parameters during the running process of the main operating system, and the configuration file is configuration parameters and initial settings of the VMM service. The specific content of operating parameters and configuration files can be set according to actual conditions.
步骤242、根据配置文件解析出第一虚拟系统和第二虚拟系统的配置参数。Step 242: Analyze configuration parameters of the first virtual system and the second virtual system according to the configuration file.
通过配置文件可以实现VMM服务的正常运行。一个实施例中,通过配置文件可以解析出各虚拟操作系统的配置参数,即解析出第一虚拟系统和第二虚拟系统的配置参数。一个实施例中,虚拟操作系统的配置参数可以是安装虚拟操作系统的各虚拟机的配置参数,通过配置参数可以运行各虚拟机,进而实现运行各虚拟操作系统。其中,配置参数的内容可根据实际情况设置。一个实施例中,配置参数包括:Host OS与虚拟操作系统的共享目录(相当于配置的共享目录);虚拟机的个数(相当于虚拟操作系统的个数)、每个虚拟机的虚拟操作系统信息,以及默认的虚拟机(相当于确认第一虚拟系统为哪个虚拟操作系统);交互智能平板的外设(即外接设备)信息;每个虚拟机与VMM服务通信的端口(相当于VMM服务与各虚拟操作系统进行数据通信时的监听端口);每个虚拟机的虚拟操作系统镜像路径;每个虚拟机的虚拟GPU的配置参数;每个虚拟机的虚拟网络配置参数与执行脚本,该执行脚本用于管理虚拟操作系统的虚拟网络;每个虚拟机的虚拟CPU的配置参数;每个虚拟机的内存的配置参数;每个虚拟机的引导文件信息,引导文件信息用于实现虚拟机的引导;每个虚拟机指定的USB端口,通过USB端口可以使虚拟机连接外置的USB设备;每个虚拟机的虚拟socket ID信息,虚拟机中除了虚拟GPU的消息外,其他消息均基于通用的socket机制进行通信,通过虚拟socket ID可实现socket通信。The normal operation of the VMM service can be realized through configuration files. In one embodiment, the configuration parameters of each virtual operating system can be parsed out through the configuration file, that is, the configuration parameters of the first virtual system and the second virtual system can be parsed out. In one embodiment, the configuration parameters of the virtual operating system may be the configuration parameters of each virtual machine on which the virtual operating system is installed. Through the configuration parameters, each virtual machine can be run, and then each virtual operating system can be run. Wherein, the content of the configuration parameter can be set according to the actual situation. In one embodiment, configuration parameters include: the shared directory of Host OS and virtual operating system (equivalent to the shared directory of configuration); the number of virtual machines (equivalent to the number of virtual operating systems), the virtual operation of each virtual machine System information, and the default virtual machine (equivalent to confirming which virtual operating system the first virtual system is); the peripheral (i.e., external device) information of the interactive smart panel; the port for each virtual machine to communicate with the VMM service (equivalent to the VMM service and each virtual operating system for data communication); the virtual operating system image path of each virtual machine; the configuration parameters of the virtual GPU of each virtual machine; the virtual network configuration parameters and execution scripts of each virtual machine, The execution script is used to manage the virtual network of the virtual operating system; the configuration parameters of the virtual CPU of each virtual machine; the configuration parameters of the memory of each virtual machine; the boot file information of each virtual machine, and the boot file information is used to realize virtual The booting of the machine; the USB port designated by each virtual machine, through which the virtual machine can be connected to an external USB device; the virtual socket ID information of each virtual machine, except for the virtual GPU message, other messages in the virtual machine are Communication is based on a common socket mechanism, and socket communication can be realized through a virtual socket ID.
步骤243、根据配置参数启动第一虚拟系统和第二虚拟系统。Step 243, start the first virtual system and the second virtual system according to the configuration parameters.
一个实施例中,解析配置参数后,启动全部虚拟机,即启动第一虚拟系统和第二虚拟系统。In one embodiment, after parsing the configuration parameters, all virtual machines are started, that is, the first virtual system and the second virtual system are started.
一个实施例中,启动第一虚拟系统和所述第二虚拟系统时,还包括:由VMM服务将主操作系统中配置的共享目录挂载到第一虚拟系统和第二虚拟系统;由第一图标服务和第二图标服务分别收集第一应用信息和第二应用信息,第一应用信息包括第一应用的第一应用图标和第一路径信息,第二应用信息包括第二应用的第二应用图标和第二路径信息;由第一图标服务和第二图标服务分别将第一应用信息和第二应用信息更新到所述共享目录。In one embodiment, when starting the first virtual system and the second virtual system, it also includes: mounting the shared directory configured in the main operating system to the first virtual system and the second virtual system by the VMM service; The icon service and the second icon service respectively collect the first application information and the second application information, the first application information includes the first application icon and the first path information of the first application, and the second application information includes the second application information of the second application Icon and second path information; the first application information and the second application information are respectively updated to the shared directory by the first icon service and the second icon service.
示例性的,主操作系统启动时,自动运行VMM服务,VMM服务配置设定的共享目录(共享目录可通过配置参数可以确定),该共享目录用于记录各虚拟操作系统中应用图标的应用信息,如记录各虚拟操作系统中安装的应用程序的应用图标以及对应的路径信息,路径信息用于描述应用程序所在的路径。启动各虚拟操作系统时,VMM服务将共享目录作为文件系统设备,挂载到各虚拟操作系统(也可理解为挂载到各虚拟机)。文件系统设备是指操作系统中属于文件系统(管理和存储文件信息)的设备,挂载到各虚拟操作系统是指使虚拟操作系统直接使用共享目录。一个实施例中,以VirtFS虚拟化文件系统方式挂载到各虚拟操作系统。其中,VirtFS是一种系统层虚拟化技术,系统层虚拟化技术可直接将宿主机(相当于交互智能平板)的系统服务接口(相当于共享目录的接口)交给虚拟机使用。Exemplarily, when the main operating system is started, the VMM service is automatically run, and the shared directory set by the VMM service configuration (the shared directory can be determined through configuration parameters), the shared directory is used to record the application information of the application icon in each virtual operating system , such as recording application icons of application programs installed in each virtual operating system and corresponding path information, where the path information is used to describe the path where the application programs are located. When each virtual operating system is started, the VMM service uses the shared directory as a file system device and mounts it to each virtual operating system (it can also be understood as mounting to each virtual machine). The file system device refers to the device belonging to the file system (management and storage of file information) in the operating system, and mounting to each virtual operating system means that the virtual operating system directly uses the shared directory. In one embodiment, the VirtFS virtualized file system is mounted to each virtual operating system. Among them, VirtFS is a system layer virtualization technology, which can directly transfer the system service interface (equivalent to the interface of the shared directory) of the host machine (equivalent to the interactive smart tablet) to the virtual machine for use.
示例性的,各虚拟操作系统中的图标服务作为虚拟操作系统的系统服务,在虚拟操作系统的启动过程中运行。一个实施例中,图标服务可以处理的应用事件包括应用图标收集,应用图标收集是指将虚拟操作系统中安装的应用程序的应用信息写入共享目录中。示例性的,第一图标服务运行时,收集第一虚拟系统中第一应用图标的应用信息,其中,将第一应用图标的应用信息记为第一应用信息,每个第一应用图标对应一个第一应用信息,第一应用信息包括第一应用图标和第一路径信息,第一路径信息是指第一应用在第一虚拟系统中的路径信息。第一图标服务收集第一应用信息后,可以将第一应用信息写入共享目录。同样的,第二 图标服务运行时,收集相应第二虚拟系统中第二应用图标的应用信息,其中,将第二应用图标的应用信息记为第二应用信息,每个第二应用图标对应一个第二应用信息,第二应用信息包括第二应用图标和第二路径信息,第二路径信息是指第二应用在第二虚拟系统中的路径信息。第二图标服务收集第二应用信息后,可以将第二应用信息写入共享目录。Exemplarily, the icon service in each virtual operating system is run as a system service of the virtual operating system during the startup process of the virtual operating system. In one embodiment, the application events that the icon service can handle include application icon collection, and application icon collection refers to writing application information of application programs installed in the virtual operating system into a shared directory. Exemplarily, when the first icon service is running, the application information of the first application icon in the first virtual system is collected, wherein the application information of the first application icon is recorded as the first application information, and each first application icon corresponds to a The first application information, where the first application information includes a first application icon and first path information, where the first path information refers to path information of the first application in the first virtual system. After the first icon service collects the first application information, it may write the first application information into the shared directory. Similarly, when the second icon service is running, the application information of the second application icon in the corresponding second virtual system is collected, wherein the application information of the second application icon is recorded as the second application information, and each second application icon corresponds to a The second application information includes a second application icon and second path information, and the second path information refers to path information of the second application in the second virtual system. After the second icon service collects the second application information, it may write the second application information into the shared directory.
一个实施例中,图标服务可以处理的应用事件还包括:更新共享目录。示例性的,当第一应用和/或第二应用更新时,共享目录中的第一应用信息和/或第二应用信息同步更新。举例而言,第一虚拟系统中新增第一应用和/或删除第一应用时,第一虚拟系统中安装的第一应用发生变化,即第一应用发生更新,此时,第一图标服务将新增的第一应用的第一应用信息写入共享目录和/或删除共享目录中第一应用的第一应用信息。In an embodiment, the application event that the icon service can handle also includes: updating the shared directory. Exemplarily, when the first application and/or the second application are updated, the first application information and/or the second application information in the shared directory are updated synchronously. For example, when the first application is added and/or deleted in the first virtual system, the first application installed in the first virtual system changes, that is, the first application is updated. At this time, the first icon service Writing the first application information of the newly added first application into the shared directory and/or deleting the first application information of the first application in the shared directory.
步骤250、当第一虚拟系统输出启动画面时,停止显示开机画面。 Step 250, when the first virtual system outputs the startup screen, stop displaying the startup screen.
一个实施例中,共享目录挂载到各虚拟操作系统的阶段中,VMM服务还可以监听默认的虚拟操作系统(即第一虚拟系统)的虚拟GPU,以监听虚拟GPU准备好发送第一虚拟系统画面的消息。其中,虚拟GPU准备好发送第一虚拟系统画面时,其状态会发生变化,即状态变化至输出画面的状态,此时,VMM服务确定监听到虚拟GPU准备好发送第一虚拟系统画面的消息。In one embodiment, the shared directory is mounted to the stage of each virtual operating system, and the VMM service can also monitor the virtual GPU of the default virtual operating system (ie, the first virtual system) to monitor that the virtual GPU is ready to send the first virtual system screen message. Wherein, when the virtual GPU is ready to send the first virtual system picture, its state will change, that is, the state changes to the state of the output picture. At this time, the VMM service determines to monitor the message that the virtual GPU is ready to send the first virtual system picture.
当第一虚拟系统准备好发送第一虚拟系统画面时,第一虚拟系统输出相应的画面。一个实施例中,第一虚拟系统启动后,最先输出的画面是第一虚拟系统启动过程中的启动画面。启动画面可以是第一虚拟系统中预设设置的画面。当VMM服务确定监听到虚拟GPU准备好发送第一虚拟系统画面的消息时,通过停止plymouth服务的方式,停止显示开机画面。When the first virtual system is ready to send the first virtual system screen, the first virtual system outputs the corresponding screen. In one embodiment, after the first virtual system is started, the first output screen is the startup screen during the startup process of the first virtual system. The startup screen may be a preset screen in the first virtual system. When the VMM service determines to monitor the message that the virtual GPU is ready to send the first virtual system screen, it stops displaying the startup screen by stopping the plymouth service.
步骤260、开机画面停止显示后,显示第一虚拟系统的启动画面,并在后台挂起第二虚拟系统。Step 260, after the start-up screen stops displaying, display the start-up screen of the first virtual system, and suspend the second virtual system in the background.
停止显示开机画面后,显示第一虚拟系统的虚拟GPU输出的启动画面。将第一虚拟系统作为前台运行的虚拟操作系统,向第二虚拟系统发送挂起命令,以使第二虚拟系统在后台挂起,即将第二虚拟系统暂停运行。After stopping displaying the start-up picture, display the start-up picture output by the virtual GPU of the first virtual system. The virtual operating system running on the first virtual system as the foreground sends a suspend command to the second virtual system, so that the second virtual system is suspended in the background, that is, the second virtual system is suspended.
一个实施例中,各虚拟操作系统运行时,为了优化虚拟操作系统的运行效率,VMM服务可以向各虚拟操作系统的虚拟CPU发送查询命令,虚拟CPU可以根据查询命令返回虚拟CPU的进程与ID信息,以使VMM服务通过虚拟CPU的进程和ID信息明确虚拟操作系统的运行情况。其中,虚拟CPU的进程是指虚拟CPU中当前运行的各进程。VMM服务可以通过taskset命令将每个虚拟CPU绑定到交互智能平板的物理CPU上,其中,物理CPU可以认为是交互智能平板中安装的处理器,其安装有Linux系统。taskset命令是Linux系统中用于查看、设定物理CPU核使用情况的命令。In one embodiment, when each virtual operating system is running, in order to optimize the operating efficiency of the virtual operating system, the VMM service can send a query command to the virtual CPU of each virtual operating system, and the virtual CPU can return the process and ID information of the virtual CPU according to the query command , so that the VMM service can specify the running status of the virtual operating system through the process and ID information of the virtual CPU. Wherein, the process of the virtual CPU refers to each process currently running in the virtual CPU. The VMM service can bind each virtual CPU to the physical CPU of the interactive smart panel through the taskset command, wherein the physical CPU can be regarded as a processor installed in the interactive smart panel, which is installed with a Linux system. The taskset command is a command used to view and set the usage of physical CPU cores in the Linux system.
步骤270、启动VMM服务中的VMM消息管理服务,VMM服务为主操作系统提供的服务,VMM消息管理服务驱动第一虚拟系统和第二虚拟系统的管理和运行。Step 270, start the VMM message management service in the VMM service, the VMM service is a service provided by the main operating system, and the VMM message management service drives the management and operation of the first virtual system and the second virtual system.
VMM消息管理服务通过消息驱动虚拟操作系统的管理和运行。一个实施例中,VMM服务可包含多个消息线程,其中,多个消息线程至少包括虚拟机消息线程、应用消息线程、虚拟机画面状态消息线程、USB外设消息线程。其中,虚拟机消息线程可以监听配置参数中每个虚拟机与VMM服务通信的端口,以实现VMM服务与各虚拟操作系统进行下述类型的消息通信:增加、删除虚拟操作系统的USB外设的消息通信;增加、删除虚拟操作系统的触摸设备(显示屏中用于实现触控的设备)的消息通信;挂起、恢复运行虚拟操作系统的消息以 及查询虚拟操作系统状态的消息通信;切换显示虚拟操作系统的消息通信;将虚拟操作系统的虚拟CPU绑定到物理CPU的消息通信。应用消息线性可监听配置参数中每个虚拟机的虚拟socket ID,以实现VMM服务与各虚拟操作系统进行下述类型的消息通信:打开后台挂起的虚拟操作系统中被使用者选择的应用程序的消息通信。虚拟机画面状态消息线程监听各虚拟操作系统的虚拟GPU的状态,以在切换虚拟操作系统时,通过虚拟GPU的状态,判断是否切换完成。其中,虚拟GPU的状态是指虚拟GPU是否准备好输出画面的状态。USB外设消息线程监听交互智能平板的全部USB外设的热插拔消息,其中,USB外设是通过USB的方式连接到交互智能平板的外接设备。热插拔是指不关闭电源的情况进行的插入或拔出。当有USB外设进行热插拔时,USB外设消息线程可以将USB热插拔的消息发送给VMM服务,VMM服务将消息转换为对应的USB外设消息并发送给相应的虚拟操作系统,以使虚拟操作系统明确USB外设的热插拔情况。一个实施例中,VMM消息管理服务中各进程进行通信的消息可以分为两类:一类是监听虚拟GPU状态时,虚拟机画面状态消息线程中通信的消息,该类消息采用基于Linux kernel的uevnet消息机制;一类是除上述外的其他消息,即虚拟机消息线程、应用消息线程、USB外设消息线程中通信的消息,该类消息采用通用的socket机制,可选的,该类消息的格式为:{报文头}{消息类型}{分隔符}{消息参数}{报文尾},其中,报文头表示消息开始,报文尾表示消息结束,分隔符用于区分消息类型和消息参数,消息类型是指上述提及的虚拟机消息线程、应用消息线程、USB外设消息线程中通信的消息类型,此外,上述各消息类型可以按照消息参数分为有参数的消息和无参数的消息。其中,对于无参数的消息,消息格式中的消息参数为空。对于有参数的消息,消息格式中的消息参数中写入对应的参数。例如,当消息类型是后台挂起的第二虚拟系统打开某一第二应用时,消息参数中必须写入第二虚拟系统的相关内容和第二应用的相关内容。The VMM message management service drives the management and operation of the virtual operating system through messages. In one embodiment, the VMM service may include multiple message threads, wherein the multiple message threads include at least a virtual machine message thread, an application message thread, a virtual machine screen status message thread, and a USB peripheral message thread. Among them, the virtual machine message thread can monitor the port of communication between each virtual machine and VMM service in the configuration parameters, so as to realize the following types of message communication between the VMM service and each virtual operating system: add and delete USB peripherals of the virtual operating system Message communication; message communication for adding and deleting virtual operating system touch devices (device used to realize touch control in the display screen); message communication for suspending and resuming virtual operating system and querying virtual operating system status; switching display Message communication of the virtual operating system; message communication of binding the virtual CPU of the virtual operating system to the physical CPU. The application message line can listen to the virtual socket ID of each virtual machine in the configuration parameters, so as to realize the following types of message communication between the VMM service and each virtual operating system: open the application program selected by the user in the virtual operating system suspended in the background message communication. The virtual machine screen state message thread monitors the state of the virtual GPU of each virtual operating system, so as to judge whether the switching is completed through the state of the virtual GPU when the virtual operating system is switched. Wherein, the status of the virtual GPU refers to whether the virtual GPU is ready to output images. The USB peripheral message thread monitors hot plug messages of all USB peripherals of the interactive smart tablet, wherein the USB peripherals are external devices connected to the interactive smart tablet through USB. Hot swapping refers to plugging or unplugging without turning off the power. When a USB peripheral is hot-plugged, the USB peripheral message thread can send the USB hot-plug message to the VMM service, and the VMM service converts the message into a corresponding USB peripheral message and sends it to the corresponding virtual operating system. In order to make the virtual operating system clear about the hot plugging situation of the USB peripheral. In one embodiment, the messages communicated by each process in the VMM message management service can be divided into two categories: one is the messages communicated in the virtual machine screen status message thread when monitoring the state of the virtual GPU. uevnet message mechanism; one type is messages other than the above, that is, messages communicated in the virtual machine message thread, application message thread, and USB peripheral message thread. This type of message adopts the general socket mechanism. Optionally, this type of message The format is: {Message Header}{Message Type}{Separator}{Message Parameter}{Message Footer}, where the message header indicates the beginning of the message, the message end indicates the end of the message, and the separator is used to distinguish the message type and message parameters, the message type refers to the message type of communication in the above-mentioned virtual machine message thread, application message thread, and USB peripheral message thread. In addition, the above message types can be divided into message with parameter and message without parameter parameter message. Wherein, for a message without parameters, the message parameter in the message format is empty. For messages with parameters, write the corresponding parameters in the message parameters in the message format. For example, when the message type is that the second virtual system suspended in the background opens a second application, relevant content of the second virtual system and relevant content of the second application must be written in the message parameters.
图4为本申请一个实施例提供的VMM服务运行流程图,参考图4,基于步骤240至步骤270可知,Linux系统启动过程中,VMM服务运行,其运行时,先经历初始化阶段(即根据运行参数读取VMM配置文件),之后,解析运行各虚拟操作系统的配置参数,之后,根据配置参数启动各虚拟操作系统(相当于启动各虚拟机),之后,第一虚拟系统输出启动画面时,显示第一虚拟系统的启动画面,启动VMM消息管理服务。Fig. 4 is the flow chart of VMM service operation provided by one embodiment of the present application. With reference to Fig. 4, based on steps 240 to 270, it can be seen that during the startup process of the Linux system, the VMM service runs, and when it runs, it first goes through the initialization phase (that is, according to the running Parameter reads VMM configuration file), afterwards, analyze the configuration parameter of running each virtual operating system, afterward, start each virtual operating system (equivalent to starting each virtual machine) according to the configuration parameter, afterward, when the first virtual system outputs the splash screen, The startup screen of the first virtual system is displayed, and the VMM message management service is started.
步骤280、启动画面停止显示后,显示第一虚拟系统的第一界面,第一界面为第一虚拟系统的系统桌面,第一界面显示有第一虚拟系统中安装的第一应用的第一应用图标和第二虚拟系统中安装的第二应用的第二应用图标,第二虚拟系统为至少一个。Step 280: After the startup screen stops displaying, display the first interface of the first virtual system, the first interface is the system desktop of the first virtual system, and the first interface displays the first application of the first application installed in the first virtual system The icon and the second application icon of the second application installed in the second virtual system, the second virtual system is at least one.
示例性的,第一虚拟系统启动完成后,停止显示其对应的启动画面,并显示第一虚拟系统的系统桌面,即显示第一界面。Exemplarily, after the first virtual system is started, stop displaying its corresponding startup screen, and display the system desktop of the first virtual system, that is, display the first interface.
一个实施例中,共享目录中写有第一应用信息和第二应用信息时,显示第一虚拟系统的第一界面包括步骤281-步骤282:In one embodiment, when the first application information and the second application information are written in the shared directory, displaying the first interface of the first virtual system includes steps 281-282:
步骤281、由第一图标服务读取共享目录中记录的第二应用信息。Step 281. The first icon service reads the second application information recorded in the shared directory.
示例性的,第一虚拟系统启动完成后,第一图标服务在共享目录中根据第一应用信息和第二应用信息读取出后台的全部第二虚拟系统对应的第二应用信息,即第一图标服务读取出全部第二应用信息。Exemplarily, after the first virtual system is started, the first icon service reads the second application information corresponding to all the second virtual systems in the background according to the first application information and the second application information in the shared directory, that is, the first The icon service reads out all the second application information.
步骤282、由第一图标服务根据第二应用信息在第一界面中显示第二应用图标。Step 282: The first icon service displays the second application icon on the first interface according to the second application information.
示例性的,根据第二应用信息确定对应的第二应用图标,并将第二应用图标显示在第一 界面中,此时,第一界面中显示各第一应用图标和各第二应用图标。其中,第一应用图标和第二应用图标的排序规则可根据实际情况设置。例如,图5为本申请一个实施例提供的第一界面的示意图,参考图5,以Windows系统为第一虚拟系统,Android系统和UOS系统为第二虚拟系统为例进行描述,此时,在第一界面中,按顺序排列显示Windows系统的各应用图标、Android系统的各应用图标、UOS系统的各应用图标。Exemplarily, the corresponding second application icon is determined according to the second application information, and the second application icon is displayed on the first interface. At this time, each first application icon and each second application icon are displayed on the first interface. Wherein, the sorting rules of the first application icons and the second application icons can be set according to actual conditions. For example, FIG. 5 is a schematic diagram of the first interface provided by an embodiment of the present application. With reference to FIG. 5, the Windows system is used as the first virtual system, and the Android system and the UOS system are used as the second virtual system as an example for description. At this time, in In the first interface, the application icons of the Windows system, the application icons of the Android system, and the application icons of the UOS system are displayed in sequence.
步骤290、接收第一选择指令,第一选择指令用于在第二应用图标中选择目标应用图标。Step 290: Receive a first selection instruction, where the first selection instruction is used to select a target application icon among the second application icons.
示例性的,第一虚拟系统检测到某个第二应用图标被使用者选择时,确定接收到第一选择指令。Exemplarily, when the first virtual system detects that a certain second application icon is selected by the user, it determines that the first selection instruction is received.
步骤2100、由第一图标服务根据第一选择指令生成切换消息,切换消息包括目标应用图标和目标应用图标所属的第二虚拟系统。Step 2100: The first icon service generates a switching message according to the first selection instruction, and the switching message includes the target application icon and the second virtual system to which the target application icon belongs.
图标服务可处理的应用事件还包括:打开指定应用,例如,当使用者想到打开后台的虚拟操作系统的应用程序时,图标服务可以将相关的消息(即切换消息)发送至VMM消息管理服务的应用消息线程。示例性的,接收到第一选择指令后,第一图标服务确定所选择的目标应用图标以及目标应用图标所属的第二虚拟系统,可选的,根据目标应用图标的第二应用信息可明确目标应用图标所属的第二虚拟系统,之后,将目标应用图标和目标应用图标所属的第二虚拟系统写入一消息中,其中,将写入目标应用图标和目标应用图标所属的第二虚拟系统的消息记为切换消息。The application event that the icon service can handle also includes: opening a specified application, for example, when the user thinks of opening the application program of the virtual operating system in the background, the icon service can send the relevant message (ie switching message) to the VMM message management service Application message thread. Exemplarily, after receiving the first selection instruction, the first icon service determines the selected target application icon and the second virtual system to which the target application icon belongs. Optionally, the target application icon can be specified according to the second application information. The second virtual system to which the application icon belongs, and then write the target application icon and the second virtual system to which the target application icon belongs to a message, wherein the target application icon and the second virtual system to which the target application icon belongs are written The messages are recorded as handover messages.
步骤2110、由第一图标服务将切换消息发送至VMM消息管理服务。 Step 2110, the first icon service sends the switching message to the VMM message management service.
示例性的,第一图标服务将切换消息发送至VMM消息管理服务,具体是发送至VMM消息管理服务的应用消息线程。Exemplarily, the first icon service sends the switching message to the VMM message management service, specifically to the application message thread of the VMM message management service.
步骤2120、根据切换消息,由VMM消息管理服务通知目标应用图标所属的第二虚拟系统的第二图标服务开启目标应用图标对应的第二应用。Step 2120: According to the switching message, the VMM message management service notifies the second icon service of the second virtual system to which the target application icon belongs to start the second application corresponding to the target application icon.
示例性的,VMM消息管理服务的应用消息线程接收到切换消息后,根据切换消息,通知对应的第二虚拟系统的第二图标服务,即应用消息线程向第二图标服务发送打开目标应用图标对应的第二应用的消息,由第二图标服务根据应用消息线程的消息,打开第二应用。Exemplarily, after the application message thread of the VMM message management service receives the switching message, it notifies the second icon service of the corresponding second virtual system according to the switching message, that is, the application message thread sends to the second icon service the icon corresponding to the opened target application. For the message of the second application, the second icon service opens the second application according to the message of the application message thread.
一个实施例中,步骤2120包括步骤2121-步骤2126:In one embodiment, step 2120 includes step 2121-step 2126:
步骤2121、根据切换消息,由VMM消息管理服务指示删除第一虚拟系统的触摸设备。Step 2121, according to the switching message, the VMM message management service instructs to delete the touch device of the first virtual system.
触摸设备是指实现触控操作的设备,如触摸设备是显示屏中安装的与触控操作有关的触控检测设备和触控芯片,例如,显示屏可以是红外触控屏、电磁触控屏、电容触控屏的一种或多种,当显示屏是红外触控屏时,触控检测设备为红外触摸框,触控芯片与红外触摸框连接,当使用者触控显示屏时,红外触控框检测触控动作,触控芯片根据红外触控框检测的触控动作确定触控位置和触控时间,以实现检测触控操作。示例性的,第一虚拟系统的触摸设备是指可以供第一虚拟系统进行使用的触摸设备,例如,第一虚拟系统前台运行时,显示屏中的触摸设备属于第一虚拟系统的触摸设备,此时,触摸设备检测的触控操作可以认为是对第一虚拟系统进行的操作。A touch device refers to a device that realizes a touch operation. For example, a touch device refers to a touch detection device and a touch chip related to a touch operation installed in a display screen. For example, a display screen can be an infrared touch screen, an electromagnetic touch screen 1. One or more types of capacitive touch screens. When the display screen is an infrared touch screen, the touch detection device is an infrared touch frame, and the touch chip is connected to the infrared touch frame. When the user touches the display screen, the infrared The touch frame detects the touch action, and the touch chip determines the touch position and touch time according to the touch action detected by the infrared touch frame, so as to realize the detection touch operation. Exemplarily, the touch device of the first virtual system refers to a touch device that can be used by the first virtual system, for example, when the first virtual system is running in the foreground, the touch device on the display screen belongs to the touch device of the first virtual system, At this time, the touch operation detected by the touch device may be regarded as an operation performed on the first virtual system.
VMM消息管理服务的应用消息线程接收到切换消息后,VMM消息管理服务的虚拟机消息线程向第一虚拟系统发送删除触摸设备的消息,之后,第一虚拟系统接收到该消息后,删除第一虚拟系统的触摸设备,此时,触摸设备接收到的触控操作与第一虚拟系统无关。After the application message thread of the VMM message management service receives the switching message, the virtual machine message thread of the VMM message management service sends a message of deleting the touch device to the first virtual system, and after receiving the message, the first virtual system deletes the first touch device. The touch device of the virtual system, at this time, the touch operation received by the touch device has nothing to do with the first virtual system.
步骤2122、由VMM消息管理服务指示删除第一虚拟系统的USB设备。Step 2122, the VMM message management service instructs to delete the USB device of the first virtual system.
第一虚拟系统的USB设备是指第一虚拟系统的USB外设,即可供第一虚拟系统使用的USB外设。The USB device of the first virtual system refers to the USB peripheral of the first virtual system, that is, the USB peripheral used by the first virtual system.
示例性的,删除第一虚拟系统的触摸设备后,VMM消息管理服务的虚拟机消息线程向第一虚拟系统发送删除USB外设的消息,之后,第一虚拟系统接收到该消息后,删除第一虚拟系统的USB设备,此时,USB设备接收到的操作与第一虚拟系统无关。Exemplarily, after deleting the touch device of the first virtual system, the virtual machine message thread of the VMM message management service sends a message of deleting the USB peripheral to the first virtual system, and after receiving the message, the first virtual system deletes the first virtual system. A USB device of a virtual system, at this time, the operation received by the USB device has nothing to do with the first virtual system.
步骤2123、由VMM消息管理服务指示后台挂起第一虚拟系统。Step 2123, the VMM message management service instructs the background to suspend the first virtual system.
示例性的,删除第一虚拟系统的USB设备后,VMM消息管理服务的虚拟机消息线程向第一虚拟系统发送后台挂起的消息,之后,第一虚拟系统接收到该消息后,在后台挂起,此时,第一虚拟系统停止在前台运行。Exemplarily, after the USB device of the first virtual system is deleted, the virtual machine message thread of the VMM message management service sends a background suspension message to the first virtual system, and after receiving the message, the first virtual system hangs in the background At this time, the first virtual system stops running in the foreground.
步骤2124、由VMM消息管理服务指示恢复运行目标应用图标所属的第二虚拟系统。Step 2124: The VMM message management service instructs to resume running the second virtual system to which the icon of the target application belongs.
示例性的,后台挂起第一虚拟系统后,VMM消息管理服务的虚拟机消息线程向目标应用图标对应的第二虚拟系统发送恢复运行的消息,之后,第二虚拟系统接收到该消息后,在前台运行,且运行时第二虚拟系统的状态与挂起时第二虚拟系统的状态相同,此时,第二虚拟系统在前台运行,以实现切换虚拟操作系统。可选的,第二虚拟系统在前台运行时第二图标服务工作,第二图标服务可读取共享目录中第一应用信息和其他第二虚拟系统的第二应用信息,并根据读取的内容在第二虚拟系统的系统桌面中显示第一应用信息对应的第一应用图标和第二应用信息对应的第二应用图标,即第二虚拟系统的系统桌面中除了显示自身安装的应用程序的应用图标,还显示其他虚拟操作系统中安装的应用程序的应用图标。Exemplarily, after the first virtual system is suspended in the background, the virtual machine message thread of the VMM message management service sends a resume message to the second virtual system corresponding to the target application icon, and after the second virtual system receives the message, It is running in the foreground, and the state of the second virtual system during running is the same as that of the second virtual system when it is suspended. At this time, the second virtual system is running in the foreground, so as to realize the switching of the virtual operating system. Optionally, when the second virtual system is running in the foreground, the second icon service works, the second icon service can read the first application information in the shared directory and the second application information of other second virtual systems, and based on the read content The first application icon corresponding to the first application information and the second application icon corresponding to the second application information are displayed on the system desktop of the second virtual system, that is, in the system desktop of the second virtual system, the application except the application program installed by itself is displayed icon, and also displays app icons for applications installed in other virtual operating systems.
步骤2125、由VMM消息管理服务指示第二虚拟系统添加触摸设备。Step 2125, the VMM message management service instructs the second virtual system to add a touch device.
示例性的,前台运行第二虚拟系统后,VMM消息管理服务的虚拟机消息线程向第二虚拟系统发送添加触摸设备的消息,之后,第二虚拟系统接收到该消息后,添加触摸设备,如将第一虚拟系统删除的触摸设备添加在第二虚拟系统中,此时,触摸设备接收到的触控操作是控制第二虚拟系统的触控操作。Exemplarily, after the second virtual system runs in the foreground, the virtual machine message thread of the VMM message management service sends a message of adding a touch device to the second virtual system, and after receiving the message, the second virtual system adds a touch device, such as The touch device deleted from the first virtual system is added to the second virtual system, and at this time, the touch operation received by the touch device is a touch operation for controlling the second virtual system.
步骤2126、由VMM消息管理服务通知第二虚拟系统的第二图标服务开启目标应用图标对应的第二应用。Step 2126: The VMM message management service notifies the second icon service of the second virtual system to start the second application corresponding to the target application icon.
添加触摸设备后,VMM消息管理服务的应用消息线程向第二虚拟系统的第二图标服务发送打开目标应用图标的第二应用的消息,以通知第二图标服务打开目标应用图标的第二应用。After the touch device is added, the application message thread of the VMM message management service sends a message of opening the second application of the target application icon to the second icon service of the second virtual system, so as to notify the second icon service to open the second application of the target application icon.
步骤2130、由第二图标服务开启目标应用图标对应的第二应用。 Step 2130, start the second application corresponding to the target application icon by the second icon service.
示例性的,第二图标服务接收到应用消息线程发送的消息后,根据该消息打开第二应用。举例而言,图6为本申请一个实施例提供的一种应用启动流程图,参考图6,VMM消息管理服务的应用消息线程通过虚拟socket向第二虚拟系统的第二图标服务发送打开目标应用图标的第二应用的消息,第二图标服务接收消息后,通过第二虚拟系统中目标应用图标对应的第二应用的接口打开第二应用,以实现启动第二虚拟系统中的第二应用。Exemplarily, after receiving the message sent by the application message thread, the second icon service opens the second application according to the message. For example, FIG. 6 is a flow chart of application startup provided by an embodiment of the present application. Referring to FIG. 6, the application message thread of the VMM message management service sends an open target application message to the second icon service of the second virtual system through a virtual socket. For the message of the second application of the icon, after receiving the message, the second icon service opens the second application through the interface of the second application corresponding to the target application icon in the second virtual system, so as to start the second application in the second virtual system.
步骤2140、由VMM服务获取第二应用的第二界面,并将第一界面更换为第二界面。 Step 2140, obtain the second interface of the second application by the VMM service, and replace the first interface with the second interface.
示例性的,开启第二应用后,VMM服务获取第二虚拟系统中虚拟GPU输出的画面,即获取第二界面,并将显示屏中的第一界面更换为第二界面。此时,VMM消息管理服务的虚拟机画面状态消息线程可以通过监听第二虚拟系统的虚拟GPU状态,确定是否切换成功。Exemplarily, after the second application is started, the VMM service obtains the screen output by the virtual GPU in the second virtual system, that is, obtains the second interface, and replaces the first interface in the display screen with the second interface. At this time, the virtual machine screen status message thread of the VMM message management service can determine whether the switching is successful by monitoring the virtual GPU status of the second virtual system.
一个实施例中,将第一界面更换为第二界面之后,还包括:由VMM消息管理服务指示 第二虚拟系统添加USB设备。示例性的,显示第二界面后,VMM消息管理服务的虚拟机消息线程向第二虚拟系统发送添加USB设备的消息,之后,第二虚拟系统接收到该消息后,添加第二虚拟系统的USB设备,如将第一虚拟系统删除的USB设备添加在第二虚拟系统中,此时,USB设备可供第二虚拟系统使用。In one embodiment, after replacing the first interface with the second interface, the method further includes: instructing the second virtual system to add a USB device by the VMM message management service. Exemplarily, after the second interface is displayed, the virtual machine message thread of the VMM message management service sends a message of adding a USB device to the second virtual system, and after receiving the message, the second virtual system adds the USB device of the second virtual system. Devices, such as adding a USB device deleted from the first virtual system to the second virtual system, at this time, the USB device can be used by the second virtual system.
图7为本申请一个实施例提供的一种应用程序切换流程图。参考图7,VMM消息管理服务接收到切换消息后,先删除第一虚拟系统(前台运行)的触摸设备,再删除第一虚拟系统的USB设备,之后,挂起第一虚拟系统,恢复第二虚拟系统运行,指示第二虚拟系统添加触摸设备,再通知第二虚拟系统打开目标应用图标对应的第二应用,将第一界面切换为第二界面,再为第二虚拟系统添加USB设备,以实现将第一虚拟系统切换到第二虚拟系统并在第二虚拟系统中启动目标应用图标对应的第二应用。FIG. 7 is a flowchart of application program switching provided by an embodiment of the present application. Referring to Fig. 7, after receiving the switch message, the VMM message management service first deletes the touch device of the first virtual system (running in the foreground), and then deletes the USB device of the first virtual system, and then suspends the first virtual system and restores the second The virtual system runs, instructs the second virtual system to add a touch device, and then notifies the second virtual system to open the second application corresponding to the target application icon, switches the first interface to the second interface, and then adds a USB device for the second virtual system to Switching the first virtual system to the second virtual system and starting the second application corresponding to the target application icon in the second virtual system are implemented.
在上述基础上,图8为本申请一个实施例提供的一种VMM服务与图标服务的流程图,参考图8,在实现跨虚拟操作系统的应用程序切换时,VMM服务先经历初始化阶段(即根据运行参数读取VMM配置文件),之后,根据VMM配置文件解析的配置参数启动各虚拟操作系统(第一虚拟系统和第二虚拟系统),之后,将共享目录挂载到各虚拟操作系统。之后,由各虚拟操作系统的图标服务在共享目录中写入各应用信息(包括应用图标和路径信息)。根据VMM配置文件解析的配置参数启动各虚拟操作系统后,还要运行VMM消息管理服务,以监听虚拟机消息(由虚拟机消息线程实现)、监听应用消息(由应用消息线程实现)、监听显示系统消息(由虚拟机画面状态消息线程实现)和监听USB设备消息(由USB外设消息线程实现),其中,监听应用消息时,可以根据选择目标应用图标的选择指令实现将当前虚拟操作系统切换至目标应用图标所属的虚拟操作系统,之后,打开目标应用图标对应的应用程序。On the basis of the above, FIG. 8 is a flowchart of a VMM service and icon service provided by an embodiment of the present application. Referring to FIG. Read the VMM configuration file according to the operating parameters), and then start each virtual operating system (the first virtual system and the second virtual system) according to the configuration parameters parsed by the VMM configuration file, and then mount the shared directory to each virtual operating system. Afterwards, each application information (including application icon and path information) is written in the shared directory by the icon service of each virtual operating system. After each virtual operating system is started according to the configuration parameters parsed from the VMM configuration file, the VMM message management service must be run to monitor virtual machine messages (realized by virtual machine message threads), monitor application messages (realized by application message threads), and monitor and display System messages (realized by the virtual machine screen status message thread) and listening to USB device messages (realized by the USB peripheral message thread), wherein, when listening to application messages, the current virtual operating system can be switched according to the selection instruction of the target application icon Go to the virtual operating system to which the target application icon belongs, and then open the application program corresponding to the target application icon.
步骤2150、接收应用退出指令。 Step 2150, receiving an application exit instruction.
示例性的,应用退出指令是退出当前打开的第二应用的指令。可选的,当检测到关闭第二应用或者是后台运行第二应用的操作时,第二虚拟系统确定接收到应用退出指令。可选的,使用者可通过触摸显示屏或操作USB设备发出应用退出指令。Exemplarily, the application exit instruction is an instruction to exit the currently opened second application. Optionally, when an operation of closing the second application or running the second application in the background is detected, the second virtual system determines that an application exit instruction is received. Optionally, the user can issue an application exit command by touching the display screen or operating the USB device.
步骤2160、响应于应用退出指令,退出目标应用图标对应的第二应用,并将第二界面更换为第三界面,第三界面为第二应用所属的第二虚拟系统的系统桌面,第三界面显示有第一虚拟系统的第一应用图标和第二虚拟系统的第二应用图标。Step 2160, in response to the application exit instruction, exit the second application corresponding to the target application icon, and replace the second interface with a third interface, the third interface is the system desktop of the second virtual system to which the second application belongs, and the third interface A first application icon of the first virtual system and a second application icon of the second virtual system are displayed.
示例性的,第二虚拟系统接收到应用退出指令后,退出第二应用,可理解,当应用退出指令用于关闭第二应用时,退出第二应用是指关闭第二应用,当应用退出指令用于后台运行第二应用时,退出第二应用是指将第二应用切换至后台运行。Exemplarily, the second virtual system exits the second application after receiving the application exit instruction. It can be understood that when the application exit instruction is used to close the second application, exiting the second application refers to closing the second application. When the application exit instruction When used to run the second application in the background, exiting the second application refers to switching the second application to run in the background.
一个实施例中,退出第二应用时显示屏中不再显示第二应用的应用界面。此时,显示屏由第二界面切换为第三界面,一个实施例中,第三界面为第二虚拟系统的系统桌面,由于恢复运行第二虚拟系统时,第二虚拟系统的第二图标服务通过读取共享目录的方式,实现在第二虚拟系统的系统桌面中显示第一应用信息对应的第一应用图标和其他第二虚拟操作系统的第二应用信息对应的第二应用图标,即第二虚拟系统的系统桌面中除了显示自身安装的应用程序的应用图标,还显示其他虚拟操作系统中安装的应用程序的应用图标。所以,显示第二虚拟系统的系统桌面时,该系统桌面中显示有第一虚拟系统中安装的第一应用的第一应用图标和第二虚拟系统中安装的第二应用的第二应用图标。此时,使用者可以通过选择其他虚拟操作系统的应用图标的方式,启动其他虚拟操作系统的应用程序。In one embodiment, when the second application is exited, the application interface of the second application is no longer displayed on the display screen. At this time, the display screen is switched from the second interface to the third interface. In one embodiment, the third interface is the system desktop of the second virtual system. By reading the shared directory, the first application icon corresponding to the first application information and the second application icon corresponding to the second application information of other second virtual operating systems are displayed on the system desktop of the second virtual system, that is, the second application icon corresponding to the second application information of the second virtual operating system. The system desktop of the second virtual system displays application icons of applications installed in other virtual operating systems in addition to application icons of applications installed by itself. Therefore, when the system desktop of the second virtual system is displayed, the first application icon of the first application installed in the first virtual system and the second application icon of the second application installed in the second virtual system are displayed on the system desktop. At this time, the user can start the application programs of other virtual operating systems by selecting the application icons of other virtual operating systems.
上述,通过接收设备启动指令,启动交互智能平板的主操作系统,显示自定义的开机画面,之后,启动第一虚拟系统和第二虚拟系统,当第一虚拟系统输出启动画面时,停止显示开机画面,显示第一虚拟系统的启动画面,并在后台挂起第二虚拟系统,之后,启动VMM消息管理服务,启动画面停止显示后,显示第一虚拟系统的第一界面,第一界面显示有第一虚拟系统的第一应用图标和第二虚拟系统的第二应用图标,接收用于选择第二应用图标的第一选择指令,由第一图标服务根据第一选择指令生成切换消息并发送至VMM消息管理服务,VMM消息管理服务通知目标应用图标所属的第二虚拟系统的第二图标服务开启目标应用图标对应的第二应用,以使第二图标服务开启第二应用,并将第一界面更换为第二界面的技术手段,解决了交互智能平板支持多操作系统时,设备成本高以及硬件设计复杂度高的技术问题,利用虚拟化技术将各操作系统作为虚拟操作系统安装在交互智能平板中,无需为每个虚拟操作系统配置对应的物理CPU,只需要配置主操作系统的物理CPU,降低了设备成本以及硬件设计复杂度。通过VMM服务和各虚拟操作系统的图标服务可以实现管理和运行多个虚拟操作系统,通过共享目录可以使得各虚拟操作系统共享自身的应用信息,以实现在各虚拟操作系统的系统桌面中显示全部虚拟操作系统的应用图标,进而实现应用程序的快速切换和启动。切换虚拟操作系统时,触摸设备的处理先于USB设备的处理,能够优化切换虚拟操作系统时触摸设备实现触控功能的加载时间。打开目标应用图标的第二应用先于显示虚拟GPU输出画面,可以在打开第二应用时使第一时间显示的第二界面为第二应用开启后的应用界面,而不会显示第二虚拟系统的系统桌面,提高了使用者切换应用时的使用体验。As mentioned above, by receiving the device startup command, start the main operating system of the interactive smart tablet, display a custom startup screen, and then start the first virtual system and the second virtual system, and stop displaying the startup screen when the first virtual system outputs the startup screen. screen, display the startup screen of the first virtual system, and suspend the second virtual system in the background, then start the VMM message management service, and after the startup screen stops displaying, display the first interface of the first virtual system, the first interface displays The first application icon of the first virtual system and the second application icon of the second virtual system receive the first selection instruction for selecting the second application icon, and the first icon service generates a switching message according to the first selection instruction and sends it to VMM message management service, the VMM message management service notifies the second icon service of the second virtual system to which the target application icon belongs to open the second application corresponding to the target application icon, so that the second icon service starts the second application, and the first interface The technical means of replacing the second interface solves the technical problems of high equipment cost and high hardware design complexity when the interactive smart tablet supports multiple operating systems, and uses virtualization technology to install each operating system as a virtual operating system on the interactive smart tablet. In the virtual operating system, there is no need to configure a corresponding physical CPU for each virtual operating system, only the physical CPU of the main operating system needs to be configured, which reduces equipment cost and hardware design complexity. Through the VMM service and the icon service of each virtual operating system, it is possible to manage and run multiple virtual operating systems. Through the shared directory, each virtual operating system can share its own application information, so that all virtual operating systems can be displayed on the desktop of each virtual operating system. The application icon of the virtual operating system, thereby realizing the quick switching and starting of the application. When switching the virtual operating system, the processing of the touch device is prior to the processing of the USB device, which can optimize the loading time for the touch device to realize the touch function when switching the virtual operating system. Open the second application of the target application icon before displaying the virtual GPU output screen. When the second application is opened, the second interface displayed at the first time can be the application interface after the second application is opened, and the second virtual system will not be displayed. The system desktop improves the user experience when switching applications.
一个实施例中,通过交互智能平板的交互智能平板模块和VMM服务还可以实现切换虚拟操作系统。示例性的,交互智能平板模块提供“通道管理,屏幕声音设置系统”,该系统可以用于管理与设置显示、触控和输出等有关的各个组件,该系统可与VMM服务进行通信,以实现切换虚拟操作系统。图9为本申请一个实施例提供的系统第二框架图,参考图9,交互智能平板的PC模块是指主操作系统所在的模块,PC模块中的Host OS为Linux系统,多个虚拟操作系统包括Windows系统、Android系统、UOS系统等,其中,Windows系统通过Windows虚拟机实现,Android系统通过Android虚拟机实现,UOS系统通过UOS虚拟机实现。交互智能平板的交互智能平板模块提供“通道管理,屏幕声音设置系统”,“通道管理,屏幕声音设置系统”与Host OS中的VMM服务进行通信,VMM服务与各虚拟操作系统进行通信,以基于交互智能平板模块实现各虚拟操作系统的切换,图10为本申请一个实施例提供的又一种切换控制方法的流程图。图10所示的切换控制方法适用于图9所示的框架。参考图10,由一个虚拟操作系统切换至另一个虚拟操作系统时,切换控制方法包括:In one embodiment, the virtual operating system can also be switched through the interactive smart tablet module and the VMM service of the interactive smart tablet. Exemplarily, the interactive smart panel module provides "channel management, screen sound setting system", which can be used to manage various components related to setting display, touch and output, etc., and the system can communicate with VMM service to realize Switch virtual operating systems. Fig. 9 is the second frame diagram of the system provided by one embodiment of the present application. With reference to Fig. 9, the PC module of the interactive smart panel refers to the module where the main operating system is located, and the Host OS in the PC module is a Linux system, and multiple virtual operating systems Including Windows system, Android system, UOS system, etc. Among them, the Windows system is realized through the Windows virtual machine, the Android system is realized through the Android virtual machine, and the UOS system is realized through the UOS virtual machine. The interactive smart panel module of the interactive smart panel provides "channel management, screen sound setting system", "channel management, screen sound setting system" communicates with the VMM service in the Host OS, and the VMM service communicates with each virtual operating system to The interactive smart tablet module implements switching of virtual operating systems. FIG. 10 is a flow chart of another switching control method provided by an embodiment of the present application. The switching control method shown in FIG. 10 is applicable to the framework shown in FIG. 9 . Referring to FIG. 10, when switching from one virtual operating system to another virtual operating system, the switching control method includes:
步骤310、接收设备启动指令; Step 310, receiving a device startup instruction;
步骤320、响应于设备启动指令,启动交互智能平板并显示自定义的开机画面。Step 320: In response to the device startup instruction, start the interactive smart tablet and display a customized startup screen.
响应于设备启动指令,启动交互智能平板的主操作系统,主操作系统的启动过程中,显示自定义的开机画面。该步骤可参考步骤120和步骤230中的相关描述。主操作系统的启动过程中,自动运行VMM服务。VMM服务运行时,启动第一虚拟系统和第二虚拟系统,其中,启动第一虚拟系统和第二虚拟系统包括:读取主操作系统中VMM服务的配置文件,根据配置文件解析出第一虚拟系统和第二虚拟系统的配置参数,根据配置文件解析出第一虚拟系统和第二虚拟系统的配置参数,该过程可参考步骤241-步骤243的相关描述,需说明,与 步骤242相比,本步骤中解析的配置参数不包含Host OS与虚拟操作系统的共享目录,而添加了交互智能平板模块的IP地址,以及交互智能平板模块与VMM服务进行通信的端口。一个实施例中,VMM服务设置有用于与交互智能平板模块中“通道管理,屏幕声音设置系统”进行通信的后台监听端口(即配置参数中的端口)。需说明,与步骤243相比,本步骤中启动第一虚拟系统和第二虚拟系统时,无需配置并挂载共享目录。In response to the device startup instruction, start the main operating system of the interactive smart tablet, and display a customized startup screen during the startup process of the main operating system. For this step, reference may be made to related descriptions in step 120 and step 230 . During the startup process of the main operating system, the VMM service is automatically run. When the VMM service is running, start the first virtual system and the second virtual system, wherein starting the first virtual system and the second virtual system includes: reading the configuration file of the VMM service in the main operating system, and parsing the first virtual system according to the configuration file. The configuration parameters of the system and the second virtual system are analyzed according to the configuration file to obtain the configuration parameters of the first virtual system and the second virtual system. For this process, refer to the relevant descriptions of steps 241-243. It should be noted that compared with step 242, The configuration parameters analyzed in this step do not include the shared directory of the Host OS and the virtual operating system, but add the IP address of the interactive smart tablet module and the port for the interactive smart tablet module to communicate with the VMM service. In one embodiment, the VMM service is provided with a background monitoring port (that is, the port in the configuration parameters) for communicating with the "channel management, screen sound setting system" in the interactive smart tablet module. It should be noted that compared with step 243, when starting the first virtual system and the second virtual system in this step, there is no need to configure and mount the shared directory.
一个实施例中,启动交互智能平板并显示自定义的开机画面之后,还包括:由显示屏组件通过VMM服务向第一虚拟系统和第二虚拟系统发送查询指令,以通过查询指令获取第一虚拟系统的第一系统图标和第二虚拟系统的第二系统图标;由显示屏组件在虚拟控制区域中添加第一系统图标和第二系统图标。In one embodiment, after starting the interactive smart panel and displaying the customized start-up screen, it further includes: the display component sends query instructions to the first virtual system and the second virtual system through the VMM service, so as to obtain the first virtual system through the query instruction. The first system icon of the system and the second system icon of the second virtual system; the first system icon and the second system icon are added in the virtual control area by the display screen component.
示例性的,显示屏组件是指交互智能平板模块。交互智能平板模块向VMM服务发送查询指令,之后,由VMM服务对第一虚拟系统和第二虚拟系统进行查询,即VMM服务向第一虚拟系统和第二虚拟系统发送查询指令。查询指令可获取第一虚拟系统和第二虚拟系统的系统消息,每个虚拟操作系统对应一个系统消息,系统消息的内容可以根据实际情况设置,通过系统消息可以明确当前启动的虚拟操作系统的种类。一个实施例中,系统消息至少包括系统图标,其中,系统图标是指表示对应虚拟操作系统的图标,例如,虚拟操作系统为Android系统时,对应的系统图标为显示Android系统的图标。将第二虚拟系统的系统图标记为第二系统图标,将第一虚拟系统的系统图标记为第一系统图标。之后,VMM服务通过VMM服务使得交互智能平板模块获取第一系统图标和第二系统图标,之后,由交互智能平板模块的“通道管理,屏幕声音设置系统”显示第一系统图标和第二系统图标。一个实施例中,交互智能平板模块的“通道管理,屏幕声音设置系统”提供一个图形化设置界面,该图形化设置界面记为虚拟控制区域,该虚拟控制区域的大小以及显示位置可以根据实际情况设置。一个实施例中,虚拟控制区域可以通过设定的触控交互方式显示和隐藏在显示屏中,可理解,虚拟控制区域是交互智能平板模块生成的界面,而非虚拟操作系统输出的界面,虚拟控制区域中显示有第一系统图标和第二系统图标。Exemplarily, the display screen component refers to an interactive smart panel module. The interactive smart panel module sends a query command to the VMM service, and then the VMM service queries the first virtual system and the second virtual system, that is, the VMM service sends a query command to the first virtual system and the second virtual system. The query command can obtain the system information of the first virtual system and the second virtual system. Each virtual operating system corresponds to a system message. The content of the system message can be set according to the actual situation. The type of the currently started virtual operating system can be clarified through the system message . In one embodiment, the system message includes at least a system icon, wherein the system icon refers to an icon representing the corresponding virtual operating system. For example, when the virtual operating system is an Android system, the corresponding system icon is an icon displaying the Android system. The system diagram of the second virtual system is marked as the second system icon, and the system diagram of the first virtual system is marked as the first system icon. Afterwards, the VMM service enables the interactive smart panel module to obtain the first system icon and the second system icon through the VMM service, and then, the first system icon and the second system icon are displayed by the "channel management, screen sound setting system" of the interactive smart panel module . In one embodiment, the "channel management, screen sound setting system" of the interactive smart panel module provides a graphical setting interface, which is recorded as a virtual control area, and the size and display position of the virtual control area can be adjusted according to the actual situation. set up. In one embodiment, the virtual control area can be displayed and hidden in the display screen through a set touch interaction method. It can be understood that the virtual control area is an interface generated by an interactive smart tablet module, rather than an interface output by a virtual operating system. A first system icon and a second system icon are displayed in the control area.
步骤330、开机画面停止显示后,显示第一虚拟系统的第一界面,第一界面为第一虚拟系统的系统桌面。 Step 330, after the start-up screen stops displaying, display a first interface of the first virtual system, where the first interface is the system desktop of the first virtual system.
当第一虚拟系统输出启动画面时,停止显示开机画面,开机画面停止显示后,显示第一虚拟系统的启动画面,并在后台挂起第二虚拟系统,启动画面停止显示后,显示第一虚拟系统的第一界面。该过程可参考步骤250、步骤260和步骤280中的相关描述。可选的,由于当前不涉及切换应用程序,因此,第一界面中可以只显示第一虚拟系统的第一应用图标。When the first virtual system outputs the startup screen, stop displaying the startup screen, after the startup screen stops displaying, display the startup screen of the first virtual system, and suspend the second virtual system in the background, after the startup screen stops displaying, display the first virtual system The first interface of the system. For this process, reference may be made to related descriptions in step 250 , step 260 and step 280 . Optionally, since switching applications is not currently involved, only the first application icon of the first virtual system may be displayed on the first interface.
一个实施例中,显示第一虚拟系统的启动画面,并在后台挂起第二虚拟系统之后,还可以启动VMM服务中的VMM消息管理服务,其中,相比于步骤270中VMM消息管理服务,本步骤中的VMM消息管理服务保留虚拟机消息线程、虚拟机画面状态消息线程、USB外设消息线程,并且,不保留应用消息线程,新增了交互智能平板模块消息线程,该交互智能平板模块消息线程可以监听配置参数中VMM服务与交互智能平板模块通信的端口,以实现VMM服务与交互智能平板模块进行下述类型的消息通信:查询全部的虚拟操作系统的消息通信;查询当前运行的虚拟操作系统的消息通信;查询全部的虚拟操作系统的运行状态的消息通信;切换虚拟操作系统的消息通信;查询Host OS的IP地址的消息通信。可理解,交互智能平板模块可以通过交互智能平板模块消息线程向VMM服务发送查询指令,以得到全部 的虚拟操作系统的信息,并根据虚拟操作系统的信息,将对应的系统图标显示在虚拟控制区域。In one embodiment, after displaying the startup screen of the first virtual system and suspending the second virtual system in the background, the VMM message management service in the VMM service can also be started, wherein, compared to the VMM message management service in step 270, The VMM message management service in this step retains the virtual machine message thread, the virtual machine screen status message thread, and the USB peripheral message thread, and does not reserve the application message thread, and adds an interactive smart tablet module message thread. The interactive smart tablet module The message thread can monitor the communication port between the VMM service and the interactive smart tablet module in the configuration parameters, so as to realize the following types of message communication between the VMM service and the interactive smart tablet module: query the message communication of all virtual operating systems; query the currently running virtual Message communication of the operating system; message communication of querying the running status of all virtual operating systems; message communication of switching virtual operating systems; message communication of querying the IP address of the Host OS. It can be understood that the interactive smart panel module can send a query command to the VMM service through the message thread of the interactive smart panel module, so as to obtain the information of all virtual operating systems, and display the corresponding system icon in the virtual control area according to the information of the virtual operating system .
可理解,VMM消息管理服务中各进程进行通信的消息同样可以分为两类,其与步骤270中描述的两类消息相同,在此不做赘述。举例而言,当消息类型是面向全部虚拟操作系统的查询指令时,其消息参数为空,当消息类型是面向指定虚拟操作系统的查询指令时,其消息参数中写入指定虚拟操作系统的相关内容。当消息类型是切换虚拟操作系统时,其消息参数中写入要切换到的虚拟操作系统(实施例中为第二选择指令对应的第二虚拟系统)的相关内容。此时,VMM服务的运行流程图可以参考图4。It can be understood that the messages communicated by each process in the VMM message management service can also be divided into two types, which are the same as the two types of messages described in step 270, and will not be repeated here. For example, when the message type is a query command for all virtual operating systems, its message parameter is empty; when the message type is a query command for a specified virtual operating system, the relevant content. When the message type is to switch the virtual operating system, the relevant content of the virtual operating system to be switched (in the embodiment, the second virtual system corresponding to the second selection instruction) is written in the message parameter. At this time, reference may be made to FIG. 4 for the operation flowchart of the VMM service.
步骤340、接收屏幕控制指令。 Step 340, receiving a screen control instruction.
示例性的,屏幕控制指令用于唤出虚拟控制区域。屏幕控制指令可由预先设置的触控交互方式触发,例如,预先设置的触控交互方式为从显示屏的底部向上划动的触控操作,当检测到该触控操作时,确定接收到屏幕控制指令。一个实施例中,由交互智能平板模块检测屏幕控制指令。Exemplarily, the screen control instruction is used to call out the virtual control area. The screen control command can be triggered by a preset touch interaction method, for example, the preset touch interaction method is a touch operation of swiping upward from the bottom of the display screen, and when the touch operation is detected, it is determined that the screen control is received instruction. In one embodiment, the screen control instruction is detected by the interactive smart panel module.
步骤350、响应于屏幕控制指令,在第一界面中显示虚拟控制区域,虚拟控制区域显示有第一虚拟系统的第一系统图标和第二虚拟系统的第二系统图标。Step 350: In response to the screen control instruction, display a virtual control area on the first interface, where a first system icon of the first virtual system and a second system icon of the second virtual system are displayed in the virtual control area.
一个实施例中,响应于屏幕控制指令,在显示屏中唤出虚拟控制区域,即在第一界面中显示虚拟控制区域。需说明,各虚拟操作系统启动后,交互智能平板模块通过查询指令可获取第一系统图标和第二系统图标,并由交互智能平板模块的“通道管理,屏幕声音设置系统”在虚拟控制区域中显示第一系统图标和第二系统图标,所以,唤出虚拟控制区域时,虚拟控制区域中显示第一系统图标和第二系统图标。In one embodiment, in response to the screen control instruction, the virtual control area is invoked on the display screen, that is, the virtual control area is displayed on the first interface. It should be noted that after each virtual operating system is started, the interactive smart panel module can obtain the first system icon and the second system icon through the query command, and the "channel management, screen sound setting system" of the interactive smart panel module can be set in the virtual control area. The first system icon and the second system icon are displayed, so when the virtual control area is called, the first system icon and the second system icon are displayed in the virtual control area.
可理解,虚拟控制区域由交互智能平板的显示屏组件提供。示例性的,由交互智能平板模块中的“通道管理,屏幕声音设置系统”提供虚拟控制区域。It can be understood that the virtual control area is provided by the display component of the interactive smart panel. Exemplarily, the virtual control area is provided by the "channel management, screen sound setting system" in the interactive smart panel module.
虚拟控制区域除了显示各系统图标外,还可以显示与显示设置、声音设置、HDMI通道等有关的图标,以当使用者选择某个图标时,进行相应的设置。一个实施例中,图11为本申请一个实施例提供的一种虚拟控制区域的示意图,参考图11,虚拟操作系统包括Windows系统、Android系统、UOS系统,虚拟控制区域中显示有Windows系统、Android系统、UOS系统的系统图标,还显示有显示设置、声音设置和HDMI等内容。可理解,对于前台运行的虚拟操作系统而言,可以在虚拟控制区域中将对应的系统图标突出显示,如采用高亮显示的方式进行突出显示。例如,前台运行第一虚拟系统,且第一虚拟系统为Windows系统,因此,虚拟控制区域中高亮显示Windows系统的系统图标。In addition to displaying various system icons, the virtual control area can also display icons related to display settings, sound settings, HDMI channels, etc., so that when the user selects an icon, corresponding settings can be performed. In one embodiment, FIG. 11 is a schematic diagram of a virtual control area provided by an embodiment of the present application. With reference to FIG. 11 , the virtual operating system includes a Windows system, an Android system, and a UOS system, and the Windows system, Android system, and Windows system are displayed in the virtual control area. The system icons of the system and UOS system also display content such as display settings, sound settings, and HDMI. It can be understood that, for the virtual operating system running in the foreground, the corresponding system icon can be highlighted in the virtual control area, for example, highlighted by means of highlighting. For example, the first virtual system runs in the foreground, and the first virtual system is a Windows system. Therefore, a system icon of the Windows system is highlighted in the virtual control area.
步骤360、接收第二选择指令,第二选择指令用于在第二系统图标中选择目标系统图标。Step 360, receiving a second selection instruction, where the second selection instruction is used to select a target system icon among the second system icons.
示例性的,第一界面中显示虚拟控制区域后,交互智能平板的使用者可以通过选择虚拟控制区域中的第二系统图标使得交互智能平板打开第二系统图标对应的第二虚拟系统。一个实施例中,将在虚拟控制区域中选择第二系统图标的指令记为第二选择指令,将第二选择指令所选择的第二系统图标记为目标系统图标。其中,使用者可以通过触控(如点击、长按等)第二系统图标的方式发出第二选择指令。Exemplarily, after the virtual control area is displayed on the first interface, the user of the interactive smart tablet can enable the interactive smart tablet to open the second virtual system corresponding to the second system icon by selecting the second system icon in the virtual control area. In one embodiment, the instruction for selecting the second system icon in the virtual control area is recorded as the second selection instruction, and the second system diagram selected by the second selection instruction is marked as the target system icon. Wherein, the user can issue the second selection command by touching (such as clicking, long pressing, etc.) the second system icon.
一个实施例中,接收第二选择指令包括步骤361-步骤362:In one embodiment, receiving the second selection instruction includes step 361-step 362:
步骤361、由显示屏组件根据作用于第二系统图标的触控操作生成第二选择指令。Step 361, the display screen component generates a second selection instruction according to the touch operation acting on the second system icon.
示例性的,当使用者触控第二系统图标时,显示屏组件(交互智能平板模块)可以检测 到使用者的触控操作,当确定触控操作是用于选择第二系统图标的触控操作时,生成第二选择指令。Exemplarily, when the user touches the second system icon, the display screen component (interactive smart panel module) can detect the user's touch operation, and when it is determined that the touch operation is a touch for selecting the second system icon In operation, a second selection instruction is generated.
步骤362、由VMM服务的VMM消息管理服务接收显示屏组件发送的第二选择指令。Step 362, the VMM message management service of the VMM service receives the second selection instruction sent by the display screen component.
示例性的,显示屏组件生成第二选择指令后,将第二选择指令发送至VMM消息管理服务的交互智能平板模块消息线程,之后,交互智能平板模块消息线程根据第二选择指令确定消息类型为虚拟操作系统显示切换,并进行相应的响应。Exemplarily, after the display screen component generates the second selection instruction, it sends the second selection instruction to the interactive smart panel module message thread of the VMM message management service, and then, the interactive smart panel module message thread determines the message type according to the second selection instruction as The virtual operating system displays the toggle and responds accordingly.
步骤370、响应于第二选择指令,将第一界面更换为第四界面,第四界面是目标系统图标对应的第二虚拟系统的系统桌面。Step 370: In response to the second selection instruction, replace the first interface with a fourth interface, where the fourth interface is the system desktop of the second virtual system corresponding to the icon of the target system.
示例性的,VMM消息管理服务确定虚拟操作系统显示切换时,指示第一虚拟系统后台挂起,并将目标系统图标对应的第二虚拟系统恢复运行,并作为前台运行的虚拟操作系统,此时,获取第二虚拟系统中虚拟GPU输出的画面并进行显示,并对第一界面进行切换,一个实施例中,将切换后显示的界面记为第四界面。需说明,第二虚拟系统恢复运行时,GPU输出的画面为第二虚拟系统的系统桌面,第四界面为第二虚拟系统的系统桌面。由于当前不涉及应用程序的切换,因此,第二虚拟系统的系统界面中可以只显示自身的第二应用图标。实际应用中,当第二虚拟系统后台挂起时,显示了某一第二应用的应用界面,那么,恢复运行第二虚拟系统时,可以显示该应用界面。Exemplarily, when the VMM message management service determines that the display of the virtual operating system is switched, it indicates that the first virtual system is suspended in the background, and resumes the second virtual system corresponding to the target system icon as the virtual operating system running in the foreground. , acquire and display the picture output by the virtual GPU in the second virtual system, and switch the first interface. In one embodiment, the interface displayed after switching is recorded as the fourth interface. It should be noted that when the second virtual system resumes running, the image output by the GPU is the system desktop of the second virtual system, and the fourth interface is the system desktop of the second virtual system. Since switching of application programs is not currently involved, only the second application icon of the second virtual system may be displayed on the system interface of the second virtual system. In practical applications, when the second virtual system is suspended in the background, an application interface of a second application is displayed, then, when the second virtual system is resumed, the application interface can be displayed.
切换至第二虚拟系统后,虚拟控制区域中第二虚拟系统的第二系统图标突出显示。After switching to the second virtual system, the second system icon of the second virtual system in the virtual control area is highlighted.
一个实施例中,响应于第二选择指令,将第一界面更换为第四界面包括步骤371-步骤377:In one embodiment, in response to the second selection instruction, replacing the first interface with the fourth interface includes Step 371-Step 377:
步骤371、响应于第二选择指令,由VMM消息管理服务指示删除第一虚拟系统的触摸设备。Step 371: In response to the second selection instruction, the VMM message management service instructs to delete the touch device of the first virtual system.
VMM消息管理服务的交互智能平板模块消息线程接收到第二选择指令后,VMM消息管理服务的虚拟机消息线程向第一虚拟系统发送删除触摸设备的消息,之后,第一虚拟系统接收到该消息后,删除第一虚拟系统的触摸设备,此时,触摸设备接收到的触控操作与第一虚拟系统无关。After the message thread of the interactive smart panel module of the VMM message management service receives the second selection instruction, the virtual machine message thread of the VMM message management service sends a message of deleting the touch device to the first virtual system, and then the first virtual system receives the message Afterwards, the touch device of the first virtual system is deleted, and at this time, the touch operation received by the touch device has nothing to do with the first virtual system.
步骤372、由VMM消息管理服务指示删除第一虚拟系统的USB设备。Step 372, the VMM message management service instructs to delete the USB device of the first virtual system.
示例性的,删除第一虚拟系统的触摸设备后,VMM消息管理服务的虚拟机消息线程向第一虚拟系统发送删除USB外设的消息,之后,第一虚拟系统接收到该消息后,删除第一虚拟系统的USB设备,此时,USB设备接收到的操作与第一虚拟系统无关。Exemplarily, after deleting the touch device of the first virtual system, the virtual machine message thread of the VMM message management service sends a message of deleting the USB peripheral to the first virtual system, and after receiving the message, the first virtual system deletes the first virtual system. A USB device of a virtual system, at this time, the operation received by the USB device has nothing to do with the first virtual system.
步骤373、由VMM消息管理服务指示后台挂起第一虚拟系统。Step 373: The VMM message management service instructs the background to suspend the first virtual system.
示例性的,删除第一虚拟系统的USB设备后,VMM消息管理服务的虚拟机消息线程向第一虚拟系统发送后台挂起的消息,之后,第一虚拟系统接收到该消息后,在后台挂起,此时,第一虚拟系统停止在前台运行。Exemplarily, after the USB device of the first virtual system is deleted, the virtual machine message thread of the VMM message management service sends a background suspension message to the first virtual system, and after receiving the message, the first virtual system hangs in the background At this time, the first virtual system stops running in the foreground.
步骤374、由VMM消息管理服务指示恢复运行目标系统图标对应的第二虚拟系统。Step 374: The VMM message management service instructs to resume running the second virtual system corresponding to the icon of the target system.
示例性的,后台挂起第一虚拟系统后,VMM消息管理服务的虚拟机消息线程向目标系统图标对应的第二虚拟系统发送恢复运行的消息,之后,第二虚拟系统接收到该消息后,在前台运行,且运行时第二虚拟系统的状态与挂起时第二虚拟系统的状态相同,此时,第二虚拟系统在前台运行,以实现切换虚拟操作系统。Exemplarily, after the first virtual system is suspended in the background, the virtual machine message thread of the VMM message management service sends a resume message to the second virtual system corresponding to the target system icon, and after the second virtual system receives the message, It is running in the foreground, and the state of the second virtual system during running is the same as that of the second virtual system when it is suspended. At this time, the second virtual system is running in the foreground, so as to realize the switching of the virtual operating system.
步骤375、由VMM消息管理服务指示第二虚拟系统添加触摸设备。Step 375: The VMM message management service instructs the second virtual system to add a touch device.
示例性的,前台运行第二虚拟系统后,VMM消息管理服务的虚拟机消息线程向第二虚 拟系统发送添加触摸设备的消息,之后,第二虚拟系统接收到该消息后,添加触摸设备,如将第一虚拟系统删除的触摸设备添加在第二虚拟系统中,此时,触摸设备接收到的触控操作是控制第二虚拟系统的触控操作。Exemplarily, after the second virtual system runs in the foreground, the virtual machine message thread of the VMM message management service sends a message of adding a touch device to the second virtual system, and after receiving the message, the second virtual system adds a touch device, such as The touch device deleted from the first virtual system is added to the second virtual system, and at this time, the touch operation received by the touch device is a touch operation for controlling the second virtual system.
步骤376、由VMM服务获取第二虚拟系统的第四界面,并将第一界面更换为第四界面。Step 376: The VMM service obtains the fourth interface of the second virtual system, and replaces the first interface with the fourth interface.
示例性的,VMM服务获取第二虚拟系统的虚拟GPU输出画面(实施例中为第四界面),并发送至显示屏中进行显示,此时,VMM消息管理服务的虚拟机画面状态消息线程可以通过监听第二虚拟系统的虚拟GPU状态,确定是否切换成功。Exemplarily, the VMM service obtains the virtual GPU output screen (the fourth interface in the embodiment) of the second virtual system, and sends it to the display screen for display. At this time, the virtual machine screen status message thread of the VMM message management service can By monitoring the state of the virtual GPU of the second virtual system, it is determined whether the switching is successful.
步骤377、由VMM消息管理服务为第二虚拟系统添加USB设备。Step 377, add a USB device for the second virtual system by the VMM message management service.
显示第四界面后,VMM消息管理服务的虚拟机消息线程向第二虚拟系统发送添加USB设备的消息,之后,第二虚拟系统接收到该消息后,添加第二虚拟系统的USB设备,如将第一虚拟系统删除的触摸设备添加在第二虚拟系统中,此时,USB设备可供第二虚拟系统使用。After the fourth interface is displayed, the virtual machine message thread of the VMM message management service sends a message for adding a USB device to the second virtual system, and after receiving the message, the second virtual system adds the USB device of the second virtual system, such as adding The touch device deleted by the first virtual system is added to the second virtual system, and at this time, the USB device can be used by the second virtual system.
图12为本申请一个实施例提供的一种虚拟操作系统切换流程图。参考图12,VMM消息管理服务接收到第二选择指令后,先删除第一虚拟系统(前台运行)的触摸设备,再删除第一虚拟系统的USB设备,之后,挂起第一虚拟系统,恢复第二虚拟系统运行,指示第二虚拟系统添加触摸设备,将第一界面切换为第四界面,再为第二虚拟系统添加USB设备,以实现将第一虚拟系统切换到第二虚拟系统。FIG. 12 is a flow chart of virtual operating system switching provided by an embodiment of the present application. Referring to Figure 12, after receiving the second selection instruction, the VMM message management service first deletes the touch device of the first virtual system (running in the foreground), and then deletes the USB device of the first virtual system, and then suspends the first virtual system and resumes The second virtual system runs, instructs the second virtual system to add a touch device, switches the first interface to the fourth interface, and then adds a USB device to the second virtual system, so as to switch the first virtual system to the second virtual system.
在上述基础上,图13为本申请一个实施例提供的一种VMM服务的流程图,参考图13,在实现切换虚拟操作系统时,VMM服务先经历初始化阶段(即根据运行参数读取VMM配置文件),之后,根据VMM配置文件解析的配置参数启动各虚拟操作系统(第一虚拟系统和第二虚拟系统),之后,运行VMM消息管理服务,以监听虚拟机消息(由虚拟机消息线程实现)、监听交互智能平板消息(由交互智能平板模块消息线程实现)、监听显示系统消息(由虚拟机画面状态消息线程实现)和监听USB设备消息(由USB外设消息线程实现),其中,监听交互智能平板消息时,可以根据选择目标系统图标的选择指令实现将当前的虚拟操作系统切换至目标系统图标所属的虚拟操作系统。On the basis of the above, FIG. 13 is a flowchart of a VMM service provided by an embodiment of the present application. With reference to FIG. 13 , when switching virtual operating systems, the VMM service first goes through the initialization phase (that is, reads the VMM configuration according to the operating parameters. file), after that, start each virtual operating system (the first virtual system and the second virtual system) according to the configuration parameters parsed by the VMM configuration file, and then run the VMM message management service to listen to the virtual machine message (implemented by the virtual machine message thread ), monitor interactive smart panel messages (implemented by interactive smart panel module message threads), monitor display system messages (implemented by virtual machine screen status message threads) and monitor USB device messages (implemented by USB peripheral message threads), wherein, monitor When interacting with the smart tablet message, the current virtual operating system can be switched to the virtual operating system to which the target system icon belongs according to the selection instruction for selecting the target system icon.
上述,通过接收设备启动指令,启动交互智能平板并显示自定义的开机画面,开机画面停止显示后,显示第一虚拟系统的第一界面,之后,根据接收屏幕控制指令在第一界面中显示包含第一系统图标和第二系统图标的虚拟控制区域,接收用于选择第二系统图标的第二选择指令,根据第二选择指令并将第一界面更换为第二虚拟系统对应的第四界面的技术手段,解决了交互智能平板支持多操作系统时,设备成本高以及硬件设计复杂度高的技术问题,利用虚拟化技术将各操作系统作为虚拟操作系统安装在交互智能平板中,无需为每个虚拟操作系统配置对应的物理CPU,只需要配置主操作系统的物理CPU,降低了设备成本以及硬件设计复杂度。通过VMM服务和交互智能平板模块可以实现管理和运行多个虚拟操作系统,进而实现虚拟操作系统的快速切换和启动。切换虚拟操作系统时,触摸设备的处理先于USB设备的处理,能够优化切换虚拟操作系统时触控设备实现触控功能的加载时间,提高了使用者切换应用时的使用体验。As mentioned above, by receiving the device startup command, start the interactive smart tablet and display the customized boot screen, after the boot screen stops displaying, the first interface of the first virtual system is displayed, and then, according to the received screen control command, the first interface contains The virtual control area of the first system icon and the second system icon receives a second selection instruction for selecting the second system icon, and replaces the first interface with the fourth interface corresponding to the second virtual system according to the second selection instruction. The technical means solves the technical problems of high equipment cost and high hardware design complexity when the interactive smart tablet supports multiple operating systems, and uses virtualization technology to install each operating system as a virtual operating system in the interactive smart tablet, without requiring each The virtual operating system configures the corresponding physical CPU, only the physical CPU of the main operating system needs to be configured, which reduces equipment cost and hardware design complexity. Through the VMM service and the interactive smart tablet module, it is possible to manage and run multiple virtual operating systems, thereby realizing fast switching and starting of the virtual operating systems. When switching the virtual operating system, the processing of the touch device is prior to the processing of the USB device, which can optimize the loading time of the touch device to realize the touch function when switching the virtual operating system, and improve the user experience when switching applications.
图14为本申请一个实施例提供的一种切换控制装置的结构示意图,参考图14,该切换控制装置包括第一接收模块401、第一响应模块402、第一显示模块403、第二接收模块404、第二响应模块405。Fig. 14 is a schematic structural diagram of a switching control device provided by an embodiment of the present application. Referring to Fig. 14, the switching control device includes a first receiving module 401, a first response module 402, a first display module 403, and a second receiving module 404. The second response module 405.
第一接收模块401,配置为接收设备启动指令;第一响应模块402,配置为响应于设备启动指令,启动交互智能平板并显示自定义的开机画面;第一显示模块403,配置为开机画面停止显示后,显示第一虚拟系统的第一界面,第一界面为第一虚拟系统的系统桌面,第一界面显示有第一虚拟系统中安装的第一应用的第一应用图标和第二虚拟系统中安装的第二应用的第二应用图标,第二虚拟系统为至少一个;第二接收模块404,配置为接收第一选择指令,第一选择指令用于在第二应用图标中选择目标应用图标;第二响应模块405,配置为响应于第一选择指令,将第一界面更换为第二界面,第二界面是目标应用图标对应的第二应用开启后显示的应用界面。The first receiving module 401 is configured to receive a device startup instruction; the first response module 402 is configured to respond to the device startup instruction, start the interactive smart tablet and display a custom startup screen; the first display module 403 is configured to stop the startup screen After displaying, the first interface of the first virtual system is displayed, the first interface is the system desktop of the first virtual system, and the first interface displays the first application icon of the first application installed in the first virtual system and the second virtual system The second application icon of the second application installed in the second virtual system is at least one; the second receiving module 404 is configured to receive a first selection instruction, and the first selection instruction is used to select a target application icon in the second application icon The second response module 405 is configured to respond to the first selection instruction and replace the first interface with a second interface, the second interface is an application interface displayed after the second application corresponding to the target application icon is started.
根据本申请的一个实施例,还包括:第三接收模块,配置为将第一界面更换为第二界面之后,接收应用退出指令;第三响应模块,配置为响应于应用退出指令,退出目标应用图标对应的第二应用,并将第二界面更换为第三界面,第三界面为第二应用所属的第二虚拟系统的系统桌面,第三界面显示有第一虚拟系统的第一应用图标和第二虚拟系统的第二应用图标。According to an embodiment of the present application, it further includes: a third receiving module configured to receive an application exit instruction after replacing the first interface with a second interface; a third responding module configured to exit the target application in response to the application exit instruction The icon corresponds to the second application, and the second interface is replaced with a third interface, the third interface is the system desktop of the second virtual system to which the second application belongs, and the third interface displays the first application icon of the first virtual system and A second application icon of the second virtual system.
根据本申请的一个实施例,还包括:第四接收模块,配置为开机画面停止显示后,显示第一虚拟系统的第一界面之后,接收屏幕控制指令;第四响应模块,配置为响应于屏幕控制指令,在第一界面中显示虚拟控制区域,虚拟控制区域显示有第一虚拟系统的第一系统图标和第二虚拟系统的第二系统图标;第五接收模块,配置为接收第二选择指令,第二选择指令配置为在第二系统图标中选择目标系统图标;第五响应模块,配置为响应于第二选择指令,将第一界面更换为第四界面,第四界面是目标系统图标对应的第二虚拟系统的系统桌面。According to an embodiment of the present application, it further includes: a fourth receiving module configured to receive a screen control instruction after the first interface of the first virtual system is displayed after the start-up screen stops displaying; a fourth responding module configured to respond to the screen The control instruction is to display a virtual control area in the first interface, and the virtual control area displays the first system icon of the first virtual system and the second system icon of the second virtual system; the fifth receiving module is configured to receive the second selection instruction , the second selection instruction is configured to select the target system icon in the second system icon; the fifth response module is configured to respond to the second selection instruction and replace the first interface with the fourth interface, the fourth interface corresponds to the target system icon The system desktop of the second virtual system.
根据本申请的一个实施例,第一响应模块402包括:主系统启动单元,配置为响应于设备启动指令,启动交互智能平板的主操作系统,主操作系统中安装有第一虚拟系统和第二虚拟系统,主操作系统为不具备桌面环境的操作系统;开机显示单元,配置为主操作系统的启动过程中,显示自定义的开机画面。According to an embodiment of the present application, the first response module 402 includes: a main system starting unit configured to start the main operating system of the interactive smart tablet in response to the device starting instruction, and the first virtual system and the second virtual system are installed in the main operating system. In the virtual system, the main operating system is an operating system without a desktop environment; the boot display unit is configured to display a customized boot screen during the boot process of the main operating system.
根据本申请的一个实施例,还包括:第一启动模块,配置为开机画面停止显示后,显示第一虚拟系统的第一界面之前,启动第一虚拟系统和第二虚拟系统;停止显示模块,配置为当第一虚拟系统输出启动画面时,停止显示所述开机画面。相应的,第一显示模块403包括:启动显示单元,配置为开机画面停止显示后,显示第一虚拟系统的启动画面,并在后台挂起第二虚拟系统;界面显示单元,配置为启动画面停止显示后,显示第一虚拟化系统的第一界面,第一界面为第一虚拟系统的系统桌面,第一界面显示有第一虚拟系统中安装的第一应用的第一应用图标和第二虚拟系统中安装的第二应用的第二应用图标,第二虚拟系统为至少一个。According to an embodiment of the present application, it further includes: a first startup module configured to start the first virtual system and the second virtual system before displaying the first interface of the first virtual system after the start-up screen stops displaying; stop the display module, It is configured to stop displaying the start-up picture when the first virtual system outputs the start-up picture. Correspondingly, the first display module 403 includes: a start-up display unit configured to display the start-up picture of the first virtual system after the start-up picture stops displaying, and suspend the second virtual system in the background; an interface display unit configured to stop the start-up picture After displaying, the first interface of the first virtualization system is displayed, the first interface is the system desktop of the first virtual system, and the first interface displays the first application icon and the second virtualization icon of the first application installed in the first virtual system. There is at least one second application icon of the second application installed in the system, and the second virtual system is at least one.
根据本申请的一个实施例,还包括:第二启动模块,配置为显示第一虚拟系统的启动画面,并在后台挂起第二虚拟系统之后,启动VMM服务中的VMM消息管理服务,VMM服务为主操作系统提供的服务,VMM消息管理服务驱动第一虚拟系统和所述第二虚拟系统的管理和运行。According to an embodiment of the present application, it also includes: a second startup module configured to display the startup screen of the first virtual system, and start the VMM message management service in the VMM service after the second virtual system is suspended in the background, and the VMM service As a service provided by the host operating system, the VMM message management service drives the management and operation of the first virtual system and the second virtual system.
根据本申请的一个实施例,第一启动模块包括:文件读取单元,配置为开机画面停止显示后,显示第一虚拟系统的第一界面之前,读取主操作系统中VMM服务的配置文件;参数解析单元,配置为根据配置文件解析出第一虚拟系统和第二虚拟系统的配置参数;第一系统启动单元,配置为根据配置参数启动第一虚拟系统和第二虚拟系统。According to an embodiment of the present application, the first startup module includes: a file reading unit configured to read the configuration file of the VMM service in the main operating system after the startup screen stops displaying and before displaying the first interface of the first virtual system; The parameter analysis unit is configured to analyze the configuration parameters of the first virtual system and the second virtual system according to the configuration file; the first system startup unit is configured to start the first virtual system and the second virtual system according to the configuration parameters.
根据本申请的一个实施例,第一虚拟系统设置有第一图标服务,所述第二虚拟系统设置 有第二图标服务,第二响应模块405包括:切换消息生成单元,配置为由第一图标服务根据第一选择指令生成切换消息,切换消息包括目标应用图标和目标应用图标所属的第二虚拟系统;切换消息发送单元,配置为由第一图标服务将切换消息发送至VMM消息管理服务;通知单元,配置为根据切换消息,由VMM消息管理服务通知目标应用图标所属的第二虚拟系统的第二图标服务开启目标应用图标对应的第二应用;应用开启单元,配置为由第二图标服务开启目标应用图标对应的第二应用;界面切换单元,配置为由VMM服务获取第二应用的第二界面,并将第一界面更换为第二界面,第二界面是目标应用图标对应的第二应用开启后显示的应用界面。According to an embodiment of the present application, the first virtual system is provided with a first icon service, and the second virtual system is provided with a second icon service, and the second response module 405 includes: a switching message generating unit configured to use the first icon service The service generates a switching message according to the first selection instruction, the switching message includes the target application icon and the second virtual system to which the target application icon belongs; the switching message sending unit is configured to send the switching message to the VMM message management service by the first icon service; notify The unit is configured to start the second application corresponding to the target application icon by the VMM message management service to notify the second icon service of the second virtual system to which the target application icon belongs according to the switching message; the application opening unit is configured to be opened by the second icon service A second application corresponding to the target application icon; an interface switching unit configured to obtain a second interface of the second application by the VMM service, and replace the first interface with a second interface, the second interface being the second application corresponding to the target application icon The application interface displayed after opening.
根据本申请的一个实施例,通知单元包括:第一删除子单元,配置为根据切换消息,由VMM消息管理服务指示删除第一虚拟系统的触摸设备;第二删除子单元,配置为由VMM消息管理服务指示删除第一虚拟系统的USB设备;第一挂起子单元,配置为由VMM消息管理服务指示后台挂起第一虚拟系统;第一运行子单元,配置为由VMM消息管理服务指示恢复运行目标应用图标所属的第二虚拟系统;第一添加子单元,配置为由VMM消息管理服务指示第二虚拟系统添加触摸设备;第一开启子单元,配置为由VMM消息管理服务通知第二虚拟系统的第二图标服务开启目标应用图标对应的第二应用。相应的,还包括:第二添加模块,配置为将第一界面更换为第二界面之后,由VMM消息管理服务指示第二虚拟系统添加USB设备。According to an embodiment of the present application, the notification unit includes: a first deletion subunit, configured to delete the touch device of the first virtual system according to a switching message, instructed by the VMM message management service; The management service instructs to delete the USB device of the first virtual system; the first suspend subunit is configured to be instructed by the VMM message management service to suspend the first virtual system in the background; the first running subunit is configured to be instructed by the VMM message management service to resume operation The second virtual system to which the target application icon belongs; the first adding subunit is configured to instruct the second virtual system to add a touch device by the VMM message management service; the first opening subunit is configured to notify the second virtual system by the VMM message management service The second icon service starts the second application corresponding to the target application icon. Correspondingly, it also includes: a second adding module configured to, after the first interface is replaced with the second interface, the VMM message management service instructs the second virtual system to add the USB device.
根据本申请的一个实施例,第一启动模块包括:第二系统启动单元,配置为启动第一虚拟系统和第二虚拟系统;目录挂载单元,配置为由VMM服务将主操作系统中配置的共享目录挂载到第一虚拟系统和第二虚拟系统;信息收集单元,配置为由第一图标服务和第二图标服务分别收集第一应用信息和第二应用信息,第一应用信息包括第一应用的第一应用图标和第一路径信息,第二应用信息包括所述第二应用的第二应用图标和第二路径信息;共享更新单元,配置为由第一图标服务和第二图标服务分别将第一应用信息和第二应用信息更新到共享目录。相应的,第一显示模块403配置为显示第一虚拟系统的第一界面时还包括:信息读取单元,配置为由第一图标服务读取共享目录中记录的第二应用信息;图标显示单元,配置为由第一图标服务根据第二应用信息在第一界面中显示第二应用图标。According to an embodiment of the present application, the first startup module includes: a second system startup unit configured to start the first virtual system and the second virtual system; a directory mount unit configured to use the VMM service to The shared directory is mounted to the first virtual system and the second virtual system; the information collection unit is configured to collect the first application information and the second application information respectively by the first icon service and the second icon service, and the first application information includes the first The first application icon and the first path information of the application, the second application information includes the second application icon and the second path information of the second application; the shared update unit is configured to be served by the first icon service and the second icon service respectively The first application information and the second application information are updated to the shared directory. Correspondingly, when the first display module 403 is configured to display the first interface of the first virtual system, it also includes: an information reading unit configured to use the first icon service to read the second application information recorded in the shared directory; the icon display unit , configured to display the second application icon on the first interface by the first icon service according to the second application information.
根据本申请的一个实施例,当第一应用和/或第二应用更新时,共享目录中的第一应用信息和/或第二应用信息同步更新。According to an embodiment of the present application, when the first application and/or the second application are updated, the first application information and/or the second application information in the shared directory are updated synchronously.
根据本申请的一个实施例,虚拟控制区域由交互智能平板的显示屏组件提供。还包括:查询模块,配置为启动交互智能平板并显示自定义的开机画面之后,由显示屏组件通过VMM服务向第一虚拟系统和第二虚拟系统发送查询指令,以通过查询指令获取第一虚拟系统的第一系统图标和第二虚拟系统的第二系统图标;图标添加模块,配置为由显示屏组件在虚拟控制区域中添加第一系统图标和所述第二系统图标。According to an embodiment of the present application, the virtual control area is provided by the display screen component of the interactive smart panel. Also includes: a query module, configured to start the interactive smart panel and display a customized boot screen, the display component sends a query command to the first virtual system and the second virtual system through the VMM service, so as to obtain the first virtual system through the query command. The first system icon of the system and the second system icon of the second virtual system; an icon adding module configured to add the first system icon and the second system icon in the virtual control area by the display screen component.
根据本申请的一个实施例,第五接收模块包括:指令生成单元,配置为由显示屏组件根据作用于第二系统图标的触控选择操作生成第二选择指令;指令发送单元,配置为由VMM服务的VMM消息管理服务接收显示屏组件发送的第二选择指令;第五响应模块包括:第三删除单元,响应于第二选择指令,由VMM消息管理服务指示删除第一虚拟系统的触摸设备;第四删除单元,由VMM消息管理服务指示删除所述第一虚拟系统的USB设备;第二挂起单元,配置为由VMM消息管理服务指示后台挂起第一虚拟系统;第二运行单元,配置为由 VMM消息管理服务指示恢复运行目标系统图标对应的第二虚拟系统;第三添加单元,配置为由VMM消息管理服务指示第二虚拟系统添加触摸设备;第二开启单元,配置为由VMM服务获取第二虚拟系统的第四界面,并将第一界面更换为第四界面;第四添加单元,配置为由VMM消息管理服务为第二虚拟系统添加USB设备。According to an embodiment of the present application, the fifth receiving module includes: an instruction generation unit configured to generate a second selection instruction by the display component according to a touch selection operation acting on the second system icon; an instruction sending unit configured to be used by the VMM The VMM message management service of the service receives the second selection instruction sent by the display screen component; the fifth response module includes: a third deletion unit, in response to the second selection instruction, the VMM message management service instructs to delete the touch device of the first virtual system; The fourth deletion unit is configured to delete the USB device of the first virtual system by the VMM message management service; the second suspension unit is configured to suspend the first virtual system in the background by the VMM message management service; the second operation unit is configured The VMM message management service instructs the second virtual system corresponding to the target system icon to be resumed; the third adding unit is configured to be instructed by the VMM message management service to add a touch device to the second virtual system; the second opening unit is configured to be served by the VMM The fourth interface of the second virtual system is obtained, and the first interface is replaced with the fourth interface; the fourth adding unit is configured to add a USB device to the second virtual system by the VMM message management service.
上述提供的切换控制装置可配置为执行上述任意实施例提供的切换控制方法,具备相应的功能和有益效果。The switching control device provided above can be configured to execute the switching control method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
值得注意的是,上述切换控制装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。It is worth noting that, in the above embodiment of the switch control device, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, each The specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application.
图15为本申请一个实施例提供的一种交互智能平板的结构示意图。如图15所示,该交互智能平板包括处理器50、存储器51、输入装置52、输出装置53、显示屏54;交互智能平板中处理器50的数量可以是一个或多个,图15中以一个处理器50为例。交互智能平板中处理器50、存储器51、输入装置52、输出装置53、显示屏54可以通过总线或其他方式连接,图15中以通过总线连接为例。Fig. 15 is a schematic structural diagram of an interactive smart tablet provided by an embodiment of the present application. As shown in Figure 15, the interactive smart panel includes a processor 50, a memory 51, an input device 52, an output device 53, and a display screen 54; A processor 50 is taken as an example. The processor 50, the memory 51, the input device 52, the output device 53, and the display screen 54 in the interactive smart panel can be connected through a bus or in other ways. In FIG. 15, connection through a bus is taken as an example.
存储器51作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请实施例中的切换控制方法对应的程序指令/模块(例如切换控制装置中的第一接收模块401、第一响应模块402、第一显示模块403、第二接收模块404、第二响应模块405)。处理器50通过运行存储在存储器51中的软件程序、指令以及模块,从而执行交互智能平板的各种功能应用以及数据处理,即实现上述的切换控制方法。通过存储器51和处理器50可安装以及运行多个虚拟操作系统。The memory 51, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the handover control method in the embodiment of the present application (for example, the first receiver in the handover control device module 401, a first response module 402, a first display module 403, a second receiving module 404, and a second response module 405). The processor 50 executes various functional applications and data processing of the interactive smart panel by running software programs, instructions and modules stored in the memory 51 , that is, realizes the above switching control method. Multiple virtual operating systems can be installed and run through the memory 51 and the processor 50 .
存储器51可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据交互智能平板的使用所创建的数据等。此外,存储器51可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器51可进一步包括相对于处理器50远程设置的存储器,这些远程存储器可以通过网络连接至交互智能平板。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 51 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required by a function; the data storage area may store data created according to the use of the interactive smart tablet, and the like. In addition, the memory 51 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some examples, the memory 51 may further include a memory that is remotely located relative to the processor 50, and these remote memories may be connected to the interactive smart panel through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置52可用于接收输入的数字或字符信息,以及产生与交互智能平板的用户设置以及功能控制有关的键信号输入,还可包括音频采集装置。输出装置53可包括扬声器等音频播放设备。显示屏54用于根据处理器50的指示显示数据,如显示第一界面,再如将第一界面切换为第二界面等。The input device 52 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the interactive smart tablet, and can also include an audio collection device. The output device 53 may include audio playback equipment such as speakers. The display screen 54 is used to display data according to the instructions of the processor 50, such as displaying the first interface, or switching the first interface to the second interface and so on.
上述交互智能平板包含切换控制装置,可以用于执行任意切换控制方法,具备相应的功能和有益效果。The above-mentioned interactive smart tablet includes a switching control device, which can be used to execute any switching control method, and has corresponding functions and beneficial effects.
本申请一个实施例还提供了一种切换控制的程序,该程序被执行时,可以实现上述实施例中与切换控制方法有关的操作。An embodiment of the present application further provides a switching control program. When the program is executed, operations related to the switching control method in the above embodiments can be implemented.
一个实施例中,参考图1所示的流程图,切换控制的程序被执行时具体是:接收设备启动指令;响应于设备启动指令,启动交互智能平板并显示自定义的开机画面;开机画面停止显示后,显示第一虚拟系统的第一界面,第一界面为第一虚拟系统的系统桌面,第一界面显 示有第一虚拟系统中安装的第一应用的第一应用图标和第二虚拟系统中安装的第二应用的第二应用图标,第二虚拟系统为至少一个;接收第一选择指令,第一选择指令用于在第二应用图标中选择目标应用图标;响应于第一选择指令,将第一界面更换为第二界面,第二界面是目标应用图标对应的第二应用开启后显示的应用界面。In one embodiment, with reference to the flow chart shown in Figure 1, when the switching control program is executed, it is specifically: receiving a device startup instruction; in response to the device startup instruction, starting the interactive smart panel and displaying a custom startup screen; the startup screen stops After displaying, the first interface of the first virtual system is displayed, the first interface is the system desktop of the first virtual system, and the first interface displays the first application icon of the first application installed in the first virtual system and the second virtual system There is at least one second application icon of the second application installed in the second virtual system; a first selection instruction is received, and the first selection instruction is used to select a target application icon among the second application icons; in response to the first selection instruction, The first interface is replaced with a second interface, and the second interface is an application interface displayed after the second application corresponding to the target application icon is started.
需说明,切换控制的程序被执行时,除了执行上述操作外,还可以执行上述切换控制方法实施例中提及的任意操作,且具备相应的功能和有益效果。It should be noted that when the switching control program is executed, in addition to performing the above operations, any operation mentioned in the above switching control method embodiments may also be performed, and have corresponding functions and beneficial effects.
此外,本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本申请任意实施例所提供的切换控制方法中的相关操作,且具备相应的功能和有益效果。In addition, an embodiment of the present application also provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to perform related operations in the handover control method provided in any embodiment of the present application when executed by a computer processor. , and have corresponding functions and beneficial effects.
其中,包含计算机可执行指令的存储介质可安装在对应的电子设备。Wherein, the storage medium containing the computer-executable instructions can be installed in the corresponding electronic device.
一个实施例中,包含计算机可执行指令的存储介质执行切换控制方法时,其安装的电子设备为交互智能平板。交互智能平板安装有多类操作系统,其中,操作系统包括但不限定于iOS系统、Android系统、Linux系统、Windows系统、UOS系统等。在一个实施例中,交互智能平板安装有Linux系统,并将Linux系统作为交互智能平板的主操作系统安装在交互智能平板的芯片中,该芯片可理解为物理CPU。交互智能平板安装还安装有Android系统、Windows系统、UOS系统等操作系统,并将上述操作系统以虚拟操作系统的方式安装在Linux系统中。一般而言,虚拟操作系统是指依托于虚拟化技术安装的操作系统。其中,虚拟化通常是指计算元件在虚拟的基础上而不是真实的基础上运行,虚拟化技术可以扩大硬件的容量,简化软件的重新配置过程。应用虚拟化技术时,Linux系统作为交互智能平板的Host OS。可理解,虚拟化技术中,可以在物理机器上安装操作系统,然后在这个操作系统上安装虚拟化软件,这样就可以在物理机器上虚拟化出若干分区,以分别安装不同的操作系统,这时,在物理机器上安装的操作系统就叫做Host OS。交互智能平板作为物理机器时,Host OS为主操作系统,其是Linux系统。一个实施例中,每个虚拟操作系统均通过对应的虚拟机实现,虚拟机是指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统,一个虚拟机对应交互智能平板中的一个分区,以安装对应的虚拟操作系统。每个虚拟机包含虚拟GPU和虚拟CPU,虚拟GPU生成并发送虚拟操作系统运行过程中的画面,如虚拟操作系统的系统桌面、虚拟操作系统安装的应用程序运行时的应用界面。虚拟CPU实现虚拟操作系统的运行。一个实施例中,通过Host OS中的虚拟机管理器(Virtual Machine Manager,VMM)服务使Host OS与各虚拟操作系统进行通信,其中,VMM服务是Host OS的一个系统服务,用于启动与管理多个虚拟化系统。示例性的,交互智能平板还包括至少一块显示屏,该显示屏可以是具有触控功能的显示屏也可以是不具有触控功能的显示屏,一个实施例中,以交互智能平板包含具有触控功能的显示屏为例进行描述,即交互智能平板的使用者可以通过触摸显示屏的显示对交互智能平板进行控制。此时,交互智能平板还安装有交互智能平板模块,交互智能平板模块包括显示的屏幕、触摸控制和高清多媒体接口(High Definition Multimedia Interface,HDMI)通道等与显示、触控和输出相关的组件。一个实施例中,VMM服务还可以与交互智能平板模块进行数据通信,以在显示屏接收到一些与虚拟操作系统有关的触控操作时,通过交互智能平板模块通知VMM服务对触控操作进行响应,以实现对虚拟操作系统的控制,如切换当前运行的虚拟操作系统。示例性的,交互智能平板可 以基于各操作系统(包括主操作系统和虚拟操作系统)安装至少一个应用程序,其中,应用程序可实现的功能实施例不作限定。应用程序可以是各操作系统自带的应用程序,也可以是从第三方设备或服务器中下载的应用程序。一个实施例中,以虚拟操作系统安装应用程序为例进行描述,此时,每个虚拟操作系统均安装至少一个应用程序,且安装的应用程序的应用图标可以显示在对应虚拟操作系统的系统桌面上。一个实施例中,Linux系统没有安装桌面环境,即Linux系统始终在后台运行,对于交互智能平板的使用者而言,在显示屏中不会观看到Linux系统的运行界面。而各虚拟操作系统具备桌面环境,即交互智能平板的使用者使用虚拟操作系统时,虚拟操作系统的系统桌面可以显示在显示屏中。In one embodiment, when the storage medium containing computer-executable instructions executes the switching control method, the electronic device installed therein is an interactive smart tablet. There are many types of operating systems installed on the interactive smart tablet, among which the operating systems include but are not limited to iOS system, Android system, Linux system, Windows system, UOS system and so on. In one embodiment, the interactive smart tablet is installed with a Linux system, and the Linux system is installed in a chip of the interactive smart tablet as a main operating system of the interactive smart tablet, and the chip can be understood as a physical CPU. The interactive smart tablet is also installed with operating systems such as Android system, Windows system, and UOS system, and the above operating systems are installed in the Linux system in the form of a virtual operating system. Generally speaking, a virtual operating system refers to an operating system installed on the basis of a virtualization technology. Among them, virtualization generally means that computing elements run on a virtual basis rather than a real basis. Virtualization technology can expand the capacity of hardware and simplify the reconfiguration process of software. When virtualization technology is applied, the Linux system is used as the Host OS of the interactive smart tablet. It can be understood that in virtualization technology, an operating system can be installed on a physical machine, and then virtualization software can be installed on this operating system, so that several partitions can be virtualized on the physical machine to install different operating systems respectively. , the operating system installed on the physical machine is called Host OS. When the interactive smart tablet is used as a physical machine, Host OS is the main operating system, which is a Linux system. In one embodiment, each virtual operating system is implemented by a corresponding virtual machine, and a virtual machine refers to a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment. A virtual machine corresponds to an interactive A partition in the smart tablet to install the corresponding virtual operating system. Each virtual machine includes a virtual GPU and a virtual CPU, and the virtual GPU generates and sends images during the running of the virtual operating system, such as the system desktop of the virtual operating system and the application interface of the running application program installed in the virtual operating system. The virtual CPU implements the operation of the virtual operating system. In one embodiment, the Host OS communicates with each virtual operating system through a virtual machine manager (Virtual Machine Manager, VMM) service in the Host OS, wherein the VMM service is a system service of the Host OS for starting and managing Multiple virtualization systems. Exemplarily, the interactive smart panel further includes at least one display screen, which may be a display screen with a touch function or a display screen without a touch function. In one embodiment, the interactive smart The display screen with the control function is described as an example, that is, the user of the interactive smart tablet can control the interactive smart tablet by touching the display on the display screen. At this time, the interactive smart panel is also equipped with an interactive smart panel module, which includes components related to display, touch control and output such as a displayed screen, touch control and high definition multimedia interface (High Definition Multimedia Interface, HDMI) channel. In one embodiment, the VMM service can also perform data communication with the interactive smart panel module, so that when the display screen receives some touch operations related to the virtual operating system, the interactive smart panel module notifies the VMM service to respond to the touch operation , so as to control the virtual operating system, such as switching the currently running virtual operating system. Exemplarily, the interactive smart tablet can install at least one application program based on each operating system (including the main operating system and the virtual operating system), where the implementation of the function of the application program is not limited. The application program may be a built-in application program of each operating system, or may be an application program downloaded from a third-party device or server. In one embodiment, the virtual operating system is used to install the application program as an example. At this time, each virtual operating system installs at least one application program, and the application icon of the installed application program can be displayed on the system desktop of the corresponding virtual operating system superior. In one embodiment, the Linux system does not have a desktop environment installed, that is, the Linux system is always running in the background, and for the user of the interactive smart tablet, the running interface of the Linux system will not be seen on the display screen. And each virtual operating system has a desktop environment, that is, when the user of the interactive smart tablet uses the virtual operating system, the system desktop of the virtual operating system can be displayed on the display screen.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram. These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. The memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含, 从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments and technical principles used in this application. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.

Claims (16)

  1. 一种切换控制方法,其中,包括:A switching control method, including:
    接收设备启动指令;Receive device startup instructions;
    响应于所述设备启动指令,启动交互智能平板并显示自定义的开机画面;In response to the device startup instruction, start the interactive smart tablet and display a customized startup screen;
    开机画面停止显示后,显示第一虚拟系统的第一界面,所述第一界面为所述第一虚拟系统的系统桌面,所述第一界面显示有所述第一虚拟系统中安装的第一应用的第一应用图标和第二虚拟系统中安装的第二应用的第二应用图标,所述第二虚拟系统为至少一个;After the start-up screen stops displaying, the first interface of the first virtual system is displayed, the first interface is the system desktop of the first virtual system, and the first interface is displayed with the first virtual system installed in the first virtual system. The first application icon of the application and the second application icon of the second application installed in the second virtual system, the second virtual system is at least one;
    接收第一选择指令,所述第一选择指令用于在所述第二应用图标中选择目标应用图标;receiving a first selection instruction, the first selection instruction is used to select a target application icon among the second application icons;
    响应于所述第一选择指令,将所述第一界面更换为第二界面,所述第二界面是所述目标应用图标对应的第二应用开启后显示的应用界面。In response to the first selection instruction, the first interface is replaced with a second interface, and the second interface is an application interface displayed after the second application corresponding to the target application icon is started.
  2. 根据权利要求1所述的切换控制方法,其中,所述将所述第一界面更换为第二界面之后,还包括:The switching control method according to claim 1, wherein, after replacing the first interface with the second interface, further comprising:
    接收应用退出指令;Receive an application exit command;
    响应于所述应用退出指令,退出所述目标应用图标对应的第二应用,并将所述第二界面更换为第三界面,所述第三界面为所述第二应用所属的第二虚拟系统的系统桌面,所述第三界面显示有所述第一虚拟系统的所述第一应用图标和所述第二虚拟系统的所述第二应用图标。In response to the application exit instruction, exit the second application corresponding to the target application icon, and replace the second interface with a third interface, the third interface being the second virtual system to which the second application belongs system desktop, the third interface displays the first application icon of the first virtual system and the second application icon of the second virtual system.
  3. 根据权利要求1所述的切换控制方法,其中,所述开机画面停止显示后,显示第一虚拟系统的第一界面之后,还包括:The switching control method according to claim 1, wherein after the display of the startup screen stops and the first interface of the first virtual system is displayed, further comprising:
    接收屏幕控制指令;Receive screen control commands;
    响应于所述屏幕控制指令,在所述第一界面中显示虚拟控制区域,所述虚拟控制区域显示有所述第一虚拟系统的第一系统图标和所述第二虚拟系统的第二系统图标;In response to the screen control instruction, displaying a virtual control area in the first interface, the virtual control area displays a first system icon of the first virtual system and a second system icon of the second virtual system ;
    接收第二选择指令,所述第二选择指令用于在所述第二系统图标中选择目标系统图标;receiving a second selection instruction, the second selection instruction being used to select a target system icon among the second system icons;
    响应于所述第二选择指令,将所述第一界面更换为第四界面,所述第四界面是所述目标系统图标对应的第二虚拟系统的系统桌面。In response to the second selection instruction, the first interface is replaced with a fourth interface, and the fourth interface is the system desktop of the second virtual system corresponding to the target system icon.
  4. 根据权利要求1所述的切换控制方法,其中,所述响应于所述设备启动指令,启动交互智能平板并显示自定义的开机画面包括:The switching control method according to claim 1, wherein, in response to the device startup instruction, starting the interactive smart tablet and displaying a customized startup screen comprises:
    响应于所述设备启动指令,启动交互智能平板的主操作系统,所述主操作系统中安装有所述第一虚拟系统和所述第二虚拟系统,所述主操作系统为不具备桌面环境的操作系统;In response to the device startup instruction, start the main operating system of the interactive smart panel, the first virtual system and the second virtual system are installed in the main operating system, and the main operating system is a system that does not have a desktop environment. operating system;
    所述主操作系统的启动过程中,显示自定义的开机画面。During the startup process of the main operating system, a customized startup screen is displayed.
  5. 根据权利要求1所述的切换控制方法,其中,所述开机画面停止显示后,显示第一虚拟系统的第一界面之前,包括:The switching control method according to claim 1, wherein after the start-up screen stops displaying and before displaying the first interface of the first virtual system, the steps include:
    启动第一虚拟系统和第二虚拟系统;start the first virtual system and the second virtual system;
    当所述第一虚拟系统输出启动画面时,停止显示所述开机画面;When the first virtual system outputs a startup screen, stop displaying the startup screen;
    所述开机画面停止显示后,显示第一虚拟系统的第一界面包括:After the startup screen stops displaying, displaying the first interface of the first virtual system includes:
    所述开机画面停止显示后,显示所述第一虚拟系统的所述启动画面,并在后台挂起所述第二虚拟系统;After the startup screen stops displaying, display the startup screen of the first virtual system, and suspend the second virtual system in the background;
    所述启动画面停止显示后,显示所述第一虚拟化系统的第一界面。After the start-up image stops displaying, the first interface of the first virtualization system is displayed.
  6. 根据权利要求5所述的切换控制方法,其中,所述显示所述第一虚拟系统的所述启动画面,并在后台挂起所述第二虚拟系统之后,包括:The switching control method according to claim 5, wherein, after displaying the startup screen of the first virtual system and suspending the second virtual system in the background, the steps include:
    启动VMM服务中的VMM消息管理服务,所述VMM服务为所述主操作系统提供的服务,所述VMM消息管理服务驱动所述第一虚拟系统和所述第二虚拟系统的管理和运行。Starting the VMM message management service in the VMM service, the VMM service is a service provided by the main operating system, and the VMM message management service drives the management and operation of the first virtual system and the second virtual system.
  7. 根据权利要求6所述的切换控制方法,其中,所述启动第一虚拟系统和第二虚拟系统包括:The switching control method according to claim 6, wherein said starting the first virtual system and the second virtual system comprises:
    读取所述主操作系统中所述VMM服务的配置文件;Read the configuration file of the VMM service in the host operating system;
    根据所述配置文件解析出所述第一虚拟系统和所述第二虚拟系统的配置参数;Analyzing configuration parameters of the first virtual system and the second virtual system according to the configuration file;
    根据所述配置参数启动所述第一虚拟系统和所述第二虚拟系统。Starting the first virtual system and the second virtual system according to the configuration parameters.
  8. 根据权利要求6所述的切换控制方法,其中,所述第一虚拟系统设置有第一图标服务,所述第二虚拟系统设置有第二图标服务;The switching control method according to claim 6, wherein the first virtual system is provided with a first icon service, and the second virtual system is provided with a second icon service;
    所述响应于所述第一选择指令,将所述第一界面更换为第二界面包括:In response to the first selection instruction, replacing the first interface with the second interface includes:
    由所述第一图标服务根据所述第一选择指令生成切换消息,所述切换消息包括所述目标应用图标和所述目标应用图标所属的第二虚拟系统;generating a switching message by the first icon service according to the first selection instruction, the switching message including the target application icon and the second virtual system to which the target application icon belongs;
    由所述第一图标服务将所述切换消息发送至所述VMM消息管理服务;sending the switching message to the VMM message management service by the first icon service;
    根据所述切换消息,由所述VMM消息管理服务通知所述目标应用图标所属的第二虚拟系统的第二图标服务开启所述目标应用图标对应的第二应用;According to the switching message, the VMM message management service notifies the second icon service of the second virtual system to which the target application icon belongs to start the second application corresponding to the target application icon;
    由所述第二图标服务开启所述目标应用图标对应的第二应用;Opening a second application corresponding to the target application icon by the second icon service;
    由所述VMM服务获取所述第二应用的第二界面,并将所述第一界面更换为所述第二界面。The VMM service obtains the second interface of the second application, and replaces the first interface with the second interface.
  9. 根据权利要求8所述的切换控制方法,其中,所述根据所述切换消息,由所述VMM消息管理服务通知所述目标应用图标所属的第二虚拟系统的第二图标服务开启所述目标应用图标对应的第二应用包括:The switching control method according to claim 8, wherein, according to the switching message, the VMM message management service notifies the second icon service of the second virtual system to which the target application icon belongs to start the target application The second application corresponding to the icon includes:
    根据所述切换消息,由所述VMM消息管理服务指示删除所述第一虚拟系统的触摸设备;According to the switching message, the VMM message management service instructs to delete the touch device of the first virtual system;
    由所述VMM消息管理服务指示删除所述第一虚拟系统的USB设备;The VMM message management service instructs to delete the USB device of the first virtual system;
    由所述VMM消息管理服务指示后台挂起所述第一虚拟系统;The VMM message management service instructs the background to suspend the first virtual system;
    由所述VMM消息管理服务指示恢复运行所述目标应用图标所属的第二虚拟系统;The VMM message management service instructs to resume running the second virtual system to which the target application icon belongs;
    由所述VMM消息管理服务指示所述第二虚拟系统添加触摸设备;instructing the second virtual system to add a touch device by the VMM message management service;
    由所述VMM消息管理服务通知所述第二虚拟系统的第二图标服务开启所述目标应用图标对应的第二应用;The VMM message management service notifies the second icon service of the second virtual system to start the second application corresponding to the target application icon;
    所述将所述第一界面更换为第二界面之后,包括:After replacing the first interface with the second interface, it includes:
    由所述VMM消息管理服务指示所述第二虚拟系统添加USB设备。The VMM message management service instructs the second virtual system to add a USB device.
  10. 根据权利要求6所述的切换控制方法,其中,所述启动第一虚拟系统和第二虚拟系统时,还包括:The switching control method according to claim 6, wherein, when starting the first virtual system and the second virtual system, further comprising:
    由所述VMM服务将所述主操作系统中配置的共享目录挂载到所述第一虚拟系统和所述第二虚拟系统;Mounting the shared directory configured in the main operating system to the first virtual system and the second virtual system by the VMM service;
    由第一图标服务和第二图标服务分别收集第一应用信息和第二应用信息,所述第一应用信息包括所述第一应用的第一应用图标和第一路径信息,所述第二应用信息包括所述第二应用的第二应用图标和第二路径信息;The first application information and the second application information are respectively collected by the first icon service and the second icon service, the first application information includes the first application icon and the first path information of the first application, and the second application The information includes a second application icon and second path information of the second application;
    由所述第一图标服务和所述第二图标服务分别将所述第一应用信息和所述第二应用信息更新到所述共享目录;updating the first application information and the second application information to the shared directory by the first icon service and the second icon service, respectively;
    所述显示第一虚拟系统的第一界面时,还包括:When displaying the first interface of the first virtual system, it also includes:
    由所述第一图标服务读取所述共享目录中记录的第二应用信息;reading the second application information recorded in the shared directory by the first icon service;
    由所述第一图标服务根据所述第二应用信息在所述第一界面中显示所述第二应用图标。The second application icon is displayed on the first interface by the first icon service according to the second application information.
  11. 根据权利要求10所述的切换控制方法,其中,当所述第一应用和/或第二应用更新时,所述共享目录中的第一应用信息和/或第二应用信息同步更新。The switching control method according to claim 10, wherein when the first application and/or the second application are updated, the first application information and/or the second application information in the shared directory are updated synchronously.
  12. 根据权利要求3所述的切换控制方法,其中,所述虚拟控制区域由交互智能平板的显示屏组件提供;The switching control method according to claim 3, wherein the virtual control area is provided by a display screen component of an interactive smart panel;
    所述启动交互智能平板并显示自定义的开机画面之后,包括:After starting the interactive smart tablet and displaying the customized boot screen, it includes:
    由所述显示屏组件通过VMM服务向所述第一虚拟系统和所述第二虚拟系统发送查询指令,以通过所述查询指令获取所述第一虚拟系统的第一系统图标和所述第二虚拟系统的第二系统图标;The display screen component sends a query instruction to the first virtual system and the second virtual system through the VMM service, so as to obtain the first system icon of the first virtual system and the second virtual system through the query instruction. The second system icon of the virtual system;
    由所述显示屏组件在所述虚拟控制区域中添加所述第一系统图标和所述第二系统图标。adding the first system icon and the second system icon in the virtual control area by the display screen component.
  13. 根据权利要求12所述的切换控制方法,其中,所述接收第二选择指令包括:The switching control method according to claim 12, wherein said receiving the second selection instruction comprises:
    由所述显示屏组件根据作用于第二系统图标的触控选择操作生成第二选择指令;generating a second selection instruction by the display screen component according to a touch selection operation acting on a second system icon;
    由所述VMM服务的VMM消息管理服务接收所述显示屏组件发送的所述第二选择指令;The VMM message management service of the VMM service receives the second selection instruction sent by the display screen component;
    所述响应于所述第二选择指令,将所述第一界面更换为第四界面包括:In response to the second selection instruction, replacing the first interface with the fourth interface includes:
    响应于所述第二选择指令,由所述VMM消息管理服务指示删除所述第一虚拟系统的触摸设备;In response to the second selection instruction, the VMM message management service instructs to delete the touch device of the first virtual system;
    由所述VMM消息管理服务指示删除所述第一虚拟系统的USB设备;The VMM message management service instructs to delete the USB device of the first virtual system;
    由所述VMM消息管理服务指示后台挂起所述第一虚拟系统;The VMM message management service instructs the background to suspend the first virtual system;
    由所述VMM消息管理服务指示恢复运行所述目标系统图标对应的第二虚拟系统;Instructing by the VMM message management service to resume running the second virtual system corresponding to the target system icon;
    由所述VMM消息管理服务指示所述第二虚拟系统添加触摸设备;instructing the second virtual system to add a touch device by the VMM message management service;
    由所述VMM服务获取所述第二虚拟系统的第四界面,并将所述第一界面更换为所述第四界面;obtaining a fourth interface of the second virtual system by the VMM service, and replacing the first interface with the fourth interface;
    由所述VMM消息管理服务为所述第二虚拟系统添加USB设备。A USB device is added to the second virtual system by the VMM message management service.
  14. 一种切换控制装置,其中,包括:A switching control device, including:
    第一接收模块,配置为接收设备启动指令;The first receiving module is configured to receive a device startup instruction;
    第一响应模块,配置为响应于所述设备启动指令,启动交互智能平板并显示自定义的开机画面:The first response module is configured to respond to the device startup instruction, start the interactive smart tablet and display a customized startup screen:
    第一显示模块,配置为开机画面停止显示后,显示第一虚拟系统的第一界面,所述第一界面为所述第一虚拟系统的系统桌面,所述第一界面显示有所述第一虚拟系统中安装的第一应用的第一应用图标和第二虚拟系统中安装的第二应用的第二应用图标,所述第二虚拟系统为至少一个;The first display module is configured to display the first interface of the first virtual system after the startup screen stops displaying, the first interface is the system desktop of the first virtual system, and the first interface displays the first The first application icon of the first application installed in the virtual system and the second application icon of the second application installed in the second virtual system, the second virtual system is at least one;
    第二接收模块,配置为接收第一选择指令,所述第一选择指令用于在所述第二应用图标中选择目标应用图标;The second receiving module is configured to receive a first selection instruction, the first selection instruction is used to select a target application icon among the second application icons;
    第二响应模块,配置为响应于所述第一选择指令,将所述第一界面更换为第二界面,所述第二界面是所述目标应用图标对应的第二应用开启后显示的应用界面。The second response module is configured to replace the first interface with a second interface in response to the first selection instruction, and the second interface is an application interface displayed after the second application corresponding to the target application icon is started. .
  15. 一种交互智能平板,其中,包括:An interactive smart tablet, including:
    一个或多个处理器;one or more processors;
    存储器,用于存储一个或多个程序;memory for storing one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-13中任一所述的切换控制方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the switching control method according to any one of claims 1-13.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-13中任一所述的切换控制方法。A computer-readable storage medium, on which a computer program is stored, wherein, when the program is executed by a processor, the switching control method according to any one of claims 1-13 is implemented.
PCT/CN2022/105293 2021-07-12 2022-07-12 Switching control method and apparatus, interactive smart tablet, and storage medium WO2023284755A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110786882.9 2021-07-12
CN202110786882.9A CN115617223A (en) 2021-07-12 2021-07-12 Switching control method and device, interactive intelligent panel and storage medium

Publications (1)

Publication Number Publication Date
WO2023284755A1 true WO2023284755A1 (en) 2023-01-19

Family

ID=84855014

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/105293 WO2023284755A1 (en) 2021-07-12 2022-07-12 Switching control method and apparatus, interactive smart tablet, and storage medium

Country Status (2)

Country Link
CN (1) CN115617223A (en)
WO (1) WO2023284755A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080158A (en) * 2021-03-12 2022-09-20 Oppo广东移动通信有限公司 Interface display method and device, terminal equipment and computer readable storage medium
CN116775118A (en) * 2022-03-09 2023-09-19 华为技术有限公司 Method for running application programs across systems and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110126139A1 (en) * 2009-11-23 2011-05-26 Samsung Electronics Co., Ltd. Apparatus and method for switching between virtual machines
CN104360900A (en) * 2014-11-03 2015-02-18 上海迈微软件科技有限公司 Method for operating multiple operating systems and corresponding system and mobile equipment
CN104536802A (en) * 2014-12-19 2015-04-22 中兴通讯股份有限公司 Method for achieving calling of applications and virtual machine
CN108062237A (en) * 2017-11-23 2018-05-22 上海博泰悦臻电子设备制造有限公司 Compatibility method and system, the storage medium and car-mounted terminal of linux system and android system
CN111273948A (en) * 2019-06-24 2020-06-12 深圳市鸿合创新信息技术有限责任公司 Cross-system program starting method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110126139A1 (en) * 2009-11-23 2011-05-26 Samsung Electronics Co., Ltd. Apparatus and method for switching between virtual machines
CN104360900A (en) * 2014-11-03 2015-02-18 上海迈微软件科技有限公司 Method for operating multiple operating systems and corresponding system and mobile equipment
CN104536802A (en) * 2014-12-19 2015-04-22 中兴通讯股份有限公司 Method for achieving calling of applications and virtual machine
CN108062237A (en) * 2017-11-23 2018-05-22 上海博泰悦臻电子设备制造有限公司 Compatibility method and system, the storage medium and car-mounted terminal of linux system and android system
CN111273948A (en) * 2019-06-24 2020-06-12 深圳市鸿合创新信息技术有限责任公司 Cross-system program starting method and electronic equipment

Also Published As

Publication number Publication date
CN115617223A (en) 2023-01-17

Similar Documents

Publication Publication Date Title
WO2023284755A1 (en) Switching control method and apparatus, interactive smart tablet, and storage medium
RU2646376C2 (en) User interface elements for multiple displays
CN106843715B (en) Touch support for remoted applications
US8527679B2 (en) Apparatus and method for adaptation of input/output interface in virtualization environment
RU2734109C1 (en) Method of playing multiple video on mobile terminal, mobile terminal and readable storage medium
JP7346606B2 (en) Screen sharing processing method, device, equipment and storage medium
CN108932087B (en) Desktop split screen system for mobile equipment and implementation method thereof
US20120084542A1 (en) Multi-Operating System
JP2022529118A (en) Intelligent interactive tablet operation method, storage medium and related devices
WO2019100985A1 (en) Page processing method and mobile terminal
CN102665130A (en) Method and device for displaying application program window and video playing window
EP2622462A2 (en) Multi-operating system
WO2019201140A1 (en) Application display method and apparatus, storage medium, and electronic device
US10178170B2 (en) Browser-based virtual media administration
JP2021524104A (en) Master / Standby Container System Switching
WO2018000300A1 (en) Data operation method for electronic device, and electronic device
CN110062287B (en) Target object control method and device, storage medium and electronic equipment
WO2021190319A1 (en) Interface access method, display apparatus, and electronic device
US20210055946A1 (en) Minimizing downtime when importing virtual machines from other platforms
WO2024103831A1 (en) Desktop window display method and device, and terminal and storage medium
WO2024098974A1 (en) Display device and control method for external device
WO2023179183A1 (en) Subprogram synchronization processing
WO2023056620A1 (en) Desktop application control method and apparatus, electronic device and storage medium
WO2022111472A1 (en) Game control method, apparatus, and storage medium
US11487559B2 (en) Dynamically switching between pointer modes

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22841389

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE