CN117544663A - Cloud desktop peripheral connection method and computer readable storage medium - Google Patents

Cloud desktop peripheral connection method and computer readable storage medium Download PDF

Info

Publication number
CN117544663A
CN117544663A CN202311307937.9A CN202311307937A CN117544663A CN 117544663 A CN117544663 A CN 117544663A CN 202311307937 A CN202311307937 A CN 202311307937A CN 117544663 A CN117544663 A CN 117544663A
Authority
CN
China
Prior art keywords
zero terminal
peripheral
server
zero
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
CN202311307937.9A
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 CN202311307937.9A priority Critical patent/CN117544663A/en
Publication of CN117544663A publication Critical patent/CN117544663A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2871Implementation details of single intermediate entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

According to the cloud desktop peripheral connection method and the computer readable storage medium, when the first zero terminal is not connected with a peripheral port or is not nearby, the first peripheral to be connected can be connected with the second zero terminal with an idle port, the second zero terminal transmits the equipment information of the first peripheral to the server through the first zero terminal, the server displays the related information of the first peripheral in a cloud desktop system connected with the first zero terminal, and the first zero terminal realizes operation and use of the first peripheral through the cloud desktop system. The peripheral equipment accessed on other zero terminal equipment is redirected to the local zero terminal, so that the local peripheral ports of the zero terminal can be saved, and the peripheral equipment is accessed and used under the condition that the local peripheral ports of the zero terminal are insufficient. The peripheral equipment of the zero terminal can be conveniently shared with other zero terminals, so that the peripheral equipment can be rapidly shared and used, and the peripheral equipment can be operated and used under the condition that the peripheral equipment is not located at the side.

Description

