Input and output control method and device based on cloud computing
Technical Field
The invention relates to the field of communication, in particular to an input and output control method and device based on cloud computing.
Background
Cloud computing (cloud computing) is an internet-based computing approach by which shared software and hardware resources and information can be provided to computers and other devices on demand. The entire operation of cloud computing is similar to a power grid. The core idea of cloud computing is to uniformly manage and schedule a large number of computing resources connected by a network to form a computing resource pool to serve users on demand, wherein the network providing the resources is called as a 'cloud'.
The cloud game is a game mode based on cloud computing, all games run at a server side in a running mode of the cloud game, a user transmits control input to the server, the server is responsible for calculating and rendering game pictures, and finally audio and video are compressed and transmitted to the user through a network. At the client, the user's gaming device does not require any high-end processor and graphics card, but only requires basic video decompression capability to play the game. In the cloud computing application, the cloud computing server-based service can be continuously and stably provided, centralized and unified management of data can be guaranteed, the client can be randomly accessed, and the limitations of operation equipment, an operation system, the number of accesses, the access time and the like are eliminated.
Aiming at the cloud computing requirements of users, in order to facilitate the users to obtain the same cloud computing experience in different devices or systems, the cloud computing service can virtualize a cloud computing virtual machine suitable for an application scene at the cloud end, and the virtual machine has input and output similar to a host.
In many cloud computing services requiring establishment of a cloud computing virtual machine, the principle is that a cloud server virtualizes a computer, which is equivalent to providing a customized computer for a user to use, a controller command of the user is transmitted to the computer, and the computer calculates a result and then transmits output information (e.g., audio/video information) to the user. In the prior art, generally, one user corresponds to a set of complete input and output, and the user cannot change after accessing, so that when the user wants to switch input modes, the user needs to reestablish user connection by using new configuration, and even needs to reestablish a virtual machine.
Disclosure of Invention
The invention mainly aims to disclose an input/output control method and device based on cloud computing, which at least solve the problem that in the related art, one user corresponds to a set of complete input/output, and the user cannot change after accessing, so that the user connection needs to be reestablished by using new configuration and even the virtual machine needs to be reestablished if the input mode needs to be switched.
According to one aspect of the invention, an input and output control method based on cloud computing is provided.
The input and output control method based on the cloud computing comprises the following steps: dividing input resources of a cloud computing server into one or more input resource modules, and dividing output resources of the cloud computing server into one or more output resource modules; for each client connected to the cloud computing server, respectively allocating, stopping, exchanging, or enabling the client to share at least one input resource module in the input resource modules and/or at least one output resource module in the output resource modules; respectively integrating at least one input resource module corresponding to each client, and providing the integrated input resources to the cloud computing server; and for each client, transmitting the output resources calculated by the cloud computing server to the client according to the output resource module corresponding to the client.
Preferably, the input resource module includes: the keyboard comprises an input control module of all or part of keys, an input control module of all or part of operation keys of a mouse, an input control module of all or part of operation keys of a handle, an input control module of all or part of operation keys of a rocker, an input control module of all or part of operation areas of a touch screen, an image acquisition input control module and an audio acquisition input control module.
Preferably, the output control module includes: the device comprises an image output control module and an audio output control module.
Preferably, for each client accessing the cloud computing server, respectively allocating, stopping, exchanging, or enabling the client to share at least one of the input resource modules and/or at least one of the output resource modules includes: determining one or more clients having control permissions, wherein the control permissions comprise: allocating, stopping, exchanging, or enabling the client to share the authority of at least one input resource module of the input resource modules and/or at least one output resource module of the output resource modules; and for each client or the plurality of clients, respectively allocating, stopping, exchanging or enabling the client to share at least one input resource module in the input resource modules and/or at least one output resource module in the output resource modules according to the control authority corresponding to the client.
According to another aspect of the present invention, there is provided a cloud computing-based input/output control apparatus.
The cloud computing-based input/output control apparatus according to the present invention includes: the system comprises a dividing unit, a processing unit and a processing unit, wherein the dividing unit is used for dividing input resources of a cloud computing server into one or more input resource modules and dividing output resources of the cloud computing server into one or more output resource modules; the control unit is used for respectively allocating, stopping and exchanging or enabling the client to share at least one input resource module in the input resource modules and/or at least one output resource module in the output resource modules for each client connected to the cloud computing server; the integration unit is used for respectively integrating at least one input resource module corresponding to each client and providing the integrated input resources to the cloud computing server; and the transmission unit is used for transmitting the output resources calculated by the cloud computing server to each client according to the output resource module corresponding to the client.
Preferably, the input resource module includes: the keyboard comprises an input control module of all or part of keys, an input control module of all or part of operation keys of a mouse, an input control module of all or part of operation keys of a handle, an input control module of all or part of operation keys of a rocker, an input control module of all or part of operation areas of a touch screen, an image acquisition input control module and an audio acquisition input control module.
Preferably, the output control module includes: the device comprises an image output control module and an audio output control module.
Preferably, the control unit includes: a determining subunit configured to determine one or more clients having control permissions, wherein the control permissions include: allocating, stopping, exchanging, or enabling the client to share the authority of at least one input resource module of the input resource modules and/or at least one output resource module of the output resource modules; and the control subunit is arranged in the one or more clients and is used for respectively allocating, stopping and exchanging or enabling the clients to share at least one input resource module in the input resource modules and/or at least one output resource module in the output resource modules according to the control authority corresponding to the client for each one or more clients.
Compared with the prior art, the embodiment of the invention at least has the following advantages: in a new cloud computing scene, input resources and output resources of a cloud computing server are divided into one or more minimum modules, the modules are controlled to be distributed, stopped, exchanged or shared, the input resources are flexibly acquired from each client and integrated into uniform input resources to be provided for server operation, and operation result output resources are transmitted to different access users according to the output resource modules corresponding to the clients, so that the purpose of re-establishing the cloud computing scene is achieved, and meanwhile, user access management and user input and output requirement switching are flexibly performed under the condition that input and output requirements of users do not need to be re-configured.
Drawings
Fig. 1 is a flowchart of a cloud computing-based input-output control method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a user client A having a handle control authority according to a first embodiment of the present invention;
FIG. 3 is a diagram illustrating a user client B having handle control authority according to a first embodiment of the present invention;
FIG. 4 is a diagram illustrating a user client having control authority of operation keys of a joystick portion according to a third embodiment of the present invention;
fig. 5 is a diagram illustrating a user client A, B exchanging control authority of a joystick portion operation key according to a third embodiment of the present invention;
fig. 6 is a block diagram of a configuration of an input/output control apparatus based on cloud computing according to an embodiment of the present invention;
fig. 7 is a block diagram of a configuration of an input/output control apparatus based on cloud computing according to a preferred embodiment of the present invention.
Detailed Description
The following detailed description of specific embodiments of the present invention is provided in conjunction with the accompanying drawings.
Fig. 1 is a flowchart of an input-output control method based on cloud computing according to an embodiment of the present invention. As shown in fig. 1, the input and output control method based on cloud computing includes:
step S101: dividing input resources of a cloud computing server into one or more input resource modules, and dividing output resources of the cloud computing server into one or more output resource modules;
step S103: respectively allocating, stopping, exchanging or enabling the client to share at least one input resource module in the input resource modules and/or at least one output resource module in the output resource modules for each client accessing the cloud computing server;
step S105: respectively integrating at least one input resource module corresponding to each client, and providing the integrated input resources to the cloud computing server;
step S107: and for each client, transmitting the output resources calculated by the cloud computing server to the client according to the output resource module corresponding to the client.
In the related art, a cloud computing scene is established according to a required input/output requirement when a user needs a scene to apply for the scene, and when the input/output requirement of the user is changed, the cloud computing scene needs to be closed and a new cloud computing scene needs to be established again, or the user disconnects the connection first and then reconnects the new input/output configuration after the new input/output configuration is changed. By adopting the input and output control method based on cloud computing shown in fig. 1, in a new cloud computing scene, the input resources and the output resources of the cloud computing server are divided into one or more minimum modules, the modules are controlled to be distributed, stopped, exchanged or shared, the input resources are flexibly obtained from each client, the input resources are integrated into a unified input resource to be provided for the server to operate, and the operation result output resources are transmitted to different access users according to the output resource modules corresponding to the clients, so that the purpose of re-establishing the cloud computing scene is achieved, and meanwhile, the user access management and the user input and output requirement switching are flexibly performed under the condition that the input and output requirements of the user do not need to be reconfigured.
Preferably, the input resource module includes but is not limited to: the keyboard comprises an input control module of all or part of keys, an input control module of all or part of operation keys of a mouse, an input control module of all or part of operation keys of a handle, an input control module of all or part of operation keys of a rocker, an input control module of all or part of operation areas of a touch screen, an image acquisition input control module and an audio acquisition input control module.
Preferably, the output control module includes but is not limited to: the device comprises an image output control module and an audio output control module.
Preferably, the allocating, stopping, exchanging, or enabling the clients to share at least one input resource module of the input resource modules and/or at least one output resource module of the output resource modules for each client accessing the cloud computing server respectively includes: determining one or more clients having control authority, wherein the control authority comprises: allocating, stopping, exchanging, or enabling the client to share the authority of at least one input resource module in the input resource modules and/or at least one output resource module in the output resource modules; and for each client or the plurality of clients, respectively allocating, stopping, exchanging or enabling the client to share at least one input resource module in the input resource modules and/or at least one output resource module in the output resource modules according to the control authority corresponding to the client.
It can be seen that, the client having the control authority may be one or more clients, for example, the client of the player a may be determined to have the authority to exchange the handle controller, the client of the player a may exchange the control authority of all the key input control modules of the handle to the client corresponding to the player B, and the client of the player a may exchange the control authority of all the key input control modules of the handle to the client itself at the client corresponding to the player B.
The preferred embodiments are further described below with reference to the following examples.
Example one
In the help-me-play application of the cloud game, as shown in fig. 2, in terms of output, each accessed user client receives the same output (e.g., game screen, audio) from the cloud computing server; in terms of input, it may be determined that the master side has a control authority for exchanging a controller (for example, a handle, a keyboard, or the like) for the player client a, and exchanges the control authority of the key operation of the entire handle to the client B assisting the player, and as shown in fig. 3, after the client B completes the operation, the client a exchanges the control authority of the key operation of the entire handle back, or the client a exchanges the control authority of the key operation of the entire handle to the player client C.
In the whole implementation process, the game scene does not need to be reconstructed, the output is uniform, the only change is the control input authority of the 1P handle, and the setting of the authority of the control input of the 1P handle is exchanged in the client A.
Example two
In cloud game applications, each user client that is accessed receives the same output (e.g., game screen, audio) from the cloud computing server in terms of output; when the client B assisting the player can assist the client A of the player to play the game only by watching the image without receiving the audio output, the client B can apply to the system to obtain the control authority of only receiving the video image output and not receiving the audio output; meanwhile, the client A can continue to receive two outputs of images and audio, the client B only receives the output of video images and can close the sound output after not receiving the control authority of audio output, and the player of the client A is not influenced at the moment.
EXAMPLE III
In the driving shooting game application, as shown in fig. 4, when driving a combat tank, a rocker LS needs to be operated to select the traveling direction, and LT and RT keys represent an accelerator key and a brake key; the rocker RS is required to be operated to control the bullet shooting direction during shooting, and the A, B key can switch bullet shooting of different attack types;
when a user A enters a game through a client A, determining that all input operation control authorities are distributed to the client A, wherein a handle of the client A can be used for driving and shooting;
when a user B enters a game through a client B and plays the game together with the user A, the system determines that the input operation control authority of the rocker RS and A, B keys is allocated to the client B, determines to stop the input operation control authority of the client A on the rocker RS and A, B keys, and the client A only has the input operation control authority of the rocker LS, the LT and the RT keys to control driving; and the client B has the input operation control authority of the rocker RS and A, B keys to control the shooting.
As shown in fig. 5, when the user a is not good at driving, the client a applies for the exchange control authority to the system, the system determines to assign the input operation control authority of the rocker RS and A, B keys to the client a, determines to stop the input operation control authority of the client a on the rocker LS and LT, RT keys, and the client a only has the input operation control authority of the rocker RS and A, B keys to control shooting; and the client B has the input operation control authority of a rocker LS and LT and RT keys to control driving.
Example four
In the video teaching live broadcast application, large software runs on a cloud computing server in real time, a teacher A gives a course through a client A, a teacher B gives a course through a client B, an S1 student attends a course through a client S1, and an S2 student attends a course through a client S2. The input resource modules of the cloud computing server include but are not limited to: the input resources are integrated and rendered by software running on a cloud computing server to form audio and video images and output the audio and video images to the clients S1 and S2.
And the teacher A gives time through the client A, the client A is distributed with control authorities of input control modules of a mouse and a keyboard of the teacher A and is distributed with control authorities of a camera image acquisition input control module and a microphone audio acquisition input control module of the teacher A, and the cloud computing server performs integration and rendering according to the input resources and sends output to the clients S1 and S2.
After the teacher A finishes the teaching, the system exchanges the control authority of the client A to the client B, namely the client B is distributed with the control authority of the input control module of the mouse and the keyboard and is distributed with the control authority of the camera image acquisition input control module and the microphone audio acquisition input control module; the teacher B can continue to explain through the client B, and the client A has the control authority of the input control module of the mouse and the keyboard and the control authority of the camera image acquisition input control module and the microphone audio acquisition input control module, so that the client A can stop the input control module of the mouse and the keyboard, stop the camera image acquisition input control module and the microphone audio acquisition input control module and disconnect all connections.
After the teacher B finishes the teaching through the client B, the practice of the student is needed, the client B stops the input control modules of the mouse and the keyboard, stops the camera image acquisition input control module and the microphone audio acquisition input control module, and transfers part of the control authority of the client B to the client S1 of the student S1, the client S1 is distributed with the control authority of the input control modules of the mouse and the keyboard, while the client B continues to have the control authority of the camera image acquisition input control module and the microphone audio acquisition input control module, and when the student S1 operates through the client S1, the teacher B continues to provide the teaching of the video and the audio through the client B. If the thinking of the student S1 is incorrect, the teacher B can transfer the partial control authority of the client B to the client S2 of the student S2, the client S2 is assigned with the control authority of the input control module of the mouse and the keyboard, and after the student S2 finishes inputting through the input control module of the mouse and the keyboard, the teacher B can transfer the partial control authority of the client B to the client B and the teacher B continues to analyze the partial control authority through the input control module of the mouse and the keyboard.
Fig. 6 is a block diagram of a cloud computing-based input/output control apparatus according to an embodiment of the present invention. As shown in fig. 6, the cloud computing-based input/output control apparatus includes: a dividing unit 10, configured to divide input resources of the cloud computing server into one or more input resource modules, and divide output resources of the cloud computing server into one or more output resource modules; a control unit 12, configured to allocate, stop, change, or enable a client to share at least one input resource module of the input resource modules and/or at least one output resource module of the output resource modules for each client accessing the cloud computing server; an integration unit 14, configured to integrate at least one input resource module corresponding to each client, and provide the integrated input resource to the cloud computing server; and a transmission unit 16, configured to transmit, to each client, the output resource calculated by the cloud computing server to the client according to the output resource module corresponding to the client.
By using the input/output control device based on cloud computing shown in fig. 6, in a new cloud computing scenario, the dividing unit 10 divides input resources and output resources of the cloud computing server into one or more minimum modules, the control unit 12 controls allocation, stop, exchange, or sharing of the modules, flexibly obtains the input resources from each client, the integration unit 14 integrates the unified input resources into a unified input resource for server operation, and the transmission unit 16 transmits the operation result output resources to different access users according to the output resource modules corresponding to each client, thereby achieving the purpose of no need of re-establishing the cloud computing scenario, and flexibly performing user access management and user input/output requirement switching without need of re-configuring the input/output requirements of the users.
Preferably, the input resource module includes but is not limited to: the keyboard comprises an input control module of all or part of keys, an input control module of all or part of operation keys of a mouse, an input control module of all or part of operation keys of a handle, an input control module of all or part of operation keys of a rocker, an input control module of all or part of operation areas of a touch screen, an image acquisition input control module and an audio acquisition input control module.
Preferably, the output control module includes but is not limited to: the device comprises an image output control module and an audio output control module.
Preferably, as shown in fig. 7, the control unit 12 may further include: a determining subunit 120, configured to determine one or more clients having control authority, where the control authority includes: allocating, stopping, exchanging, or enabling the client to share the authority of at least one input resource module in the input resource modules and/or at least one output resource module in the output resource modules; and a control subunit 122, configured to, for each of the one or more clients, respectively allocate, stop, and exchange the control authority corresponding to the client, or enable the client to share at least one input resource module of the input resource modules and/or at least one output resource module of the output resource modules.
In summary, with the above embodiments provided by the present invention, in a new cloud computing scenario, the input resources and the output resources of the cloud computing server are divided into one or more minimum modules, and the modules are controlled to be distributed, stopped, exchanged or shared, input resources are flexibly obtained from each client and integrated into a uniform input resource for the server to operate, and transmitting the output resources of the operation result to different access users according to the output resource modules corresponding to the clients, thereby achieving the purpose that when a user requests the scene, the cloud computing scene is established according to the required input and output requirements, when the input and output requirements of the user are changed, the cloud computing scene does not need to be closed and a new cloud computing scene is not needed to be established again, meanwhile, under the condition that the input and output requirements of the user do not need to be reconfigured, user access management and user input and output requirement switching are flexibly carried out.
The above disclosure is only for a few specific embodiments of the present invention, but the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.