IDV desktop intelligent USB penetration system
By setting up USB vHOST modules and proxy modules in IDV desktop and host systems, monitoring and negotiating application protocols, generating simulated devices, the problem of USB device configuration and sharing is solved, and intelligent sharing and optimization of USB devices between IDV desktop and host is realized. use.
Patent Information
- Application Number
- CN202411009810.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-19
AI Technical Summary
In the existing IDV desktop technology, plugging and unplugging USB devices requires manual configuration for users. The host and IDV desktop cannot use USB devices at the same time, and multiple IDV desktops cannot use USB devices at the same time, and it is strongly dependent on the functional implementation of the virtualization platform.
Set up the USB vHOST module and USB device proxy module in the host system and IDV desktop, monitor and negotiate application protocols through TCP connection channel, generate simulated devices, realize independent USB device transceiver system, decouple the virtual machine desktop platform, and allow the IDV desktop to be independent Enjoy or share a USB device.
It realizes intelligent penetration of USB devices, allowing the same device to be exclusively or shared by IDV desktop, optimizes the use of different types of USB devices, and removes the dependence on virtualization platforms.
Smart Images

Figure CN118981349A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of IDV desktop technology, and in particular to an IDV desktop intelligent USB penetration system. Background Art
[0002] IDV (Virtual Desktop Infrastructure) desktop is a virtual machine desktop running on a terminal device. There are two ways for IDV desktop to use USB devices: passthrough and redirection. When using, you need to configure the USB PCI bus address or the device "vendor identification number" (VID) and "product identification number" (PID) on the virtualization platform. When the USB device is passed to the virtual machine or the virtual machine returns the device, this is a device hot plug operation for the host, so the host cannot distinguish the actual hot plug of the device. Problems existing in the prior art: 1. The plugging and unplugging of USB devices requires the user to participate in the selection and configuration; 2. The host and IDV desktop cannot use USB devices at the same time; 3. If there are multiple IDV desktops on the host, multiple desktops cannot use USB devices at the same time; 4. It is strongly dependent on the function implementation of the virtualization platform. Summary of the invention
[0003] In order to overcome at least one deficiency in the prior art, the present application provides an IDV desktop intelligent USB penetration system.
[0004] In a first aspect, a system for intelligent USB penetration of an IDV desktop is provided, comprising: a host system and at least one IDV desktop; a USB vHOST module is set in the host system; and a USB device proxy module is set in the IDV desktop;
[0005] When the IDV desktop is started, the USB device proxy module actively registers with the USB vHOST module;
[0006] After the USB vHOST module detects that a USB device is connected, it establishes a TCP connection channel with each registered USB device proxy module;
[0007] The USB vHOST module reads the interface class of the USB device to identify the type of the USB device;
[0008] The USB vHOST module negotiates with each registered USB device agent module the application protocol carried in the TCP connection channel according to the type of the USB device; each registered USB device agent module generates a simulated device according to the negotiated application protocol.
[0009] In one embodiment, when the host system needs to use USB devices at the same time, a USB device proxy module is set in the host system; when the IDV desktop is started, the USB device proxy module in the host system actively registers with the USB vHOST module.
[0010] In one embodiment, the USB vHOST module negotiates with each registered USB device proxy module the application protocol carried in the TCP connection channel according to the type of the USB device; each registered USB device proxy module generates a simulated device according to the negotiated application protocol, including:
[0011] If the type of the USB device is a human-machine interface device, and the negotiated application protocol is a keyboard and mouse event message, the USB device proxy module receives and responds to the keyboard and mouse event message;
[0012] If the type of the USB device is an image device and the negotiated application protocol is the TWAIN protocol, the USB device proxy module simulates and generates a corresponding image device;
[0013] If the type of the USB device is mass storage, and the negotiated application protocol is SMB or NFS, the USB device proxy module loads the device according to the corresponding protocol;
[0014] If the type of the USB device is a video device and the negotiated application protocol is the RTSP protocol, the USB device proxy module simulates the generation of a virtual camera and receives the RTSP protocol stream;
[0015] If the USB device type is other types, the negotiated application protocol is the URB protocol.
[0016] In one embodiment, at least one USB controller is provided in the host system, and the USB vHOST module monitors the USB controller to detect whether a USB device is connected.
[0017] In one embodiment, when the USB vHOST module detects that the USB device is unplugged, each registered USB device proxy module deletes the generated simulated device; and each TCP connection channel is disconnected.
[0018] Compared with the prior art, the present application has the following beneficial effects: the present application forms an independent USB device transceiver system by adding a USB vHOST module and a USB device proxy module, and the modules are connected through a local internal network; the present application is decoupled from the virtual machine desktop platform system, and the same USB device can be exclusively used by an IDV desktop, or shared by multiple IDV desktops, or between an IDV desktop and a host system, or different USB devices can be assigned to different IDV desktops according to policies. At the same time, the USB device proxy module intelligently optimizes the use of different types of USB devices by generating simulated devices by type. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The present application may be better understood by referring to the following description given in conjunction with the accompanying drawings, which together with the following detailed description are included in this specification and form a part of this specification. In the drawings:
[0020] Figure 1 The following is an architecture diagram of the IDV desktop intelligent USB penetration system according to an embodiment of the present application;
[0021] Figure 2 The implementation process sequence diagram of the IDV desktop intelligent USB penetration system according to the embodiment of the present application is shown;
[0022] Figure 3 A schematic diagram of USB intelligent penetration data transmission is shown. DETAILED DESCRIPTION
[0023] The exemplary embodiments of the present application will be described below in conjunction with the accompanying drawings. For the sake of clarity and conciseness, not all features of the actual embodiments are described in the specification. However, it should be understood that many implementation-specific decisions can be made in the process of developing any such actual embodiments in order to achieve the specific goals of the developer, and these decisions may vary from embodiment to embodiment.
[0024] It is also necessary to explain here that, in order to avoid obscuring the present application due to unnecessary details, only the device structure closely related to the scheme according to the present application is shown in the drawings, while other details that are not closely related to the present application are omitted.
[0025] It should be understood that the present application is not limited to the described implementation forms due to the following description with reference to the accompanying drawings. In this article, where feasible, the embodiments can be combined with each other, features between different embodiments can be replaced or borrowed, and one or more features can be omitted in one embodiment.
[0026] The present application embodiment provides an IDV desktop intelligent USB penetration system. Figure 1The architecture diagram of the IDV desktop intelligent USB penetration system according to the embodiment of the present application is shown in FIG. Figure 1 The system includes: a host system Host OS and at least one IDV desktop; a USB vHOST module is set in the host system; and a USB device proxy module is set in the IDV desktop.
[0027] Figure 2 A timing diagram of the implementation process of the IDV desktop intelligent USB penetration system according to an embodiment of the present application is shown.
[0028] When the IDV desktop is started, the USB device proxy module actively registers with the USB vHOST module;
[0029] After the USB vHOST module detects that a USB device is connected, it establishes a TCP connection channel with each registered USB device proxy module; Figure 3 A schematic diagram of USB intelligent penetration data transmission is shown.
[0030] The USB vHOST module reads the interface class of the USB device to identify the type of the USB device;
[0031] The USB vHOST module negotiates with each registered USB device agent module the application protocol carried in the TCP connection channel according to the type of the USB device; each registered USB device agent module generates a simulated device according to the negotiated application protocol.
[0032] Specifically, if interface class=03h, that is, the type of the USB device is a human-machine interface device, and the negotiated application protocol is a keyboard and mouse event message, the USB device proxy module receives and responds to the keyboard and mouse event message;
[0033] If interface class = 06h, that is, the type of the USB device is an image device, the negotiated application protocol is the TWAIN protocol, and the USB device proxy module simulates and generates the corresponding image device;
[0034] If interface class = 08h, that is, the type of the USB device is mass storage, and the negotiated application protocol is SMB or NFS protocol, the USB device proxy module loads the device according to the corresponding protocol;
[0035] If interface class = 0Eh, that is, the type of the USB device is a video device, and the negotiated application protocol is the RTSP protocol, the USB device proxy module simulates the generation of a virtual camera and receives the RTSP protocol stream;
[0036] If the USB device type is other types, the negotiated application protocol is the URB protocol, that is, the device is redirected using USB over TCP / IP.
[0037] It should be noted that the application protocols used in the specific negotiation are not limited to those listed above.
[0038] The above simulated devices all use transparent VID and PID, that is, the VID and PID of the simulated device and the real device remain the same.
[0039] In one embodiment, when the host system needs to use USB devices at the same time, a USB device proxy module is set in the host system; when the IDV desktop is started, the USB device proxy module in the host system actively registers with the USB vHOST module, so that the USB device can be shared between the IDV desktop and the host system.
[0040] Furthermore, at least one USB controller is provided in the host system, and the USB vHOST module monitors the USB controller to detect whether a USB device is connected.
[0041] Furthermore, when the USB vHOST module detects that the USB device is unplugged, each registered USB device proxy module deletes the generated simulated device; and each TCP connection channel is disconnected.
[0042] In summary, this application adds a USB vHOST module and a USB device proxy module, and the modules are connected through a local internal network to form an independent USB device transceiver system; it is decoupled from the virtual machine desktop platform system, and the same USB device can be used exclusively by the IDV desktop, or shared by multiple IDV desktops, or between the IDV desktop and the host system, or different USB devices can be assigned to different IDV desktops according to policies. At the same time, the USB device proxy module intelligently optimizes the use of different types of USB devices by generating simulated devices by type.
[0043] The above are only various implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An IDV desktop intelligent USB penetration system, characterized in that: include: A host system and at least one IDV desktop; a USB vHOST module is set in the host system; a USB device proxy module is set in the IDV desktop; When the IDV desktop is started, the USB device proxy module actively registers with the USB vHOST module; After the USB vHOST module detects that a USB device is connected, it establishes a TCP connection channel with each registered USB device proxy module; The USB vHOST module reads the interface class of the USB device to identify the type of the USB device; The USB vHOST module negotiates with each registered USB device proxy module the application protocol carried in the TCP connection channel according to the type of the USB device; each registered USB device proxy module generates a simulated device according to the negotiated application protocol.
2. The system according to claim 1, characterized in that When the host system needs to use the USB device at the same time, a USB device proxy module is set in the host system; when the IDV desktop is started, the USB device proxy module in the host system actively registers with the USB vHOST module.
3. The system according to claim 1, characterized in that in, The USB vHOST module negotiates the application protocol carried in the TCP connection channel with each registered USB device proxy module according to the type of the USB device; Each registered USB device proxy module generates a simulated device according to the negotiated application protocol, including: If the type of the USB device is a human-machine interface device, and the negotiated application protocol is a keyboard and mouse event message, the USB device proxy module receives a response to the keyboard and mouse event message; If the type of the USB device is an image device and the negotiated application protocol is the TWAIN protocol, the USB device proxy module simulates and generates a corresponding image device; If the type of the USB device is mass storage, and the negotiated application protocol is SMB or NFS protocol, the USB device proxy module loads the device according to the corresponding protocol; If the type of the USB device is a video device and the negotiated application protocol is the RTSP protocol, the USB device proxy module simulates the generation of a virtual camera and receives the RTSP protocol stream; If the type of the USB device is other types, the negotiated application protocol is the URB protocol.
4. The system according to claim 1, characterized in that At least one USB controller is arranged in the host system, and the USB vHOST module monitors the USB controller to detect whether a USB device is connected.
5. The system according to claim 1, wherein: When the USB vHOST module detects that the USB device is unplugged, each registered USB device proxy module deletes the generated simulated device; and each TCP connection channel is disconnected.
