Method for redirecting USB (universal serial bus) equipment by multiple remote operating systems

By creating USB device clones and task management in the remote operating system, the problem of USB device sharing among multiple remote sessions is solved, resource utilization and user experience are improved, and it is suitable for multi-user remote access scenarios.

CN118689673APending Publication Date: 2024-09-24CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410863307.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-29
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Traditional remote operating system technology is difficult to share USB devices between multiple remote sessions, resulting in low resource utilization, poor user experience, and inability to meet the needs of multi-user scenarios.

Method used

Through the steps of device power-on detection, determination of redirection, device hosting and redirection, multi-remote system request processing, read task management and write operation management, USB device clones are created to realize USB between multiple remote operating systems. Device sharing, and resource utilization efficiency is improved through task division and time-sharing reading and writing.

Benefits of technology

It realizes multiple sharing of USB devices, improves resource utilization and user experience, is suitable for multi-user remote access scenarios, reduces operational complexity and improves system intelligence and automation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689673A
    Figure CN118689673A
Patent Text Reader

Abstract

The invention discloses a method for redirecting USB (universal serial bus) equipment by a plurality of remote operating systems. The method comprises the following steps of: 1, electrifying and detecting the equipment; 2, judging whether to redirect the equipment or not; step 3, equipment hosting and redirection; step 4, multi-remote system request processing; step 5, management of a reading task; and step 6, managing write-in operation. The method is suitable for various remote desktops and cloud computing scenes needing to be shared by multiple users, in addition, through the cloned virtual equipment, each remote system can independently access the USB equipment, the utilization rate of USB resources is improved, when multiple remote operating systems request the same USB equipment, the systems can intelligently allocate tasks, and the user experience is improved. Therefore, each remote system can access the equipment within reasonable time, and the utilization efficiency of resources is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of device virtualization, and in particular to a method for redirecting USB devices by multiple remote operating systems. Background Art

[0002] With the development of computer technology, remote operating system and cloud computing technology are becoming more mature and widely used. Users can use computer resources anywhere through remote connection. However, traditional remote operating system technology is difficult to achieve USB device sharing and redirection.

[0003] To solve this problem, some technologies have been developed to achieve the redirection of USB devices in a single remote session. For example, Microsoft RDP (Remote Desktop Protocol) supports redirecting local USB devices to the remote desktop, and VMWare's desktop virtual machine can redirect the terminal's USB devices to the virtual machine. However, these technologies cannot share USB devices between multiple remote sessions. When multiple users use a USB device at the same time or users access multiple remote operating systems at the same time, the USB device can only be occupied by one remote system and cannot be used by other users. This limitation leads to the following problems:

[0004] 1. Low resource utilization: USB devices can only be used by one remote system, resulting in low device resource utilization.

[0005] 2. Poor user experience: Other users must wait when they need to access the same USB device, causing inconvenience and inefficiency.

[0006] 3. Not suitable for multi-user scenarios: It cannot meet the needs of multiple users to access USB devices at the same time, which limits the application of remote operating systems and cloud computing in multi-user scenarios. Summary of the invention

[0007] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0008] To solve the above technical problems, the present invention provides the following technical solution: a method for redirecting USB devices by multiple remote operating systems, comprising the following steps:

[0009] Step 1: Power on and test the device;

[0010] Step 2: Determine whether to redirect the device;

[0011] Step 3: Device hosting and redirection;

[0012] Step 4: Multiple remote system request processing;

[0013] Step 5: Reading task management;

[0014] Step 6: Management of write operations.

[0015] As a preferred solution of the method for redirecting USB devices by multiple remote operating systems described in the present invention, the device is powered on and detected, that is, after the device is powered on and the client program on the terminal detects that a new device is connected, the basic information of the USB device is recorded and synchronously sent to the remote operating system.

[0016] As a preferred solution of the method for redirecting USB devices by multiple remote operating systems of the present invention, the basic information of the USB device includes a device descriptor, a report descriptor and a string descriptor.

[0017] As a preferred solution of the method for redirecting USB devices by multiple remote operating systems described in the present invention, the device redirection judgment, that is, each remote operating system receives device information from the client, and judges whether the device needs to be redirected based on the configuration or user selection, and the remote operating system sends a redirection instruction back to the client.