Cloud desktop peripheral connection method and computer readable storage medium
Technical Field
The disclosure relates to the technical field of cloud computing, in particular to a cloud desktop peripheral connection method and a computer readable storage medium.
Background
With the development of cloud computing technology application, desktop virtualization has been increasingly applied in various industries in recent years. In a specific industry, besides the remote control requirement of desktop virtualization, in a specific business scenario, an external device (the present disclosure is abbreviated as a peripheral) needs to be used, where the external device includes: USB flash disk, camera, high appearance of clapping, printer, handle etc..
The peripheral is usually connected to a zero terminal through a port, the zero terminal intercepts the peripheral on the bus driver and forwards the intercepted peripheral data to a server where the cloud desktop is located, so that the peripheral is redirected to the cloud desktop system, and a user can revisit the peripheral in the cloud desktop system.
In practical application, because of the limitation of the volume of the zero terminal or the change of the product form, there may be insufficient physical ports for the connection of the peripheral, the newly added peripheral cannot be connected to the zero terminal for use.
Disclosure of Invention
The embodiment of the disclosure provides a cloud desktop peripheral connection method and a computer readable storage medium, which can solve the problem of insufficient peripheral ports of zero terminals. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, a connection method for a cloud desktop peripheral is provided, and the connection method is applied to a zero terminal system, where the zero terminal system includes a server, a first zero terminal and a second zero terminal, and the server is connected with the first zero terminal and the second zero terminal respectively; the method comprises the following steps:
the first zero terminal and the second zero terminal are connected so that the second zero terminal enters a sharing mode;
the first zero terminal receives the equipment information of a first peripheral device sent by the second zero terminal, wherein the first peripheral device is a peripheral device accessed to the second zero terminal;
and the first zero terminal sends the equipment information of the first peripheral to the server so that the first peripheral is redirected to a cloud desktop system connected with the first zero terminal in the server.
In one embodiment, the first zero terminal establishes a connection with the second zero terminal, including:
the first zero terminal obtains the address information of the second zero terminal;
and the first zero terminal establishes connection with the second zero terminal through the address information of the second zero terminal.
In one embodiment, the first zero terminal acquires address information of a second zero terminal in a sharing mode, including:
the first zero terminal issues a broadcast message;
the first zero terminal receives a response message sent by the second zero terminal, wherein the response message comprises address information of the second zero terminal.
In one embodiment, the first zero terminal acquires address information of a second zero terminal in a sharing mode, including:
the first zero terminal sends an address acquisition request to the server, wherein the address acquisition request is used for indicating the server to send address information of a second zero terminal to the first zero terminal;
and the first zero terminal receives an address acquisition response sent by the server, wherein the address acquisition response comprises the address information of the second zero terminal.
In one embodiment, the method further comprises:
after the first zero terminal establishes connection with the server, receiving a filtering strategy sent by the server, wherein the filtering strategy comprises the following steps: device information of peripherals allowed to be redirected to the server and/or device information of peripherals not allowed to be redirected to the server;
after the first zero terminal receives the device information of the first peripheral sent by the second zero terminal, the method further comprises the following steps:
the first zero terminal determines whether the first peripheral is allowed to be redirected to the server or not according to the filtering strategy and the equipment information of the first peripheral;
and if the first peripheral is allowed to be redirected to the server, the first zero terminal continues to execute the equipment information of the first peripheral sent to the server.
In one embodiment, the method further comprises:
if the first zero terminal detects that the first zero terminal is connected to a second peripheral, the first zero terminal determines whether the second peripheral is allowed to be redirected to the server according to the filtering strategy and the equipment information of the second peripheral;
and if the second setting is allowed to be redirected to the server, the first zero terminal sends the equipment information of the second peripheral to the server so that the second setting is redirected to a cloud desktop system connected with the first zero terminal in the server.
In one embodiment, the first zero terminal receives the device information of the first peripheral device sent by the second zero terminal, including:
and the first zero terminal receives the equipment information of the first peripheral equipment of the access target port, which is sent by the second zero terminal.
According to a second aspect of the embodiments of the present disclosure, a connection method of a cloud desktop peripheral is provided, and the connection method is applied to a zero terminal system, where the zero terminal system includes a server, a first zero terminal and a second zero terminal, and the server is connected with the first zero terminal and the second zero terminal respectively; the method comprises the following steps:
the second zero terminal establishes connection with the first zero terminal;
the second zero terminal enters a sharing mode;
after the second zero terminal detects that the first peripheral is accessed, the second zero terminal sends the equipment information of the first peripheral to the first zero terminal, so that the first zero terminal sends the equipment information of the first peripheral to the server, and redirects the first peripheral to a cloud desktop system connected with the first zero terminal in the server.
In one embodiment, after the second zero terminal establishes a connection with the first zero terminal, the method further includes:
if a third peripheral accessing the second zero terminal exists and the third peripheral is redirected to the cloud desktop system connected with the second zero terminal in the server, the second zero terminal keeps the third peripheral redirected to the cloud desktop system connected with the second zero terminal in the server.
According to a third aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored therein at least one computer instruction loaded and executed by a processor to implement the steps performed in the method for connecting cloud desktop peripherals described in the first aspect and any embodiment of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored therein at least one computer instruction loaded and executed by a processor to implement the steps performed in the method for connecting cloud desktop peripherals described in the second aspect and any embodiment of the second aspect.
According to the cloud desktop peripheral connection method and the computer readable storage medium, when the first zero terminal is not connected with a peripheral port or the peripheral is not nearby, the first peripheral to be connected can be connected with the second zero terminal with an idle port, the second zero terminal transmits the equipment information of the first peripheral to the server through the first zero terminal, and accordingly the server displays the relevant information of the first peripheral in a cloud desktop system connected with the first zero terminal, and therefore the first zero terminal can operate and use the first peripheral through the cloud desktop system like operating a local peripheral. The peripheral equipment accessed on other zero terminal equipment is redirected to the local zero terminal, so that the local peripheral ports of the zero terminal can be saved, and the peripheral equipment is accessed and used under the condition that the local peripheral ports of the zero terminal are insufficient. In addition, the peripheral equipment of the zero terminal can be conveniently shared with other zero terminals, the peripheral equipment can be rapidly shared and used, and the peripheral equipment can be operated and used under the condition that the peripheral equipment is not located at the side.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is an interaction schematic diagram of a connection method of cloud desktop peripherals provided in an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a connection method of cloud desktop peripherals according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terms involved in the present disclosure are explained first below.
The peripheral redirection refers to that a client at one end connected with the peripheral intercepts equipment data of the peripheral reported by a bus driver and forwards the intercepted equipment data of the peripheral to a remote target machine, so that the peripheral of the client is redirected to a desktop of the remote target machine.
Desktop Virtualization (VDI) refers to the virtualization of a computer's end system (also referred to as a desktop) to achieve security and flexibility of desktop use. Desktop systems belonging to our individual can be accessed over a network at any location and at any time through any device. And various physical devices are virtualized by utilizing a virtual technology, so that the utilization rate of resources is effectively improved, the cost is saved, and the application quality is improved. Under the support of the virtualization technology, the connection between the network software and the hardware equipment is more flexible, and the expandability is also greatly improved. The cloud desktop essentially stores and manages various user information in a unified way by using a virtualization technology, and through simple network access equipment, a user side can enter the cloud desktop to realize centralized management and realize efficient resource sharing.
VDI, in brief, virtualizes your desktop by running a Windows system on a cluster server in a data center. Users connect with virtual desktops (often referred to as virtual machines) through client computing protocols from client devices (zero terminals), users access their desktops through zero terminals just as traditional locally installed desktops, users can connect to their desktops at any time and anywhere, as long as there is a network, IT personnel can more easily manage desktop users and data, as all data is at the server, and the data of the clients is safer.
The connection method of the cloud desktop peripheral provided by the embodiment of the disclosure can be applied to a zero terminal system, and the zero terminal system can comprise: zero terminals and servers, wherein one or more virtual machines can be run in the servers. The zero terminal is connected with one virtual machine in the server, so that data transmission is carried out with the virtual machine. Zero terminals may also be referred to as clients.
The server may be one server or a server cluster, which is not limited in this disclosure. The server in this disclosure may also be referred to as a cloud server or a remote target.
According to the cloud desktop peripheral connection method, when the ports of the first zero terminal connected with the peripheral are insufficient, the first peripheral to be connected can be connected with the second zero terminal with the idle ports, and the second zero terminal can transmit the equipment information of the first peripheral to the server through the first zero terminal, so that the server can display the relevant information of the first peripheral in the cloud desktop system connected with the first zero terminal, and the first zero terminal can operate and use the first peripheral through the cloud desktop system like operating the local peripheral. The peripheral equipment accessed on other zero terminal equipment is redirected to the local zero terminal, so that the local peripheral ports of the zero terminal can be saved, and the peripheral equipment is accessed and used under the condition that the local peripheral ports of the zero terminal are insufficient. In addition, the peripheral equipment of the zero terminal can be conveniently shared with other zero terminals, the peripheral equipment can be rapidly shared and used, and the peripheral equipment can be operated and used under the condition that the peripheral equipment is not located at the side.
The technical scheme provided by the present disclosure is described in detail below with specific examples.
Referring to fig. 1, fig. 1 is an interaction schematic diagram of a connection method of cloud desktop peripherals according to an embodiment of the disclosure. The method provided by the embodiment can be applied to a zero terminal system, wherein the zero terminal system comprises a server, a first zero terminal and a second zero terminal, and the server is respectively connected with the first zero terminal and the second zero terminal. The method provided by the embodiment may include the following steps.
And 101, establishing connection between the first zero terminal and the second zero terminal.
Step 102, the second zero terminal enters a sharing mode.
The sharing mode refers to that the second zero terminal sends the equipment information of the accessed peripheral equipment to the first zero terminal which establishes connection with the second zero terminal.
Step 103, after the second zero terminal detects that the first peripheral is accessed, the second zero terminal sends the equipment information of the first peripheral to the first zero terminal.
And 104, the first zero terminal sends the equipment information of the first peripheral equipment to the server so as to redirect the first peripheral equipment to a cloud desktop system connected with the first zero terminal in the server.
In this embodiment, no connection is typically required between zero terminals in the zero terminal system. In the situations that the peripheral ports of the first zero terminal are not enough to use the peripheral, or the peripheral is not near the first zero terminal, and the like, if the second zero terminal has an idle peripheral port, or the peripheral is near the second zero terminal, and the like, the first zero terminal can be connected with the second zero terminal first, so that data interaction can be carried out between the first zero terminal and the second zero terminal. After the first zero terminal and the second zero terminal are connected, the second zero terminal can enter the second zero terminal into a sharing mode, namely after the second zero terminal enters the sharing mode, if the second zero terminal detects that the second zero terminal is connected with the first peripheral, equipment information of the first peripheral reported by the bus driver is intercepted, and the equipment information of the peripheral is transmitted to the first zero terminal which is already connected with the second zero terminal. The first zero terminal directly sends the equipment information of the first peripheral to the server without changing the equipment information of the first peripheral like intercepting the equipment information of the first peripheral connected to the first zero terminal. Because the server receives the equipment information of the first peripheral equipment from the first zero terminal, the server considers that the first peripheral equipment is accessed from the first zero terminal, and therefore the server redirects the first peripheral equipment to the cloud desktop system connected with the first zero terminal in the server according to the original processing procedure of accessing the peripheral equipment to the zero terminal. And the server can display the icon of the first peripheral in the cloud desktop system connected with the first zero terminal. And subsequently, acquiring and displaying the equipment data of the first peripheral or controlling the first peripheral and the like through the operation of the user on the icon or other related information of the first peripheral, so that the first peripheral is used through the first zero terminal.
Illustratively, it is assumed that the cloud desktop system 1 in the server is connected to the zero terminal 1, and the cloud desktop system 2 is connected to the zero terminal 2. And if the first peripheral device is a USB flash disk. When the zero terminal 1 has no idle USB port, a user can display the zero terminal 2 through an icon of the zero terminal 2 on the zero terminal 1, after the zero terminal 1 and the zero terminal 2 are connected through user operation, the user can insert a USB flash disk into the idle USB port in the zero terminal 2, the zero terminal 2 thoroughly transmits all equipment information, data and the like of the USB flash disk to the zero terminal 1, the zero terminal 1 is then transmitted to a server, and the user can access the USB flash disk through a cloud desktop system 1 connected with the zero terminal 1.
According to the cloud desktop peripheral connection method, when the first zero terminal is insufficient in connection with a peripheral port or the peripheral is not nearby, and the like, the first peripheral to be connected can be connected to the second zero terminal with an idle port, and the second zero terminal transmits the equipment information of the first peripheral to the server through the first zero terminal, so that the server displays the related information of the first peripheral in a cloud desktop system connected with the first zero terminal, and the first zero terminal can operate and use the first peripheral through the cloud desktop system like operating a local peripheral. The peripheral equipment accessed on other zero terminal equipment is redirected to the local zero terminal, so that the local peripheral ports of the zero terminal can be saved, and the peripheral equipment is accessed and used under the condition that the local peripheral ports of the zero terminal are insufficient. In addition, the peripheral equipment of the zero terminal can be conveniently shared with other zero terminals, the peripheral equipment can be rapidly shared and used, and the peripheral equipment can be operated and used under the condition that the peripheral equipment is not located at the side.
Further, step 101 may be implemented by the following steps 1011 and 1012 on the basis of the above embodiment.
In step 1011, the first zero terminal acquires address information of the second zero terminal.
The address information of the second zero terminal refers to information that can establish connection with the second zero terminal, so as to perform data interaction. May be an address of the second zero terminal in the network, for example, may be an internet protocol (Internet Protocol, IP) address of the second zero terminal.
Step 1012, the first zero terminal establishes connection with the second zero terminal through the address information of the second zero terminal.
And the first zero terminal establishes connection with the second zero terminal through the address information of the second zero terminal. After the first zero terminal and the second zero terminal are connected, data interaction can be performed with the second zero terminal.
Further, there are a number of implementations for step 1011, two of which are described below by way of example.
In a possible implementation manner, the first zero terminal establishes a connection with the second zero terminal by means of issuing a broadcast message, which will be described in detail in the following embodiments.
Further, step 1011 may be implemented by the following steps 10111 and 10112.
Step 10111, the first zero terminal issues a broadcast message.
The broadcast message is used for indicating the second zero terminal to send address information to the first zero terminal.
Step 10112, the second zero terminal sends a response message to the first zero terminal.
The response message contains address information of the second zero terminal.
In this embodiment, if the first zero terminal and the second zero terminal are in the same lan, the first zero terminal may issue the broadcast message. The second zero terminal can send the response message carrying the address information of the second zero terminal to the first zero terminal after receiving the broadcast message, or can determine whether an idle peripheral port exists in the second zero terminal after receiving the broadcast message, and if the idle peripheral port exists, send the response message carrying the address information of the second zero terminal to the first zero terminal.
In another possible implementation manner, the first zero terminal obtains address information of the second zero terminal through the server, and establishes a connection with the second zero terminal, which is described in detail below with specific embodiments.
Further, step 1011 may be implemented by the following steps 1011a and 1011 b.
In step 1011a, the first zero terminal transmits an address acquisition request to the server.
The address acquisition request is used for indicating the server to send the address information of the second zero terminal to the first zero terminal.
In step 1011b, the first zero terminal receives the address acquisition response sent by the server.
The address acquisition response contains address information of the second zero terminal.
In this embodiment, since address information of all currently connected zero terminals is stored in the server. If the first zero terminal knows a certain second zero terminal but does not know the address information of the first zero terminal, the address information of the second zero terminal can be obtained through the server; or if the first zero terminal does not know which second zero terminals exist currently, the address information of the second zero terminal can be acquired by sending an address acquisition request to the server.
In some scenarios, the first zero terminal needs to perform authority management and control on the currently accessed peripheral, where the currently accessed peripheral of the first zero terminal includes a first peripheral accessed to a second zero terminal, and sends device information of the first peripheral to the first zero terminal, and further includes the second peripheral accessed to the physical device of the first zero terminal. That is, the first zero terminal not only performs verification of the filtering policy on the device information of the accessed first peripheral device sent by the second zero terminal, but also performs verification of the filtering policy on the peripheral device accessed in the physical device. Therefore, the system is safer and meets the requirements of various different scenes. Specific examples are described in detail below.
Further, the following step 100 may be included before step 101 on the basis of any of the above embodiments. Accordingly, step 103 may further include the following step 1031.
Step 100, after the server establishes connection with the first zero terminal, the server sends a filtering strategy to the first zero terminal.
Wherein the filtering strategy comprises: device information of peripherals allowed to be redirected to the server and/or device information of peripherals not allowed to be redirected to the server.
Step 1031, the first zero terminal determines whether to allow the first peripheral to be redirected to the server according to the filtering policy and the device information of the first peripheral.
If yes, go on to step 104; if not, then step 1032 is continued.
In step 1032, the first zero terminal does not process the device information of the first peripheral.
In this embodiment, when the first zero terminal establishes connection with the server for the first time to obtain the cloud desktop, the first zero terminal receives the filtering policy issued by the server. And the first zero terminal verifies the filtering strategy for all the accessed peripheral devices.
If the filtering policy contains the equipment information of the peripheral equipment which is allowed to be redirected to the server, the first zero terminal compares the equipment information of the first peripheral equipment with the equipment information of the peripheral equipment which is allowed to be redirected to the server when the filtering policy is verified on the first peripheral equipment, if the equipment information of the first peripheral equipment is in the equipment information of the peripheral equipment which is allowed to be redirected to the server, the first zero terminal determines that the first peripheral equipment is allowed to be redirected to the server, otherwise, the first peripheral equipment is not allowed to be redirected to the server.
If the filtering policy contains the equipment information of the peripheral equipment which is not allowed to be redirected to the server, the first zero terminal compares the equipment information of the first peripheral equipment with the equipment information of the peripheral equipment which is not allowed to be redirected to the server when the filtering policy is verified on the first peripheral equipment, if the equipment information of the first peripheral equipment is in the equipment information of the peripheral equipment which is not allowed to be redirected to the server, the first zero terminal determines that the first peripheral equipment is not allowed to be redirected to the server, otherwise, the first peripheral equipment is allowed to be redirected to the server.
In the embodiment, in the case of disabling the usb disk, if the first zero terminal detects that the first peripheral device to which the second zero terminal is connected is the usb disk, the usb disk is disabled, and the device information of the usb disk is not sent to the server.
According to the embodiment, after the first zero terminal is connected with the server, the filtering strategy is sent, so that the first zero terminal can conduct identity verification on the first peripheral connected with the second zero terminal according to the filtering strategy, and the peripheral allowed to be connected can be redirected to the server, so that the safety of the system is improved, in addition, requirements under different scenes are met, and the application range is wide.
On the basis of any one of the foregoing embodiments, the method provided in this embodiment further includes the following steps after step 100.
Step 105, if the first zero terminal detects that the first zero terminal accesses the second peripheral, the first zero terminal determines whether to allow the second peripheral to be redirected to the server according to the filtering policy and the device information of the second peripheral.
If yes, go on to step 106. If not, go on to step 107.
And 106, the first zero terminal sends the equipment information of the second peripheral equipment to the server so as to redirect the second peripheral equipment to a cloud desktop system connected with the first zero terminal in the server.
And 107, the first zero terminal does not process the device information of the first peripheral.
In the embodiment, in the case of disabling the usb disk, if the first zero terminal detects that the second peripheral device accessed by the first zero terminal is the usb disk, the usb disk is disabled, and the device information of the usb disk is not sent to the server.
According to the embodiment, after the first zero terminal is connected with the server, the first zero terminal sends the filtering strategy, so that the first zero terminal can carry out identity verification on the accessed second external device according to the filtering strategy, and the external device which allows access can be redirected to the server, so that the safety of the system is improved, in addition, the requirements under different scenes are met, and the application range is wide.
On the basis of any of the above embodiments, further, the step 103 may be implemented by the following step 103 a.
Step 103a, after the second zero terminal detects that the target port is accessed to the first peripheral, the second zero terminal sends the equipment information of the first peripheral to the first zero terminal.
In this embodiment, after the connection between the first zero terminal and the second zero terminal is established, one or more ports of the second zero terminal may be designated as a target port, and after the second zero terminal detects that the peripheral is connected to the target port, the second zero terminal intercepts and sends information of the device to the first zero terminal.
Further, step 102 may be followed by step 108, based on any of the above embodiments.
And step 108, if a third peripheral connected to the second zero terminal exists and the third peripheral is redirected to the cloud desktop system connected with the second zero terminal in the server, the second zero terminal keeps the third peripheral redirected to the cloud desktop system connected with the second zero terminal in the server.
In this embodiment, if the second zero terminal has a third peripheral device that is accessed before entering the sharing mode, and the third peripheral device has been redirected to the cloud desktop system connected to the second zero terminal in the server, after the second zero terminal enters the sharing mode, the redirection of the third peripheral device is continuously maintained, and device information of the third peripheral device does not need to be sent to the first zero terminal.
The method provided by the present disclosure is described in detail below with reference to fig. 2 by way of a specific example.
Referring to fig. 2, fig. 2 is a schematic diagram of a connection method of cloud desktop peripherals according to an embodiment of the disclosure. In this embodiment, a description will be given of an example in which a peripheral device is connected to a zero terminal through a Universal Serial BUS (USB) port, and in this embodiment, the peripheral device is also referred to as a USB device. The zero terminal provided in this embodiment includes a USB redirection module, and an equipment abstraction layer is added to the USB redirection module to distinguish a local physical device from a remote shared virtual device. The server in this embodiment may also be referred to as an S terminal or S, and the zero terminal may also be referred to as an R terminal or R.
If the peripheral is local to the zero terminal, reporting the zero terminal to the S terminal according to a normal redirection flow, establishing a virtual device by the S terminal to interact data with the zero terminal, and sending a received URB (USB request block (USB Request Block, URB)) request data packet to the device driver layer.
If the device is at the far end, a data channel can be temporarily established according to the configuration, a virtual device 1 is established at the zero terminal 1 side, and then all URB requests sent to the virtual device are transmitted to the local physical device driving layer of the zero terminal 2, so that the virtual device 1 of the zero terminal 1 and the physical device 1 of the zero terminal 2 form a mapping.
Since the sharing of a plurality of devices is involved, S1 and S2 refer to independent S systems hereinafter, and R1 refers to a master zero terminal, corresponding to the first zero terminal in the above embodiment. R2 refers to a zero terminal participating in device sharing, and corresponds to the second zero terminal in the above embodiment.
The method provided by the embodiment may include the following steps.
And step 1, after the connection between the step 1, the step 1 and the step 1 is established according to the normal connection flow, the step 1 is to issue a filtering strategy to the step 1.
At this time, the R1 may use a USB device inserted into itself and conforming to the filtering rule.
Specifically, the filtering policy may be implemented by setting a black/white list. In a possible implementation, devices that are allowed to be redirected are added to the whitelist, or devices that are not allowed to be redirected are added to the blacklist. In another possible implementation, USB device filtering may be performed by a Product ID (PID) or Vendor ID (VID). For example, the PID/VID of the USB device that is allowed to be redirected is added to the whitelist and/or the PID/VID of the USB device that is not allowed to be redirected is added to the blacklist.
Only the compliant USB device can be redirected to S1. For example, in an environment where use of a USB flash disk is prohibited, S1 is not visible even if R1 plugs into the USB flash disk, because this device (USB flash disk) has been filtered out at the R1 end.
And 2, enumerating all the current sharable devices through an operation interface of the R1 end.
That is, the operation interface at the R1 end enumerates all USB devices currently allowed to be redirected.
And 3, R1 acquires the network address of R2.
R1 may obtain the network address of R2 by any of the following:
mode one: if R1 and R2 are in the same LAN, R1 may attempt to issue a broadcast message to a particular port and wait for R2 to respond.
Mode two: the zero terminals participating in sharing are scattered everywhere, and are uniformly registered at the S terminal. R1 may query the S-side for the network address of R2 through an off-the-shelf channel.
In one embodiment, the purpose of R1 to issue a broadcast message to a particular port is to discover devices available in the current network. Here, too, it can be simplified that R1 can establish a shared channel directly with R2, assuming that the IP of R2 is known.
In actual implementation, after each time the R end is connected with the S end, the S end issues the filtering rule to a specific R. Here R2 may be in connection with S2 or may be in standby. Regardless of the state of R2, when R2 is in the sharing mode, the channel of the R2 reporting device is switched to the sharing channel, and then the device information is not reported to S2, but is reported to R1 through the sharing channel, and R1 is used as its own virtual device to report to S1.
The action of sending the broadcast message from R1 to R2 may be actively initiated by the user, for example, a "sharing establishment menu" may be set on the operation interface of R1, and a shared channel of which R is connected may be specified through the "sharing establishment menu", that is, a specific port of a certain R is actively connected. If the connection is successful, the shared channel establishment may be considered successful.
In the second mode, the R-side may submit the sharing setting parameters to the CA server through a preset port (the user may perform manipulation through a preset graphical user interface), where the sharing setting parameters may include, but are not limited to: whether to participate in sharing, and/or the port to share, etc. Thus, R1 can query the CA server for the network address of R2 through the http protocol when needed.
And 4, attempting to establish a shared device channel with the R2 by the R1, and waiting for the R2 to report the device information after success.
After the sharing channel between R1 and R2 is established, the user can plug the USB device on the handle into the idle USB port of R2 participating in sharing. All USB events detected on this port are sent preferentially over the shared channel to R1.
Wherein R2 does not pass through to R1 if it is already in connection with S2 and some devices have been redirected to S2. Only newly inserted devices default to the pass-through channel. In addition, the normal channel and the shared channel can be respectively designed with priority to control what channel is walked under different conditions.
The process of reporting the device information by R2 is not different from the process of directly interacting with S. All data passing through the shared channel is passed through to S1.
Further, R1 may select a physical USB port sharing R2, and only new device events generated by that USB port may be shared to R1. Therefore, under the condition that the physical port is not enough, the physical port can be temporarily borrowed on other zero terminals to achieve the purpose of using the USB equipment.
Further, R2 can decide which USB ports to participate in sharing, and after sharing is established, all USB events are passed through to R1. R1 has a filtering rule, and can judge whether the equipment accords with the filtering strategy of R1.
And if R2 is also in connection, the filtering strategy issued by S2 corresponding to R2 for R2 may be different from the filtering strategy issued by S1 for R1, so that R2 may not make any judgment, and once participating in sharing, the filtering strategy is transmitted to R1, and R1 manages USB equipment. The data transmitted through appears to R1 as a normal peripheral device, but is not physically together.
The method provided by the embodiment of the disclosure can redirect the USB equipment accessed on other zero terminal equipment to the local zero terminal, thereby realizing the rapid sharing and use of the USB equipment, and realizing the operation and use of the USB equipment under the condition that the USB equipment is not at hand. According to the scheme, on one hand, a local USB port can be saved, when the local USB port is insufficient, USB equipment can be directly connected to idle USB ports of other zero terminals, and a user can operate the USB equipment connected to the other zero terminals like operating the local USB equipment; on the other hand, for the user at the access side of the USB device, the user can very conveniently share the USB device to other users desiring to share, and other users can operate and use the USB device locally without directly taking the USB device.
Based on the method for connecting cloud desktop peripherals described in any of the foregoing embodiments, the embodiments of the present disclosure further provide a computer readable storage medium, for example, a non-transitory computer readable storage medium may be a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the method for connecting the cloud desktop peripheral described in any of the above embodiments, which is not described herein.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. The cloud desktop peripheral connection method is characterized by being applied to a zero terminal system, wherein the zero terminal system comprises a server, a first zero terminal and a second zero terminal, and the server is respectively connected with the first zero terminal and the second zero terminal; the method comprises the following steps:
the first zero terminal and the second zero terminal are connected so that the second zero terminal enters a sharing mode;
the first zero terminal receives the equipment information of a first peripheral device sent by the second zero terminal, wherein the first peripheral device is a peripheral device accessed to the second zero terminal;
and the first zero terminal sends the equipment information of the first peripheral to the server so that the first peripheral is redirected to a cloud desktop system connected with the first zero terminal in the server.
2. The method of claim 1, wherein the first zero terminal establishes a connection with the second zero terminal, comprising:
the first zero terminal obtains the address information of the second zero terminal;
and the first zero terminal establishes connection with the second zero terminal through the address information of the second zero terminal.
3. The method according to claim 2, wherein the first zero terminal obtaining address information of a second zero terminal in a sharing mode, comprises:
the first zero terminal issues a broadcast message;
the first zero terminal receives a response message sent by the second zero terminal, wherein the response message comprises address information of the second zero terminal.
4. The method according to claim 2, wherein the first zero terminal obtaining address information of a second zero terminal in a sharing mode, comprises:
the first zero terminal sends an address acquisition request to the server, wherein the address acquisition request is used for indicating the server to send address information of a second zero terminal to the first zero terminal;
and the first zero terminal receives an address acquisition response sent by the server, wherein the address acquisition response comprises the address information of the second zero terminal.
5. The method according to claim 1, wherein the method further comprises:
after the first zero terminal establishes connection with the server, receiving a filtering strategy sent by the server, wherein the filtering strategy comprises the following steps: device information of peripherals allowed to be redirected to the server and/or device information of peripherals not allowed to be redirected to the server;
after the first zero terminal receives the device information of the first peripheral sent by the second zero terminal, the method further comprises the following steps:
the first zero terminal determines whether the first peripheral is allowed to be redirected to the server or not according to the filtering strategy and the equipment information of the first peripheral;
and if the first peripheral is allowed to be redirected to the server, the first zero terminal continues to execute the equipment information of the first peripheral sent to the server.
6. The method of claim 5, wherein the method further comprises:
if the first zero terminal detects that the first zero terminal is connected to a second peripheral, the first zero terminal determines whether the second peripheral is allowed to be redirected to the server according to the filtering strategy and the equipment information of the second peripheral;
and if the second setting is allowed to be redirected to the server, the first zero terminal sends the equipment information of the second peripheral to the server so that the second setting is redirected to a cloud desktop system connected with the first zero terminal in the server.
7. The method of claim 1, wherein the first zero terminal receiving the device information of the first peripheral device sent by the second zero terminal comprises:
and the first zero terminal receives the equipment information of the first peripheral equipment of the access target port, which is sent by the second zero terminal.
8. The cloud desktop peripheral connection method is characterized by being applied to a zero terminal system, wherein the zero terminal system comprises a server, a first zero terminal and a second zero terminal, and the server is respectively connected with the first zero terminal and the second zero terminal; the method comprises the following steps:
the second zero terminal establishes connection with the first zero terminal;
the second zero terminal enters a sharing mode;
after the second zero terminal detects that the first peripheral is accessed, the second zero terminal sends the equipment information of the first peripheral to the first zero terminal, so that the first zero terminal sends the equipment information of the first peripheral to the server, and redirects the first peripheral to a cloud desktop system connected with the first zero terminal in the server.
9. The method of claim 8, wherein after the second zero terminal establishes a connection with the first zero terminal, further comprising:
if a third peripheral accessing the second zero terminal exists and the third peripheral is redirected to the cloud desktop system connected with the second zero terminal in the server, the second zero terminal keeps the third peripheral redirected to the cloud desktop system connected with the second zero terminal in the server.
10. A computer readable storage medium having stored therein at least one computer instruction loaded and executed by a processor to implement the steps performed in the method of connecting cloud desktop peripherals of any one of claims 1 to 7, or claim 8 or claim 9.
CN202311307937.9A 2023-10-10 2023-10-10 Cloud desktop peripheral connection method and computer readable storage medium Pending CN117544663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311307937.9A CN117544663A (en) 2023-10-10 2023-10-10 Cloud desktop peripheral connection method and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311307937.9A CN117544663A (en) 2023-10-10 2023-10-10 Cloud desktop peripheral connection method and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117544663A true CN117544663A (en) 2024-02-09

