Virtual peripheral channel connection method and apparatus
By detecting task and toolbar configurations in the cloud desktop system, the virtual peripheral channel is automatically connected to the target cloud desktop, solving the problem that the peripheral channel cannot automatically follow when switching cloud desktops, thus improving the availability and user experience of the cloud desktop.
Patent Information
- Application Number
- PCT/CN2025/099706
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-24
- Filing Date
- 2025-06-06
- Publication Date
- 2026-01-02
AI Technical Summary
The cloud desktop cannot automatically switch to the corresponding cloud desktop system as the usage scenario changes, which means that external devices can only be used within one cloud desktop. Users need to manually disconnect or switch virtual peripheral channels, which affects the availability of the cloud desktop.
A method for connecting virtual peripheral channels is provided. The method determines the target cloud desktop system from multiple cloud desktop systems through a detection task and automatically connects the virtual peripheral channel to the target cloud desktop system. This includes detecting full-screen and windowed cloud desktop systems as well as user toolbar configurations, so as to achieve automatic following of the virtual peripheral channel.
It improves the usability of cloud desktops, allowing users to automatically maintain the use of external devices when switching cloud desktops, lowering the barrier to entry and enhancing the user experience.
Smart Images

Figure CN2025099706_02012026_PF_FP_ABST
Abstract
Description
Virtual peripheral channel connection method and device
[0001] Cross-reference to Related Applications
[0002] The present disclosure is based on Chinese Patent Application No. 202410821656.3, filed on June 24, 2024, entitled "Virtual Peripheral Channel Connection Method and Device", and claims priority to the same, the disclosure of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] Embodiments of the present disclosure relate to the field of communication technology, in particular to a virtual peripheral channel connection method and device. BACKGROUND
[0004] Due to the characteristics of cloud computing, the operating system and peripheral port of the cloud desktop (Virtual Machine, VM) are reserved in the cloud, which causes the cloud desktop to be unable to normally use the local external device. To this end, the concept of a virtual peripheral channel is introduced, that is, after a user logs in a client to connect a cloud desktop, the cloud desktop can read the local port through a created virtual peripheral channel.
[0005] However, when the user connects multiple cloud desktops and uses a local operating system, the external device is only allowed to be used in one operating system, that is, only one cloud desktop can use the external device. With the change of the use scene, when it is necessary to switch to another cloud desktop system, the user needs to first disconnect the currently used cloud desktop or manually cut off the peripheral port, and then set the virtual peripheral channel to the switched cloud desktop, otherwise the local operating system will be unable to use the external device. SUMMARY
[0006] Embodiments of the present disclosure provide a virtual peripheral channel connection method and device to at least solve the problem that the virtual peripheral channel cannot be switched to the corresponding cloud desktop with the change of the use scene in the related art.
[0007] According to one embodiment of the present disclosure, a virtual peripheral channel connection method is provided, comprising: determining a target cloud desktop system from a plurality of cloud desktop systems according to a detection task; and connecting a virtual peripheral channel to the target cloud desktop system.
[0008] According to another embodiment of the present disclosure, a virtual peripheral channel connection device is provided, comprising: a determination module configured to determine a target cloud desktop system from a plurality of cloud desktop systems according to a detection task; and a connection module configured to connect a virtual peripheral channel to the target cloud desktop system.
[0009] According to still another embodiment of the present disclosure, a computer readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of the above method embodiments when executed.
[0010] According to still another embodiment of the present disclosure, an electronic device is also provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps of the above method embodiments.
[0011] According to still another embodiment of the present disclosure, a computer program product is also provided, comprising a computer program, wherein the computer program is executed by a processor to implement the steps of any of the above method embodiments. BRIEF DESCRIPTION OF DRAWINGS
[0012] FIG. 1 is a hardware structure block diagram of a computer terminal running a virtual peripheral channel connection method according to an embodiment of the present disclosure;
[0013] FIG. 2 is a structure block diagram of a virtual peripheral channel following system according to an embodiment of the present disclosure;
[0014] FIG. 3 is a flowchart of a virtual peripheral channel connection method according to an embodiment of the present disclosure;
[0015] FIG. 4 is a schematic diagram of a windowed virtual peripheral channel redirection configuration according to an embodiment of the present disclosure;
[0016] FIG. 5 is a whole flowchart of a virtual peripheral channel connection method according to an embodiment of the present disclosure;
[0017] FIG. 6 is a structure block diagram of a virtual peripheral channel connection device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in conjunction with embodiments.
[0019] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.
[0020] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking a computer terminal as an example, Fig. 1 is a hardware structure block diagram of a computer terminal running a virtual peripheral channel connection method according to an embodiment of the present disclosure. As shown in Fig. 1, the computer terminal can include one or more (only one is shown in Fig. 1) processors 102 (the processor 102 can include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the computer terminal can further include a transmission device 106 for communication function and an input and output device 108. Those skilled in the art can understand that the structure shown in Fig. 1 is only schematic, which does not limit the structure of the computer terminal. For example, the computer terminal can further include more or less components than those shown in Fig. 1, or have a different configuration from that shown in Fig. 1.
[0021] The memory 104 can be used to store computer programs, for example, software programs of application software and modules, such as a computer program corresponding to the virtual peripheral channel connection method in the embodiments of the present disclosure. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above-mentioned method. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory or other non-volatile solid-state memory. In some examples, the memory 104 can further include a memory remotely arranged with respect to the processor 102, which can be connected to the computer terminal through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0022] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network can include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.
[0023] Fig. 2 is a structure block diagram of a virtual peripheral channel following system according to an embodiment of the present disclosure, as shown in Fig. 2, the system includes a cloud management platform 21, an intelligent remote access interface 22, a cloud desktop 23 and a client 24.
[0024] The cloud management platform 21 (usmartview): operation and maintenance portal.
[0025] Intelligent Remote Access Interface (iRAI): a cloud desktop SaaS service related to the management of virtual desktop access provided by virtualization.
[0026] Cloud desktop 23: that is, a virtual machine (VM), a cloud desktop used by ordinary users in the embodiments of the present disclosure.
[0027] Client 24: that is, a virtual desktop infrastructure (VDI), a client software used by ordinary users to connect to a desktop in the embodiments of the present disclosure.
[0028] In the present embodiment, a virtual peripheral channel connection method running on the above computer terminal or virtual peripheral channel following system is provided. In the case that the client can normally connect to the desktop and can normally create a virtual peripheral channel, the method can be used in the scenario where the user needs to switch between the cloud desktop and the local or other multiple cloud desktops to use the local peripheral. Specifically, in the method, the virtual peripheral channel can be switched to the corresponding cloud desktop system according to the use scenario of the user, so that the user can also use the peripheral device after switching to the cloud desktop, and the availability of the cloud desktop is improved, wherein the peripheral device includes but is not limited to a printer, a USB interface, a U disk, a large-capacity storage, a camera, a card reader, a handwriting board, a serial port, a parallel port and other interface type devices. FIG. 3 is a flowchart of the virtual peripheral channel connection method according to the embodiments of the present disclosure, as shown in FIG. 3, the flow includes the following steps:
[0029] Step S302: determining a target cloud desktop system from a plurality of cloud desktop systems according to a detection task;
[0030] In one embodiment, before determining the target cloud desktop system from the plurality of cloud desktop systems according to the detection task, the method further includes: obtaining a policy parameter allowing the virtual peripheral channel to follow from a cloud management platform; and starting the detection task according to the policy parameter.
[0031] In one embodiment, after the user logs in on the client side, the client side obtains a policy parameter allowing the virtual peripheral channel to follow from the cloud management platform, and a virtual peripheral channel self-following tool on the client side starts a timing task, that is, a detection task, according to the policy parameter.
[0032] The cloud desktop system includes but is not limited to Win7 / 10 / 11 / server, Kylin, UOS system; the terminal Win7 / 10 / 11, Kylin, UOS operating system and the Win7 / 10 / 11, Kylin, UOS operating system of the desktop are randomly matched for use.
[0033] In step S302 of the embodiment, the target cloud desktop system is determined from the plurality of cloud desktop systems according to the detection task, including: according to the detection task, sequentially performing the following detection items: whether there is a full-screen cloud desktop system, whether there is a windowed cloud desktop system, detecting the toolbar configuration of the user; and determining the target cloud desktop system from the plurality of cloud desktop systems according to the detection results of the detection items.
[0034] In one embodiment, according to the detection task, the following detection items are sequentially performed: whether there is a full-screen cloud desktop system, whether there is a windowed cloud desktop system, and detecting the toolbar configuration of the user, including: in the absence of a full-screen cloud desktop system, detecting whether there is a windowed cloud desktop system; in the presence of a windowed cloud desktop system, detecting the toolbar configuration of the user, and setting the virtual peripheral channel according to the toolbar configuration.
[0035] In one embodiment, the target cloud desktop system is determined from the plurality of cloud desktop systems according to the detection results of the detection items, including: in the presence of a full-screen cloud desktop system, the full-screen cloud desktop system is determined as the target cloud desktop system, and the detection task is ended.
[0036] In one embodiment, the target cloud desktop system is determined from the plurality of cloud desktop systems according to the detection results of the detection items, including: in the absence of a windowed cloud desktop system, disconnecting the existing virtual peripheral channel, and ending the detection task.
[0037] That is, in the virtual peripheral channel connection method of the embodiment of the disclosure, the detection task includes: first detecting whether there is a full-screen cloud desktop system, if there is, connecting the virtual peripheral channel to the full-screen cloud desktop system, if there is not, detecting whether there is a windowed cloud desktop system, if there is not, disconnecting the currently connected virtual peripheral channel, and ending the detection task, if there is, detecting the toolbar configuration of the user.
[0038] In one embodiment, in the presence of a windowed cloud desktop system, the toolbar configuration of the user is detected, and the virtual peripheral channel is set according to the toolbar configuration, including: in the case where the toolbar configuration is a first configuration, disconnecting an existing virtual peripheral channel; in the case where the toolbar configuration is a second configuration and the user's use time of the current cloud desktop system exceeds a preset threshold, determining the current cloud desktop system as the target cloud desktop system, and connecting the virtual peripheral channel to the target cloud desktop system; in the case where the toolbar configuration is a third configuration, determining the cloud desktop system set in the third configuration as the target cloud desktop system, and connecting the virtual peripheral channel to the target cloud desktop system.
[0039] In one embodiment, as shown in FIG. 4, the first configuration is configured as "local use", the second configuration is configured as "follow keyboard and mouse", and the third configuration is configured as "desktop (name 1) use".
[0040] For the toolbar configuration configured as "local use", in the case where the toolbar configuration of the user is detected as "local use", the existing virtual peripheral channel is disconnected, and the detection task is ended.
[0041] For the toolbar configuration configured as "follow keyboard and mouse", i.e., follow the keyboard or mouse, in the case where the toolbar configuration of the user is detected as "follow keyboard and mouse", the detection task judges whether the user's use time of the current cloud desktop system is N seconds (i.e., a preset threshold), where N is an integer greater than zero and can be set according to actual application conditions, such as not performing an action if N seconds are not reached, ending the detection task; if N seconds are reached or exceeded, a virtual peripheral channel is established in the current window, the virtual peripheral channel is connected to the current cloud desktop system, and the detection task is ended.
[0042] For the toolbar configuration configured as "desktop (name 1) use", for example, configured as "desktop 1 use", configured as "desktop 2 use", or configured as "desktop M use", where M is an integer greater than zero, in the case where the toolbar configuration of the user is detected as "desktop 1 use", desktop 1 is determined as the target cloud desktop system, the virtual peripheral channel is connected to desktop 1, and the detection task is ended; in the case where the toolbar configuration of the user is detected as "desktop 2 use", desktop 2 is determined as the target cloud desktop system, the virtual peripheral channel is connected to desktop 2, and the detection task is ended; in the case where the toolbar configuration of the user is detected as "desktop N use", desktop M is determined as the target cloud desktop system, the virtual peripheral channel is connected to desktop M, and the detection task is ended.
[0043] Step S304, connecting the virtual peripheral channel to the target cloud desktop system;
[0044] Through the above steps, the target cloud desktop system can be determined according to the detection task, and the virtual peripheral channel is connected to the target cloud desktop system, so that when the user switches the cloud desktop system, the virtual peripheral channel can be switched along with the switching of the cloud desktop system, that is, the cloud desktop system frequently used by the user is confirmed, and the virtual peripheral channel is accurately connected to the currently used cloud desktop system, thereby realizing the automatic following function. Therefore, the problem that the cloud desktop system connected by the virtual peripheral channel cannot be automatically switched according to the use scene of the user in the related art can be solved, and the usability of the cloud desktop is improved.
[0045] In the embodiment of the present disclosure, compared with the prior art, by adding the automatic following function of the virtual peripheral channel, the cloud desktop system connected by the virtual peripheral channel can be automatically adjusted according to the use scene of the user, thereby improving the user experience. As shown in FIG. 5, FIG. 5 is a whole flowchart of a virtual peripheral channel connection method according to an embodiment of the present disclosure. In the method of the present disclosure, a timing detection task is added, and the automatic following function is realized by detecting whether the "peripheral redirection tool detects whether there is a full screen", whether there is a windowed cloud desktop system, detecting the user toolbar configuration, and counting the use time of the followed keyboard and mouse, and the following implementation method is adopted:
[0046] Step S501, start a timing task on the client side.
[0047] Specifically, the user logs in on the client side, obtains the policy parameters of the virtual peripheral channel from the cloud management platform, and the client-side virtual peripheral channel self-following tool starts the timing task.
[0048] Step S502, the client-side virtual peripheral channel self-following tool detects whether there is a full-screen window (i.e., a full-screen cloud desktop system), and if there is, step S503 is performed; if not, step S504 is performed.
[0049] Step S503, establish a virtual peripheral channel in the current full-screen window, and end the timing task.
[0050] Step S504, the client-side virtual peripheral channel self-following tool detects whether there is a windowed cloud desktop system, and if there is not, step S505 is performed; if there is, step S506 is performed.
[0051] Step S505, disconnect the existing virtual peripheral channel, and end the timing task.
[0052] Step S506, the client-side virtual peripheral channel self-following tool detects the user toolbar configuration, and selects the virtual peripheral channel according to the user configuration:
[0053] Step S507, configured as "local use": disconnect the existing virtual peripheral channel, and end the timing task.
[0054] Step S508, configured as "Desktop 1" use: establish a virtual peripheral channel in Desktop 1, end the timing task; configured as "Desktop 2" use: establish a virtual peripheral channel in Desktop 2, end the timing task; configured as "Desktop N" use: establish a virtual peripheral channel in Desktop N, end the timing task.
[0055] Step S509, configured as "follow the keyboard and mouse": the detection mechanism judges whether the user uses the current desktop for N seconds, if not, execute step S510; if N seconds are reached, execute step S511.
[0056] Step S510, no action is performed, and the timing task is ended.
[0057] Step S511, a virtual peripheral channel is established in the current window, and the timing task is ended.
[0058] At this point, the virtual peripheral channel can automatically follow according to the switching of the user's use scenario, greatly increasing the user's experience and improving the usability of the cloud desktop.
[0059] In the related art, the cloud desktop supports redirecting the local peripheral to a single cloud desktop for internal use. Under this scheme, when the cloud desktop creates a virtual peripheral channel, there are two problems:
[0060] 1. After the peripheral channel is created, unless the currently used cloud desktop is disconnected or the peripheral port is manually released, the local operating system will temporarily be unable to use the peripheral;
[0061] 2. When multiple cloud desktops are accessed at the same time, only one desktop can use the peripheral, that is, the peripheral channel function only supports use in one system.
[0062] Through the above embodiments of the present disclosure, the "windowed peripheral redirection configuration" option is added to the user's cloud desktop toolbar, and the default preset "local use", "follow the keyboard and mouse", and "desktop (name 1) use" are selected for the user to choose, and subsequent options such as "desktop (name 2) use" are automatically added according to the currently connected desktop. After that, through the detection task to judge "whether there is a full-screen desktop", "whether there is a windowed desktop", "check the toolbar configuration", "count the keyboard and mouse use time" and other processes, the desktop currently frequently used by the user is confirmed, and the peripheral channel is accurately connected to the currently used desktop, thereby realizing the function of automatic following. The usability of the cloud computer product is improved, the user's use experience is improved, the threshold for ordinary users to use the cloud computer is lowered, and it is conducive to the promotion of the cloud computer product.
[0063] Those skilled in the art can clearly understand that the method according to the above-mentioned embodiments can be realized by means of software necessary general hardware platform, of course, can also be realized by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, or network device) execute the method described in various embodiments of the present disclosure.
[0064] In this embodiment, a virtual peripheral channel connection device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware is also possible and is contemplated.
[0065] FIG. 6 is a structural block diagram of a virtual peripheral channel connection device according to an embodiment of the present disclosure, as shown in FIG. 6, the virtual peripheral channel connection device 600 includes a determination module 610, a connection module 620.
[0066] The determination module 610 is configured to determine a target cloud desktop system from a plurality of cloud desktop systems according to a detection task;
[0067] The connection module 620 is configured to connect the virtual peripheral channel to the target cloud desktop system.
[0068] It should be noted that each of the above modules can be realized by software or hardware, and for the latter, the following implementation manners can be used, but are not limited thereto: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0069] The embodiments of the present disclosure also provide a computer readable storage medium, the computer readable storage medium stores a computer program, and the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0070] In one exemplary embodiment, the above computer readable storage medium can include, but is not limited to: a U disk, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a mobile hard disk, a magnetic disk or an optical disk, and various computer program storage media.
[0071] Embodiments of the present disclosure also provide an electronic device, comprising a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the steps in any of the above method embodiments.
[0072] In an example embodiment, the electronic device described above can further comprise a transmission device connected to the processor, and an input / output device connected to the processor.
[0073] The specific examples in the present embodiment can refer to the examples described in the above embodiments and example implementations, which will not be repeated here.
[0074] Embodiments of the present disclosure also provide a computer program product, comprising a computer program and instructions, wherein the computer program and instructions are executed by a processor to implement the steps in any of the above method embodiments.
[0075] Obviously, those skilled in the art should understand that the modules or steps of the present disclosure described above can be realized by general computing devices, which can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, which can be realized by program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps can be manufactured into a single integrated circuit module. Thus, the present disclosure is not limited to any particular combination of hardware and software.
[0076] The above only describes the preferred embodiments of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for connecting a virtual peripheral channel, comprising: The target cloud desktop system is determined from multiple cloud desktop systems based on the detection task; Connect the virtual peripheral channel to the target cloud desktop system.
2. The method according to claim 1, wherein, Before determining the target cloud desktop system from multiple cloud desktop systems based on the detection task, the method further includes: Obtain policy parameters from the cloud management platform that allow virtual peripheral channels to follow; The detection task is initiated according to the strategy parameters.
3. The method according to claim 1, wherein, The target cloud desktop system was identified from multiple cloud desktop systems based on the detection task, including: According to the detection task, the following detection items are performed in sequence: whether a full-screen cloud desktop system exists, whether a windowed cloud desktop system exists, and the user's toolbar configuration. The target cloud desktop system is determined from the plurality of cloud desktop systems based on the detection results of the detection items.
4. The method according to claim 3, wherein, According to the detection task, the following detection items are performed in sequence: whether a full-screen cloud desktop system exists, whether a windowed cloud desktop system exists, and the user's toolbar configuration, including: In the absence of a full-screen cloud desktop system, the presence or absence of a windowed cloud desktop system is detected. In the presence of a windowed cloud desktop system, the user's toolbar configuration is detected, and the virtual peripheral channel is set according to the toolbar configuration.
5. The method according to claim 3, wherein, The target cloud desktop system is determined from the plurality of cloud desktop systems based on the detection results of the detection items, including: If a full-screen cloud desktop system exists, the full-screen cloud desktop system is identified as the target cloud desktop system, and the detection task is terminated.
6. The method according to claim 3, wherein, The target cloud desktop system is determined from the plurality of cloud desktop systems based on the detection results of the detection items, including: If a windowed cloud desktop system is not present, disconnect the existing virtual peripheral channel and terminate the detection task.
7. The method according to claim 4, wherein, In the presence of a windowed cloud desktop system, the user's toolbar configuration is detected, and the virtual peripheral channel is configured according to the toolbar configuration, including: When the toolbar is configured in the first configuration, disconnect the existing virtual peripheral channel; When the toolbar is configured as the second configuration and the user's usage time on the current cloud desktop system exceeds a preset threshold, the current cloud desktop system is identified as the target cloud desktop system, and the virtual peripheral channel is connected to the target cloud desktop system. When the toolbar is configured as the third configuration, the cloud desktop system set in the third configuration is identified as the target cloud desktop system, and the virtual peripheral channel is connected to the target cloud desktop system.
8. A virtual peripheral channel connection device, comprising: The determination module is configured to identify the target cloud desktop system from multiple cloud desktop systems based on the detection task; The connection module is configured to connect the virtual peripheral channel to the target cloud desktop system.
9. A computer-readable storage medium storing a computer program, wherein, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method of using cloud desktop and cloud desktop system
CN106998357A
Arrangement method for implementing cloud desktop client
CN114281444A
Methods and systems for controlling virtual machine access to an optical disk drive
US20110145819A1
Cloud desktop display method and system
US20230410245A1
Cloud desktop system, network redirection method, and device and storage medium
WO2023246927A1