[0018] As a preferred solution of the method for redirecting USB devices by multiple remote operating systems described in the present invention, the device is hosted and redirected, that is, after the client program receives the redirection instruction, it uses the kernel driver to separate the USB device from the bus driver and host it, and then the client program redirects the device to the remote operating system through the network, creates a new USB device in the remote operating system, and communicates with the actual physical device through the network.

[0019] As a preferred solution of the method for redirecting USB devices by multiple remote operating systems described in the present invention, wherein: the multiple remote system request processing, that is, when multiple remote operating systems simultaneously request to redirect the same USB device, the terminal system will virtualize a new USB device in the kernel, and the basic information of the virtual device is obtained from the physical device. The client program distinguishes the device type according to the device information, and starts the read and write task management corresponding to the device, and then redirects according to the redirection method in step 3.

[0020] As a preferred solution of the method for redirecting USB devices by multiple remote operating systems of the present invention, if the device type is a composite device, it will be split.

[0021] As a preferred solution of the method for redirecting USB devices by multiple remote operating systems of the present invention, the basic information of the virtual device includes a device descriptor, a report descriptor and a string descriptor.

[0022] As a preferred solution of the method for redirecting USB devices by multiple remote operating systems described in the present invention, the management of the reading task, that is, when the remote system A performs reading, the client sets the device to an occupied state, blocks the reading tasks of other systems, and the reading requests of other systems will be queued to form a task queue. If system A has no operation within a certain period of time, the device occupation state is released, and system B will take over the device to perform the reading operation.

[0023] As a preferred solution of the method for redirecting USB devices by multiple remote operating systems described in the present invention, the management of the write operation, that is, the write operation is similar to the read operation, and the integrity and consistency of the device must be ensured. When the remote system writes, the client needs to coordinate the write request to prevent data conflict and loss.

[0024] Beneficial effects of the present invention:

[0025] 1. The present invention can realize the sharing of USB devices among multiple remote operating systems by creating a USB device cloning method.

[0026] 2. The present invention takes over the redirected device, uses it to identify reading and writing, and performs task division and time-sharing reading and writing, which increases the scalability of USB redirection. Specifically, when multiple remote operating systems request the same USB device, the system will intelligently allocate tasks to ensure that each remote system can access the device within a reasonable time, thereby improving the efficiency of resource utilization.

[0027] 3. The present invention clones virtual devices so that each remote system can independently access the USB device, avoiding the trouble of manual switching. This not only greatly improves the utilization rate of USB resources, but also reduces the complexity of operation, making the system more intelligent and automated.

[0028] 4. The present invention can provide a more convenient multi-user remote access experience and is applicable to various remote desktop and cloud computing scenarios that require multi-user sharing. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0030] Figure 1 The present invention is a flowchart of a method for redirecting USB devices by multiple remote operating systems.

[0031] Figure 2 The present invention is a flowchart of a method for redirecting USB devices by multiple remote operating systems. DETAILED DESCRIPTION

[0032] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0033] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0034] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0035] Secondly, the present invention is described in detail with reference to the schematic diagram. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0036] Example 1

[0037] Reference Figure 1-2 , which is a first embodiment of the present invention, provides a method for redirecting USB devices by multiple remote operating systems, comprising the following steps:

[0038] Step 1: Power on and test the device

[0039] After the device is powered on and the client program on the terminal detects that a new device is connected, it records the basic information of the USB device (device descriptor, report descriptor, string descriptor, etc.) and synchronously sends the basic information of the USB device to the remote operating system.

[0040] Step 2: Determine whether to redirect the device

[0041] Each remote operating system receives the device information from the client, and determines whether the device needs to be redirected according to the configuration or user selection, and the remote operating system sends a redirection instruction back to the client.

[0042] Step 3: Device hosting and redirection

[0043] After receiving the redirection instruction, the client program uses the kernel driver to separate the USB device from the bus driver and host it. Then the client program redirects the device to the remote operating system through the network, creates a new USB device in the remote operating system, and communicates with the actual physical device through the network.

[0044] Step 4: Multiple remote system request processing

[0045] When multiple remote operating systems request to redirect the same USB device at the same time, the terminal system will virtualize a new USB device in the kernel. The basic information of the virtual device (device descriptor, report descriptor, string descriptor, etc.) is obtained from the physical device. The client program distinguishes the device type according to the device information (if it is a composite device, it will be split), and starts the read and write task management corresponding to the device, and then redirects it according to the redirection method in step 3.

