CN112887337A - Control method of device - Google Patents

Control method of device Download PDF

Info

Publication number
CN112887337A
CN112887337A CN202110283105.2A CN202110283105A CN112887337A CN 112887337 A CN112887337 A CN 112887337A CN 202110283105 A CN202110283105 A CN 202110283105A CN 112887337 A CN112887337 A CN 112887337A
Authority
CN
China
Prior art keywords
virtual machine
identification code
terminal device
connection
terminal
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.)
Pending
Application number
CN202110283105.2A
Other languages
Chinese (zh)
Inventor
章杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202110283105.2A priority Critical patent/CN112887337A/en
Publication of CN112887337A publication Critical patent/CN112887337A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Power Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Engineering & Computer Science (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a control method of a device. The method comprises the following steps: after receiving a request message sent by first terminal equipment, generating an identification code according to current connection information of a virtual machine connected with the first terminal equipment, wherein the request message is used for requesting to switch the terminal equipment connected with the virtual machine; controlling the first terminal equipment to display the identification code; and receiving a scanning result obtained after the second terminal equipment performs scanning operation on the identification code, and establishing a connection relation between the second terminal equipment and the virtual machine according to the scanning operation result. By the method and the device, the problem of complex operation when the terminal equipment for displaying the application program running on the virtual machine is switched in the related technology is solved.

Description

Control method of device
Technical Field
The application relates to the technical field of equipment communication connection, in particular to a control method of equipment.
Background
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, and a rendered game picture is compressed and then transmitted to a user through a network. At the client, the user's gaming device does not require any high-end processor and graphics card, but only basic video decompression capability. When a terminal user conducts a cloud game through the system, the user logs in a virtual machine distributed by the cloud server in an account password mode based on the terminal device, and then obtains a desktop image from the virtual machine so as to conduct the game.
In a cloud game scenario, there is a need for switching terminal devices, for example, a user wants to switch a terminal device for playing a game while logging in a virtual machine to play the game using one terminal device, and in the related art, the switching of the terminal device is implemented by: the user logs out from the current equipment, then logs in to the virtual machine through the account number and the password after inputting the server address from the new equipment, so that the user enters the previous desktop and continues the game in progress. However, this approach is cumbersome and may result in a poor user experience due to game interruptions.
Aiming at the problem of complex operation when switching terminal equipment for displaying an application program running on a virtual machine in the related art, an effective solution is not provided at present.
Disclosure of Invention
The application provides a device control method to solve the problem of complex operation when switching a terminal device for displaying an application program running on a virtual machine in the related art.
According to an aspect of the present application, there is provided a control method of an apparatus. The method comprises the following steps: after receiving a request message sent by first terminal equipment, generating an identification code according to current connection information of a virtual machine connected with the first terminal equipment, wherein the request message is used for requesting to switch the terminal equipment connected with the virtual machine, and the current connection information at least comprises address information of a server where the virtual machine is located and authentication information of an application program logged in the virtual machine; controlling the first terminal equipment to display the identification code; and receiving a scanning result obtained after the second terminal equipment performs scanning operation on the identification code, and establishing a connection relation between the second terminal equipment and the virtual machine according to the scanning operation result.
Optionally, after receiving the request message sent by the first terminal device, before generating the identification code according to the current connection information of the virtual machine connected to the first terminal device, the method further includes: and establishing a connection relation between the first terminal equipment and the virtual machine of the server.
Optionally, after receiving the request message sent by the first terminal device, before generating the identification code according to the current connection information of the virtual machine connected to the first terminal device, the method further includes: determining a keyboard and mouse combination with a preset format so as to determine a message generated by operating the keyboard and mouse combination of the first terminal device as a request message; or determining a preset key so as to determine a message generated by operating the preset key of the first terminal device as a request message.
Optionally, the controlling the first terminal device to display the identification code includes: and adding the identification code to the desktop corresponding to the virtual machine, and sending the desktop image of the virtual machine to the first terminal equipment so as to control the first terminal equipment to display the identification code.
Optionally, the receiving a scanning result obtained after the second terminal device performs a scanning operation on the identification code, and establishing a connection relationship between the second terminal device and the virtual machine according to the scanning operation result includes: receiving a connection request initiated after a preset application program of the second terminal equipment performs scanning operation on the identification code; and disconnecting the connection between the first terminal equipment and the virtual machine based on the connection request, and establishing the connection between the second terminal equipment and the virtual machine.
Optionally, the receiving a connection request initiated after the preset application program of the second terminal device performs the scanning operation on the identification code includes: scanning the identification code through a third-party application program of the second terminal device to obtain current connection information, and receiving a connection request sent by a receiving end program of the second terminal based on the connection information; or the current connection information is obtained after the identification code is scanned by the receiving end program of the second terminal, and the connection request sent by the receiving end program based on the connection information is received.
Optionally, after receiving a connection request initiated after the preset application of the second terminal device scans the identification code, the method further includes: authenticating the connection request; and under the condition that the connection request authentication is passed, executing the steps of disconnecting the connection between the first terminal equipment and the virtual machine based on the connection request and establishing the connection between the second terminal equipment and the virtual machine.
Optionally, after receiving a scanning result obtained after the second terminal device performs a scanning operation on the identification code, and establishing a connection relationship between the second terminal device and the virtual machine according to the scanning operation result, the method further includes: and sending the desktop image of the virtual machine to the second terminal equipment so as to display the running condition of the application program on the second terminal equipment.
According to another aspect of the present application, there is provided another apparatus control method. The method comprises the following steps: a first terminal connected with a virtual machine sends a request message to a server, wherein the request message is used for requesting to switch terminal equipment connected with the virtual machine; receiving an identification code generated by a server based on current connection information of the virtual machine, and displaying the identification code, wherein the current connection information at least comprises address information of the server where the virtual machine is located and authentication information of an application program logged in the virtual machine; and under the condition of receiving a scanning result obtained after the scanning operation of the identification code, sending the scanning result to the server so as to establish a connection relationship between the execution terminal of the scanning operation and the virtual machine through the server.
According to another aspect of the present application, there is provided another apparatus control method. The method comprises the following steps: scanning an identification code displayed on first terminal equipment to obtain a scanning result, wherein the identification code is generated by current connection information of a virtual machine connected with the first terminal equipment, and the current connection information at least comprises address information of a server where the virtual machine is located and authentication information of an application program logged in the virtual machine; analyzing the scanning result to obtain the current connection information of the virtual machine; and generating a connection request based on the current connection information of the virtual machine, and sending the connection request to the server, wherein the connection request is used for requesting to establish a connection relation between the equipment for executing the scanning operation and the virtual machine.
According to another aspect of the embodiments of the present invention, there is also provided a nonvolatile storage medium including a stored program, wherein the program controls a device in which the nonvolatile storage medium is located to execute a control method of the device when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a processor and a memory; the memory has stored therein computer readable instructions, and the processor is configured to execute the computer readable instructions, wherein the computer readable instructions when executed perform a method of controlling the apparatus.
Through the application, the following steps are adopted: after receiving a request message sent by first terminal equipment, generating an identification code according to current connection information of a virtual machine connected with the first terminal equipment, wherein the request message is used for requesting to switch the terminal equipment connected with the virtual machine, and the current connection information at least comprises address information of a server where the virtual machine is located and authentication information of an application program logged in the virtual machine; controlling the first terminal equipment to display the identification code; and receiving a scanning result obtained after the second terminal device performs scanning operation on the identification code, and establishing a connection relation between the second terminal device and the virtual machine according to the scanning operation result, so that the problem of complex operation when switching the terminal device for displaying the application program running on the virtual machine in the related art is solved. The switching of the terminal equipment connected on the virtual machine is realized by identifying the identification code generated by the connection information, and the effect of improving the convenience of replacing the terminal equipment connected with the virtual machine is further achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 is a flowchart of a control method of an apparatus provided according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an apparatus operating system provided according to an embodiment of the present application;
FIG. 3 is a flow chart of a method of controlling a device provided according to an embodiment of the present application;
FIG. 4 is a flow chart of a method of controlling a device provided according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a control device of an apparatus provided according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a control device of an apparatus provided in accordance with an embodiment of the present application; and
fig. 7 is a schematic diagram of a control device of an apparatus provided according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present application, there is provided a control method of an apparatus.
Fig. 1 is a flowchart of a control method of an apparatus according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S102, after receiving a request message sent by a first terminal device, generating an identification code according to current connection information of a virtual machine connected to the first terminal device, wherein the request message is used for requesting to switch the terminal device connected to the virtual machine, and the current connection information at least includes address information of a server where the virtual machine is located and authentication information of an application program on a login virtual machine.
It should be noted that the method for controlling the device in the embodiment of the present application is applied to a cloud system, where the cloud system includes a cloud server, a virtual machine, and a terminal device, the cloud server allocates one virtual machine to each terminal device connected to the cloud server, and the virtual machine is used to process a service of the terminal device, and the cloud server receives a request message sent by a first terminal device and processes data.
In an optional implementation manner, taking an application as an example of a game program, the control method of the device is applied to a cloud game system, fig. 2 is a schematic diagram of a cloud game implementation architecture, and as shown in fig. 2, a cloud server allocates a virtual machine to each zero terminal connected to the cloud server for processing a service of the zero terminal.
Specifically, the zero terminal generates an application request by controlling a virtual machine, the operation processing in the application request is processed by a CPU, the image rendering related processing in the application request is processed by calling a graphics card resource in a graphics card resource pool by the virtual machine, and a virtual desktop can call the graphics card resource in a bottom graphics card resource pool according to the needs of an application layer, wherein the bottom graphics card resource is composed of a plurality of independent graphics cards with different sizes and performances, and the graphics cards are organized together in the form of a GPU PT (direct connection) cluster or a blade cluster.
Optionally, in the method for controlling a device provided in this embodiment of the present application, after receiving the request message sent by the first terminal device, before generating the identification code according to the current connection information of the virtual machine connected to the first terminal device, the method further includes: and establishing a connection relation between the first terminal equipment and the virtual machine of the server.
Further, after the first terminal device and the cloud server establish connection for the virtual machines allocated to the first terminal device and the cloud server, the desktop image is acquired from the virtual machines. Specifically, a receiving end module (R end module) in the first terminal device and a sending end module (S end module) in the cloud server are connected, and the S end module encodes a desktop image acquired from the virtual machine and sends the desktop image to the R end module; and after receiving the coded image, the R-end module decodes the image and displays the desktop image obtained by decoding through a display.
The first terminal device may determine whether to send the request message by monitoring operations of the mouse and the keyboard, and optionally, after receiving the request message sent by the first terminal device, before generating the identification code according to current connection information of the virtual machine connected to the first terminal device, the method further includes: determining a keyboard and mouse combination with a preset format so as to determine a message generated by operating the keyboard and mouse combination of the first terminal device as a request message; or determining a preset key so as to determine a message generated by operating the preset key of the first terminal device as a request message.
Specifically, the first terminal sends a keyboard and mouse message requesting for switching the terminal device to the virtual machine, and the virtual machine sends the request message to the cloud server to request for initiating switching of the terminal device.
In order to improve the efficiency of sending the request message, a keyboard and mouse message with a fixed format can be preset, and when a user initiates the keyboard and mouse message conforming to the format to the virtual machine through the first terminal, the user is considered to request to initiate terminal equipment switching.
In an alternative embodiment, the keyboard and mouse message with the fixed format can be set as required, for example, it can be set as a shortcut key: ctrl + Alt + F11, in addition, a dedicated key for triggering terminal device switching may be further set on the terminal device, and the format of the keyboard and mouse message is not limited in this embodiment.
Further, after receiving a request message for requesting terminal device switching sent by the first terminal, the cloud server generates an identification code from current connection information such as a server address and account authentication information, which may be a two-dimensional code, for example.
And step S104, controlling the first terminal equipment to display the identification code.
Optionally, the controlling the first terminal device to display the identification code includes: and adding the identification code to the desktop corresponding to the virtual machine, and sending the desktop image of the virtual machine to the first terminal equipment so as to control the first terminal equipment to display the identification code.
Specifically, the generated two-dimensional code is added to a proper position of a current desktop image of the virtual machine, such as the center or the edge of the desktop, and the current desktop image is sent to the first terminal to control the first terminal device to display the identification code.
And step S106, receiving a scanning result obtained after the second terminal device performs scanning operation on the identification code, and establishing a connection relation between the second terminal device and the virtual machine according to the scanning operation result.
It should be noted that the second terminal is a terminal device which has at least a two-dimensional code scanning function and can establish a connection with the cloud server for communication.
Specifically, the second terminal user scans the two-dimensional code through a soft R program (an R-side module implemented through software and installed on the second terminal in the form of APP) in the second terminal, or scans the two-dimensional code through a third-party application program in the second terminal, and sends a scanning result to the soft R program, thereby communicating with the cloud server through the soft R program.
Optionally, the receiving a scanning result obtained after the second terminal device performs a scanning operation on the identification code, and establishing a connection relationship between the second terminal device and the virtual machine according to the scanning operation result includes: receiving a connection request initiated after a preset application program of the second terminal equipment performs scanning operation on the identification code; and disconnecting the connection between the first terminal equipment and the virtual machine based on the connection request, and establishing the connection between the second terminal equipment and the virtual machine.
Specifically, the soft R program in the second terminal analyzes the scanned two-dimensional code information to obtain current connection information such as a server address and authentication information, and initiates a connection request to the cloud server according to the current connection information.
The type of the preset application program for performing the scanning operation on the identification code may be multiple, and optionally, the receiving of the connection request initiated after the preset application program of the second terminal device performs the scanning operation on the identification code includes: scanning the identification code through a third-party application program of the second terminal device to obtain current connection information, and receiving a connection request sent by a receiving end program of the second terminal based on the connection information; or the current connection information is obtained after the identification code is scanned by the receiving end program of the second terminal, and the connection request sent by the receiving end program based on the connection information is received.
Specifically, the preset application program can be a third-party application such as WeChat, nailing and the like, and can also be a soft R program,
optionally, when the two-dimensional code is scanned through third-party applications such as WeChat and nailing, the server address and the authentication information are directly obtained through analysis from the two-dimensional code, then the corresponding soft R is called in the background, and a terminal device switching connection request is initiated to the cloud server through the soft R according to the server address and the authentication information obtained through analysis, so that connection is established with the corresponding virtual machine;
optionally, when the two-dimensional code is scanned through the soft R program, a terminal device switching connection request is directly initiated to the cloud server according to the connection information obtained through analysis, and when the connection is successful, communication is established with the corresponding virtual machine.
In order to improve the security of the connection, optionally, after receiving a connection request initiated after the preset application of the second terminal device scans the identification code, the method further includes: authenticating the connection request; and under the condition that the connection request authentication is passed, executing the steps of disconnecting the connection between the first terminal equipment and the virtual machine based on the connection request and establishing the connection between the second terminal equipment and the virtual machine.
Optionally, after receiving a scanning result obtained after the second terminal device performs a scanning operation on the identification code, and establishing a connection relationship between the second terminal device and the virtual machine according to the scanning operation result, the method further includes: and sending the desktop image of the virtual machine to the second terminal equipment so as to display the running condition of the application program on the second terminal equipment.
Specifically, when receiving a terminal device switching connection request sent by a second terminal, the virtual machine authenticates the connection request, establishes connection with the second terminal if the authentication is successful, sends the current desktop image to the second terminal, and simultaneously disconnects the connection with the first terminal.
After the connection is successful, the second terminal receives the desktop image sent by the corresponding virtual machine in the cloud server, and a second terminal user can locally operate the desktop image seen by the second terminal user, so that the application program operation is realized.
According to the device control method provided by the embodiment of the application, after a request message sent by a first terminal device is received, an identification code is generated according to current connection information of a virtual machine connected with the first terminal device, wherein the request message is used for requesting to switch the terminal device connected with the virtual machine, and the current connection information at least comprises address information of a server where the virtual machine is located and authentication information of an application program on a login virtual machine; controlling the first terminal equipment to display the identification code; and receiving a scanning result obtained after the second terminal device performs scanning operation on the identification code, and establishing a connection relation between the second terminal device and the virtual machine according to the scanning operation result, so that the problem of complex operation when switching the terminal device for displaying the application program running on the virtual machine in the related art is solved. The switching of the terminal equipment connected on the virtual machine is realized by identifying the identification code generated by the connection information, and the effect of improving the convenience of replacing the terminal equipment connected with the virtual machine is further achieved.
Fig. 3 is a flow chart of another control method of an apparatus according to an embodiment of the present application. As shown in fig. 3, the method comprises the steps of:
step S302, a first terminal connected with the virtual machine sends a request message to a server, wherein the request message is used for requesting to switch terminal equipment connected with the virtual machine.
It should be noted that the device control method in the embodiment of the present application is applied to a cloud system, where the cloud system includes a cloud server, a virtual machine, and a terminal device, the cloud server allocates one virtual machine to each terminal device that establishes a connection with the cloud server, and is used to process a service of the terminal device, and if a first terminal device requests to switch the terminal device connected to the virtual machine, a request message is sent to the cloud server.
Step S304, receiving an identification code generated by the server based on the current connection information of the virtual machine, and displaying the identification code, wherein the current connection information at least comprises the address information of the server where the virtual machine is located and the authentication information of the application program logged in the virtual machine.
Specifically, after receiving a request message sent by a first terminal, a cloud server generates an identification code from current connection information such as a server address and account authentication information, displays the identification code on a desktop corresponding to a virtual machine, and sends a desktop image corresponding to the virtual machine to the first terminal device to display the identification code on the first terminal device.
Step S306, in a case of receiving a scanning result obtained after the scanning operation on the identification code, sending the scanning result to the server, so as to establish a connection relationship between the execution terminal of the scanning operation and the virtual machine through the server.
It should be noted that the terminal for executing the scanning operation may be a second terminal device, and the second terminal device is a terminal device capable of establishing a connection with the cloud server for communication.
Specifically, the second terminal user can scan the two-dimensional code through a soft R program (an R-side module implemented through software and installed on the second terminal in the form of APP) in the second terminal, or scan the two-dimensional code through a third-party application program in the second terminal, and send a scanning result to the soft R program, so that the connection relationship between the second terminal device and the virtual machine is established through communication between the soft R program and the cloud server.
According to the equipment control method provided by the embodiment of the application, a request message is sent to a server through a first terminal connected with a virtual machine, wherein the request message is used for requesting to switch terminal equipment connected with the virtual machine; receiving an identification code generated by a server based on current connection information of the virtual machine, and displaying the identification code, wherein the current connection information at least comprises address information of the server where the virtual machine is located and authentication information of an application program logged in the virtual machine; under the condition that a scanning result obtained after scanning operation on the identification code is received, the scanning result is sent to the server, so that the connection relation between the execution terminal of the scanning operation and the virtual machine is established through the server, and the problem of complex operation when terminal equipment for displaying the application program running on the virtual machine is switched in the related technology is solved. The switching of the terminal equipment connected on the virtual machine is realized by identifying the identification code generated by the connection information, and the effect of improving the convenience of replacing the terminal equipment connected with the virtual machine is further achieved.
Fig. 4 is a flow chart of another control method of a device according to an embodiment of the application. As shown in fig. 4, the method comprises the steps of:
step S402, scanning operation is carried out on the identification code displayed on the first terminal device, and a scanning result is obtained, wherein the identification code is generated by current connection information of the virtual machine connected with the first terminal device, and the current connection information at least comprises address information of a server where the virtual machine is located and authentication information of an application program logged in the virtual machine.
It should be noted that the device control method in the embodiment of the present application is applied to a cloud system, where the cloud system includes a cloud server, a virtual machine, and a terminal device, and the cloud server allocates one virtual machine to each terminal device connected to the cloud server for processing a service of the terminal device.
Specifically, when a terminal device of a virtual machine connected to a first terminal device needs to be switched, an identification code generated based on current connection information of the virtual machine is displayed on the first terminal device, and a second terminal device scans the identification code to obtain a scanning result.
And step S404, analyzing the scanning result to obtain the current connection information of the virtual machine.
Specifically, when a second terminal user scans the two-dimensional code through a soft R program (an R-side module implemented through software and installed on the second terminal in the form of APP) in the second terminal, the soft R program analyzes the scanning result to obtain current connection information, and under the condition that the two-dimensional code is scanned through a third-party application program in the second terminal, the scanning result is sent to the soft R program, and the soft R program analyzes the scanning result to obtain current connection information.
Step S406, generating a connection request based on the current connection information of the virtual machine, and sending the connection request to the server, where the connection request is used to request to establish a connection relationship between the device performing the scanning operation and the virtual machine.
Specifically, after the connection request is sent to the server, when the connection is successful, the communication between the second terminal and the virtual machine is established.
According to the device control method provided by the embodiment of the application, a scanning result is obtained by scanning the identification code displayed on the first terminal device, wherein the identification code is generated by the current connection information of the virtual machine connected with the first terminal device, and the current connection information at least comprises the address information of the server where the virtual machine is located and the authentication information of the application program logged in the virtual machine; analyzing the scanning result to obtain the current connection information of the virtual machine; the method comprises the steps of generating a connection request based on current connection information of the virtual machine, and sending the connection request to a server, wherein the connection request is used for requesting to establish a connection relation between equipment for executing scanning operation and the virtual machine, and the problem that operation is complicated when terminal equipment for displaying an application program running on the virtual machine is switched in the related art is solved. The switching of the terminal equipment connected on the virtual machine is realized by identifying the identification code generated by the connection information, and the effect of improving the convenience of replacing the terminal equipment connected with the virtual machine is further achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides a control device of an apparatus, and it should be noted that the control device of the apparatus according to the embodiment of the present application may be used to execute the control method for the apparatus provided in the embodiment of the present application. The following describes a control device of an apparatus provided in an embodiment of the present application.
Fig. 5 is a schematic diagram of a control device of an apparatus according to an embodiment of the application. As shown in fig. 5, the apparatus includes: a generating unit 51, a control unit 52 and a first establishing unit 53.
Specifically, the generating unit 51 is configured to generate the identification code according to current connection information of the virtual machine connected by the first terminal device after receiving a request message sent by the first terminal device, where the request message is used to request to switch the terminal device connected by the virtual machine, and the current connection information at least includes address information of a server where the virtual machine is located and authentication information of an application program on the login virtual machine.
And a control unit 52, configured to control the first terminal device to display the identification code.
The first establishing unit 53 is configured to receive a scanning result obtained after the second terminal device performs a scanning operation on the identification code, and establish a connection relationship between the second terminal device and the virtual machine according to the scanning operation result.
Optionally, in the control apparatus of a device provided in this embodiment of the present application, the second establishing unit is configured to establish a connection relationship between the first terminal device and the virtual machine of the server after receiving the request message sent by the first terminal device and before generating the identification code according to the current connection information of the virtual machine connected to the first terminal device.
Optionally, in the control apparatus of the device provided in the embodiment of the present application, the apparatus further includes: the first determining unit is used for determining a keyboard and mouse combination with a preset format after receiving the request message sent by the first terminal device and before generating an identification code according to the current connection information of the virtual machine connected with the first terminal device, so that a message generated by operating the keyboard and mouse combination of the first terminal device is determined as the request message; or a second determining unit, configured to determine the preset key, so as to determine a message generated by operating the preset key of the first terminal device as the request message.
Alternatively, in the control device of the apparatus provided in the embodiment of the present application, the control unit 52 includes: and the display module is used for adding the identification code to the desktop corresponding to the virtual machine and sending the desktop image of the virtual machine to the first terminal equipment so as to control the first terminal equipment to display the identification code.
Optionally, in the control apparatus of the device provided in the embodiment of the present application, the first establishing unit 53 includes: the receiving module is used for receiving a connection request initiated after a preset application program of the second terminal device performs scanning operation on the identification code; and the establishing module is used for disconnecting the connection between the first terminal equipment and the virtual machine based on the connection request and establishing the connection between the second terminal equipment and the virtual machine.
Optionally, in the control apparatus of the device provided in the embodiment of the present application, the receiving module includes: the first receiving submodule is used for obtaining current connection information after scanning the identification code through a third-party application program of the second terminal equipment and receiving a connection request sent by a receiving end program of the second terminal based on the connection information; or the second receiving submodule is used for obtaining the current connection information after scanning the identification code through the receiving end program of the second terminal and receiving the connection request sent by the receiving end program based on the connection information.
Optionally, in the control apparatus of the device provided in the embodiment of the present application, the apparatus further includes: the authentication unit is used for authenticating the connection request after receiving the connection request initiated after the preset application program of the second terminal equipment scans the identification code; and the execution unit is used for executing the steps of disconnecting the connection between the first terminal equipment and the virtual machine based on the connection request and establishing the connection between the second terminal equipment and the virtual machine under the condition that the connection request authentication passes.
Optionally, in the control apparatus of the device provided in the embodiment of the present application, the apparatus further includes: and the first sending unit is used for sending the desktop image of the virtual machine to the second terminal equipment after receiving a scanning result obtained after the second terminal equipment performs scanning operation on the identification code and establishing a connection relation between the second terminal equipment and the virtual machine according to the scanning operation result so as to display the running condition of the application program on the second terminal equipment.
Fig. 6 is a schematic diagram of a control device of another apparatus according to an embodiment of the present application. As shown in fig. 6, the apparatus includes: a second transmitting unit 61, a receiving unit 62 and a third transmitting unit 63.
Specifically, the second sending unit 61 is configured to send a request message to the server through the first terminal connected to the virtual machine, where the request message is used to request to switch a terminal device connected to the virtual machine;
a receiving unit 62, configured to receive an identification code generated by a server based on current connection information of a virtual machine, and display the identification code, where the current connection information at least includes address information of the server where the virtual machine is located and authentication information of an application program that logs in the virtual machine;
and a third sending unit 63, configured to, in a case where a scanning result obtained after the scanning operation on the identification code is received, send the scanning result to the server so as to establish, by the server, a connection relationship between the execution terminal of the scanning operation and the virtual machine.
In the device control apparatus provided in the embodiment of the present application, a second sending unit 61 sends a request message to a server through a first terminal connected to a virtual machine, where the request message is used to request to switch a terminal device connected to the virtual machine; the receiving unit 62 receives an identification code generated by the server based on current connection information of the virtual machine, and displays the identification code, wherein the current connection information at least includes address information of the server where the virtual machine is located and authentication information of an application program logged in the virtual machine; the third sending unit 63 sends the scanning result to the server under the condition that the scanning result obtained after the scanning operation of the identification code is received, so that the connection relationship between the execution terminal of the scanning operation and the virtual machine is established through the server, the problem of complex operation when the terminal device for displaying the application program running on the virtual machine is switched in the related art is solved, the switching of the terminal device connected on the virtual machine is realized by identifying the identification code generated by the connection information, and the effect of improving the convenience of replacing the terminal device connected with the virtual machine is further achieved.
Fig. 7 is a schematic diagram of a control device of another apparatus according to an embodiment of the present application. As shown in fig. 7, the apparatus includes: a scanning unit 71, an analyzing unit 72, and a generating unit 73.
Specifically, the scanning unit 71 is configured to perform a scanning operation on an identification code displayed on the first terminal device, and obtain a scanning result, where the identification code is generated from current connection information of a virtual machine connected to the first terminal device, and the current connection information at least includes address information of a server where the virtual machine is located and authentication information of an application program logged onto the virtual machine.
And the analyzing unit 72 is configured to analyze the scanning result to obtain current connection information of the virtual machine.
A generating unit 73, configured to generate a connection request based on current connection information of the virtual machine, and send the connection request to the server, where the connection request is used to request establishment of a connection relationship between the device performing the scanning operation and the virtual machine.
In the device control apparatus provided in the embodiment of the present application, a scanning unit 71 performs a scanning operation on an identification code displayed on a first terminal device to obtain a scanning result, where the identification code is generated from current connection information of a virtual machine connected to the first terminal device, and the current connection information at least includes address information of a server where the virtual machine is located and authentication information of an application program logged in the virtual machine; the analysis unit 72 analyzes the scanning result to obtain the current connection information of the virtual machine; the generating unit 73 generates a connection request based on current connection information of the virtual machine, and sends the connection request to the server, where the connection request is used to request establishment of a connection relationship between a device for performing a scanning operation and the virtual machine, so as to solve a problem of cumbersome operation when switching a terminal device for displaying an application program running on the virtual machine in the related art, and realize switching of the terminal device connected on the virtual machine by recognizing an identification code generated by the connection information, thereby achieving an effect of improving convenience in replacing the terminal device connected to the virtual machine.
The control means of the device comprises a processor and a memory, the above-mentioned generating unit 51, the control unit 52, the first establishing unit 53, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement the corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem of complex operation when switching the terminal equipment for displaying the application program running on the virtual machine in the related art is solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the application also provides a nonvolatile storage medium, wherein the nonvolatile storage medium comprises a stored program, and the program controls the equipment where the nonvolatile storage medium is located to execute the control method of the equipment when running.
The embodiment of the application also provides an electronic device, which comprises a processor and a memory; the memory has stored therein computer readable instructions, and the processor is configured to execute the computer readable instructions, wherein the computer readable instructions when executed perform a method of controlling the apparatus. The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of controlling a device, comprising:
after receiving a request message sent by a first terminal device, generating an identification code according to current connection information of a virtual machine connected with the first terminal device, wherein the request message is used for requesting to switch the terminal device connected with the virtual machine, and the current connection information at least comprises address information of a server where the virtual machine is located and authentication information of an application program logged in the virtual machine;
controlling the first terminal equipment to display the identification code;
and receiving a scanning result obtained after the second terminal equipment performs scanning operation on the identification code, and establishing a connection relation between the second terminal equipment and the virtual machine according to the scanning operation result.
2. The method according to claim 1, wherein after receiving the request message sent by the first terminal device, before generating the identification code according to the current connection information of the virtual machine connected to the first terminal device, the method further comprises:
and establishing a connection relation between the first terminal device and the virtual machine of the server.
3. The method according to claim 1, wherein after receiving the request message sent by the first terminal device, before generating the identification code according to the current connection information of the virtual machine connected to the first terminal device, the method further comprises:
determining a keyboard and mouse combination in a preset format so as to determine a message generated by operating the keyboard and mouse combination of the first terminal device as the request message; or
And determining a preset key so as to determine a message generated by operating the preset key of the first terminal device as the request message.
4. The method of claim 1, wherein the controlling the first terminal device to display the identification code comprises:
and adding the identification code to a desktop corresponding to the virtual machine, and sending a desktop image of the virtual machine to the first terminal equipment so as to control the first terminal equipment to display the identification code.
5. The method according to claim 1, wherein the receiving a scanning result obtained after the second terminal device performs a scanning operation on the identification code, and the establishing a connection relationship between the second terminal device and the virtual machine according to the scanning operation result comprises:
receiving a connection request initiated after a preset application program of the second terminal device performs scanning operation on the identification code;
and disconnecting the connection between the first terminal equipment and the virtual machine based on the connection request, and establishing the connection between the second terminal equipment and the virtual machine.
6. The method according to claim 5, wherein the receiving of the connection request initiated after the preset application program of the second terminal device performs the scanning operation on the identification code comprises:
scanning the identification code through a third-party application program of the second terminal device to obtain the current connection information, and receiving the connection request sent by a receiving end program of the second terminal device based on the connection information; or
And scanning the identification code through a receiving end program of the second terminal to obtain the current connection information, and receiving the connection request sent by the receiving end program based on the connection information.
7. The method according to claim 5, wherein after receiving the connection request initiated after the preset application of the second terminal device scans the identification code, the method further comprises:
authenticating the connection request;
and under the condition that the connection request authentication is passed, executing a step of disconnecting the connection between the first terminal equipment and the virtual machine based on the connection request and establishing the connection between the second terminal equipment and the virtual machine.
8. The method according to claim 1, wherein after the receiving a scanning result obtained after the second terminal device performs a scanning operation on the identification code, and establishing a connection relationship between the second terminal device and the virtual machine according to the scanning operation result, the method further comprises:
and sending the desktop image of the virtual machine to the second terminal equipment so as to display the running condition of the application program on the second terminal equipment.
9. A method of controlling a device, comprising:
a first terminal connected with a virtual machine sends a request message to a server, wherein the request message is used for requesting to switch terminal equipment connected with the virtual machine;
receiving an identification code generated by the server based on current connection information of the virtual machine, and displaying the identification code, wherein the current connection information at least comprises address information of the server where the virtual machine is located and authentication information of an application program logged in the virtual machine;
and under the condition that a scanning result obtained after the scanning operation of the identification code is received, sending the scanning result to the server so as to establish a connection relation between an execution terminal of the scanning operation and the virtual machine through the server.
10. A method of controlling a device, comprising:
scanning an identification code displayed on first terminal equipment to obtain a scanning result, wherein the identification code is generated by current connection information of a virtual machine connected with the first terminal equipment, and the current connection information at least comprises address information of a server where the virtual machine is located and authentication information of an application program logged in the virtual machine;
analyzing the scanning result to obtain the current connection information of the virtual machine;
and generating a connection request based on the current connection information of the virtual machine, and sending the connection request to the server, wherein the connection request is used for requesting to establish a connection relation between the equipment executing the scanning operation and the virtual machine.
CN202110283105.2A 2021-03-16 2021-03-16 Control method of device Pending CN112887337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110283105.2A CN112887337A (en) 2021-03-16 2021-03-16 Control method of device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110283105.2A CN112887337A (en) 2021-03-16 2021-03-16 Control method of device

Publications (1)

Publication Number Publication Date
CN112887337A true CN112887337A (en) 2021-06-01

Family

ID=76041032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110283105.2A Pending CN112887337A (en) 2021-03-16 2021-03-16 Control method of device

Country Status (1)

Country Link
CN (1) CN112887337A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843612A (en) * 2016-03-21 2016-08-10 深圳市京华科讯科技有限公司 Method for switching virtual machines by terminal device and terminal device
CN109710379A (en) * 2018-12-24 2019-05-03 广州供电局有限公司 Virtual operation management method, apparatus, system, computer equipment and storage medium
CN112245902A (en) * 2020-09-29 2021-01-22 西安万像电子科技有限公司 Switching method and device of terminal equipment
CN112269631A (en) * 2020-09-24 2021-01-26 西安万像电子科技有限公司 Keyboard and mouse sharing system of virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843612A (en) * 2016-03-21 2016-08-10 深圳市京华科讯科技有限公司 Method for switching virtual machines by terminal device and terminal device
CN109710379A (en) * 2018-12-24 2019-05-03 广州供电局有限公司 Virtual operation management method, apparatus, system, computer equipment and storage medium
CN112269631A (en) * 2020-09-24 2021-01-26 西安万像电子科技有限公司 Keyboard and mouse sharing system of virtual machine
CN112245902A (en) * 2020-09-29 2021-01-22 西安万像电子科技有限公司 Switching method and device of terminal equipment

Similar Documents

Publication Publication Date Title
EP2898448B1 (en) Method and apparatus for executing user action commands
US10623500B2 (en) Remote desktop sharing and collaboration via image scanning
CN111130765A (en) Two-dimensional code sharing method and device for intelligent device and storage medium
US11570035B2 (en) Techniques for accessing logical networks via a virtualized gateway
CN110113250B (en) Method for sharing wireless access point through instant messaging software
US11017121B2 (en) Information authentication method, apparatus, storage medium and virtual reality device based on virtual reality scenario
US11372658B2 (en) Cross-device mulit-monitor setup for remote desktops via image scanning
TW202130160A (en) Session establishing method and cross-border payment method, apparatus, and system
CN112214276A (en) Information processing apparatus, system, and method, and non-transitory computer-readable recording medium
CN114598931A (en) Streaming method, system, device and medium for multi-open cloud game
CN112217873B (en) Device sharing method, related device and storage medium
CN112887337A (en) Control method of device
CN112245902A (en) Switching method and device of terminal equipment
CN110933014B (en) Cloud service access method, device and computer-readable storage medium
CN111132131A (en) Number copying method, terminal and storage medium
CN116383799A (en) Business processing method and device based on applet and electronic equipment
CN112099888A (en) Picture display method and system and zero terminal
CN114584615A (en) Cloud service collaborative interaction method, device and equipment
CN113535298A (en) Display switching method and device for cloud game desktop
CN110858832B (en) Password information reinforcement and data processing method, device, system and storage medium
CN114586367A (en) Method and apparatus for transform skip coefficient coding
CN111491210A (en) Data processing method, device and system
CN111614676A (en) Login method, device, equipment and medium
KR102107374B1 (en) Virtualization-based training content delivery system
US20230283614A1 (en) Simultaneous, session level experimentation and experiences deployment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210601

RJ01 Rejection of invention patent application after publication