USB equipment redirection method and device

文档序号:1952528 发布日期:2021-12-10 浏览:9次 中文

阅读说明:本技术 Usb设备重定向方法及装置 (USB equipment redirection method and device ) 是由 蔡显志 于 2021-08-03 设计创作,主要内容包括:本公开提供一种USB设备重定向方法及装置,涉及云桌面领域,能够解决对所有客户端采用相同的过滤规则并不满足所有场景下的需求的问题。具体技术方案为:接收目标客户端发送的目标客户端标识信息,所述目标客户端标识信息包括所述目标客户端的类型以及厂家信息;根据所述目标客户端标识信息确定所述目标客户端所在的目标客户端组队,其中,目标客户端组队中的各个客户端的类型及厂家信息与所述目标客户端一致;将目标客户端组队对应的目标过滤规则发送至所述目标客户端,以便所述目标客户端根据所述目标过滤规则对插入的USB设备进行重定向,所述目标过滤规则包括至少一个可以被重定向的USB设备的标识信息。本发明用于满足更多的场景下的使用需求。(The invention provides a method and a device for redirecting USB equipment, relates to the field of cloud desktops, and can solve the problem that the requirements under all scenes are not met by adopting the same filtering rule for all clients. The specific technical scheme is as follows: receiving target client identification information sent by a target client, wherein the target client identification information comprises the type and manufacturer information of the target client; determining a target client formation where the target client is located according to the target client identification information, wherein the type and manufacturer information of each client in the target client formation are consistent with those of the target client; and sending a target filtering rule corresponding to the target client formation to the target client so that the target client redirects the inserted USB equipment according to the target filtering rule, wherein the target filtering rule comprises identification information of at least one USB equipment which can be redirected. The method and the device are used for meeting the use requirements in more scenes.)

1. A Universal Serial Bus (USB) equipment redirection method is applied to a server and comprises the following steps:

receiving target client identification information sent by a target client, wherein the target client identification information comprises the type and manufacturer information of the target client, and the target client is any one of at least one client connected to a server;

determining a target client formation where the target client is located according to the target client identification information, wherein the type and manufacturer information of each client in the target client formation are consistent with those of the target client;

and sending a target filtering rule corresponding to the target client formation to the target client so that the target client redirects the inserted USB equipment according to the target filtering rule, wherein the target filtering rule comprises identification information of at least one USB equipment which can be redirected.

2. The method of claim 1, wherein before receiving the client identification information sent by the target client, the method further comprises:

receiving client identification information of each client sent by each client in the at least one client;

grouping the at least one client according to the client identification information to obtain at least one client team, wherein the types and the manufacturer information of the clients in the same client team are consistent;

and determining the filtering rule corresponding to each client team.

3. The method of claim 2, wherein the client identification information further comprises segment information of the client, and wherein grouping the at least one client according to the client identification information comprises:

and dividing the clients with consistent network segment information into a group.

4. The method of claim 1, further comprising:

receiving user identification information sent by the target client, wherein the user identification information is input by a user on the target client;

if the user is determined to be a legal user according to the user identification information, determining the user grade of the legal user;

and determining a target filtering rule of the target client according to the user level, wherein different user levels correspond to different filtering rules, and the number of the USB devices which can be redirected in the filtering rule with the high user level is larger than the number of the USB devices which can be redirected in the filtering rule with the low user level.

5. The method of claim 4, further comprising:

receiving a target USB device redirection application message sent by the target client, wherein the target USB device redirection application message comprises identification information of the target USB device, and the target USB device redirection application message is sent to the server by the target client after the target client determines that the target USB device does not exist in the target filtering rule;

adding the identification information of the target USB equipment to the target filtering rule to obtain an updated target filtering rule;

and sending the updated target filtering rule to the target client so that the target client can redirect the target USB equipment according to the filtered target filtering rule.

6. A method for redirecting a USB device is applied to a target client and comprises the following steps:

sending target client identification information of the target client to a server;

receiving a target filtering rule sent by a server according to the identification information of the target client, wherein the target filtering rule comprises the identification information of at least one USB device which can be redirected;

when the target USB equipment is determined to be inserted, acquiring identification information of the target USB equipment;

and if the identification information of the target USB equipment exists in the target filtering rule, redirecting the target USB equipment.

7. The method of claim 6, further comprising:

if the identification information of the target USB equipment does not exist in the target filtering rule, sending a target USB equipment redirection application message to a server so that the server can update the target filtering rule according to the target USB equipment redirection application message;

receiving an updated target filtering rule sent by a server, wherein the updated target filtering rule comprises identification information of the target USB equipment;

and redirecting the target USB equipment according to the updated target filtering rule.

8. The method of claim 6, further comprising:

receiving user identification information input by a user;

sending the user identification information to a server;

and receiving the target filtering rule of the target client sent by the server according to the user identification information.

9. The method of claim 6, wherein the target filter rules further include usage duration of each USB device that can be redirected, and wherein the method further comprises, after redirecting the target USB device:

acquiring the target use duration of the target USB equipment and starting timing;

and after the target use duration, forbidding the target USB equipment.

10. The USB equipment reorienting device is applied to a server and comprises the following components:

the system comprises a target client identification information receiving module, a server and a client identification information sending module, wherein the target client identification information receiving module is used for receiving target client identification information sent by a target client, the target client identification information comprises the type and manufacturer information of the target client, and the target client is any one of at least one client connected to the server;

the target client side team forming determining module is used for determining a target client side team where the target client side is located according to the target client side identification information, wherein the type and the manufacturer information of each client side in the target client side team are consistent with those of the target client side;

and the target filtering rule sending module is used for sending a target filtering rule corresponding to a target client formation to the target client so that the target client can redirect the inserted USB equipment according to the target filtering rule, and the target filtering rule comprises identification information of at least one USB equipment which can be redirected.

11. The USB equipment reorienting device is applied to a target client and comprises the following components:

the target client identification information sending module is used for sending the target client identification information of the target client to a server;

a target filtering rule receiving module, configured to receive a target filtering rule sent by a server according to the target client identification information, where the target filtering rule includes identification information of at least one USB device that can be redirected;

the target USB equipment identification information acquisition module is used for acquiring the identification information of the target USB equipment when the target USB equipment is determined to be inserted;

and the target USB equipment redirection module is used for redirecting the target USB equipment if the identification information of the target USB equipment exists in the target filtering rule.

Technical Field

The disclosure relates to the field of cloud desktops, in particular to a USB device redirection method and device.

Background

With the development of cloud computing technology application, in recent years, cloud desktops are applied more and more in various industries, and the use requirement for redirection of Universal Serial Bus (USB) devices is also more and more.

In the prior art, when the USB device is redirected, the USB device is selected according to the filtering rule, and only the USB device that meets the filtering rule can be redirected. Typically, the filtering rules are issued to the client by the server before the client connects to the USB device, and the same filtering rules are typically applied to all clients. However, using the same filtering rule for all clients does not meet the requirements in all scenarios.

Disclosure of Invention

The embodiment of the disclosure provides a method and a device for redirecting a USB device, which can solve the problem that the requirements under all scenes are not met by adopting the same filtering rule for all clients. The technical scheme is as follows:

according to a first aspect of the embodiments of the present disclosure, a method for redirecting a USB device on a universal serial bus is applied to a server, and includes:

receiving target client identification information sent by a target client, wherein the target client identification information comprises the type and manufacturer information of the target client, and the target client is any one of at least one client connected to a server;

determining a target client formation where the target client is located according to the target client identification information, wherein the type and manufacturer information of each client in the target client formation are consistent with those of the target client;

and sending a target filtering rule corresponding to the target client formation to the target client so that the target client redirects the inserted USB equipment according to the target filtering rule, wherein the target filtering rule comprises identification information of at least one USB equipment which can be redirected.

The method for redirecting the USB equipment, provided by the embodiment of the disclosure, comprises the steps of receiving target client identification information sent by a target client, wherein the target client identification information comprises the type and manufacturer information of the target client, and the target client is any one of at least one client connected to a server; determining a target client formation where the target client is located according to the target client identification information, wherein the type and manufacturer information of each client in the target client formation are consistent with those of the target client; the target filtering rules corresponding to the target client team are sent to the target client, so that the target client redirects the inserted USB equipment according to the target filtering rules, the target filtering rules comprise that after identification information of different clients is received by at least one identification information server of the USB equipment which can be redirected, different filtering rules can be sent to the clients of different types and manufacturer information after identification information sent by the clients of different types and manufacturer information is received, the problem that the requirements under all scenes are not met by adopting the same filtering rules for all the clients is solved, and the use requirements under more scenes can be met.

In one embodiment, the method further comprises:

receiving client identification information of each client sent by each client in the at least one client;

grouping the at least one client according to the client identification information to obtain at least one client team, wherein the types and the manufacturer information of the clients in the same client team are consistent;

and determining the filtering rule corresponding to each client team.

The at least one client is grouped according to the client identification information to obtain at least one client team, the filtering rules corresponding to the client teams are determined, different filtering rules can be formulated for the clients of different teams, the problem that the same filtering rule is adopted for all the clients and the requirements under all the scenes are not met is solved, and the use requirements under more scenes can be met.

In one embodiment, the client identification information further includes network segment information of the client, and grouping the at least one client according to the client identification information includes:

and dividing the clients with consistent network segment information into a group.

By dividing the clients with consistent network segment information into a group, the clients with different network segment information can be classified and managed.

In one embodiment, before receiving the indication message of target USB device insertion sent by the target client, the method further includes:

receiving user identification information sent by the target client, wherein the user identification information is input by a user on the target client;

if the user is determined to be a legal user according to the user identification information, determining the user grade of the legal user;

and determining a target filtering rule of the target client according to the user level, wherein different user levels correspond to different filtering rules, and the number of the USB devices which can be redirected in the filtering rule with the high user level is larger than the number of the USB devices which can be redirected in the filtering rule with the low user level.

In one embodiment, the method further comprises:

receiving a target USB device redirection application message sent by the target client, wherein the target USB device redirection application message comprises identification information of the target USB device, and the target USB device redirection application message is sent to the server by the target client after the target client determines that the target USB device does not exist in the target filtering rule;

adding the identification information of the target USB equipment to the target filtering rule to obtain an updated target filtering rule;

and sending the updated target filtering rule to the target client so that the target client can redirect the target USB equipment according to the filtered target filtering rule.

According to a second aspect of the embodiments of the present disclosure, there is provided a method for redirecting a USB device, which is applied to a target client, and includes:

sending target client identification information of the target client to a server;

receiving a target filtering rule sent by a server according to the identification information of the target client, wherein the target filtering rule comprises the identification information of at least one USB device which can be redirected;

when the target USB equipment is determined to be inserted, acquiring identification information of the target USB equipment;

and if the identification information of the target USB equipment exists in the target filtering rule, redirecting the target USB equipment.

The USB equipment redirection method provided by the embodiment of the disclosure can send the target client identification information of the target client to a server; receiving a target filtering rule sent by a server according to the identification information of the target client, wherein the target filtering rule comprises the identification information of at least one USB device which can be redirected; when the target USB equipment is determined to be inserted, acquiring identification information of the target USB equipment; if the identification information of the target USB device exists in the target filtering rule, the target USB device is redirected, different clients can receive different filtering rules sent by the server, the problem that the same filtering rule is adopted for all the clients and the requirements under all the scenes are not met is solved, and the use requirements under more scenes can be met.

In one embodiment, the method further comprises:

if the identification information of the target USB equipment does not exist in the target filtering rule, sending a target USB equipment redirection application message to a server so that the server can update the target filtering rule according to the target USB equipment redirection application message;

receiving an updated target filtering rule sent by a server, wherein the updated target filtering rule comprises identification information of the target USB equipment;

and redirecting the target USB equipment according to the updated target filtering rule.

In one embodiment, the method further comprises:

receiving user identification information input by a user;

sending the user identification information to a server;