[0046] Step 5: Reading Task Management

[0047] When remote system A is reading, the client sets the device to occupied state, blocking the reading tasks of other systems. The reading requests of other systems will be queued to form a task queue. If system A has no operation within a certain period of time, the device occupation state is released, and system B will take over the device for reading operations.

[0048] Step 6: Management of write operations

[0049] Write operations are similar to read operations. The integrity and consistency of the device must be ensured. When a remote system writes, the client needs to coordinate the write request to prevent data conflicts and loss.

[0050] In summary, the present invention clones multiple virtual USB devices through virtualization technology, so that each remote operating system can independently access these devices, thereby realizing a one-to-many sharing mode. The present invention takes over the redirection device, uses the recognition of reading and writing, and performs task division and time-sharing reading and writing, thereby increasing the expansibility of USB redirection. Specifically, when multiple remote operating systems request the same USB device, the system will intelligently allocate tasks to ensure that each remote system can access the device within a reasonable time, thereby improving the utilization efficiency of resources. The present invention enables each remote system to independently access the USB device through cloned virtual devices, thereby avoiding the trouble of manual switching, which not only greatly improves the utilization rate of USB resources, but also reduces the complexity of operation, making the system more intelligent and automated. The present invention can provide a more convenient multi-user remote access experience, and is suitable for various remote desktop and cloud computing scenarios that require multi-user sharing.

[0051] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A method for redirecting USB devices by multiple remote operating systems. It is characterized in that The following steps are involved: Step 1: Power on and test the device; Step 2: Determine whether to redirect the device; Step 3: Device hosting and redirection; Step 4: Multiple remote system request processing; Step 5: Reading task management; Step 6: Management of write operations.

2. The method for redirecting USB devices by multiple remote operating systems as claimed in claim 1, Features: The device is powered on and detected, that is, after the device is powered on, the client program on the terminal detects that a new device is connected, records basic information of the USB device, and synchronously sends the basic information of the USB device to the remote operating system.

3. The method for redirecting USB devices by multiple remote operating systems as claimed in claim 2, Features: The basic information of the USB device includes a device descriptor, a report descriptor and a string descriptor.

4. The method for redirecting USB devices by multiple remote operating systems as claimed in claim 1, Features: The device redirection judgment is that each remote operating system receives the device information from the client, and judges whether the device needs to be redirected according to the configuration or user selection, and the remote operating system sends a redirection instruction back to the client.

5. The method for redirecting USB devices by multiple remote operating systems as claimed in claim 1, Features: The device hosting and redirection means that after the client program receives the redirection instruction, it uses the kernel driver to separate the USB device from the bus driver and host it. Then the client program redirects the device to the remote operating system through the network, creates a new USB device in the remote operating system, and communicates with the actual physical device through the network.

6. The method for redirecting USB devices by multiple remote operating systems as claimed in claim 1, Features: The multi-remote system request processing, that is, when multiple remote operating systems simultaneously request to redirect the same USB device, the terminal system will virtualize a new USB device in the kernel, and the basic information of the virtual device is obtained from the physical device. The client program distinguishes the device type according to the device information, and starts the read and write task management corresponding to the device, and then redirects according to the redirection method in step 3.

7. The method for redirecting USB devices by multiple remote operating systems as claimed in claim 6, Features: If the device type is a composite device, it will be split.

8. The method for redirecting USB devices by multiple remote operating systems as claimed in claim 6, Features: The basic information of the virtual device includes a device descriptor, a report descriptor and a string descriptor.

9. The method for redirecting USB devices by multiple remote operating systems as claimed in claim 1, Features: The management of the reading task is that when the remote system A performs reading, the client sets the device to the occupied state to block the reading tasks of other systems. The reading requests of other systems will be queued to form a task queue. If system A has no operation within a certain period of time, the device occupation state will be released, and system B will take over the device to perform the reading operation.

10. The method for redirecting USB devices by multiple remote operating systems as claimed in claim 1, Features: The management of the write operation, that is, the write operation is similar to the read operation, and the integrity and consistency of the device must be ensured. When the remote system writes, the client needs to coordinate the write request to prevent data conflicts and losses.