Family

ID=89784922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311307937.9A Pending CN117544663A (en) 2023-10-10 2023-10-10 Cloud desktop peripheral connection method and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117544663A (en)

Similar Documents

Publication Publication Date Title
US8973098B2 (en) System and method for virtualized resource configuration
US8370510B2 (en) Remote application presentation over a public network connection
CN109067877B (en) Control method for cloud computing platform deployment, server and storage medium
US8015331B2 (en) Multi-console workstations concurrently supporting multiple users
EP3550784B1 (en) Resource sharing method, device and system
US10757079B2 (en) Method and system for controlling remote session on computer systems using a virtual channel
EP2428897B1 (en) Server device connecting with usb device and device sharing method
US11563799B2 (en) Peripheral device enabling virtualized computing service extensions
CN111385238B (en) Data transmission method and device
KR101620254B1 (en) Method and apparatus for controlling access
US10491682B2 (en) Policies for session types
WO2010115337A1 (en) Method, control point, apparatus and communication system for configuring access right
US7788392B2 (en) Mechanism for universal media redirection control
CN109857464B (en) System and method for platform deployment and operation of mobile operating system
EP3890376B1 (en) Managing connections between a user device and peripheral devices
CN111600755A (en) Internet access behavior management system and method
CN117544663A (en) Cloud desktop peripheral connection method and computer readable storage medium
KR101432326B1 (en) Host posing network device and method thereof
CN115185637A (en) Communication method and device for PaaS component management end and virtual machine agent
CN111935651B (en) Cluster service implementation method, device, medium, base station and system
CN118337860A (en) Redirection method of cloud desktop peripheral, electronic equipment and readable storage medium
US9535874B2 (en) Host embedded controller interface bridge
JP7146124B1 (en) Terminal, method and program
US11818183B2 (en) System and method for workspace sharing
CN114443317A (en) Data sharing control method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication