CN102368231B - Method and system for redirecting USB (universal serial bus) devices - Google Patents
Method and system for redirecting USB (universal serial bus) devices Download PDFInfo
- Publication number
- CN102368231B CN102368231B CN201110311308.4A CN201110311308A CN102368231B CN 102368231 B CN102368231 B CN 102368231B CN 201110311308 A CN201110311308 A CN 201110311308A CN 102368231 B CN102368231 B CN 102368231B
- Authority
- CN
- China
- Prior art keywords
- usb device
- virtual
- cloud terminal
- redirected
- bus
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention provides a method and a system for redirecting USB (universal serial bus) devices, wherein the method comprises the following steps that: a: a cloud terminal carries out initialization operation on the redirection of a USB device; b: a virtualization bus intercepts an I/O (input/output) request and operation (for redirecting the USB device to the cloud terminal) of a user to a virtual device; c: a terminal controller processes the received redirection I/O request and operation, and returns the processing results to the virtualization bus; and d: after carrying out analysis processing on the processing results returned by the cloud terminal, the virtualization bus returns the obtained analysis results to an operating system, then the operating system feeds back the analysis results to a user experience layer finally according to the I/O processing results fed back by the virtualization bus. The method and system provided by the invention are better in universality, more in supported device type, good in compatibility, flexible and convenient.
Description
Technical field
The present invention relates to device redirection technical field, relate in particular to the redirected method and system of a kind of USB device.
Background technology
The use ability that USB device redirecting technique provides peripheral hardware in cloud terminal mainly to the end-to-end access based on desktop virtual environment, makes user's experience of desktop virtual environment more complete, and the user who more approaches on traditional personal desktop experiences.USB device redirecting technique adopts end-to-end computation model, by network (LAN (Local Area Network), wide area network), the I/O service of peripheral hardware in terminal is mapped to virtual desktop end intactly, pellucidly, and by the mechanism with virtual desktop session synchronization, realize that mapping is set up and the robotization of the behavior such as disconnection, provide convenience, peripheral hardware use-pattern flexibly.
But existing USB device is redirected the following problem that exists:
A, versatility are poor
Conventional art depends on privately owned virtual desktop agreement, because different desktop virtual software may adopt different proprietary protocols, is difficult to realize the compatibility of different desktop virtual softwares.
The device type of B, support is limited
Conventional art, owing to taking the passage of privately owned desktop protocol, for the fluency of desktop experience, is conventionally all selected a less device type of supported data delivery flow rate, and conventionally all can be limited for high amount of traffic amount equipment such as video, audio frequency.
The poor compatibility of C, equipment
Conventional art is facultative bad to equipment, and the device type of not only supporting is limited, even in limited supported type, also unstable to the compatibility of the equipment of different brands and model.
The use-pattern of D, peripheral hardware is dumb
Lack management and control that a set of sound mechanism is shone upon for dissimilar equipment, make the use-pattern of equipment lack dirigibility.
Summary of the invention
The object of the present invention is to provide the redirected method and system of a kind of USB device.
The object of the invention is to be achieved through the following technical solutions.
The method that USB device is redirected, comprises step:
A: cloud terminal USB device is redirected initialization operation;
B: virtual bus interception user please sum operation be redirected to cloud terminal to the I/O of virtual unit;
C: terminal control unit is processed the redirected I/O receiving and asked sum operation, and result is returned to virtual bus;
D: the result that virtual bus is returned to cloud terminal returns to operating system after processing by analysis; Operating system finally feeds back to user according to the I/O result of virtual bus feedback and experiences layer.
Preferably, before step a, also comprise: at virtual desktop end, start virtual bus and start terminal control unit in cloud terminal.
Preferably, initialization operation described in step a, specifically comprises:
A1: user opens virtual desktop session and logs in virtual desktop;
A2: terminal control unit reads in user and configures and switch USB device to mapped mode;
A3: virtual scan bus cloud terminal USB device, according to the USB device information creating virtual equipment obtaining;
A4: open cloud terminal USB device to the end-to-end mapping of virtual desktop, complete the initialization procedure that cloud terminal USB device I/O serves virtual desktop mapping.
Preferably, after steps d, also comprise: user finishes virtual desktop session and disconnects virtual desktop, and virtual bus discharges virtual unit, finishes device map; Terminal control unit is again redirected USB device and drives, and makes USB device enter local mode.
Preferably, described redirected USB device drives and specifically refers to remove operating system to the function driver of USB device binding, and binds new function-driven on USB device.
Preferably, also comprise that, when having new USB device to add cloud terminal, terminal control unit enters mapped mode by the new USB device of control, and notify virtual bus to open a new device map.
Preferably, also comprise that, if having current USB device when cloud terminal removes, cloud terminal assembly can notify virtual bus to discharge invalid mapping.
The present invention compared with prior art, has the following advantages:
A, enhancing versatility
Adopt publicly-owned agreement ICP/IP protocol to carry out data transmission, separated with privately owned desktop protocol, support in theory all virtual desktop software, for all virtual desktop systems provide a kind of general, unified end-to-end equipment operational version, make up the poor shortcoming of conventional art versatility.
The kind of b, expansion support equipment type
Because USB device redirecting technique is separated with privately owned desktop protocol, adopt autonomous channel, therefore can not affect the fluency of desktop, can support to comprise all devices type of the high amount of traffic amount equipment such as audio frequency, video, solve the restriction of conventional art in device type.
C, raising equipment compatibility
Go deep into operating system nucleus layer, to anatomy at all levels, control and the optimization of device drives, revise the compatibility that its default behavior improves equipment if desired, solve the poor problem of conventional art equipment compatibility.
D, add the flexibility ratio of large equipment use-pattern
Add for device type mapping management mechanism, for user, create the mapping management ability that configuration list completes equipment in cloud terminal, for device type, create mapping blacklist, for the peculiar indications of equipment, create mapping white list, opertaing device shines upon to greatest extent, makes up the deficiency of conventional art.
Accompanying drawing explanation
Fig. 1 is USB device Redirectional system theory diagram of the present invention;
Fig. 2 is USB device reorientation method process flow diagram of the present invention;
Fig. 3 is that USB device is redirected initialization flowchart.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to shown in Fig. 1, USB device Redirectional system theory diagram of the present invention, comprise: cloud terminal, network router/hub, gateway server, virtual desktop and configuration server, cloud terminal is set up data communication through network router/hub by gateway server and virtual desktop and is connected, and virtual desktop is set up data interaction by configuration server through network router/hub and cloud terminal.
Cloud terminal comprises terminal control unit, for controlling peripheral hardware, completes the operations such as transmission, reception and processing of control information and data message.
Virtual desktop comprises application program, user and virtual bus, virtual desktop end creates virtual unit by virtual bus, the I/O operation of intercepting user to equipment, finishing equipment I/O operation is to the transmission of cloud terminal, and the I/O operating result that cloud terminal is returned is analyzed and processed.
Gateway server is used for realizing data retransmission, and wide area network access capability is provided, and breaks through LAN (Local Area Network) restriction.
Configuration server is used for managing concentratedly user and configures list, completes the mapping management ability of USB device in cloud terminal by modes such as blacklist and white lists.
Refer to shown in Fig. 2, USB device reorientation method process flow diagram of the present invention, comprising:
Step 201: start virtual bus at virtual desktop end, serve virtual desktop end for the I/O that creates virtual equipment and shine upon equipment in cloud terminal;
Step 202: start terminal control unit in cloud terminal, control current USB device in cloud terminal and monitor adding and the deletion of current USB device etc. of new USB device;
Step 203: cloud terminal USB device is redirected initialization operation, concrete, consult shown in Fig. 3, comprising:
Step 301: user opens virtual desktop session and logs in virtual desktop;
Step 302: terminal control unit reads in user and configures and switch USB device to mapped mode;
Step 303: virtual scan bus cloud terminal USB device, according to the USB device information transparency obtaining create virtual equipment;
Step 304: open cloud terminal USB device to the end-to-end mapping of virtual desktop, complete the initialization procedure that cloud terminal USB device I/O serves virtual desktop mapping;
Wherein, USB device is redirected, and refers to USB device to be mapped in other computing machine in network and to use, and in this locality, does not use;
Step 204: virtual bus interception user asks sum operation to the I/O of virtual unit, please sum operation be redirected to cloud terminal by this I/O;
Step 205: terminal control unit is processed the redirected I/O receiving and asked sum operation, and result is returned to virtual bus;
Step 206: the result that virtual bus is returned to cloud terminal returns to operating system after processing by analysis;
Step 207: operating system finally feeds back to user according to the I/O result of virtual bus feedback and experiences layer;
Wherein, when having new USB device to add cloud terminal, terminal control unit can be controlled new USB device and enter mapped mode, and notify virtual bus to open a new device map, if have current USB device when cloud terminal removes, cloud terminal assembly can notify virtual bus to discharge invalid mapping;
Step 208: user finishes virtual desktop session and disconnects virtual desktop, and virtual bus discharges virtual unit, finishes device map; Terminal control unit is again redirected USB device and drives, and makes USB device enter local mode.
Wherein, described redirected USB device drives and refers to remove operating system to the function driver of USB device binding, and binds new function-driven on USB device.
Wherein, when causing due to Network Abnormal in the interrupted situation of device map, adopt the mechanism such as disconnection reconnecting and the recovery of I/O passage buffering to carry out the mapping of restorer I/O from abnormality, this Restoration Mechanism is transparent, user is almost imperceptible an abnormal generation, can be good at the continuity that keeps user to experience.
Described I/O passage buffering is recovered, and refers to adopt disconnection reconnecting technology from Network Abnormal after restorer mapping, takes out finally before abnormal generation to complete I/O request and processing again for normal process from the I/O request of buffering before.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (5)
1. the redirected method of USB device, is characterized in that, comprises step: at virtual desktop end, start virtual bus and start terminal control unit in cloud terminal;
A: cloud terminal USB device is redirected initialization operation;
B: virtual bus interception user please sum operation be redirected to cloud terminal to the I/O of virtual unit;
C: terminal control unit is processed the redirected I/O receiving and asked sum operation, and result is returned to virtual bus;
D: the result that virtual bus is returned to cloud terminal returns to operating system after processing by analysis; Operating system finally feeds back to user according to the I/O result of virtual bus feedback and experiences layer;
Wherein, step a specifically comprises:
A1: user opens virtual desktop session and logs in virtual desktop;
A2: terminal control unit reads in user and configures and switch USB device to mapped mode;
A3: virtual scan bus cloud terminal USB device, according to the USB device information creating virtual equipment obtaining;
A4: open cloud terminal USB device to the end-to-end mapping of virtual desktop, complete the initialization procedure that cloud terminal USB device I/O serves virtual desktop mapping.
2. the redirected method of USB device as claimed in claim 1, is characterized in that, after steps d, also comprises: user finishes virtual desktop session and disconnects virtual desktop, and virtual bus discharges virtual unit, finishes device map; Terminal control unit is again redirected USB device and drives, and makes USB device enter local mode.
3. the redirected method of USB device as claimed in claim 2, is characterized in that, described redirected USB device drives and specifically refers to remove operating system to the function driver of USB device binding, and binds new function-driven on USB device.
4. the redirected method of USB device as claimed in claim 1, is characterized in that, also comprises that, when having new USB device to add cloud terminal, terminal control unit enters mapped mode by the new USB device of control, and notifies virtual bus to open a new device map.
5. the redirected method of USB device as claimed in claim 1, is characterized in that, also comprises that, if having current USB device when cloud terminal removes, cloud terminal assembly can notify virtual bus to discharge invalid mapping.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110311308.4A CN102368231B (en) | 2011-10-14 | 2011-10-14 | Method and system for redirecting USB (universal serial bus) devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110311308.4A CN102368231B (en) | 2011-10-14 | 2011-10-14 | Method and system for redirecting USB (universal serial bus) devices |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102368231A CN102368231A (en) | 2012-03-07 |
CN102368231B true CN102368231B (en) | 2014-02-12 |
Family
ID=45760796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110311308.4A Active CN102368231B (en) | 2011-10-14 | 2011-10-14 | Method and system for redirecting USB (universal serial bus) devices |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102368231B (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102779073B (en) * | 2012-07-04 | 2015-11-18 | 深圳市京华科讯科技有限公司 | Be located at the method with band outer room switching at runtime in band outward |
CN103218321A (en) * | 2013-04-23 | 2013-07-24 | 深圳市京华科讯科技有限公司 | Port mapping method based on all-in-one machine |
CN103220359A (en) * | 2013-04-23 | 2013-07-24 | 深圳市京华科讯科技有限公司 | Management system and management method for desktop all-in-one machine |
CN103714020A (en) * | 2013-12-27 | 2014-04-09 | 普华基础软件股份有限公司 | USB device redirecting system based on network |
CN103914525B (en) * | 2014-03-25 | 2017-02-08 | 深圳市深信服电子科技有限公司 | FAT32-formatted data reading method and system for use after USB equipment redirection |
CN104991871A (en) * | 2015-06-15 | 2015-10-21 | 湖南昇云科技有限公司 | Method and system for redirecting cloud terminal USB |
CN105159749B (en) * | 2015-09-11 | 2019-02-12 | 广东微云科技股份有限公司 | A kind of cloud terminal redirects local disk to the method and system of virtual machine |
CN105183675B (en) | 2015-09-30 | 2018-03-27 | 华为技术有限公司 | To the access method of USB device, device, terminal, server and system |
CN105404544B (en) * | 2015-11-10 | 2019-02-01 | 中国电子科技集团公司第三十研究所 | A kind of device map method and system between cloud terminal and cloud desktop |
CN107797947A (en) * | 2016-09-05 | 2018-03-13 | 中兴通讯股份有限公司 | A kind of USB device reorientation method and device |
US10419567B2 (en) | 2017-03-21 | 2019-09-17 | Elite Silicon Technology Inc. | Client terminal of audio device redirection system and audio device redirection method |
TWI691892B (en) * | 2017-04-24 | 2020-04-21 | 晶湧科技股份有限公司 | Client terminal of audio device redirection system and audio device redirection method |
CN109144903B (en) * | 2018-08-15 | 2022-02-18 | 国云科技股份有限公司 | Method for intelligently managing USB (universal serial bus) equipment by cloud terminal |
CN114090475A (en) * | 2020-07-02 | 2022-02-25 | 中兴通讯股份有限公司 | USB device redirection method, system, electronic device and storage medium |
CN112068927B (en) * | 2020-08-12 | 2023-11-17 | 福建升腾资讯有限公司 | Recorder redirection method and system for cloud desktop |
CN113805952B (en) * | 2021-09-17 | 2023-10-31 | 中国联合网络通信集团有限公司 | Peripheral virtualization management method, server and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271440A (en) * | 2008-04-14 | 2008-09-24 | 杭州华三通信技术有限公司 | Multi-serial port implementing method and apparatus |
CN202257550U (en) * | 2011-10-14 | 2012-05-30 | 深圳市京华科讯科技有限公司 | Re-orientating system for USB (Universal Series Bus) equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101007356B1 (en) * | 2008-08-28 | 2011-01-13 | 한국전자통신연구원 | Apparatus and method for establishing input/output device in virtualization system |
-
2011
- 2011-10-14 CN CN201110311308.4A patent/CN102368231B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271440A (en) * | 2008-04-14 | 2008-09-24 | 杭州华三通信技术有限公司 | Multi-serial port implementing method and apparatus |
CN202257550U (en) * | 2011-10-14 | 2012-05-30 | 深圳市京华科讯科技有限公司 | Re-orientating system for USB (Universal Series Bus) equipment |
Also Published As
Publication number | Publication date |
---|---|
CN102368231A (en) | 2012-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102368231B (en) | Method and system for redirecting USB (universal serial bus) devices | |
KR101007356B1 (en) | Apparatus and method for establishing input/output device in virtualization system | |
EP1880309B1 (en) | Smart-switch management module system and method | |
CN102508796B (en) | Serial port redirection method and system | |
CN109743370B (en) | SD-WAN-based hybrid cloud connection method and system | |
US10353529B2 (en) | Cloud-computing graphic server | |
US20080267067A1 (en) | Controlling the flow of data updates between a receiving station and a sending station | |
WO2017124860A1 (en) | Distributed wireless multi-screen virtual machine service system | |
EP3176980A1 (en) | Unified server communication method, baseboard management controller and server | |
US9910817B2 (en) | Apparatus, system, and method for allowing USB devices to communicate over a network | |
CN102868728B (en) | Network proxy method based on virtual channel in virtual desktop infrastructure (VDI) environment | |
CN104092760A (en) | System and method for cloud terminal multicast redirection | |
US20190028414A1 (en) | System And Method For Providing a Communications Layer to Enable Full Participation in a Distributed Computing Environment That Uses Multiple Message Types | |
US20150256446A1 (en) | Method and apparatus for relaying commands | |
CN202257551U (en) | Serial port redirecting system | |
CN202257550U (en) | Re-orientating system for USB (Universal Series Bus) equipment | |
WO2024061308A1 (en) | Notification processing method, and terminal device, server side and computer storage medium | |
CN112565372B (en) | Communication method and system for virtual machine and client during network isolation | |
WO2019119280A1 (en) | Service processing method, cloud server, and terminal device | |
CN102508795B (en) | Parallel port redirection method and system | |
US20080270512A1 (en) | Virtual network projection system supporting multiple projection sources and method thereof | |
TW201005546A (en) | System and method for using virtual IP addresses in a multi-user server system | |
CN109104774B (en) | Data transmission method and system | |
CN108959153A (en) | A kind of all-in-one machine, the method, apparatus of data forward, equipment and storage medium | |
JPH1027146A (en) | Communication processor and its method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230828 Address after: 502, 5th Floor, Building 16, East District, No. 10 Northwest Wangdong Road, Haidian District, Beijing, 100080 Patentee after: Softcom power information technology (Group) Co.,Ltd. Address before: 518000 room 425, floor 4, building 4, Zhongxing Industrial City, Chuangye Road, Nanshan District, Shenzhen, Guangdong Province Patentee before: Shenzhen Jinghua Kexun Technology Co.,Ltd. |