and receiving the target filtering rule of the target client sent by the server according to the user identification information.

In one embodiment, the target filtering rule further includes a usage duration of each USB device that can be redirected, and after the redirection of the target USB device, the method further includes:

acquiring the target use duration of the target USB equipment and starting timing;

and after the target use duration, forbidding the target USB equipment.

According to a third aspect of the embodiments of the present disclosure, there is provided a USB device redirection apparatus, applied to a server, including:

the system comprises a target client identification information receiving module, a server and a client identification information sending module, wherein the target client identification information receiving module is used for receiving target client identification information sent by a target client, the target client identification information comprises the type and manufacturer information of the target client, and the target client is any one of at least one client connected to the server;

the target client side team forming determining module is used for determining a target client side team where the target client side is located according to the target client side identification information, wherein the type and the manufacturer information of each client side in the target client side team are consistent with those of the target client side;

and the target filtering rule sending module is used for sending a target filtering rule corresponding to a target client formation to the target client so that the target client can redirect the inserted USB equipment according to the target filtering rule, and the target filtering rule comprises identification information of at least one USB equipment which can be redirected.

In one embodiment, the apparatus further comprises:

a filter rule determination module to:

receiving client identification information of each client sent by each client in the at least one client;

grouping the at least one client according to the client identification information to obtain at least one client team, wherein the types and the manufacturer information of the clients in the same client team are consistent;

and determining the filtering rule corresponding to each client team.

In one embodiment, the client identification information further includes network segment information of the client, and the filtering rule determination module is configured to:

and dividing the clients with consistent network segment information into a group.

In one embodiment, the apparatus further comprises:

a target filtering rule determination module to:

receiving user identification information sent by the target client, wherein the user identification information is input by a user on the target client;

if the user is determined to be a legal user according to the user identification information, determining the user grade of the legal user;

and determining a target filtering rule of the target client according to the user level, wherein different user levels correspond to different filtering rules, and the number of the USB devices which can be redirected in the filtering rule with the high user level is larger than the number of the USB devices which can be redirected in the filtering rule with the low user level.

In one embodiment, the apparatus further comprises:

a filtering rule update module for:

receiving a target USB device redirection application message sent by the target client, wherein the target USB device redirection application message comprises identification information of the target USB device, and the target USB device redirection application message is sent to the server by the target client after the target client determines that the target USB device does not exist in the target filtering rule;

adding the identification information of the target USB equipment to the target filtering rule to obtain an updated target filtering rule;

and sending the updated target filtering rule to the target client so that the target client can redirect the target USB equipment according to the filtered target filtering rule.

According to a fourth aspect of the embodiments of the present disclosure, there is provided a USB device redirection apparatus, applied to a target client, including:

the target client identification information sending module is used for sending the target client identification information of the target client to a server;

a target filtering rule receiving module, configured to receive a target filtering rule sent by a server according to the target client identification information, where the target filtering rule includes identification information of at least one USB device that can be redirected;

the target USB equipment identification information acquisition module is used for acquiring the identification information of the target USB equipment when the target USB equipment is determined to be inserted;

and the target USB equipment redirection module is used for redirecting the target USB equipment if the identification information of the target USB equipment exists in the target filtering rule.

In one embodiment, the apparatus further comprises:

a redirection application message sending module, configured to:

if the identification information of the target USB equipment does not exist in the target filtering rule, sending a target USB equipment redirection application message to a server so that the server can update the target filtering rule according to the target USB equipment redirection application message;

receiving an updated target filtering rule sent by a server, wherein the updated target filtering rule comprises identification information of the target USB equipment;

and redirecting the target USB equipment according to the updated target filtering rule.

In one embodiment, the apparatus further comprises:

a user identification information sending module, configured to:

receiving user identification information input by a user;

sending the user identification information to a server;

and receiving the target filtering rule of the target client sent by the server according to the user identification information.

In one embodiment, the target filtering rule further includes a usage duration of each USB device that can be redirected, and the apparatus further includes: a USB device disable module to:

acquiring the target use duration of the target USB equipment and starting timing;

