CN105573816B - The method, apparatus and system virtually inputted - Google Patents
The method, apparatus and system virtually inputted Download PDFInfo
- Publication number
- CN105573816B CN105573816B CN201510921140.7A CN201510921140A CN105573816B CN 105573816 B CN105573816 B CN 105573816B CN 201510921140 A CN201510921140 A CN 201510921140A CN 105573816 B CN105573816 B CN 105573816B
- Authority
- CN
- China
- Prior art keywords
- virtual
- operating system
- host operating
- virtual opetrating
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 191
- 238000004891 communication Methods 0.000 claims abstract description 56
- 230000008569 process Effects 0.000 claims description 141
- 238000004088 simulation Methods 0.000 claims description 69
- 238000012545 processing Methods 0.000 claims description 22
- 230000000977 initiatory effect Effects 0.000 claims description 18
- 238000004886 process control Methods 0.000 claims description 13
- 238000006243 chemical reaction Methods 0.000 claims description 11
- 239000011800 void material Substances 0.000 claims description 6
- 230000000694 effects Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 238000007792 addition Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000002045 lasting effect Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000003071 parasitic effect Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45545—Guest-host, i.e. hypervisor is an application program itself, e.g. VirtualBox
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses method, apparatus and system that one kind virtually inputs, and method therein includes: the communication connection established between host operating system and virtual opetrating system;User's customizing keyboard interface is provided in host operating system, receives and stores the corresponding relationship of user-defined key information and control command;After host operating system receives the key information of user's input, according to corresponding relationship, the corresponding control command of key information of user's input is determined;By communication connection, host operating system provides the input control message based on the control command to the virtual opetrating system, is handled by virtual opetrating system input control message.As it can be seen that the present invention provides a user customizing keyboard, and it can be user-friendly, so that user be allowed virtually to be inputted according to personal habits, promote user's impression.
Description
Technical field
The present invention relates to fields of communication technology, and in particular to the method, apparatus and system that one kind virtually inputs.
Background technique
It is universal with mobile intelligent terminal in recent years, the rapid development of mobile Internet has been expedited the emergence of, it is now many kinds of
And colourful application allows mobile intelligent terminal to can satisfy the various demands of people.But due to technology in some aspects
Bottleneck, inevitably limitation (is such as grasped when using mobile device by the cruising ability of such as battery, the size of screen and user
The precision etc. of work), it can all influence the usage experience of user.So if the operation ring of mobile terminal can be simulated on PC
Border, and give full play to the advantage of PC, such as the accurate behaviour of the gorgeous picture effect of lasting electric power, large screen, keyboard and mouse
Make etc., it can largely meet the experience that user is unable to get on mobile intelligent terminal.
For example, the interface that hand is swum is transplanted on the PC of bigger display, can be obtained more for many game players
Good gaming experience.However, being limited to the input limitation of PC, it is only capable of manipulating by the keyboard of PC or mouse opponent trip, and
The operating habit of each user is different, very inconvenient if limitation user is only capable of manipulating using keyboard specific keys.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State the method, apparatus virtually inputted and system of problem.
According to one aspect of the present invention, a kind of method virtually inputted is provided, for parasitizing host operating system
Virtual opetrating system inputted, which comprises
Establish the communication connection between the host operating system and the virtual opetrating system;
User's customizing keyboard interface is provided in the host operating system, receives and stores user-defined key letter
The corresponding relationship of breath and control command;
After the host operating system receives the key information of user's input, according to the corresponding relationship, user is determined
The corresponding control command of the key information of input;
By the communication connection, the host operating system is provided to the virtual opetrating system and is ordered based on the control
The input control message of order is handled input control message by the virtual opetrating system.
Preferably, the communication connection established between the host operating system and the virtual opetrating system, comprising:
Program, which is controlled, by the simulation in the host operating system starts the virtual opetrating system;
The virtual opetrating system passes through basic process and loads predefined script, thus by the IP of the virtual opetrating system
Address is supplied to the host operating system, and, service processes are virtually inputted by the basic process initiation;
The host operating system establishes the simulation control program and institute according to the IP address of the virtual opetrating system
State the connection between virtual input service processes.
Preferably,
After the corresponding control command of key information that the host operating system determines user's input, further includes: institute
Host operating system is stated to be translated to obtain input control message according to the control command, it will be described defeated by simulation control program
Enter control message and is sent to the virtual input service processes;
It is described by the virtual opetrating system to input control message carry out processing include: the virtual opetrating system to institute
It states input control message to be interpreted, obtains the identifiable input control signal of the virtual opetrating system.
It is preferably, described to be translated to obtain input control message according to the control command, comprising:
The simulation control program translates the control command and control parameter, generates the input control and disappears
Breath.
Preferably, the virtual input service processes are interpreted the input control message, obtain the virtual behaviour
Make the identifiable input control signal of system, comprising:
The input control message received to the virtual input service processes is interpreted, and obtains the control life
It enables;
Hardware abstraction layer HAL conversion is carried out to the control command that interpretation obtains, obtaining the virtual opetrating system can recognize
Input control signal.
Preferably,
The virtual opetrating system operates in and another mutually independent object of physical equipment where the host operating system
It manages in equipment;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in the host operating system
On the physical equipment at place, alternatively, the virtual machine operate in it is different from physical equipment where the host operating system another
On one physical equipment.
Preferably, the virtual machine is VirtualBox virtual machine;
The simulation by the host operating system controls program and starts the virtual opetrating system, comprising: logical
The simulation control process control VirtualBox virtual machine in the host operating system is crossed, is started by VirtualBox virtual machine
The virtual opetrating system.
Preferably, the virtual machine is VirtualBox virtual machine;
The virtual opetrating system passes through basic process and loads predefined script, thus by the IP of the virtual opetrating system
Address is supplied to the host operating system, comprising:
The virtual opetrating system loads predefined script by init process, runs the client of VirtualBox virtual machine
Extension element, by the client properties of the IP address write-in VirtualBox virtual machine of the virtual opetrating system;
The host operating system reads the client properties of the VirtualBox virtual machine, obtains the pseudo operation system
The IP address of system.
Preferably,
It is described that service processes are virtually inputted by the basic process initiation, comprising: to pass through init process initiation vinput
Process;
The connection established between the simulation control program and the virtual input service processes, comprising: described
The designated port of virtual opetrating system, the vinput process establish the connection with the simulation control program.
Preferably, by simulation in the host operating system control program start the virtual opetrating system it
Before, further includes: the host operating system configures the virtual network that one is specifically used to communicate with the virtual opetrating system and connects
It connects so that host operating system is connected in virtual network connection with virtual opetrating system.
Preferably, the host operating system includes Windows operating system, Mac operating system or Linux operation system
System;The virtual opetrating system includes Android operation system.
A kind of device virtually inputted, for being inputted to the virtual opetrating system for parasitizing host operating system, institute
Stating device includes:
Host's virtual communication unit, the communication for establishing between the host operating system and the virtual opetrating system
Connection;
Customized unit is received and stored for providing user's customizing keyboard interface in the host operating system
The corresponding relationship of user-defined key information and control command;
Control command determination unit, for the host operating system receive user input key information after, root
According to the corresponding relationship, the corresponding control command of key information of user's input is determined;
Control command processing unit, for by the communication connection, from the host operating system to the virtual behaviour
Make system provide the input control message based on the control command, so as to the virtual opetrating system to input control message into
Row processing.
Preferably, host's virtual communication unit specifically includes:
Start virtual controlling subelement, starts the void for controlling the control program of the simulation in the host operating system
Quasi- operating system;
Virtual ip address obtains subelement, for obtaining the IP address of the virtual opetrating system;
Virtual link establishes subelement, for the IP address according to the virtual opetrating system, establishes the simulation control
The connection between service processes is virtually inputted in program and virtual opetrating system.
Preferably, the control command processing unit is specifically used for, and turns to the control command and control parameter
It translates, generates the input control message.
Preferably,
The virtual opetrating system operates in and another mutually independent object of physical equipment where the host operating system
It manages in equipment;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in the host operating system
On the physical equipment at place, alternatively, the virtual machine operate in it is different from physical equipment where the host operating system another
On one physical equipment.
Preferably, the virtual machine is VirtualBox virtual machine;The starting virtual controlling subelement is specifically used for, and leads to
The simulation control process control VirtualBox virtual machine in the host operating system is crossed, is started by VirtualBox virtual machine
The virtual opetrating system.
Preferably, the virtual machine is VirtualBox virtual machine;The virtual ip address obtains subelement and is specifically used for,
The client properties for reading the VirtualBox virtual machine, obtain the IP address of the virtual opetrating system.
Preferably, the virtual link is established subelement and is specifically used for, in the designated port of the virtual opetrating system, institute
The vinput process for stating simulation control program and the virtual opetrating system establishes connection.
Preferably, further includes:
Virtual network configuration unit is specifically used to and the pseudo operation for configuring one in the host operating system
The virtual network of system communication connects so that host operating system connects in the virtual network connects with virtual opetrating system
It is logical.
A kind of system virtually inputted, for being inputted to the virtual opetrating system for parasitizing host operating system, institute
The system of stating includes:
Host operating system, the communication connection for establishing between the virtual opetrating system, and user is provided and is made by oneself
Adopted keyboard interface receives and stores the corresponding relationship of user-defined key information and control command;Receive user's input
Key information, and according to the corresponding relationship, determine the corresponding control command of key information of user's input;Pass through the communication
Connection provides the input control message based on the control command to the virtual opetrating system,
Virtual opetrating system, the communication connection for establishing between the host operating system, and receiving host
After the input control message of operating system, input control message is handled.
Preferably,
The host operating system is also used to, and establishes the network connection with the virtual opetrating system, and pass through simulation control
Processing procedure sequence starts the virtual opetrating system, and, according to the IP address of the virtual opetrating system of acquisition, establish the mould
The connection between input service processes in quasi- control program and the virtual opetrating system;Also, determining control command
Afterwards, it is translated to obtain input control message according to the control command, program is controlled for the input control message by the simulation
It is sent to the virtual input service processes;
The virtual opetrating system is also used to, and predefined script is loaded by basic process, thus by the pseudo operation
The IP address of system is supplied to the host operating system, and, service processes are virtually inputted by the basic process initiation,
And the input control message that the simulation control program is sent is received by the virtual input service processes, also, to institute
It states the input control message that virtual input service processes receive to be interpreted, obtaining the virtual opetrating system can recognize
Input control signal.
Preferably,
The virtual opetrating system operates in and another mutually independent object of physical equipment where the host operating system
It manages in equipment;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in the host operating system
On the physical equipment at place, alternatively, the virtual machine operate in it is different from physical equipment where the host operating system another
On one physical equipment.
Preferably, the virtual machine is VirtualBox virtual machine;The host operating system is specifically used for, and passes through simulation
Process control VirtualBox virtual machine is controlled, the virtual opetrating system is started by VirtualBox virtual machine.
Preferably, the virtual machine is VirtualBox virtual machine;The virtual opetrating system is loaded by init process
Predefined script runs the client extensions component of VirtualBox virtual machine, and the IP address of the virtual opetrating system is written
The client properties of VirtualBox virtual machine;The client that the host operating system reads the VirtualBox virtual machine belongs to
Property, obtain the IP address of the virtual opetrating system.
Preferably, the virtual opetrating system passes through init process initiation vinput process;In the virtual opetrating system
Designated port, the vinput process establishes the connection with the simulation control program.
Preferably, the host operating system is specifically used for, and translates to the control command and control parameter, raw
At the input control message.
Preferably, the virtual opetrating system is specifically used for, and controls the institute received to the virtual input service processes
It states input control message to be interpreted, obtains control command;And hardware abstraction layer HAL conversion is carried out to the control command;?
To the identifiable input control signal of the virtual opetrating system.
Preferably, the host operating system configures a virtual net for being specifically used to communicate with the virtual opetrating system
Network connection so that host operating system is connected in virtual network connection with virtual opetrating system.
Preferably, the host operating system includes Windows operating system, Mac operating system or Linux operation system
System;The virtual opetrating system includes Android operation system.
As it can be seen that the method provided through the invention, can be supplied to one self-defining key of user on host operating system
The interface of disk is customized by the user the corresponding relationship of key information and control command, and after user inputs key information, by it
Corresponding control command is supplied to virtual opetrating system after processing, handled by virtual opetrating system and execute display etc..
As it can be seen that by user's customizing keyboard, it can be user-friendly, so that user is allowed virtually to be inputted according to personal habits,
Promote user's impression.
In a preferred embodiment of the invention, the input control program for running on host operating system can get pseudo operation
The IP address of system, host operating system set up communication connection by the IP address and virtual opetrating system.For example, can be real
The image of android system actual motion is seen on the window that the simulator of present host operating system shows, and passes through user
Customizing keyboard carries out input control on simulator window, and it is virtual that user input data is sent PC by simulator
Android is environmentally shown.Mode of the present invention by eliminate the reliance on VirtualBox show and input control
Mode, so would not be influenced by its drawback.It is that completely Android is customized that present invention proposition, which is input control mode, can
To reach very smooth experience, therefore, the present invention can be effectively improved the fluency and accuracy of input control.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the method according to an embodiment of the invention virtually inputted;
Fig. 2 shows in the method according to an embodiment of the invention virtually inputted it is a kind of establish host operating system with
The flow chart connected between virtual opetrating system;
Fig. 3 shows a kind of host operating system according to an embodiment of the invention and virtual opetrating system layout is illustrated
Figure;
Fig. 4 shows another host operating system according to an embodiment of the invention and shows with virtual opetrating system layout
It is intended to;
Fig. 5 shows another host operating system according to an embodiment of the invention and shows with virtual opetrating system layout
It is intended to;
Fig. 6 shows another kind in the method according to an embodiment of the invention virtually inputted and establishes host operating system
The flow chart connected between virtual opetrating system;
Fig. 7 shows the apparatus structure schematic diagram according to an embodiment of the invention virtually inputted.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
In order to realize the running environment for simulating mobile terminal on PC, Android (android) simulator comes into being.Peace
Tall and erect simulator, which is one, to simulate the simulator of Android mobile phone system in windows platform, and Android simulator can mould on computers
Android mobile phone running environment is drawn up, Android simulator allows user that can also experience Android game and application on computers.It is more commonly used
Android simulator have: Android SDK, BlueStacks can be run in PC system and apple iOS system, famous
Vmware virtual machine and Virtual Box virtual machine can also simulate Android system, these simulator softwares can be run at present
In the Windows operating system platform of Microsoft.
It will be appreciated by those skilled in the art that operating system is divided to two classes, one kind be it is primary, one kind is parasitic.Host operating system,
Belong to primary type operating system, such as windows, linux etc..In the present invention, host operating system be also referred to as Host OS,
Host system or the end Host, for example, the operating system of operation VirtualBox virtual machine.Virtual opetrating system belongs to Parasita
Operating system, colonize in the operating system of primary class.In the present invention, virtual opetrating system is also referred to as Gust OS, Gust
System or the end Gust, for example, the operating system in VirtualBox virtual machine environment is run on, it is particularly, currently preferred
Refer to the android system run in VirtualBox virtual machine environment.Wherein, VirtualBox is a open source virtual machine
Software, user can install on VirtualBox and execute Solaris, Windows, DOS, Linux, OS/2Warp, BSD
Etc. systems as client operating system.In the present invention, host operating system includes but is not limited to Windows operating system, Mac
Operating system or (SuSE) Linux OS;Virtual opetrating system includes but is not limited to Android operation system.
The present invention is inconvenient to ask to solve in the prior art to manipulate virtual opetrating system using the mouse-keyboard of PC
Topic proposes a kind of method virtually inputted, by providing user's customizing keyboard interface on host operating system, receives user
Then the corresponding relationship of user-defined press key information and control command realizes that key information arrives control command according to the corresponding relationship
Mapping, to realize input control of the user according to oneself habit to virtual opetrating system.
Referring to Fig. 1, this method comprises:
S101: the communication connection between host operating system and virtual opetrating system is established.
Communication connection between host operating system and virtual opetrating system is to realize prerequisite steps of the invention, is only existed
The two is established on the basis of communication connection, can realize the received user's input of host operating system being supplied to pseudo operation system
System, to be shown in virtual opetrating system.
Mode is established in communication connection between host operating system and virtual opetrating system, can be used existing in host
The virtual machines such as virtualbox are run in operating system, in such a way that virtual machine starts the virtual opetrating systems such as android, so
And the present invention proposes a kind of mode for reducing and communicating to connect therebetween to the foundation that virtual machine relies on, it is primarily referred to as establishing place
The communication connection channel between vinput process in Player program in master operating system and virtual opetrating system, hereinafter
It can be described in detail in conjunction with Fig. 2-6.
S102: user's customizing keyboard interface is provided in host operating system, receives and stores user-defined key
The corresponding relationship of information and control command.
Provide a user customizing keyboard interface, can be shown in advance on the interface some control command set (such as advance,
Retreat, be moved to the left, move right), it is selected for user corresponding with which key information.For example, user setting key " R " with
Order " moving right " corresponding, etc..By the interface, user can complete key information and the corresponding relationship of control command is set
It sets, is saved by host operating system.In the specific implementation, can realize " self-defining key by application programs such as similar Android simulators
Disk interface " function.
S103: after host operating system receives the key information of user's input, according to corresponding relationship, determine that user inputs
The corresponding control command of key information.
S104: by communication connection, host operating system provides the input control based on control command to virtual opetrating system
Message processed is handled input control message by virtual opetrating system.
After host operating system determines the corresponding control command of key information, in conjunction with the relevant parameter (tool of the control command
Body describes the parameter of control command, for example, the location information etc. that mouse is clicked), translation generates input control signal, then, by
Player program will the communication connection channel that established with vinput process before input control use of information be sent to vinput into
Journey.
Then, virtual opetrating system can be interpreted the input control signal that vinput process receives, and be controlled
Then order carries out hardware abstraction layer HAL (Hardware Abstraction Layer) conversion to control command;By HAL
After conversion, the identifiable input control signal of virtual opetrating system is obtained.Wherein, HAL (Hardware Abstraction
Layer, hardware abstraction layer), the effect of HAL is that the rest part of operating system is expressed as to abstract hardware device, especially
The flaw and speciality that real hardware is rich in are eliminated, these equipment, which show as the other parts of operating system and equipment, to be made
The form (function call and macro) of machine-independent service.By using HAL conversion and indirect hardware address, work as transplanting
When on to new hardware, driver and core need to only do seldom change.Transplanting HAL itself is directly, because all
Machine dependent codes all concentrate on a place, and the target transplanted sufficiently defines, that is, realize all HAL services.
In the present invention, vinput is to convert for the external input control command received from communication connection to be transformed by HAL
The intelligible input of android system, this is the innovation and application to prior art in Android.
As it can be seen that the method provided through the invention, can be supplied to one self-defining key of user on host operating system
The interface of disk is customized by the user the corresponding relationship of key information and control command, and after user inputs key information, by it
Corresponding control command is supplied to virtual opetrating system after processing, handled by virtual opetrating system and execute display etc..
As it can be seen that by user's customizing keyboard, it can be user-friendly, to virtually be inputted according to personal habits, promote user
Impression.
As previously mentioned, above-mentioned steps S101 " establishing communication connection between host operating system and virtual opetrating system " is this
Invent the premise realized.In the prior art, it is usually completely dependent on VirtualBox and realizes host operating system and void
Connection between quasi- operating system, however, realizing virtual Android system the prior art has at least the following problems: head by VirtualBox
First, it not may customize since VirtualBox virtual machine is plug-in, for this product for wishing oneself customization appearance for one
It is actually unacceptable.Secondly, if not additional input control optimization component, VirtualBox can be by user
The locking of mouse movable range on current virtual machine window, and the input control for Guest system as android
It makes actually also not smooth.It is, VirtualBox the scope of activities of mouse is locked in current window can be largely
Upper influence user experience, and the smooth of input control is not ensured that for different Guest systems.VirtualBox is by mouse
It is caused by the product strategy of VirtualBox that target scope of activities, which is locked in current window,.In addition, since VirtualBox is one
The general purpose virtual machine software of a open source, the operating system that can be run on it are also not limited to Android, although
VirtualBox can provide input control to run Guest system therein, but since there are many Guest system type, institute
It is not possible that each reaches very good effect.Its own is just not smooth enough to the input control of Android.Therefore, originally
Invention provides the new paragon connected between a kind of host operating system and virtual opetrating system.
It is proposed by the present invention it is a kind of establish the mode connected between host operating system and virtual opetrating system, subtract as far as possible
The small dependence to VirtualBox virtual machine guarantees good compatibility, and in technology while being effectively improved user experience
It is upper that there is extraordinary scalability.
Referring to fig. 2, the process for the communication connection established between host operating system and virtual opetrating system is shown.
S201: program is controlled by the simulation in host operating system and starts virtual opetrating system.
Before starting virtual opetrating system, host operating system and virtual opetrating system need to pre-establish network company
It connects, network connection can be configured by host system, for example, being specifically used to the virtual of communication by configuring (increases) one
Network connection, and host system is connected in the connection of this virtual network with virtual system.For host operating system with
Network connection between virtual opetrating system, is described as follows: 1) this virtual network connection can be provided by VirtualBox;2) right
Virtual network configuration carries out before starting virtual system, the routine operation before being each starting, to guarantee host and virtual
Grid connection;3) strategy is, if this virtual link is not present, can pass through the virtual machine creating of such as VirtualBox
One new virtual link;If virtual link has created or existing, Connecting quantity (IP address, gateway etc.) is matched
It sets, to guarantee that host is connected to virtual system.
After host operating system and virtual opetrating system establish network connection, by the simulation control in host operating system
Processing procedure sequence starts virtual opetrating system.
In the present invention, simulation control program is also referred to as player, in the specific implementation, can realize the journey in Android simulator
Sequence.As previously described, virtual opetrating system generally operates in the virtual machine such as VirtualBox, therefore, in the specific implementation, can
To be started by VirtualBox virtual machine empty by the player process control VirtualBox virtual machine in host operating system
Quasi- operating system.
S202: virtual opetrating system passes through basic process and loads predefined script, thus by the IP of virtual opetrating system
Location is supplied to host operating system, and, service processes are virtually inputted by basic process initiation.
For example, virtual machine is VirtualBox virtual machine, virtual opetrating system refers to android system.It implemented
Journey is as follows, firstly, Android system loads predefined script (shell script), operation by its basic process (init process)
The client extensions component of VirtualBox virtual machine, by the visitor of the IP address write-in VirtualBox virtual machine of Android system
Family attribute;Then, host operating system reads the client properties of VirtualBox virtual machine, with obtaining the IP of Android system
Location.
It will be appreciated by those skilled in the art that kernel, which voluntarily starts, (to be had been loaded into memory, starts to transport in Android system
Row, and initialized all device driver and data structure etc.) after, just pass through one user class program init of starting
Mode, complete boot process.So init is first process always (its process number is always 1).The present invention utilizes
Init process loads the shell script of a predefined function, realizes the client extensions component to VirtualBox virtual machine
Control.
Wherein, Shell script (Shell Script) is similar to the batch processing under Windows/Dos, that is, with all kinds of
Order is placed in advance in into a file, the convenient program file disposably executed, due to having used under Linux/Unix
Order, therefore the batch processing under shell script ratio Windows is more powerful, than the program efficiency with other programs editor
It is higher.
The client extensions component (VirtualBox Guest Additions) of VirtualBox virtual machine, also referred to as client
End enhancing packet, main function is to increase: Shared Folders, seamless window, 3D virtualization display.Client extensions component is one
The set of heap software package operates in VirtualBox virtual machine, it is intended that promoting the performance of virtual machine, increases
Interactivity and communication between Host.As it can be seen that in order to more preferably realize the interaction between Host and Guest, VirtualBox is mentioned
Guest extension element is supplied.Therefore it in the present invention, before communication connection is set up, is provided by Guest extension element
The IP address of Guest is transmitted to Host by client properties (guestproperty) mechanism.
IP address is supplied to except Host, except through loading shell script also in Android system by init process
One crucial virtual input service processes of middle starting, the present invention in also referred to as Vinput process.Vinput is in the present invention
Reach control Guest android system input, and and be placed in the critical processes in android system.It is controlled by init
The mode of system, so that guaranteeing that vinput process is also started up while Android system starting.
S203: host operating system establishes simulation control program and virtual input according to the IP address of virtual opetrating system
Connection between service processes.
Specifically, can be established to establish with Player program by vinput process and led in the designated port of virtual opetrating system
Letter connection.
By above-mentioned scheme shown in Fig. 2, the simulator (i.e. Player) for running on Host system has got Android
The IP address of system, Host set up communication connection, actual user by the vinput process in this IP address and Android
The image of android system actual motion is seen on the window that the simulator of Host system shows, and is existed by keyboard/mouse
It is inputted on simulator window, simulator after conversion, sends obtained user input data by communication connection
The vinput process in android system is arrived, these input datas are then switched to the reality to android system by vinput process
Border control.
As previously described, in the prior art VirtualBox the scope of activities of mouse is locked in current window can very great Cheng
User experience is influenced on degree, and the smooth of input control, VirtualBox will not ensured that for different Guest systems
It is caused by the product strategy of VirtualBox that the scope of activities of mouse, which is locked in current window,.And mode of the present invention will
Eliminate the reliance on VirtualBox show with input control mode, so would not be influenced by its drawback.In addition, due to
VirtualBox is the general purpose virtual machine software of an open source, and the operating system that can be run on it is also not limited to
Android, although VirtualBox can provide input control to run Guest system therein, due to Guest system
There are many type, it is impossible to which each reaches very good effect, its own just not enough flows the input control of Android
Freely, and present invention proposition be input control mode is that completely Android is customized, can achieve very smooth experience.
It will be appreciated by those skilled in the art that although the technical description of front is all with Host and Guest in same physical machine
Premised on device, but the Player due to running on Host and the actual only link of Android for running on Guest
It is a communication connection, as long as so can set up this communication connection can use technology of the invention.Therefore, i.e.,
It runs Player and Android on different physical machines, and virtual input control can be carried out.
Therefore, in specific implementation, above method includes but is not limited to that virtual opetrating system and host operating system are run
In the same operability or same physics PC machine the case where, be equally applicable to virtual opetrating system run on other operating systems or its
The case where its physics PC machine;Similarly, above method includes but is not limited to the case where virtual opetrating system is run in the form of virtual machine,
It is equally applicable to the case where virtual opetrating system runs on actual physical device.
The case where for virtual opetrating system operation on a virtual machine, refer to Fig. 3 and Fig. 4.Wherein, Fig. 3 shows void
Quasi- machine operates in the situation on the physical equipment where host operating system, that is, virtual machine operates in where host operating system
In equipment, virtual opetrating system operated on the virtual machine again, for example, Guest is operated on VirtualBox, VirtualBox
It operates on Host.Fig. 4 shows virtual machine and operates in another physics different from physical equipment where host operating system
Situation in equipment, for example, host operating system operates on the first equipment (such as: PC1), virtual machine operates in the second equipment
On (e.g., PC2), virtual opetrating system operates in again on the virtual machine.
Virtual machine is not depended on for virtual opetrating system and is operated in mutually independent with physical equipment where host operating system
Another physical equipment on situation, refer to Fig. 5.Fig. 5 shows virtual opetrating system and runs directly in and host's operation
Situation on another different physical equipment of physical equipment where system, for example, host operating system operates in the first equipment
On (such as: PC), virtual opetrating system is operated on the second equipment (e.g., mobile phone).Herein, it is desirable that the second equipment is directly to run
The equipment of operating system, such as smart phone.
As it can be seen that the scheme connected between host operating system provided by the invention and virtual opetrating system has in distribution
The ability implemented under environment.
Below from palyer program, the angle of VirtualBox, Android tripartite interaction, to another implementation of the present invention
The process communicated to connect between host operating system and virtual opetrating system of establishing that example provides is illustrated.It is appreciated that should
What another embodiment was taken is layout shown in Fig. 3, that is, VirtualBox operates in the end Host, and Android (end Guest) is again
Operate in VirtualBox, wherein palyer program is realized at the end Host, is cooperated with the vinput in Android and is realized
The program of major function of the present invention can be realized in Android simulator.
Therefore, realization of the invention includes the simulation control program Player and fortune for operating in host operating system (Host)
The reception program vinput, and the Android system for operating in virtual machine of the virtual Android system (Guest) of row itself.
(1) logic of Player program
Player starts android system by calling VirtualBox;Pass through VirtualBox's later
Guestproperty mechanism is attempted to obtain the IP address of android system;After getting the IP address of android system,
It establishes and communicates to connect with the vinput run in android system;The user that Player is received can be inputted and be sent later
Android system.
It is above-mentioned in the prior art, be by VirtualBox run android system (do not pass through
Palyer program process in Android simulator controls VirtualBox), it can operate normally Android, but by
In being limited to drawback mentioned above, it is unable to commercialization.Major premise of the invention is the entirety side of Android simulator
Case, although there is still a need for VirtualBox to run android system, the work of entire VirtualBox is all backstage
, it is sightless, and being presented to user is: Android simulator (i.e. above-mentioned Player).As it can be seen that passing through Android simulator
Directly control the VirtualBox in running background, and use some new technologies instead of originally needed VirtualBox come into
What capable work, the rendering work including having taken over image, and the present invention described has taken over input control work.
(2) android system logic
Android system starting is linux kernel starting first, starts the basis Android process init later, should be into
Journey can loading configuration file init.rc which describe init need complete operation, including file system operation, permission control with
And service processes etc..In this process, the present invention is so that init process one shell script of load, completes a pass
Key movement, that is, will currently be by the Guest extension element (VirtualBox Guest Additions) of VirtualBox
The IP address of system is written to guestproperty, so that outside Player can get the IP address of current Android.With
Afterwards, so that init process initiation virtually inputs service processes, that is, vinput process.The process will specific port wait with
Player program establishes communication.Once establishing connection with Player program, vinput process will constantly receive Player program hair
Control command is handled and is shown by the control command that the user sent inputs on mobile phone, virtual android system.
Referring to Fig. 6, shows and in accordance with another embodiment of the present invention establish host operating system and virtual opetrating system
Between the flow chart that communicates to connect.
S601:player process control VirtualBox virtual machine starts android;
S602:android starting, comprising: the linux kernel starting -> basis android process init starting -> load
Virtually input service processes vinput, waiting establish connection with outside for init.rc- > operation;
The address ip of S603:Player program acquisition Android system, comprising: android operation init.vbox.sh writes
Enter guestproperty of the IP address to guestproperty, player from VirtualBox and reads IP address;
S604:Player program is established tcp with the vinput process inside android and is connect, and completes to initialize;
S605:Player program determines the corresponding control command of key information of user's input;
Control command is sent Android system by the communication channel that S606:Player program is established before
Vinput process;
The control command that S607:Android system receives vinput process is shown.
It corresponds to the above method, the present invention also provides the device that virtually inputs of one kind, for parasitizing host's operation
The virtual opetrating system of system is inputted.Preferably, which is located at host operating system side, such as can pass through Android mould
The application programs such as quasi- device realize its function.
Referring to Fig. 7, which includes:
Host's virtual communication unit 701, for establishing between the host operating system and the virtual opetrating system
Communication connection;
Customized unit 702 is received and is deposited for providing user's customizing keyboard interface in the host operating system
Store up the corresponding relationship of user-defined key information and control command;
Control command determination unit 703, for the host operating system receive user input key information after,
According to the corresponding relationship, the corresponding control command of key information of user's input is determined;
Control command processing unit 704, for by the communication connection, from the host operating system to it is described virtually
Operating system provides the input control message based on the control command, so that the virtual opetrating system is to input control message
It is handled.
Preferably, host's virtual communication unit 701 specifically includes:
Start virtual controlling subelement 7011, for controlling the control program starting of the simulation in host operating system institute
State virtual opetrating system;
Virtual ip address obtains subelement 7012, for obtaining the IP address of the virtual opetrating system;
Virtual link establishes subelement 7013, for the IP address according to the virtual opetrating system, establishes the simulation
The connection between service processes is virtually inputted in control program and virtual opetrating system.
Preferably, the control command processing unit 704 is specifically used for, and carries out to the control command and control parameter
Translation, generates the input control message.
Preferably,
The virtual opetrating system operates in and another mutually independent object of physical equipment where the host operating system
It manages in equipment;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in the host operating system
On the physical equipment at place, alternatively, the virtual machine operate in it is different from physical equipment where the host operating system another
On one physical equipment.
Preferably, the virtual machine is VirtualBox virtual machine;The starting virtual controlling subelement 7011 is specifically used
In, process control VirtualBox virtual machine is controlled by the simulation in the host operating system, it is virtual by VirtualBox
Machine starts the virtual opetrating system.
Preferably, the virtual machine is VirtualBox virtual machine;It is specific that the virtual ip address obtains subelement 7012
For reading the client properties of the VirtualBox virtual machine, obtaining the IP address of the virtual opetrating system.
Preferably, the virtual link is established subelement 7013 and is specifically used for, in the designated ends of the virtual opetrating system
Mouthful, the vinput process of the simulation control program and the virtual opetrating system establishes connection.
Preferably, the device further include:
Virtual network configuration unit 700, for the host operating system configure one be specifically used to it is described virtual
The virtual network connection of operating system communication so that host operating system is with virtual opetrating system in the virtual network connects
Connection.
It is corresponding with the above method, device, the present invention also provides the system that virtually inputs of one kind, for parasitizing host
The virtual opetrating system of operating system is inputted, the system comprises:
Host operating system, the communication connection for establishing between the virtual opetrating system, and user is provided and is made by oneself
Adopted keyboard interface receives and stores the corresponding relationship of user-defined key information and control command;Receive user's input
Key information, and according to the corresponding relationship, determine the corresponding control command of key information of user's input;Pass through the communication
Connection provides the input control message based on the control command to the virtual opetrating system,
Virtual opetrating system, the communication connection for establishing between the host operating system, and receiving host
After the input control message of operating system, input control message is handled.
Preferably,
The host operating system is also used to, and establishes the network connection with the virtual opetrating system, and pass through simulation control
Processing procedure sequence starts the virtual opetrating system, and, according to the IP address of the virtual opetrating system of acquisition, establish the mould
The connection between input service processes in quasi- control program and the virtual opetrating system;Also, determining control command
Afterwards, it is translated to obtain input control message according to the control command, program is controlled for the input control message by the simulation
It is sent to the virtual input service processes;
The virtual opetrating system is also used to, and predefined script is loaded by basic process, thus by the pseudo operation
The IP address of system is supplied to the host operating system, and, service processes are virtually inputted by the basic process initiation,
And the input control message that the simulation control program is sent is received by the virtual input service processes, also, to institute
It states the input control message that virtual input service processes receive to be interpreted, obtaining the virtual opetrating system can recognize
Input control signal.
Preferably,
The virtual opetrating system operates in and another mutually independent object of physical equipment where the host operating system
It manages in equipment;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in the host operating system
On the physical equipment at place, alternatively, the virtual machine operate in it is different from physical equipment where the host operating system another
On one physical equipment.
Preferably, the virtual machine is VirtualBox virtual machine;The host operating system is specifically used for, and passes through simulation
Process control VirtualBox virtual machine is controlled, the virtual opetrating system is started by VirtualBox virtual machine.
Preferably, the virtual machine is VirtualBox virtual machine;The virtual opetrating system is loaded by init process
Predefined script runs the client extensions component of VirtualBox virtual machine, and the IP address of the virtual opetrating system is written
The client properties of VirtualBox virtual machine;The client that the host operating system reads the VirtualBox virtual machine belongs to
Property, obtain the IP address of the virtual opetrating system.
Preferably, the virtual opetrating system passes through init process initiation vinput process;In the virtual opetrating system
Designated port, the vinput process establishes the connection with the simulation control program.
Preferably, the host operating system is specifically used for, and translates to the control command and control parameter, raw
At the input control message.
Preferably, the virtual opetrating system is specifically used for, and controls the institute received to the virtual input service processes
It states input control message to be interpreted, obtains control command;And hardware abstraction layer HAL conversion is carried out to the control command;?
To the identifiable input control signal of the virtual opetrating system.
Preferably, the host operating system configures a virtual net for being specifically used to communicate with the virtual opetrating system
Network connection so that host operating system is connected in virtual network connection with virtual opetrating system.
Preferably, the host operating system includes Windows operating system, Mac operating system or Linux operation system
System;The virtual opetrating system includes Android operation system.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) are some in the device according to an embodiment of the present invention virtually inputted to realize
Or some or all functions of whole components.The present invention is also implemented as one for executing method as described herein
Partly or completely device or device program (for example, computer program and computer program product).Such realization is originally
The program of invention can store on a computer-readable medium, or may be in the form of one or more signals.In this way
Signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
As it can be seen that the present invention provides following scheme:
A1, a kind of method virtually inputted, for being inputted to the virtual opetrating system for parasitizing host operating system,
The described method includes:
Establish the communication connection between the host operating system and the virtual opetrating system;
User's customizing keyboard interface is provided in the host operating system, receives and stores user-defined key letter
The corresponding relationship of breath and control command;
After the host operating system receives the key information of user's input, according to the corresponding relationship, user is determined
The corresponding control command of the key information of input;
By the communication connection, the host operating system is provided to the virtual opetrating system and is ordered based on the control
The input control message of order is handled input control message by the virtual opetrating system.
A2, method as described in a1, it is described to establish leading between the host operating system and the virtual opetrating system
Letter connection, comprising:
Program, which is controlled, by the simulation in the host operating system starts the virtual opetrating system;
The virtual opetrating system passes through basic process and loads predefined script, thus by the IP of the virtual opetrating system
Address is supplied to the host operating system, and, service processes are virtually inputted by the basic process initiation;
The host operating system establishes the simulation control program and institute according to the IP address of the virtual opetrating system
State the connection between virtual input service processes.
A3, as described in A2 method,
After the corresponding control command of key information that the host operating system determines user's input, further includes: institute
Host operating system is stated to be translated to obtain input control message according to the control command, it will be described defeated by simulation control program
Enter control message and is sent to the virtual input service processes;
It is described by the virtual opetrating system to input control message carry out processing include: the virtual opetrating system to institute
It states input control message to be interpreted, obtains the identifiable input control signal of the virtual opetrating system.
A4, the method as described in A3, it is described to be translated to obtain input control message according to the control command, comprising:
The simulation control program translates the control command and control parameter, generates the input control and disappears
Breath.
A5, the method as described in A3, the virtual input service processes are interpreted the input control message, obtain
The identifiable input control signal of virtual opetrating system, comprising:
The input control message received to the virtual input service processes is interpreted, and obtains the control life
It enables;
Hardware abstraction layer HAL conversion is carried out to the control command that interpretation obtains, obtaining the virtual opetrating system can recognize
Input control signal.
A6, as described in A2 method,
The virtual opetrating system operates in and another mutually independent object of physical equipment where the host operating system
It manages in equipment;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in the host operating system
On the physical equipment at place, alternatively, the virtual machine operate in it is different from physical equipment where the host operating system another
On one physical equipment.
A7, the method as described in A6, the virtual machine are VirtualBox virtual machine;
The simulation by the host operating system controls program and starts the virtual opetrating system, comprising: logical
The simulation control process control VirtualBox virtual machine in the host operating system is crossed, is started by VirtualBox virtual machine
The virtual opetrating system.
A8, the method as described in A6, the virtual machine are VirtualBox virtual machine;
The virtual opetrating system passes through basic process and loads predefined script, thus by the IP of the virtual opetrating system
Address is supplied to the host operating system, comprising:
The virtual opetrating system loads predefined script by init process, runs the client of VirtualBox virtual machine
Extension element, by the client properties of the IP address write-in VirtualBox virtual machine of the virtual opetrating system;
The host operating system reads the client properties of the VirtualBox virtual machine, obtains the pseudo operation system
The IP address of system.
A9, as described in A2 method,
It is described that service processes are virtually inputted by the basic process initiation, comprising: to pass through init process initiation vinput
Process;
The connection established between the simulation control program and the virtual input service processes, comprising: described
The designated port of virtual opetrating system, the vinput process establish the connection with the simulation control program.
A10, as described in A2 method, it is described virtual controlling program starting by the simulation in the host operating system
Before operating system, further includes: the host operating system configures one and is specifically used to communicate with the virtual opetrating system
Virtual network connection so that host operating system is connected in virtual network connection with virtual opetrating system.
The described in any item methods of A11, such as A1-A10, the host operating system include Windows operating system, Mac
Operating system or (SuSE) Linux OS;The virtual opetrating system includes Android operation system.
B12, a kind of device virtually inputted, it is defeated for being carried out to the virtual opetrating system for parasitizing host operating system
Enter, described device includes:
Host's virtual communication unit, the communication for establishing between the host operating system and the virtual opetrating system
Connection;
Customized unit is received and stored for providing user's customizing keyboard interface in the host operating system
The corresponding relationship of user-defined key information and control command;
Control command determination unit, for the host operating system receive user input key information after, root
According to the corresponding relationship, the corresponding control command of key information of user's input is determined;
Control command processing unit, for by the communication connection, from the host operating system to the virtual behaviour
Make system provide the input control message based on the control command, so as to the virtual opetrating system to input control message into
Row processing.
B13, as described in B12 device, host's virtual communication unit specifically include:
Start virtual controlling subelement, starts the void for controlling the control program of the simulation in the host operating system
Quasi- operating system;
Virtual ip address obtains subelement, for obtaining the IP address of the virtual opetrating system;
Virtual link establishes subelement, for the IP address according to the virtual opetrating system, establishes the simulation control
The connection between service processes is virtually inputted in program and virtual opetrating system.
B14, the device as described in B13, the control command processing unit is specifically used for, to the control command and control
Parameter processed is translated, and the input control message is generated.
B15, the device as described in B13,
The virtual opetrating system operates in and another mutually independent object of physical equipment where the host operating system
It manages in equipment;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in the host operating system
On the physical equipment at place, alternatively, the virtual machine operate in it is different from physical equipment where the host operating system another
On one physical equipment.
B16, the device as described in B15, the virtual machine are VirtualBox virtual machine;Starting virtual controlling is single
Member is specifically used for, and controls process control VirtualBox virtual machine by the simulation in the host operating system, by
VirtualBox virtual machine starts the virtual opetrating system.
B17, the device as described in B15, the virtual machine are VirtualBox virtual machine;The virtual ip address obtains son
Unit is specifically used for, and reads the client properties of the VirtualBox virtual machine, obtains the IP address of the virtual opetrating system.
B18, the device as described in B15, the virtual link is established subelement and is specifically used for, in the virtual opetrating system
Designated port, the simulation control program and the vinput process of the virtual opetrating system establish connection.
B19, the device as described in B13, further includes:
Virtual network configuration unit is specifically used to and the pseudo operation for configuring one in the host operating system
The virtual network of system communication connects so that host operating system connects in the virtual network connects with virtual opetrating system
It is logical.
C20, a kind of system virtually inputted, it is defeated for being carried out to the virtual opetrating system for parasitizing host operating system
Enter, the system comprises:
Host operating system, the communication connection for establishing between the virtual opetrating system, and user is provided and is made by oneself
Adopted keyboard interface receives and stores the corresponding relationship of user-defined key information and control command;Receive user's input
Key information, and according to the corresponding relationship, determine the corresponding control command of key information of user's input;Pass through the communication
Connection provides the input control message based on the control command to the virtual opetrating system,
Virtual opetrating system, the communication connection for establishing between the host operating system, and receiving host
After the input control message of operating system, input control message is handled.
C21, the system virtually inputted as described in C20,
The host operating system is also used to, and establishes the network connection with the virtual opetrating system, and pass through simulation control
Processing procedure sequence starts the virtual opetrating system, and, according to the IP address of the virtual opetrating system of acquisition, establish the mould
The connection between input service processes in quasi- control program and the virtual opetrating system;Also, determining control command
Afterwards, it is translated to obtain input control message according to the control command, program is controlled for the input control message by the simulation
It is sent to the virtual input service processes;
The virtual opetrating system is also used to, and predefined script is loaded by basic process, thus by the pseudo operation
The IP address of system is supplied to the host operating system, and, service processes are virtually inputted by the basic process initiation,
And the input control message that the simulation control program is sent is received by the virtual input service processes, also, to institute
It states the input control message that virtual input service processes receive to be interpreted, obtaining the virtual opetrating system can recognize
Input control signal.
C22, the system virtually inputted as described in C21,
The virtual opetrating system operates in and another mutually independent object of physical equipment where the host operating system
It manages in equipment;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in the host operating system
On the physical equipment at place, alternatively, the virtual machine operate in it is different from physical equipment where the host operating system another
On one physical equipment.
C23, the system virtually inputted as described in C22, the virtual machine are VirtualBox virtual machine;The host behaviour
It is specifically used for as system, process control VirtualBox virtual machine is controlled by simulation, institute is started by VirtualBox virtual machine
State virtual opetrating system.
C24, the system virtually inputted as described in C22, the virtual machine are VirtualBox virtual machine;The virtual behaviour
Make system and predefined script is loaded by init process, the client extensions component of VirtualBox virtual machine is run, by the void
The client properties of the IP address write-in VirtualBox virtual machine of quasi- operating system;Described in the host operating system is read
The client properties of VirtualBox virtual machine obtain the IP address of the virtual opetrating system.
C25, the system virtually inputted as described in C21, the virtual opetrating system pass through init process initiation vinput
Process;In the designated port of the virtual opetrating system, the vinput process establishes the connection with the simulation control program.
C26, the system virtually inputted as described in C21, the host operating system is specifically used for, to the control command
And control parameter is translated, and the input control message is generated.
The system of C27, virtual input control as described in C21, the virtual opetrating system are specifically used for, and control to described
The input control message that virtual input service processes receive is interpreted, and obtains control command;And the control is ordered
It enables and carries out hardware abstraction layer HAL conversion;Obtain the identifiable input control signal of the virtual opetrating system.
The system of C28, virtual input control as described in C21, the host operating system configure one be specifically used to
The virtual network connection of the virtual opetrating system communication so that host operating system and virtual opetrating system are in the virtual net
It is connected in network connection.
The system of the described in any item virtual input controls of C29, such as C20-C28, the host operating system include
Windows operating system, Mac operating system or (SuSE) Linux OS;The virtual opetrating system includes Android operation system
System.
Claims (26)
1. the method that virtually inputs of one kind, which is characterized in that for parasitize the virtual opetrating system of host operating system into
Row input, which comprises
Establish the communication connection between the host operating system and the virtual opetrating system, comprising: grasp by the host
The simulation control program made in system starts the virtual opetrating system;It is pre- that the virtual opetrating system passes through basic process load
Script is defined, so that the IP address of the virtual opetrating system is supplied to the host operating system, and, pass through the base
Plinth process initiation virtually inputs service processes;The host operating system is established according to the IP address of the virtual opetrating system
Connection between the simulation control program and the virtual input service processes;
In the host operating system provide user's customizing keyboard interface, receive and store user-defined key information with
The corresponding relationship of control command;
After the host operating system receives the key information of user's input, according to the corresponding relationship, determine that user inputs
The corresponding control command of key information;
By the communication connection, the host operating system is provided to the virtual opetrating system based on the control command
Input control message is handled input control message by the virtual opetrating system.
2. the method as described in claim 1, which is characterized in that
After the corresponding control command of key information that the host operating system determines user's input, further includes: the place
Master operating system translates to obtain input control message according to the control command, is controlled the input by simulation control program
Message processed is sent to the virtual input service processes;
It is described by the virtual opetrating system to input control message carry out processing include: the virtual opetrating system to described defeated
Enter control message to be interpreted, obtains the identifiable input control signal of the virtual opetrating system.
3. method according to claim 2, which is characterized in that it is described translate to obtain input control according to the control command disappear
Breath, comprising:
The simulation control program translates the control command and control parameter, generates the input control message.
4. method according to claim 2, which is characterized in that the virtual input service processes are to the input control message
It is interpreted, obtains the identifiable input control signal of the virtual opetrating system, comprising:
The input control message received to the virtual input service processes is interpreted, and obtains the control command;
Hardware abstraction layer HAL conversion is carried out to the control command that interpretation obtains, it is identifiable defeated to obtain the virtual opetrating system
Enter to control signal.
5. the method as described in claim 1, which is characterized in that
The virtual opetrating system is operated in be set with another mutually independent physics of physical equipment where the host operating system
It is standby upper;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in where the host operating system
Physical equipment on, alternatively, the virtual machine operates in another different from physical equipment where the host operating system
On physical equipment.
6. method as claimed in claim 5, which is characterized in that the virtual machine is VirtualBox virtual machine;
The simulation by the host operating system controls program and starts the virtual opetrating system, comprising: passes through institute
The simulation control process control VirtualBox virtual machine in host operating system is stated, as described in the starting of VirtualBox virtual machine
Virtual opetrating system.
7. method as claimed in claim 5, which is characterized in that the virtual machine is VirtualBox virtual machine;
The virtual opetrating system passes through basic process and loads predefined script, thus by the IP address of the virtual opetrating system
It is supplied to the host operating system, comprising:
The virtual opetrating system loads predefined script by init process, runs the client extensions of VirtualBox virtual machine
Component, by the client properties of the IP address write-in VirtualBox virtual machine of the virtual opetrating system;
The host operating system reads the client properties of the VirtualBox virtual machine, obtains the virtual opetrating system
IP address.
8. the method as described in claim 1, which is characterized in that
It is described that service processes are virtually inputted by the basic process initiation, comprising: to pass through init process initiation vinput process;
The connection established between the simulation control program and the virtual input service processes, comprising: described virtual
The designated port of operating system, the vinput process establish the connection with the simulation control program.
9. the method as described in claim 1, which is characterized in that controlling program by the simulation in the host operating system
Before starting the virtual opetrating system, further includes: the host operating system configures one and is specifically used to and the virtual behaviour
Make the virtual network connection of system communication so that host operating system connects in the virtual network connects with virtual opetrating system
It is logical.
10. such as the described in any item methods of claim 1-9, which is characterized in that the host operating system includes Windows behaviour
Make system, Mac operating system or (SuSE) Linux OS;The virtual opetrating system includes Android operation system.
11. the device that virtually inputs of one kind, which is characterized in that for parasitize the virtual opetrating system of host operating system into
Row input, described device include:
Host's virtual communication unit, the communication link for establishing between the host operating system and the virtual opetrating system
It connects, specifically includes: starting virtual controlling subelement, for controlling the control program starting of the simulation in host operating system institute
State virtual opetrating system;Virtual ip address obtains subelement, for obtaining the IP address of the virtual opetrating system;Virtual link
Subelement is established, for the IP address according to the virtual opetrating system, establishes the simulation control program and pseudo operation system
The connection between service processes is virtually inputted in system;
Customized unit receives and stores user for providing user's customizing keyboard interface in the host operating system
The key information of definition and the corresponding relationship of control command;
Control command determination unit, for the host operating system receive user input key information after, according to institute
Corresponding relationship is stated, determines the corresponding control command of key information of user's input;
Control command processing unit, for by the communication connection, from the host operating system to the pseudo operation system
System provide the input control message based on the control command, so as to the virtual opetrating system to input control message at
Reason.
12. device as claimed in claim 11, which is characterized in that the control command processing unit is specifically used for, to described
Control command and control parameter are translated, and the input control message is generated.
13. device as claimed in claim 11, which is characterized in that
The virtual opetrating system is operated in be set with another mutually independent physics of physical equipment where the host operating system
It is standby upper;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in where the host operating system
Physical equipment on, alternatively, the virtual machine operates in another different from physical equipment where the host operating system
On physical equipment.
14. device as claimed in claim 13, which is characterized in that the virtual machine is VirtualBox virtual machine;It is described to open
Dynamic virtual controlling subelement is specifically used for, and it is empty to control process control VirtualBox by the simulation in the host operating system
Quasi- machine starts the virtual opetrating system by VirtualBox virtual machine.
15. device as claimed in claim 13, which is characterized in that the virtual machine is VirtualBox virtual machine;The void
Quasi- IP address obtains subelement and is specifically used for, and reads the client properties of the VirtualBox virtual machine, obtains the virtual behaviour
Make the IP address of system.
16. device as claimed in claim 13, which is characterized in that the virtual link is established subelement and is specifically used for, in institute
The designated port of virtual opetrating system is stated, the vinput process foundation of the simulation control program and the virtual opetrating system connects
It connects.
17. device as claimed in claim 11, which is characterized in that further include:
Virtual network configuration unit is specifically used to and the virtual opetrating system for configuring one in the host operating system
The virtual network of communication connects so that host operating system is connected in virtual network connection with virtual opetrating system.
18. the system that virtually inputs of one kind, which is characterized in that for parasitize the virtual opetrating system of host operating system into
Row input, the system comprises:
Host operating system, the communication connection for establishing between the virtual opetrating system, and user's self-defining key is provided
Disk interface receives and stores the corresponding relationship of user-defined key information and control command;Receive the key of user's input
Information, and according to the corresponding relationship, determine the corresponding control command of key information of user's input;Pass through the communication link
It connects, provides the input control message based on the control command to the virtual opetrating system;The host operating system is also used
In, the network connection with the virtual opetrating system is established, and the virtual opetrating system is started by simulation control program, with
And the IP address of the virtual opetrating system according to acquisition, establish the simulation control program and the virtual opetrating system
In input service processes between connection;Also, after determining control command, translate to obtain according to the control command defeated
Enter control message, the input control message is sent to virtual input service processes by simulation control program;
Virtual opetrating system, the communication connection for establishing between the host operating system, and receiving host's operation
After the input control message of system, input control message is handled;The virtual opetrating system is also used to, and passes through basis
Process loads predefined script, so that the IP address of the virtual opetrating system is supplied to the host operating system, and,
Service processes are virtually inputted by the basic process initiation, and, the simulation is received by the virtual input service processes
The input control message that control program is sent, also, to the input control that the virtual input service processes receive
Message is interpreted, and obtains the identifiable input control signal of the virtual opetrating system.
19. the system virtually inputted as claimed in claim 18, which is characterized in that
The virtual opetrating system is operated in be set with another mutually independent physics of physical equipment where the host operating system
It is standby upper;Alternatively,
The virtual opetrating system operation is on a virtual machine, wherein the virtual machine operates in where the host operating system
Physical equipment on, alternatively, the virtual machine operates in another different from physical equipment where the host operating system
On physical equipment.
20. the system virtually inputted as claimed in claim 19, which is characterized in that the virtual machine is that VirtualBox is virtual
Machine;The host operating system is specifically used for, and process control VirtualBox virtual machine is controlled by simulation, by VirtualBox
Virtual machine starts the virtual opetrating system.
21. the system virtually inputted as claimed in claim 19, which is characterized in that the virtual machine is that VirtualBox is virtual
Machine;The virtual opetrating system loads predefined script by init process, runs the client extensions of VirtualBox virtual machine
Component, by the client properties of the IP address write-in VirtualBox virtual machine of the virtual opetrating system;The host operates system
System reads the client properties of the VirtualBox virtual machine, obtains the IP address of the virtual opetrating system.
22. the system that virtually inputs as claimed in claim 19, which is characterized in that the virtual opetrating system by init into
Cheng Qidong vinput process;In the designated port of the virtual opetrating system, the vinput process is established to be controlled with the simulation
The connection of processing procedure sequence.
23. the system virtually inputted as claimed in claim 19, which is characterized in that the host operating system is specifically used for,
The control command and control parameter are translated, the input control message is generated.
24. the system virtually inputted as claimed in claim 19, which is characterized in that the virtual opetrating system is specifically used for,
It controls the input control message for receiving the virtual input service processes to be interpreted, obtains control command;And it is right
The control command carries out hardware abstraction layer HAL conversion;Obtain the identifiable input control signal of the virtual opetrating system.
25. the system virtually inputted as claimed in claim 19, which is characterized in that the host operating system configures one specially
The virtual network that door is used to communicate with the virtual opetrating system is connect so that host operating system and virtual opetrating system are in institute
It states and is connected in virtual network connection.
26. such as the described in any item systems virtually inputted of claim 18-25, which is characterized in that the host operating system
Including Windows operating system, Mac operating system or (SuSE) Linux OS;The virtual opetrating system includes Android behaviour
Make system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510921140.7A CN105573816B (en) | 2015-12-11 | 2015-12-11 | The method, apparatus and system virtually inputted |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510921140.7A CN105573816B (en) | 2015-12-11 | 2015-12-11 | The method, apparatus and system virtually inputted |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105573816A CN105573816A (en) | 2016-05-11 |
CN105573816B true CN105573816B (en) | 2018-12-21 |
Family
ID=55883988
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510921140.7A Active CN105573816B (en) | 2015-12-11 | 2015-12-11 | The method, apparatus and system virtually inputted |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105573816B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106528099A (en) * | 2016-10-21 | 2017-03-22 | 合肥联宝信息技术有限公司 | Method and device for recognizing operation command based on different operation systems |
CN107278294B (en) * | 2017-05-12 | 2020-11-06 | 深圳前海达闼云端智能科技有限公司 | Input device implementation method and implementation device thereof |
CN110649997B (en) * | 2018-06-26 | 2021-07-20 | 大唐移动通信设备有限公司 | Data processing method and device |
CN111200535B (en) * | 2018-11-16 | 2022-11-15 | 阿里巴巴集团控股有限公司 | Simulation system and method for equipment |
CN112799521B (en) * | 2021-03-29 | 2021-08-27 | 上海捷勃特机器人有限公司 | Electronic device and method for operating electronic device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6003050A (en) * | 1997-04-02 | 1999-12-14 | Microsoft Corporation | Method for integrating a virtual machine with input method editors |
US6004049A (en) * | 1998-10-29 | 1999-12-21 | Sun Microsystems, Inc. | Method and apparatus for dynamic configuration of an input device |
CN102331927A (en) * | 2011-06-24 | 2012-01-25 | 浙大网新科技股份有限公司 | Method for integrating soft keyboard input of Wine and Android mobile phone |
CN102364434A (en) * | 2011-06-24 | 2012-02-29 | 浙大网新科技股份有限公司 | Method for integrating Wine and Android mouse input |
CN103064724A (en) * | 2012-12-14 | 2013-04-24 | 北京伸得纬科技有限公司 | Virtual mechanism constructing method and device |
CN103177212A (en) * | 2013-03-08 | 2013-06-26 | 湘潭大学 | Computer security input system and method based on lightweight virtual machine monitor unit |
CN103389884A (en) * | 2013-07-29 | 2013-11-13 | 华为技术有限公司 | Method for processing input/output request, host, server and virtual machine |
CN103593185A (en) * | 2013-11-04 | 2014-02-19 | 浙江大学 | Single-Linux-inner-core-based method for multiple Android systems to share input equipment and display equipment |
US8863113B1 (en) * | 2007-07-10 | 2014-10-14 | Parallels IP Holdings GmbH | Method and system for unattended installation of guest operating system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030093258A1 (en) * | 2001-11-14 | 2003-05-15 | Roman Fishstein | Method and apparatus for efficient simulation of memory mapped device access |
-
2015
- 2015-12-11 CN CN201510921140.7A patent/CN105573816B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6003050A (en) * | 1997-04-02 | 1999-12-14 | Microsoft Corporation | Method for integrating a virtual machine with input method editors |
US6004049A (en) * | 1998-10-29 | 1999-12-21 | Sun Microsystems, Inc. | Method and apparatus for dynamic configuration of an input device |
US8863113B1 (en) * | 2007-07-10 | 2014-10-14 | Parallels IP Holdings GmbH | Method and system for unattended installation of guest operating system |
CN102331927A (en) * | 2011-06-24 | 2012-01-25 | 浙大网新科技股份有限公司 | Method for integrating soft keyboard input of Wine and Android mobile phone |
CN102364434A (en) * | 2011-06-24 | 2012-02-29 | 浙大网新科技股份有限公司 | Method for integrating Wine and Android mouse input |
CN103064724A (en) * | 2012-12-14 | 2013-04-24 | 北京伸得纬科技有限公司 | Virtual mechanism constructing method and device |
CN103177212A (en) * | 2013-03-08 | 2013-06-26 | 湘潭大学 | Computer security input system and method based on lightweight virtual machine monitor unit |
CN103389884A (en) * | 2013-07-29 | 2013-11-13 | 华为技术有限公司 | Method for processing input/output request, host, server and virtual machine |
CN103593185A (en) * | 2013-11-04 | 2014-02-19 | 浙江大学 | Single-Linux-inner-core-based method for multiple Android systems to share input equipment and display equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105573816A (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105573816B (en) | The method, apparatus and system virtually inputted | |
CN104740872B (en) | Simulate game program operation control method and device in Android environment | |
US20200393952A1 (en) | Integration platform of internet of things and virtual device | |
CN105593773B (en) | The system and method entrusted automatically for virtual distributed control system | |
US9830176B2 (en) | Methods, systems, and media for binary compatible graphics support in mobile operating systems | |
US20020129340A1 (en) | Reconfigurable isomorphic software representations | |
US7996787B2 (en) | Plug-in architecture for window management and desktop compositing effects | |
CN110178357A (en) | Cellular service based on cloud in the accessible cloud of remote equipment | |
CN105521603B (en) | The method, apparatus and system of virtual input control are carried out for the game of cool run class | |
CN108446149B (en) | Third-party dynamic library interface interception method and system | |
CN105573817B (en) | The method, apparatus and system of virtual input control | |
MXPA05012972A (en) | Systems and methods for virtualizing graphics subsystems. | |
CN107408052A (en) | Binary Conversion in shared object level | |
CN109416825A (en) | Dual existing reality for equipment arrives virtual reality portal | |
CN103370689A (en) | Cross-environment application compatibility | |
TW201235072A (en) | Method and apparatus for gaming based on mobile terminal | |
US11977919B2 (en) | Apparatus and method of securely and efficiently interfacing with a cloud computing service | |
CN108399331A (en) | Application process trial method and system | |
Steed | Some useful abstractions for re-usable virtual environment platforms | |
CN105550017A (en) | Method, apparatus and system for performing virtual input control for application | |
CN105550046B (en) | Virtual control method, device and system | |
CN106126213B (en) | A kind of Android exploitation modeling method based on IFML | |
CN107291561A (en) | A kind of figure synthetic method, information interacting method and system | |
CN109460280A (en) | Run method, the terminal of program | |
Taeumel et al. | Applying data-driven tool development to context-oriented languages |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220729 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |