Summary of the invention
The invention provides a kind of method and system that calls software and hardware resources by mobile terminal remote, can be to a certain extent, break through the restriction of self software and hardware aspect by mobile terminal, realize the PC corresponding function.
The embodiment of the present invention proposes a kind of method of calling software and hardware resources by mobile terminal remote, comprises the steps:
A, mobile terminal are set up the communication channel with virtual machine server, send the service request that requires to distribute virtual machine to virtual machine server by described communication channel;
After B, virtual machine server are received described service request, in this locality, be that described mobile terminal distributes virtual machine;
C, virtual machine server receive the input message from mobile terminal, the system program that described input message is moved in described virtual machine or the input message of application program;
D, virtual machine server pass to mobile terminal by the system program that moves in virtual machine or interface and the operation result of application program.
Preferably, before described steps A, further comprise: virtual machine server receives the authentication request of carrying identity information from mobile terminal, judge whether described identity information is complementary with registered user profile, if, perform step A, otherwise send the information of denial of service to mobile terminal.
Preferably, before described steps A, further comprise: mobile terminal is determined the OS Type of the virtual machine that will set up; And,
Described service request further comprises the OS Type descriptor that mobile terminal is definite; Perhaps, described steps A is: mobile terminal is according to determined VME operating system type, select corresponding virtual machine server address, and the communication channel of the foundation virtual machine server corresponding with selected virtual machine server address, send the service request that requires to distribute virtual machine to virtual machine server by described communication channel.
Preferably, described service request further comprises: the software and hardware resources descriptor that virtual machine will take;
Step B further comprises: for described virtual machine distributes corresponding software and hardware resources, and the software and hardware resources distributed is more than or equal to software and hardware resources corresponding to software and hardware resources descriptor that virtual machine that described service request comprises will take.
Preferably, described step B comprises:
In the virtual machine that B1, virtual machine server inquiry have been set up at present, the virtual machine set of the software and hardware resources that the software and hardware resources descriptor that whether exists idle software and hardware resources to be more than or equal to carry in described service request is corresponding, if select a virtual machine and distribute to this mobile terminal from described virtual machine set; Otherwise execution step B2;
B2, a newly-built virtual machine, and the software and hardware resources of this virtual machine is more than or equal to software and hardware resources corresponding to software and hardware resources descriptor carried in described service request, and described virtual machine is distributed to described mobile terminal.
Preferably, before described step B, further comprise: whether the resource that virtual machine server is inquired about the current free time allows to set up the virtual machine that meets described service request, if, carry out described step B, otherwise, the information of denial of service returned to mobile terminal.
Preferably, after described step B, further comprise: virtual machine server, according to the end service request of mobile terminal, is closed the virtual machine of finishing using, and discharges the software and hardware resources that this virtual machine takies.
The embodiment of the present invention also proposes a kind of virtual machine server, comprising:
With the terminal called module, the communication channel for foundation with mobile terminal, receive the service request of distributing virtual machine from the requirement of mobile terminal by described communication channel; Reception is from the input message of mobile terminal, and the system program that moves in virtual machine or interface and the operation result of application program are passed to mobile terminal;
The virtual machine distribution module, for according to the described service request received with the terminal called module, is described mobile terminal distribution virtual machine;
Described virtual machine, for receiving from the input message with the terminal called module operational system program or application program, passes to the interface of described system program or application program and operation result and the terminal called module.
Preferably, described virtual machine server further comprises: authentication module;
Described and terminal called module is further used for receiving the authentication request of carrying identity information from mobile terminal, and the identity information in described authentication request is sent to authentication module; And will be sent to mobile terminal from the information of the denial of service of identity authentication module;
Described authentication module is for judging whether described identity information is complementary with registered user profile, if enable described virtual machine distribution module; Otherwise, go to enable described virtual machine distribution module, and by send the information of denial of service to mobile terminal with the terminal called module.
Preferably, with the service request of terminal called module reception, further comprise: the software and hardware resources descriptor that virtual machine will take;
Described virtual machine distribution module comprises:
Whether the virtual machine query unit, for inquiring about the virtual machine of having set up at present, exist idle software and hardware resources to be more than or equal to the virtual machine set of software and hardware resources corresponding to described software and hardware resources descriptor, if, enable the virtual machine allocation units, otherwise, enable virtual machine creating unit;
The virtual machine allocation units, select a virtual machine for the virtual machine set inquired from described virtual machine query unit and distribute to mobile terminal;
Virtual machine creating unit, for a newly-built virtual machine, and the software and hardware resources of this virtual machine is more than or equal to software and hardware resources corresponding to described software and hardware resources descriptor, and described virtual machine is distributed to described mobile terminal.
Preferably, described virtual machine server further comprises: the idling-resource enquiry module, whether allow to set up the virtual machine of the service request that meets described and the reception of terminal called module for the resource of inquiring about the current free time, if enable described virtual machine distribution module; Otherwise, go to enable described virtual machine distribution module, and by send the information of denial of service to mobile terminal with the terminal called module.
Preferably, described virtual machine distribution module further comprises: the virtual machine closing unit;
Described and terminal called module is further used for receiving the end service request from mobile terminal;
Described virtual machine closing unit, for after receiving the end service request in described and terminal called module, is deleted and is closed the virtual machine of finishing using, and discharges the software and hardware resources that this virtual machine takies.
Preferably, described virtual machine closing unit is further used in the virtual machine running, judge whether the current virtual machine existed exists abnormal conditions, if, close described virtual machine, described abnormal conditions comprise: the mobile terminal that this virtual machine is corresponding exceeds schedule time and does not communicate with virtual machine server, and the hardware resource that virtual machine takies exceeds allowed band and running software is made mistakes.
Preferably, described virtual machine server further comprises: data server, and for preserving intermediate data and the operation result of described virtual machine system program or application program, and by the data of system program or application call in described virtual machine.
Embodiment
The present invention program's core concept is: a remote control unit for example, is installed under mobile terminal device operating system (Android) environment, this remote control unit, by mode accessing Internet networks such as WIFI, 3G, connects the virtual machine server of assigned ip address on public network; Virtual machine server is according to the request of this remote control unit, utilizes self hardware resource (processor, internal memory, peripheral hardware) and software resource to distribute the virtual machine of a PC operating system (for example Windows7) in this locality; Next, the information operation corresponding program that this virtual machine can be inputted by internet according to remote control unit, and by internet to mobile terminal back-to-back running result, described operation result shows, or forms corresponding file at the mobile terminal place on the interface of mobile terminal.Said process is at mobile phone users, just as be both the application program of having moved under the Windows7 operating system environment on mobile terminal.This realizes that by Internet bar the application of computer is the same like the user who there is no PC, and the present invention program is high-end for not possessing, the mobile InterWorking Equipment user of complicated applications condition provides one " remote dummy Internet bar ".
For making technical scheme of the present invention and beneficial effect clearer, below by the drawings and specific embodiments, the present invention program is further elaborated.
Fig. 1 be the embodiment of the present invention propose call the system schematic of software and hardware resources by mobile terminal remote.Wherein, 101 to 104 represent different mobile terminals, and these mobile terminals are respectively by certain means of communication, for example wired mode, or 3G mode, and the wireless modes such as WIFI mode are by internet 105 access of virtual machine servers 106.
Mobile terminal 101 to 104 can be the mobile InterWorking Equipments such as operation Android, Iphone OS, the smart mobile phone of matching class, Windows Mobile, Windows CE, MeeGo operating system, panel computer, net book.
Mobile terminal sends the authentication request that comprises identity information to virtual machine server 106, comprise OS Type and/or take the service request of resource requirement.Mobile terminal, when not needing service, sends to virtual machine server 106 request that stops service.
Mobile terminal can be in the virtual machine running, and by the input equipment input message, described input message is delivered to virtual machine server 106 by internet 105, as the system program moved according to customer requirements in virtual machine or the input message of application program.Mobile terminal also receives the Output rusults of virtual machine from operation in virtual machine server 106, and described Output rusults is shown on the interface of mobile terminal or save as corresponding file.
Virtual machine server 106, for being arranged in internet 105, has the server apparatus of particular ip address.Virtual machine server 106 can be single equipment, can be also server cluster.
Virtual machine server 106 possesses good transmission bandwidth, sufficient hardware handles ability, and have as much as possible the application software that the user may use.The request that virtual machine server 106 mobile terminal receives send, according to the software and hardware information in described request, distribute the virtual machine that meets its demand to this mobile terminal.Virtual machine server 106 can many virtual machines of concurrent running, and concurrent quantity is relevant with hardware condition and the network bandwidth of virtual machine server 106.
Virtual machine server 106 can arrange the resource level that takies of the OS Type of acquiescence and acquiescence, if assigned operation type not in service request, the OS Type of virtual machine is set to the OS Type of acquiescence; If do not specify and take resource requirement in service request, the resource of virtual machine is set to the resource level of acquiescence.
Specifically, at first virtual machine server 106 can inquire about in the virtual machine of having set up at present, and whether the virtual machine that can meet this mobile terminal is arranged, if having, selects one the virtual machine met the demands from these and distributes to this mobile terminal.Described selection can be random selection, or, in the virtual machine met the demands, selects a virtual machine that idling-resource is maximum.If the virtual machine do not met the demands, virtual machine server 106 is set up a new virtual machine that can meet this mobile terminal software and hardware demand, and distributes to this mobile terminal.For example, shown in Fig. 1, virtual machine server 106 is according to the request of mobile terminal 101, mobile terminal 102 and mobile terminal 103, the first virtual machine 108, the second virtual machine 109 and the 3rd virtual machine 110 have been distributed respectively, and according to the request of mobile terminal 104, the 3rd virtual machine 110 is distributed to mobile terminal 104, and like this, mobile terminal 103 and mobile terminal 104 are just shared same virtual machine 110.
Preferably, virtual machine server 106 can comprise an identity authentication module, for the identity of the mobile terminal to the request of sending, is verified, only to the mobile terminal be verified, provides service.
Preferably, when virtual machine server 106 can be set up virtual machine, distribute the minimum software and hardware configuration met the demands to virtual machine, and the upper limit of the shared software and hardware resources of virtual machine is set; In the process of virtual machine operation, if virtual machine needs more resource, in the situation that be no more than the upper limit, can promote as required the software and hardware resources that this virtual machine takies; If the required resource of virtual machine reduces, can, on non-service affecting basis, discharge a part of software and hardware resources.
Preferably, before setting up new virtual machine, whether at first virtual machine server 106 can inquire about the resource of current free time can set up this new virtual machine, if can, set up new virtual machine, otherwise, to mobile terminal return can't newly-built virtual machine information.
Concurrent each virtual machine in virtual machine server 106 can be in windows xp (Windows XP), form 7 (Windows7), the operating systems such as LINUX, MAC OSX.
Virtual machine server 106, except creating new virtual machine, also can be closed the virtual machine of finishing using according to the request of mobile terminal, discharges the resource that this virtual machine takies.
Perhaps, virtual machine server 106 also can, in the virtual machine running, judge that whether the current virtual machine existed exists abnormal conditions, if so, is closed the operation of virtual machine.Described abnormal conditions include but not limited to: the mobile terminal that this virtual machine is corresponding exceeds schedule time and does not communicate with virtual machine server 106, and the hardware resource that virtual machine takies exceeds allowed band, running software is made mistakes and other abnormal conditions.
Virtual machine can receive the control command that in the mobile terminal transmitted by internet 106, control unit is sent, and realizes respective operations, and the system program of virtual machine operation or the interface of application program are passed to mobile terminal.
Can further include data server in this system, data server is arranged in internet, in the virtual machine of virtual machine server 106, the intermediate data of system program or application program and operation result can be kept at by the form of data in data server, the system program of virtual machine or the application program data in also can the calling data server.Data server can also and mobile terminal to carry out data synchronous.The data content of data server storage can arrange different Share Permissions, for example according to degree of share, is respectively from high to low: unconditional sharing, and authorize and share, and do not share.Described data server can provide massive storage space to mobile terminal.Described data server can be used as the part of virtual machine server 106, also can be used as independent server apparatus.
The embodiment of the present invention also proposes a kind of method of calling software and hardware resources by mobile terminal remote, and its flow process as shown in Figure 2, comprises the steps:
Step 201: mobile terminal is set up the communication channel with virtual machine server, sends the service request that requires to distribute virtual machine to virtual machine server by described communication channel;
Step 202: after virtual machine server is received described service request, be that described mobile terminal distributes virtual machine in this locality;
Step 203: virtual machine server receives the input message from mobile terminal, the system program that described input message is moved in described virtual machine or the input message of application program;
Step 204: virtual machine server passes to mobile terminal by the system program that moves in virtual machine or interface and the operation result of application program.
Preferably, before described step 201, further comprise: virtual machine server receives the authentication request of carrying identity information from mobile terminal, judge whether described identity information is complementary with registered user profile, if, perform step 201, otherwise send the information of denial of service to mobile terminal.
Preferably, before described step 201, further comprise: mobile terminal is determined the OS Type of the virtual machine that will set up; And,
Described service request further comprises the OS Type descriptor that mobile terminal is definite; Perhaps, described step 201 is: mobile terminal is according to determined VME operating system type, select corresponding virtual machine server address, and the communication channel of the foundation virtual machine server corresponding with selected virtual machine server address, send the service request that requires to distribute virtual machine to virtual machine server by described communication channel.
Preferably, described service request further comprises: the software and hardware resources descriptor that virtual machine will take;
Step 202 further comprises: for described virtual machine distributes corresponding software and hardware resources, and the software and hardware resources distributed is more than or equal to software and hardware resources corresponding to software and hardware resources descriptor that virtual machine that described service request comprises will take.
Virtual machine server can be distributed a virtual machine for each mobile terminal that proposes service request.In other embodiment, virtual machine server, after receiving service request, can first look at whether existing virtual machine can meet this service request, if can, existing virtual machine is distributed to new mobile terminal, realize that a plurality of mobile terminals share a virtual machine; The new virtual machine of reallocation in unappeasable situation.In such embodiments, described step 202 comprises:
In the virtual machine that step 202-1, virtual machine server inquiry have been set up at present, the virtual machine set of the software and hardware resources that the software and hardware resources descriptor that whether exists idle software and hardware resources to be more than or equal to carry in described service request is corresponding, if select a virtual machine and distribute to this mobile terminal from described virtual machine set; Otherwise execution step 202-2;
202-2, a newly-built virtual machine, and the software and hardware resources of this virtual machine is more than or equal to software and hardware resources corresponding to software and hardware resources descriptor carried in described service request, and described virtual machine is distributed to described mobile terminal.
The hardware resource of virtual machine server is limited after all, and too much when the mobile terminal number of service simultaneously, or some virtual machine taken more resource, the situation of hardware resource anxiety may occur; Perhaps, virtual machine server does not have the software and hardware resources that configuration can meet the demands.In order to tackle this situation, before described step 202, further comprise: whether the resource that virtual machine server is inquired about the current free time allows to set up the virtual machine that meets described service request, if, carry out described step 202, otherwise, the information of denial of service returned to mobile terminal.
Preferably, after described step 202, further comprise: virtual machine server, according to the end service request of mobile terminal, is closed the virtual machine of finishing using, and discharges the software and hardware resources that this virtual machine takies.
The embodiment of the present invention also proposes a kind of virtual machine server, comprising:
With the terminal called module, the communication channel for foundation with mobile terminal, receive the service request of distributing virtual machine from the requirement of mobile terminal by described communication channel; Reception is from the input message of mobile terminal, and the system program that moves in virtual machine or interface and the operation result of application program are passed to mobile terminal;
The virtual machine distribution module, for according to the described service request received with the terminal called module, is described mobile terminal distribution virtual machine;
Described virtual machine, for receiving from the input message with the terminal called module operational system program or application program, passes to the interface of described system program or application program and operation result and the terminal called module.
Preferably, described virtual machine server further comprises: authentication module;
Described and terminal called module is further used for receiving the authentication request of carrying identity information from mobile terminal, and the identity information in described authentication request is sent to authentication module; And will be sent to mobile terminal from the information of the denial of service of identity authentication module;
Described authentication module is for judging whether described identity information is complementary with registered user profile, if enable described virtual machine distribution module; Otherwise, go to enable described virtual machine distribution module, and by send the information of denial of service to mobile terminal with the terminal called module.
Preferably, with the service request of terminal called module reception, further comprise: the software and hardware resources descriptor that virtual machine will take;
Described virtual machine distribution module comprises:
Whether the virtual machine query unit, for inquiring about the virtual machine of having set up at present, exist idle software and hardware resources to be more than or equal to the virtual machine set of software and hardware resources corresponding to described software and hardware resources descriptor, if, enable the virtual machine allocation units, otherwise, enable virtual machine creating unit;
The virtual machine allocation units, select a virtual machine for the virtual machine set inquired from described virtual machine query unit and distribute to mobile terminal;
Virtual machine creating unit, for a newly-built virtual machine, and the software and hardware resources of this virtual machine is more than or equal to software and hardware resources corresponding to described software and hardware resources descriptor, and described virtual machine is distributed to described mobile terminal.
Preferably, described virtual machine server further comprises: the idling-resource enquiry module, whether allow to set up the virtual machine of the service request that meets described and the reception of terminal called module for the resource of inquiring about the current free time, if enable described virtual machine distribution module; Otherwise, go to enable described virtual machine distribution module, and by send the information of denial of service to mobile terminal with the terminal called module.
Preferably, described virtual machine distribution module further comprises: the virtual machine closing unit;
Described and terminal called module is further used for receiving the end service request from mobile terminal;
Described virtual machine closing unit, for after receiving the end service request in described and terminal called module, is deleted and is closed the virtual machine of finishing using, and discharges the software and hardware resources that this virtual machine takies.
Preferably, described virtual machine closing unit is further used in the virtual machine running, judge whether the current virtual machine existed exists abnormal conditions, if, close described virtual machine, described abnormal conditions comprise: the mobile terminal that this virtual machine is corresponding exceeds schedule time and does not communicate with virtual machine server, and the hardware resource that virtual machine takies exceeds allowed band and running software is made mistakes.Preferably, described virtual machine server further comprises: data server, and for preserving intermediate data and the operation result of described virtual machine system program or application program, and by the data of system program or application call in described virtual machine.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.