and after the target use duration, forbidding the target USB equipment.

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 present disclosure and together with the description, serve to explain the principles of the disclosure.

Fig. 1 is a signaling interaction diagram of a USB device redirection method according to an embodiment of the present disclosure;

fig. 2 is a first structural diagram of a USB device redirection apparatus provided in an embodiment of the present disclosure;

fig. 3 is a second structural diagram of a USB device redirection apparatus provided in the embodiment of the present disclosure;

fig. 4 is a third structural diagram of a USB device redirection apparatus provided in the embodiment of the present disclosure;

fig. 5 is a fourth structural diagram of a USB device redirection apparatus according to an embodiment of the present disclosure.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

Fig. 1 is a signaling interaction diagram of a universal serial bus USB device redirection method according to an embodiment of the present disclosure. As shown in fig. 1, the method includes:

s101, a target client sends a target client identification message of the target client to a server, wherein the target client is any client information in at least one client connected to the server;

s102, the server receives the identification information of the target client sent by the target client.

In this embodiment, the target client identification information includes the type, manufacturer information, network segment information, and the like of the target client.

In one embodiment, before receiving client identification information sent by a target client, a server receives the type and manufacturer information of the client sent by each client in at least one client; grouping the at least one client according to the type and the manufacturer information to obtain at least one client team, wherein the type and the manufacturer information of each client in the same client team are consistent; and determining a filtering rule corresponding to each client team, wherein the filtering rule comprises identification information of at least one USB device which can be redirected.

For example, the server receives the type and manufacturer information of each client sent by 10 clients, and divides the 10 clients into 3 teams according to the type and manufacturer information, wherein 4 clients of the first team are all B-type devices of a manufacturer a, 3 clients of the second team are all D-type devices of a manufacturer C, and 3 clients of the third team are all F-type devices of a manufacturer E.

After grouping 10 clients, filter rules for 4 clients of the first team are determined. For example, the filter rule for the clients of the first team may be 100 USB devices of a vendor or similar to a vendor product. Similarly, the filtering rule of the clients of the second team may be 100 USB devices of the C vendor or similar products to the C vendor, and the filtering rule of the clients of the third team may be 100 USB devices of the E vendor or similar products to the E vendor. In this way, clients of each team can redirect USB devices with better device compatibility.

In another embodiment, the server receives the network segment information of each client from each client in the at least one client; grouping the at least one client according to the network segment information to obtain at least one client group, wherein the network segment information of each client in the same client group is consistent; and determining the filtering rule corresponding to each client team.

For example, the server receives network segment information of each client sent by 10 clients, and divides the 10 clients into 2 teams according to types and manufacturer information, wherein 6 clients of a first team are clients with network segment information of an a area, and 4 clients of a second team are clients with network segment information of a b area.

After grouping 10 clients, filter rules for 6 clients of the first team are determined. For example, the filtering rule for clients of the first team may be 100U disk devices. The filtering rule for clients of the second team may be 100 cameras. Therefore, classified management can be carried out on the clients with different network segment information.

S103, the server determines a target client formation where the target client is located according to the target client identification information.

For example, the server may determine the team in which the target client is located according to the type of the target client and the manufacturer information, or may determine the team in which the target client is located according to the network segment information of the target client.

For example, if the type and the manufacturer information of the target client are B-type devices of manufacturers a, the target client team where the target client is located is the first team, and the target filter rule corresponding to the target client is 100 USB devices of manufacturers a or similar to the products of manufacturers a.

If the network segment information of the target client is the b area, the target client team where the target client is located is the second team, and the target filtering rule corresponding to the target client is 100 cameras.

S104, the server sends a target filtering rule corresponding to a target client formation to the target client;

s105, the target client receives the target filtering rule sent by the server;

s106, when the target client side determines that the target USB equipment is inserted, acquiring identification information of the target USB equipment;

s107, if the identification information of the target USB equipment exists in the target filtering rule, the target client redirects the target USB equipment.

