[go: up one dir, main page]

CN102594605B - Dual-host port universal serial bus (USB) hub and working method thereof - Google Patents

Dual-host port universal serial bus (USB) hub and working method thereof Download PDF

Info

Publication number
CN102594605B
CN102594605B CN201210055227.7A CN201210055227A CN102594605B CN 102594605 B CN102594605 B CN 102594605B CN 201210055227 A CN201210055227 A CN 201210055227A CN 102594605 B CN102594605 B CN 102594605B
Authority
CN
China
Prior art keywords
usb hub
port
host port
host
controller
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.)
Expired - Fee Related
Application number
CN201210055227.7A
Other languages
Chinese (zh)
Other versions
CN102594605A (en
Inventor
施朝阳
陈云明
邓恒波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHANGZHOU PRODUCT QUALITY INSPECTION AND SUPERVISION INSTITUTE
SHENZHEN MANYOUNG TECHNOLOGY CO LTD
Original Assignee
SHENZHEN MANYOUNG TECHNOLOGY CO LTD
CHANGZHOU PRODUCT QUALITY INSPECTION AND SUPERVISION INSTITUTE
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SHENZHEN MANYOUNG TECHNOLOGY CO LTD, CHANGZHOU PRODUCT QUALITY INSPECTION AND SUPERVISION INSTITUTE filed Critical SHENZHEN MANYOUNG TECHNOLOGY CO LTD
Priority to CN201210055227.7A priority Critical patent/CN102594605B/en
Publication of CN102594605A publication Critical patent/CN102594605A/en
Application granted granted Critical
Publication of CN102594605B publication Critical patent/CN102594605B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a dual-host port universal serial bus (USB) hub and a working method of the dual-host port USB hub. The dual-host port USB hub comprises a first USB hub, a second USB hub, a third USB hub, a controller and a router, wherein a host port of the first USB hub and a host port of the second USB hub are used as a first host port and a second host port of the overall USB hub, respectively; an external port of the third USB hub is used as an external port of the overall USB hub; the first host port and the second host port perform data communication through a data transmission channel of the controller, and control active-passive switching of the router through a control channel of the controller; and the router can, through control of a switching control instruction, accomplish switching between establishment of a communication link from the first USB hub to the third USB hub and establishment of a communication link from the second USB hub to the third USB hub. The dual-host port USB hub disclosed by the invention can be applied to realize free switching of control rights of two hosts to external equipment without changing the working state of the external equipment, thereby continuing to execute a control instruction before the switching.

Description

A kind of two host port usb hub and method of work thereof
Technical field
The present invention relates to a kind of usb hub, particularly relate to a kind of two host port usb hub and method of work thereof.
Background technology
Normally used usb hub only has a host port (or deserving to be called bit port), belong to the equipment into having more (a upper bit port and multiple lower bit port), therefore, the usb hub of this kind of structure is only applicable to the situation utilizing a host computer control multiple stage peripheral hardware.But in the application scenario higher to security level required, need to adopt Redundancy Design to solve, namely a working host is usually adopted to control multiple stage peripheral hardware, there is a backup host simultaneously, when working host breaks down, backup host can seamless replacement working host at any time, ensures that the operating state of peripheral hardware is unaffected simultaneously, which improves the reliability of whole system; For this application scenario, the usb hub according to a host port carries out networking, significantly increases design difficulty and design cost.
Summary of the invention
One object of the present invention is to provide a kind of two host port usb hubs making two main frame Time-sharing control multiple stage peripheral hardwares.
The technical solution used in the present invention is: a kind of two host port usb hub, comprise first, second, and third usb hub, and controller and router, the host port of described first and second usb hubs is respectively as the first and second host ports of described pair of host port usb hub, and the peripheral port of the 3rd usb hub is as the peripheral port of described pair of host port usb hub;
First and second USB port of described controller are connected with a peripheral port of the first and second usb hubs respectively, make the first and second host ports carry out data communication by the data transmission channel of controller;
The control port of described router is connected with the serial ports for output switching control command of controller, and the first and second host ports are undertaken initiatively or passive switching controls by the control channel routers of controller; Described router is connected with the host port communication of another peripheral port of described first usb hub, another peripheral port of the second usb hub and the 3rd usb hub respectively by its three connectivity ports, complete under the control of switching controls instruction to make router set up the first usb hub to the communication link of the 3rd usb hub and set up the second usb hub to the 3rd usb hub communication link between switching.
Another object of the present invention is to provide a kind of method of work of above-mentioned pair of host port usb hub.
The technical solution used in the present invention is: the method for work of above-mentioned pair of host port usb hub is: described controller acquiescence after two host port usb hub starts controls described router connection first and the 3rd usb hub, and the first and second host ports are intercepted mutually by the data transmission channel of controller;
When the second host port is to the intercepting unsuccessfully of the first host port, the connection between control channel active request router disconnection the 3rd usb hub of controller and the first usb hub is passed through by the second host port, and the connection that request is set up between the 3rd usb hub and the second usb hub; 3rd usb hub switching is connected to the second usb hub and sets up communication link according to request by router subsequently;
Controlling router at controller carries out in the process switched, if the second host port obtains by the data transmission channel of controller all director datas that the first host port sends the peripheral port of two host port usb hub, then the second host port judges the state of the peripheral port of two host port usb hub by the director data received, if do not obtain all or part director data that the first host port sends the peripheral port of two host port usb hub, then the second host port obtains the state of the peripheral port of two host port usb hub again by the communication link between newly-established 3rd usb hub to the second usb hub.
Wherein, when the failture evacuation of the first host port, and after again accessing the first usb hub, namely first host port becomes backup port, by the data transmission channel of controller, the second host port is intercepted, and prepare at any time again to receive control when the second host port breaks down.
Wherein, when the first host port carries out the operation of data backup or other influences control, first host port disconnects the connection of the 3rd usb hub and the first usb hub by the control channel active request router of controller, and sets up the connection of the 3rd usb hub and the second usb hub.
Beneficial effect of the present invention is: of the present invention pair of host port usb hub can be used for the connection realizing two main frame Time-sharing control multiple stage peripheral hardwares, namely when this device first host port connects the first hostdown, second main frame controls all peripheral hardwares that peripheral port (or claiming lower bit port) connects by second host port of this device, and ensure that all peripheral hardwares still continue to perform by the state set up when being connected with the first host port, and there will not be communication disruption or peripheral hardware phenomenon out of control.
Accompanying drawing explanation
Fig. 1 is the structural representation of a kind of execution mode according to the two host port usb hub of the present invention.
Embodiment
As shown in Figure 1, of the present invention pair of host port usb hub comprises first, second, and third usb hub 1,2 and 3, and controller 5 and router four, wherein, first and second usb hubs 1, the host port of 2 is respectively as the first and second host ports of two host port usb hub, for connecting the first main frame M1 and the second main frame M2, the peripheral port of the 3rd usb hub 3 as the peripheral port of two host port usb hub, for connecting multiple external equipment (abbreviation peripheral hardware).First and second USB port of controller 5 are connected with a peripheral port of the first and second usb hubs respectively, like this, first and second host ports (being specially the first and second main frames be connected on the first and second host ports) just carry out data communication by the data transmission channel of controller 5, detailed process is: the first main frame M1 by the instruction that is handed down to the 3rd usb hub 3 by the data transmission channel synchronized transmission of controller 5 to the second main frame M2, carry out state synchronized, and undertaken being connected to each other (action carrying out ping) by data transmission channel, detect and whether break down (if cannot connect, then break down).The control port of router four (by this port can routers 4 be configured) be connected with the serial ports of controller 5 for output switching control command, like this, the first and second host ports (being specially the first and second main frames be connected on the first and second host ports) are namely undertaken initiatively or passive switching controls by the control channel routers 4 of controller 5; Again because router four is connected with the host port communication of another peripheral port of the first usb hub 1, another peripheral port of the second usb hub 2 and the 3rd usb hub 3 respectively by its three connectivity ports, therefore, router four can complete under the control of switching controls instruction set up the first usb hub 1 to the communication link of the 3rd usb hub 3 and set up the second usb hub 2 to the 3rd usb hub 3 communication link between switching.
Utilize of the present invention pair of host port usb hub, two main frames can Time-sharing control multiple stage peripheral hardware, under normal circumstances, by being connected to the first main frame M1 control connection of the first host port in all peripheral hardwares of peripheral port, when the first main frame M1 and peripheral hardware cannot normal communication time (communication comprised between the first main frame and peripheral hardware is broken down, communication between first main frame M1 and controller 5 such as to be broken down at the situation), then controlled by the second main frame M2.When two host work states are all normal, instruction or data for controlling peripheral hardware can realize shared or synchronous via controller 5, to ensure when the first main frame breaks down, second main frame can continue to perform subsequent control instruction under the prerequisite not changing peripheral state, and there will not be communication disruption or peripheral hardware phenomenon out of control.
The method of work of of the present invention pair of host port usb hub is:
The Default Connected State that controller 5 sets all peripheral hardwares is all connected to the first host port (the first main frame M1), namely after of the present invention pair of host port usb hub starts, controller 5 controls router four connection first and the 3rd usb hub, and the first main frame M1 and the second main frame M2 is intercepted mutually by the data transmission channel of controller 5.When controller 5 to detect between the first main frame M1 and peripheral hardware cannot normal communication time, namely when the second main frame M2 is to the intercepting unsuccessfully of the first main frame M1, the connection between control channel active request router four disconnection the 3rd usb hub 3 of controller 5 and the first usb hub 1 is passed through by the second main frame M2, and request sets up connection between the 3rd usb hub 3 and the second usb hub 2 (now, first main frame M1 is passive disconnection), therefore, controller 5 just controls router four and the 3rd usb hub 3 is switched to the second usb hub 2 and sets up communication link, namely the communication link that the second main frame M2 and all peripheral hardwares carry out communication is set up.
When the first main frame M1 failture evacuation, and after again accessing the first usb hub 1, namely first main frame M1 becomes backup host, second main frame M2 is intercepted, and to prepare at any time when the second main frame M2 breaks down (when the first main frame M1 is to the intercepting unsuccessfully of the second main frame M2), again receive control.
In addition, when the first main frame M1 needs the operation carrying out data backup or other influences control, control channel active request router four disconnection three usb hub 3 of the first main frame M1 by controller 5 and the connection of the first usb hub 1, and set up the connection (now, the first main frame M1 initiatively disconnects) of the 3rd usb hub 3 and the second usb hub 2.
Controlling router four at controller 5 carries out in the process switched, if the second main frame M2 obtains all director datas that the first main frame M1 sends peripheral hardware, then the second main frame M2 judges peripheral state by the director data of reception first main frame, in addition, the second main frame M2 also can obtain peripheral state again.Like this, all peripheral hardwares that the 3rd usb hub 3 connects just can be connected to the second main frame M2 by controller 5 immediately all safely after handover, and can not cause controlling to interrupt, and also can not cause the change of peripheral state.
In addition, the first and second main frames being connected to the first and second host ports can control controller 5, also timing can send to controller 5 detection that instruction realizes communication link.
The foregoing is only the present invention's preferably execution mode, be not used for limiting practical range of the present invention, as long as the equivalence change done in protection scope of the present invention and modification, all should think and fall in protection scope of the present invention.

Claims (3)

1. the method for work of a two host port usb hub, described pair of host port usb hub comprises first, second, and third usb hub, and controller and router, the host port of described first and second usb hubs is respectively as the first and second host ports of described pair of host port usb hub, and the peripheral port of the 3rd usb hub is as the peripheral port of described pair of host port usb hub;
First and second USB port of described controller are connected with a peripheral port of the first and second usb hubs respectively, make the first and second host ports carry out data communication by the data transmission channel of controller;
The control port of described router is connected with the serial ports for output switching control command of controller, and the first and second host ports are undertaken initiatively or passive switching controls by the control channel routers of controller; Described router is connected with the host port communication of another peripheral port of described first usb hub, another peripheral port of the second usb hub and the 3rd usb hub respectively by its three connectivity ports, complete under the control of switching controls instruction to make router set up the first usb hub to the communication link of the 3rd usb hub and set up the second usb hub to the 3rd usb hub communication link between switching;
It is characterized in that: described method of work is,
Described controller acquiescence after two host port usb hub starts controls described router connection first and the 3rd usb hub, and the first and second host ports are intercepted mutually by the data transmission channel of controller;
When the second host port is to the intercepting unsuccessfully of the first host port, the connection between control channel active request router disconnection the 3rd usb hub of controller and the first usb hub is passed through by the second host port, and the connection that request is set up between the 3rd usb hub and the second usb hub; 3rd usb hub switching is connected to the second usb hub and sets up communication link according to request by router subsequently;
Controlling router at controller carries out in the process switched, if the second host port obtains by the data transmission channel of controller all director datas that the first host port sends the peripheral port of two host port usb hub, then the second host port judges the state of the peripheral port of two host port usb hub by the director data received, if do not obtain all or part director data that the first host port sends the peripheral port of two host port usb hub, then the second host port obtains the state of the peripheral port of two host port usb hub again by the communication link between newly-established 3rd usb hub to the second usb hub.
2. the method for work of according to claim 1 pair of host port usb hub, it is characterized in that: when the failture evacuation of the first host port, and after again accessing the first usb hub, namely first host port becomes backup port, by the data transmission channel of controller, the second host port is intercepted, and prepare at any time again to receive control when the second host port breaks down.
3. the method for work of according to claim 1 pair of host port usb hub, it is characterized in that: when the first host port carries out the operation of data backup or other influences control, first host port disconnects the connection of the 3rd usb hub and the first usb hub by the control channel active request router of controller, and sets up the connection of the 3rd usb hub and the second usb hub.
CN201210055227.7A 2012-03-05 2012-03-05 Dual-host port universal serial bus (USB) hub and working method thereof Expired - Fee Related CN102594605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210055227.7A CN102594605B (en) 2012-03-05 2012-03-05 Dual-host port universal serial bus (USB) hub and working method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210055227.7A CN102594605B (en) 2012-03-05 2012-03-05 Dual-host port universal serial bus (USB) hub and working method thereof

Publications (2)

Publication Number Publication Date
CN102594605A CN102594605A (en) 2012-07-18
CN102594605B true CN102594605B (en) 2014-12-31

Family

ID=46482825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210055227.7A Expired - Fee Related CN102594605B (en) 2012-03-05 2012-03-05 Dual-host port universal serial bus (USB) hub and working method thereof

Country Status (1)

Country Link
CN (1) CN102594605B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160070665A1 (en) * 2014-09-08 2016-03-10 Htc Corporation Portable electronic device and user data access method therefor
CN109213701A (en) * 2018-08-28 2019-01-15 郑州云海信息技术有限公司 Control method, system, equipment and the storage medium of the peripheral hardware of shared I O board
CN109918320B (en) * 2019-03-13 2021-05-11 北京淳中科技股份有限公司 Control method and device of USB equipment and KVM control system
CN111339014A (en) * 2020-03-02 2020-06-26 芯启源(上海)半导体科技有限公司 USB equipment sharing device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380615A (en) * 2001-04-09 2002-11-20 华邦电子股份有限公司 USB concentrator with several upstream port and computer system using said concentrator
CN1896980A (en) * 2005-07-13 2007-01-17 瀚邦科技股份有限公司 Hub with host-to-host transfer capability

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7769940B2 (en) * 2008-02-13 2010-08-03 Belkin International, Inc. Switching device configured to couple a first computer to a first peripheral device and one or more second peripheral devices and method of manufacturing same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380615A (en) * 2001-04-09 2002-11-20 华邦电子股份有限公司 USB concentrator with several upstream port and computer system using said concentrator
CN1896980A (en) * 2005-07-13 2007-01-17 瀚邦科技股份有限公司 Hub with host-to-host transfer capability

Also Published As

Publication number Publication date
CN102594605A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
US9678842B2 (en) PCIE switch-based server system, switching method and device
US10715411B1 (en) Altering networking switch priority responsive to compute node fitness
US10530636B2 (en) Link management method, device and system in virtual machine environment
CN106533736B (en) Network equipment restarting method and device
EP2854369B1 (en) Method and apparatus for detecting interface connection between devices
CN102594605B (en) Dual-host port universal serial bus (USB) hub and working method thereof
CN102299846A (en) Method for transmitting BFD (Bidirectional Forwarding Detection) message and equipment
US11398976B2 (en) Method, device, and system for implementing MUX machine
WO2016146022A1 (en) Preventing multiple conflicting stacks
CN103095766A (en) Port level redundancy management method of communication front-end processor
CN103731303A (en) Method and device of vertical converged framework for achieving multi-active detection
US9882737B2 (en) Network system
US8737419B2 (en) Network concentrator and method of controlling the same
EP3627766B1 (en) Method and system for switching between active bng and standby bng
WO2017000096A1 (en) Link recovery method and network device
US9100336B2 (en) Method for managing a switch chip port, main control board, switch board, and system
CN104394012A (en) Cluster router, MPU (microprocessor unit), determining method for faults of MPU and sensing controller
US8954623B2 (en) Universal Serial Bus devices supporting super speed and non-super speed connections for communication with a host device and methods using the same
CN102811153A (en) VLAN state negotiating method and edge device
CN202495032U (en) Double-host-computer port universal serial bus (USB) concentrator
US7830880B2 (en) Selective build fabric (BF) and reconfigure fabric (RCF) flooding
CN104363046A (en) Intelligent bypass device and work method thereof
CN111526059B (en) Networking method, device, equipment and storage medium
CN114979036A (en) Dual-computer hot standby system of network gate based on heartbeat and isolation switching matrix
CN110543390B (en) Quick response method, device and communication equipment for interrupt reconnection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN MANYOUNG TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: CHANGZHOU PRODUCT QUALITY INSPECTION AND SUPERVISION INSTITUTE

Effective date: 20130506

Owner name: CHANGZHOU PRODUCT QUALITY INSPECTION AND SUPERVISI

Free format text: FORMER OWNER: SHENZHEN MANYOUNG TECHNOLOGY CO., LTD.

Effective date: 20130506

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518000 SHENZHEN, GUANGDONG PROVINCE TO: 213001 CHANGZHOU, JIANGSU PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20130506

Address after: 213001 Jiangsu province Changzhou City Tianning Lanling Road No. 520

Applicant after: CHANGZHOU PRODUCT QUALITY INSPECTION AND SUPERVISION INSTITUTE

Applicant after: SHENZHEN MANYOUNG TECHNOLOGY Co.,Ltd.

Address before: The comprehensive building of Tsinghua Nanshan District Keyuan Road Shenzhen city Guangdong province 518000 8 807

Applicant before: Shenzhen Manyoung Technology Co.,Ltd.

Applicant before: Changzhou Product Quality Inspection and Supervision Institute

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141231