Input and output control method and device based on cloud computing
Technical field
The present invention relates to the communications field, in particular to a kind of input and output control method based on cloud computing and dress
Put.
Background technology
Cloud computing (cloud computing) is a kind of calculation based on the Internet, in this way, shared
Software and hardware resources and information can on demand be supplied to computer and other equipment.The whole service mode of cloud computing is similar to electricity
Net.The core concept of cloud computing is by a large amount of computing resource unified managements with network connection and is dispatched, and constitutes one and calculates money
Source pond to user's on-demand service, wherein, there is provided the network of resource is referred to as " cloud ".
Cloud game is the game mode based on cloud computing, and under the operational mode of cloud game, all game are all in clothes
Control input is transferred to server by business device end operation, user, and server is responsible for computing and renders game picture, finally regards sound
Frequency sends user to after compressing by network.In client, the game station of user does not need any high-end processors and video card,
Only needing to basic video compression ability can just play game.In cloud computing application, based on holding for high in the clouds calculation server
Continuous stable offer service, and the centralized and unified management of data can be ensured, the access that client then can be random is broken away from
Operation equipment, runtime, quantity, the turn-on time accessed etc. are limited.
For the cloud computing demand of user, identical cloud computing body is obtained in different equipment or system for the ease of user
Test, cloud computing service beyond the clouds can a virtual suitable application scenarios cloud computing virtual machine, the virtual machine possesses similar main frame
Input and output.
In numerous cloud computing services for needing to set up cloud computing virtual machine, its principle is one meter of server virtual beyond the clouds
Calculation machine, the computer for being equal to one customization of offer is used to user, and the control order of user is transferred to into the computer, should
Computing goes out after result, then output information (for example, audio/video information etc.) is transferred to into user.In prior art, generally
The input and output of one user's correspondence complete set, user just cannot more become after accessing, if cause to want to switch input mode, need
User's connection is re-established using new configuration, or even need to re-establish virtual machine.
The content of the invention
Present invention is primarily targeted at a kind of input and output control method based on cloud computing and device are disclosed, so that
The input and output of user's correspondence complete set in correlation technique are solved less, and user just cannot more become after accessing, if causing to think
During switching input mode, need to re-establish user's connection using new configuration, or even need to re-establish the problem of virtual machine.
According to an aspect of the invention, there is provided a kind of input and output control method based on cloud computing.
Input and output control method based on cloud computing of the invention includes:By the input resource of cloud computing server
One or more input resource modules are divided into, and the output resource of cloud computing server is divided into into one or more output moneys
Source module;Client to each access cloud computing server, is respectively allocated, stops, exchanging or makes client to share
At least one is input at least one output resource in resource module and/or the output resource module in the input resource module
Module;For each described client it is corresponding at least one input resource module integrate respectively, and by integration after it is defeated
Enter resource and be supplied to the cloud computing server;It is defeated after the cloud computing server is calculated for client each described
Go out resource to transmit to the client according to the corresponding output resource module of the client.
Preferably, the input resource module includes:Input control module, the mouse whole of keyboard all or part button
Or input control module, input control module, the rocking bar all or part of handle all or part operated key of part operation key
The input control module of operated key, the input control module of touch screen all or part operating space, image acquisition input control mould
Block, audio collection input control module.
Preferably, the output control module includes:Image output control module, audio output control module.
Preferably, to the client of each access cloud computing server, it is respectively allocated, stops, exchanging or makes visitor
Family end share it is described input resource module at least one input resource module and/or the output resource module at least one
Output resource module includes:It is determined that one or more clients for the limit that is possessed of control power, wherein, the control authority includes:Point
With, stop, exchanging or make client to share at least one input resource module and/or described in the input resource module
The authority of at least one output resource module in output resource module;For each one or more of client, according to this
The corresponding control authority of client is respectively allocated, stops, exchanging or makes client to share in the input resource module at least
At least one output resource module in one input resource module and/or the output resource module.
Thoroughly do away with another aspect of the present invention, there is provided a kind of input-output control unit based on cloud computing.
Input-output control unit based on cloud computing of the invention includes:Division unit, for cloud computing to be taken
The input resource of business device is divided into one or more input resource modules, and the output resource of cloud computing server is divided into into one
Individual or multiple output resource modules;Control unit, for the client to each access cloud computing server, divides respectively
With, stop, exchanging or make client to share at least one input resource module and/or described in the input resource module
At least one output resource module in output resource module;Integral unit, for corresponding to client each described at least one
Individual input resource module is integrated respectively, and the input resource after integration is supplied to into the cloud computing server;Transmission is single
Unit, for client each described, the output resource after the cloud computing server is calculated to be corresponding according to the client
Output resource module is transmitted to the client.
Preferably, the input resource module includes:Input control module, the mouse whole of keyboard all or part button
Or input control module, input control module, the rocking bar all or part of handle all or part operated key of part operation key
The input control module of operated key, the input control module of touch screen all or part operating space, image acquisition input control mould
Block, audio collection input control module.
Preferably, the output control module includes:Image output control module, audio output control module.
Preferably, described control unit includes:Determination subelement, for determining one or more visitors for the limit that is possessed of control power
Family end, wherein, the control authority includes:Distribute, stop, exchanging or make client to share in the input resource module
The authority of at least one output resource module at least one input resource module and/or the output resource module;Control
Unit, in being arranged at one or more of clients, for for each one or more of client, according to the client
Corresponding control authority is held to be respectively allocated, stop, exchanging or make client to share at least one in the input resource module
At least one output resource module in input resource module and/or the output resource module.
Compared with prior art, the embodiment of the present invention at least has advantages below:In new cloud computing scene, by cloud computing
The input resource of server and output resource are divided into one or more minimum modules, and above-mentioned module is allocated, is stopped,
Exchange or shared control, flexibly obtain input resource from each client, be integrated into unified input resource and be supplied to
Server operation, and operation result output resource is transferred to into different accesses by the corresponding output resource module of each client
User, so as to reach the purpose that need not re-establish cloud computing scene, while defeated in the input that need not reconfigure user
In the case of going out demand, user access administration and user input output demand switching are neatly carried out.
Description of the drawings
Fig. 1 is the flow chart of the input and output control method based on cloud computing according to embodiments of the present invention;
Fig. 2 is the schematic diagram that according to embodiments of the present invention one subscription client A has handle control authority;
Fig. 3 is the schematic diagram that according to embodiments of the present invention one subscription client B has handle control authority;
Fig. 4 is the control authority that according to embodiments of the present invention three subscription client has respectively rocker section operated key
Schematic diagram;
Fig. 5 is the control authority that according to embodiments of the present invention three subscription client A, B exchanges rocker section operated key
Schematic diagram;
Fig. 6 is the structured flowchart of the input-output control unit based on cloud computing according to embodiments of the present invention;
Fig. 7 is the structured flowchart of the input-output control unit based on cloud computing according to the preferred embodiment of the invention.
Specific embodiment
The specific implementation of the present invention is made a detailed description with reference to Figure of description.
Fig. 1 is the flow chart of the input and output control method based on cloud computing according to embodiments of the present invention.Such as Fig. 1 institutes
Show, should be based on the input and output control method of cloud computing includes:
Step S101:The input resource of cloud computing server is divided into into one or more input resource modules, and by cloud
The output resource of calculation server is divided into one or more output resource modules;
Step S103:Client to each access cloud computing server, is respectively allocated, stops, exchanging or makes client
Share in above-mentioned input resource module at least one defeated at least one input resource module and/or above-mentioned output resource module in end
Go out resource module;
Step S105:At least one input resource module corresponding for each client is integrated respectively, and will be whole
Input resource after conjunction is supplied to above-mentioned cloud computing server;
Step S107:For each client, the output resource after cloud computing server is calculated is according to the client pair
The output resource module answered is transmitted to the client.
In correlation technique, when scene demand user applies, input and output on demand require to set up cloud computing scene, when
When user input output demand is changed, need to close cloud computing scene and re-establish new cloud computing scene, Huo Zheyong
Family first disconnects, and the input and output for more renewing are with postponing re-attached.It is defeated using the input based on cloud computing shown in Fig. 1
Discharge control method, in new cloud computing scene, by the input resource of cloud computing server and output resource one or many is divided into
Individual minimum module, and to the control that above-mentioned module is allocated, stops, exchanging or shares, flexibly obtain from each client
Input resource is taken, is integrated into unified input resource and is supplied to server operation, and by operation result output resource by each visitor
The corresponding output resource module in family end is transferred to different accessing users, and so as to reach cloud computing scene need not be re-established
Purpose, while in the case where the input and output demand of user need not be reconfigured, neatly carry out user access administration and
User input output demand switching.
Preferably, above-mentioned input resource module is included but is not limited to:The input control module of keyboard all or part button,
The input control module of mouse all or part operated key, the input control module of handle all or part operated key, rocking bar are complete
The input control module of portion or part operation key, the input control module of touch screen all or part operating space, image acquisition are defeated
Enter control module, audio collection input control module.
Preferably, above-mentioned output control module is included but is not limited to:Image output control module, audio output control mould
Block.
Preferably, to the client of each above-mentioned cloud computing server of access, it is respectively allocated, stops, exchanging or makes visitor
Share in above-mentioned input resource module at least one at least one input resource module and/or above-mentioned output resource module at family end
Output resource module includes:It is determined that one or more clients for the limit that is possessed of control power, wherein, above-mentioned control authority includes:Point
With, stop, exchanging or make client to share in above-mentioned input resource module at least one input resource module and/or above-mentioned
The authority of at least one output resource module in output resource module;For each said one or multiple client, according to this
The corresponding control authority of client is respectively allocated, stops, exchanging or makes client to share in above-mentioned input resource module at least
At least one output resource module in one input resource module and/or above-mentioned output resource module.
As can be seen here, the above-mentioned limit that is possessed of control power can be one or more clients, for example it may be predetermined that playing
The client that the client of family A has the authority for exchanging handle controller, player A can control whole key-press inputs of handle
The control of module exchanges client corresponding to player B, and in the corresponding clients of player B, the client of player A is again by the handss
The control of whole key-press input control modules of handle is exchanged to the client itself.
Further describe with reference to embodiments and above-mentioned be preferable to carry out process.
Embodiment one
Cloud game help I play application in, as shown in Fig. 2 in output facet, each subscription client of access is received
To the identical output (for example, game picture, audio frequency) for coming from cloud computing server;In terms of input, it may be determined that master control side
Possess the control authority for exchanging controller (for example, handle, keyboard etc.) for player's customer end A, and the button of whole handle is grasped
The control authority of work is exchanged to the customer end B for assisting player, may refer to Fig. 3, is completed after operation by customer end B, and customer end A is again
Exchange back the control authority of the button operation of whole handle, or customer end A is by the control authority of the button operation of whole handle
Exchange to player's client C to complete.
In whole implementation process, scene of game need not rebuild, and output is also unified, and unique change is exactly 1P
The control input authority of handle, and the authority for exchanging the control input of 1P handles is arranged in customer end A.
Embodiment two
In cloud game application, in output facet, each subscription client of access is received and comes from cloud computing service
The identical output (for example, game picture, audio frequency) of device;When assisting the customer end B of player to only need to see image, without the need for receiving audio frequency
When output can just assist the customer end A of player to play game, it is defeated that customer end B can only receive video image to system application acquisition
Go out, do not receive the control authority of audio output;Meanwhile, customer end A can continue to the two kinds of outputs of image and audio frequency, client
B possesses and only receive video image output, after not receiving the control authority of audio output, can close voice output, now visitor
Family end A players are simultaneously unaffected.
Embodiment three
In driving shooting game application, as shown in figure 4, drive battlebus to need to operate rocking bar LS to select garage direction, LT,
RT keys represent accelerator key and brake key;And the direction for needing to operate rocking bar RS to control bullet shooting is shot, A, B key then can be cut
Change the bullet shooting of different attack types;
When user A is entered by customer end A to play, determine that all of input operation control authority distributes to client
A, the handle of customer end A can not only drive but also can shoot;
When user B by customer end B enter play when, with user A come together play game when, system determine by rocking bar RS with
And the input operation control authority of A, B key distributes to customer end B, it is determined that stopping input of the customer end A to rocking bar RS and A, B key
Operational control authority, customer end A only has the input operation control authority of rocking bar LS and LT, RT key to control to drive;And make
Customer end B has the input operation control authority of rocking bar RS and A, B key to control shooting.
As shown in figure 5, when user A is bad to drive, control authority can be exchanged to system application by customer end A,
System determines distributes to customer end A by the input operation control authority of rocking bar RS and A, B key, it is determined that stopping customer end A to shaking
The input operation control authority of bar LS and LT, RT key, customer end A only has the input operation control of rocking bar RS and A, B key
Authority come control shooting;And make customer end B that there is the input operation control authority of rocking bar LS and LT, RT key to control to drive.
Example IV
Video is given lessons in live application, and real time execution large software on cloud computing server, teacher A is awarded by customer end A
Class, teacher B are given lessons by customer end B, and S1 student is listened to the teacher by client S1, S2 student is listened to the teacher by client S2.Cloud computing
The input resource module of server is included but is not limited to:The input control module of keyboard, the input control module of mouse, photographic head
Image acquisition input control module, microphone audio collection input control module, these input resources are by cloud computing server
The software of operation is integrated and rendered, and is formed audiovisual presentation and is exported to client S1 and S2.
Teacher A says time service by customer end A, and customer end A is assigned the control of the input control module of its mouse and keyboard
Authority processed, and it is assigned the control of its camera image collection input control module and microphone audio collection input control module
Authority processed, cloud computing server is integrated and rendered according to these input resources sends output to client S1 and S2.
Teacher A is lectured after completing, and the control authority of customer end A is exchanged and divided to customer end B, i.e. customer end B by system
It is furnished with the control authority of the input control module of its mouse and keyboard, and is assigned its camera image collection input control mould
Block and microphone audio gather the control authority of input control module;Teacher B can continue to explain by customer end B, and client
End A is because have the control authority of the input control module of its mouse and keyboard, and be input into its camera image collection
Control module and microphone audio gather the control authority of input control module, therefore customer end A can stop its mouse and key
The input control module of disk simultaneously stops its camera image collection input control module and microphone audio collection input control mould
Block, disconnects all of connection.
After the completion of teacher B is by customer end B instruction, student is needed to put into practice, customer end B stops the input of its mouse and keyboard
Control module simultaneously stops its camera image collection input control module and microphone audio collection input control module, by visitor
The partial control limit of family end B is exchanged to client S1 of S1 student, and client S1 is assigned the input of its mouse and keyboard
The control authority of control module, and customer end B continues have its camera image collection input control module and microphone audio
Collection input control module control authority, S1 student by client S1 operate when, teacher B by customer end B after
The continuous explanation that video and audio frequency are provided.If the thinking of S1 student is incorrect, teacher B can control the above-mentioned part of customer end B
Authority processed is exchanged to client S2 of S2 student, and client S2 is assigned the control of the input control module of its mouse and keyboard
Authority, after the completion of the input control module input that S2 student passes through its mouse and keyboard, teacher B can be by the above-mentioned of customer end B
Partial control freight weight limit is newly exchanged to customer end B itself, and continuation is entered by teacher B by the input control module of its mouse and keyboard
Row parsing.
Fig. 6 is the structured flowchart of the input-output control unit based on cloud computing according to embodiments of the present invention.Such as Fig. 6 institutes
Show, should be based on the input-output control unit of cloud computing includes:Division unit 10, for by the input resource of cloud computing server
One or more input resource modules are divided into, and the output resource of cloud computing server is divided into into one or more output moneys
Source module;Control unit 12, for the client to each above-mentioned cloud computing server of access, be respectively allocated, stop, exchanging,
Or client is shared in above-mentioned input resource module at least one input resource module and/or above-mentioned output resource module
At least one output resource module;Integral unit 14, for being input into resource mould to each above-mentioned client corresponding at least one
Block is integrated respectively, and the input resource after integration is supplied to into above-mentioned cloud computing server;Transmission unit 16, for every
Individual above-mentioned client, the output resource after above-mentioned cloud computing server is calculated is according to the corresponding output resource module of the client
Transmit to the client.
Using the input-output control unit based on cloud computing shown in Fig. 6, in new cloud computing scene, division unit 10
The input resource of cloud computing server and output resource are divided into into one or more minimum modules, control unit 12 is to above-mentioned mould
The control that block is allocated, stops, exchanging or shares, flexibly obtains input resource, integral unit 14 from each client
Being integrated into unified input resource is supplied to server operation, transmission unit 16 that operation result output resource is pressed into each client
Corresponding output resource module is transferred to different accessing users, so as to reach the mesh that need not re-establish cloud computing scene
, while in the case where the input and output demand of user need not be reconfigured, neatly carrying out user access administration and use
Input and output demand in family switches.
Preferably, above-mentioned input resource module is included but is not limited to:The input control module of keyboard all or part button,
The input control module of mouse all or part operated key, the input control module of handle all or part operated key, rocking bar are complete
The input control module of portion or part operation key, the input control module of touch screen all or part operating space, image acquisition are defeated
Enter control module, audio collection input control module.
Preferably, above-mentioned output control module is included but is not limited to:Image output control module, audio output control mould
Block.
Preferably, as shown in fig. 7, above-mentioned control unit 12 may further include:Determination subelement 120, for determining
One or more clients for the limit that is possessed of control power, wherein, above-mentioned control authority includes:Distribute, stop, exchanging or make visitor
Share in above-mentioned input resource module at least one at least one input resource module and/or above-mentioned output resource module at family end
The authority of output resource module;Control subelement 122, in being arranged at said one or multiple client, for for each
One or more clients are stated, according to the corresponding control authority of the client client is respectively allocated, stops, exchanging or makes
At least one is input at least one output in resource module and/or above-mentioned output resource module in shared above-mentioned input resource module
Resource module.
In sum, above-described embodiment for providing by the present invention, in new cloud computing scene, by cloud computing server
Input resource and output resource are divided into one or more minimum modules, and above-mentioned module is allocated, is stopped, being exchanged or
Shared control, flexibly obtains input resource from each client, is integrated into unified input resource and is supplied to server to transport
Calculate, and operation result output resource is transferred to into different accessing users by the corresponding output resource module of each client, from
And reached cloud computing scene when scene demand user applies, input and output on demand require to set up, when user input it is defeated
When going out demand and changing, without the need for closing cloud computing scene and re-establishing the purpose of new cloud computing scene, while being not required to
In the case of reconfiguring the input and output demand of user, user access administration and user input output demand are neatly carried out
Switching.
Disclosed above is only several specific embodiments of the present invention, but, the present invention is not limited to this, any ability
What the technical staff in domain can think change should all fall into protection scope of the present invention.