For example, if the target filtering rule received and sent by the target client is 100 USB devices of a manufacturer a or similar to a manufacturer a, the client acquires the identification information of the target USB device when determining that the target USB device is inserted, and determines that the target USB device is the USB device of the manufacturer a and exists in the target filtering rule according to the identification information of the target USB device, and redirects the target USB device.

Illustratively, the target filtering rule further includes a usage duration of each USB device that can be redirected, and after the client redirects the target USB device, the client obtains the target usage duration of the target USB device and starts timing; and after the target use duration, forbidding the target USB equipment.

For example, after the identification information of the target USB device of the target client is determined to be the USB device of manufacturer a and exists in the target filtering rule, the service life of the target USB device is obtained to be 2 hours, the target USB device is redirected and then timing is started, and after 2 hours, the target USB device is disabled. In this way, the use of the USB device can be managed by time.

In one embodiment, the method further comprises:

if the target client determines that the identification information of the target USB equipment does not exist in the target filtering rule, sending a target USB equipment redirection application message to a server, wherein the target USB equipment redirection application message comprises the identification information of the target USB equipment; the server receives a target USB equipment redirection application message sent by the target client; the server adds the identification information of the target USB equipment to the target filtering rule to obtain an updated target filtering rule; the server sends the updated target filtering rule to the target client; the target client receives the updated target filtering rule sent by the server; and the target client redirects the target USB equipment according to the updated target filtering rule.

In another embodiment, the method further comprises:

the target client receives user identification information input by a user; the target client sends the user identification information to a server; the server receives user identification information sent by the target client, wherein the user identification information is input by a user on the target client; if the server determines that the user is a legal user according to the user identification information, determining the user grade of the legal user; the server determines a target filtering rule of the target client according to the user level, wherein different user levels correspond to different filtering rules, and the number of the USB devices which can be redirected in the filtering rule with the high user level is larger than the number of the USB devices which can be redirected in the filtering rule with the low user level; and the target client receives the target filtering rule of the target client sent by the server according to the user identification information.

For example, the user name and the password are input by the user c on the target client, the user name and the password are sent to the server after the user name and the password input by the user c are received by the target client, and the server stores a legal user list in advance, wherein the legal user list comprises the user name, the password and the user grade of each legal user. And if the server determines that the user name and the password of the user c exist in the legal user list, determining that the user c is a legal user, and determining the grade of the legal user. For example, the user ranks are high, medium, and low.

If the user level of the user c is determined to be high, the server determines that the target filtering rule of the target client is 100 manufacturers A or USB equipment similar to products of the manufacturers A according to the high user level, if the user level of the user c is determined to be medium, the server determines that the target filtering rule of the target client is 70 manufacturers A or USB equipment similar to products of the manufacturers A according to the user level, and if the user level of the user c is determined to be low, the server determines that the target filtering rule of the target client is 30 manufacturers A or USB equipment similar to products of the manufacturers A according to the low user level.

According to the USB redirection method provided by the embodiment of the disclosure, a target client can send target client identification information of the target client to a server; the method comprises the steps that a server receives target client identification information sent by a target client, wherein the target client is any one of at least one client connected to the server; the server determines a target client formation where the target client is located according to the target client identification information; the server sends a target filtering rule corresponding to a target client team to the target client; the target client receives a target filtering rule sent by the server; the method comprises the steps that when a target USB device is determined to be inserted, a target client side obtains identification information of the target USB device; if the identification information of the target USB equipment exists in the target filtering rule, the target client redirects the target USB equipment, and different clients correspond to different filtering rules, so that the condition that the same filtering rule is adopted for all the clients and the requirements under all scenes are not met is avoided, and the use requirements under more scenes can be met.

Based on the USB device redirection method described in the embodiment corresponding to fig. 1, the following is an embodiment of the apparatus of the present disclosure, and may be used to execute the embodiment of the method of the present disclosure.

Fig. 2 is a schematic structural diagram of a USB device redirection apparatus according to an embodiment of the present disclosure, which is applied to a server. As shown in fig. 2, the apparatus 20 includes:

a target client identification information receiving module 201, configured to receive target client identification information sent by a target client, where the target client identification information includes a type and manufacturer information of the target client, and the target client is any one of at least one client connected to a server;

a target client team formation determination module 202, configured to determine a target client team in which the target client is located according to the target client identification information, where a type and manufacturer information of each client in the target client team are consistent with the target client;

the target filtering rule sending module 203 is configured to send a target filtering rule corresponding to a target client formation to the target client, so that the target client redirects an inserted USB device according to the target filtering rule, where the target filtering rule includes identification information of at least one USB device that can be redirected.

In one embodiment, as shown in fig. 3, the apparatus 20 further comprises:

a filter rule determination module 204 to:

receiving client identification information of each client sent by each client in the at least one client;

grouping the at least one client according to the client identification information to obtain at least one client team, wherein the types and the manufacturer information of the clients in the same client team are consistent;

and determining the filtering rule corresponding to each client team.

In one embodiment, the client identification information further includes network segment information of the client, and the filtering rule determination module is configured to:

and dividing the clients with consistent network segment information into a group.

In one embodiment, the apparatus 20 further comprises:

a target filtering rule determination module 205 for:

receiving user identification information sent by the target client, wherein the user identification information is input by a user on the target client;

if the user is determined to be a legal user according to the user identification information, determining the user grade of the legal user;

and determining a target filtering rule of the target client according to the user level, wherein different user levels correspond to different filtering rules, and the number of the USB devices which can be redirected in the filtering rule with the high user level is larger than the number of the USB devices which can be redirected in the filtering rule with the low user level.

In one embodiment, the apparatus 20 further comprises:

a filtering rule update module 206 for:

receiving a target USB device redirection application message sent by the target client, wherein the target USB device redirection application message comprises identification information of the target USB device, and the target USB device redirection application message is sent to the server by the target client after the target client determines that the target USB device does not exist in the target filtering rule;

adding the identification information of the target USB equipment to the target filtering rule to obtain an updated target filtering rule;

and sending the updated target filtering rule to the target client so that the target client can redirect the target USB equipment according to the filtered target filtering rule.

The implementation process and technical effects of the redirection device for USB devices provided in the embodiments of the present disclosure may refer to the embodiment in fig. 1, which are not described herein again.

Fig. 4 is a schematic structural diagram of a USB device redirection apparatus provided in the embodiment of the present disclosure, which is applied to a target client. As shown in fig. 4, the apparatus 40 includes:

a target client identification information sending module 401, configured to send target client identification information of the target client to a server;

a target filtering rule receiving module 402, configured to receive a target filtering rule sent by a server according to the target client identification information, where the target filtering rule includes identification information of at least one USB device that can be redirected;

a target USB device identification information obtaining module 403, configured to obtain identification information of a target USB device when it is determined that the target USB device is inserted;

a target USB device redirection module 404, configured to redirect the target USB device if the identification information of the target USB device exists in the target filtering rule.

In one embodiment, as shown in fig. 5, the apparatus 40 further comprises:

a redirect application message sending module 405, configured to:

if the identification information of the target USB equipment does not exist in the target filtering rule, sending a target USB equipment redirection application message to a server so that the server can update the target filtering rule according to the target USB equipment redirection application message;

receiving an updated target filtering rule sent by a server, wherein the updated target filtering rule comprises identification information of the target USB equipment;

and redirecting the target USB equipment according to the updated target filtering rule.

In one embodiment, the apparatus further comprises:

a subscriber identity information sending module 406, configured to:

receiving user identification information input by a user;

sending the user identification information to a server;

and receiving the target filtering rule of the target client sent by the server according to the user identification information.

In one embodiment, the target filtering rule further includes a usage duration of each USB device that can be redirected, and the apparatus further includes:

a USB device disabling module 407 configured to:

acquiring the target use duration of the target USB equipment and starting timing;

and after the target use duration, forbidding the target USB equipment.

The implementation process and technical effects of the redirection device for USB devices provided in the embodiments of the present disclosure may refer to the embodiment in fig. 1, which are not described herein again.

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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned 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 variations, 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.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种USB设备管理系统及管理方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!