CN1614578A - Universal serial bus device with host computer/concentrator functions and its control - Google Patents

Universal serial bus device with host computer/concentrator functions and its control Download PDF

Info

Publication number
CN1614578A
CN1614578A CN 200310114232 CN200310114232A CN1614578A CN 1614578 A CN1614578 A CN 1614578A CN 200310114232 CN200310114232 CN 200310114232 CN 200310114232 A CN200310114232 A CN 200310114232A CN 1614578 A CN1614578 A CN 1614578A
Authority
CN
China
Prior art keywords
usb
port
hub
host
under
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.)
Granted
Application number
CN 200310114232
Other languages
Chinese (zh)
Other versions
CN1304970C (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.)
Prolific Technology Inc
Original Assignee
Prolific Technology Inc
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 Prolific Technology Inc filed Critical Prolific Technology Inc
Priority to CNB2003101142321A priority Critical patent/CN1304970C/en
Publication of CN1614578A publication Critical patent/CN1614578A/en
Application granted granted Critical
Publication of CN1304970C publication Critical patent/CN1304970C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

An universal serial bus (USB) consists of an uplink port and a downlink port, a connection detector and a controller. It is featured as coupling connection detector to both said ports for detecting their connection state and sending a detection signal; using controller to control USB device to be operated in host mode or to be operated in concentrator mode according to the detection signal.

Description

Have bifunctional universal serial bus device of main frame/hub and control method thereof
(1) technical field
The relevant a kind of USB (universal serial bus) (Universal Serial Bus) of the present invention is technology (USB), particularly relevant a kind of have bifunctional USB device of main frame/hub and control method thereof.
(2) background technology
In recent years, be widely used in the information products surely belonging to USB (universal serial bus) (Universal Serial Bus, hereinafter referred USB) as the interface system standard that communication connects.By the USB interface, each peripheral equipment can be connected to host computer via usb bus, solves the problem that various in the past peripheral equipments need are connected with host computer with the different size connector.In addition, the USB peripheral device all has the function of plug and play (plug and play), also promptly when installing or removing the USB peripheral device, need not to close host computer, also need not install driver separately.
According to the USB interface specification, a USB system comprises: usb host (host), USB element (device) and usb bus linkage interface (Inter-connection) etc. constitute.Usb host is responsible for data transmission opportunity and direction on the usb bus, is arranged in the host computer usually.The USB element has and is divided into two kinds: one is hub (hub), provides usb bus new tie point; Another kind is function element (function), is generally the peripheral equipment that system service is provided, such as: mouse, keyboard, printer, thumb actuator (thumb drive) etc.In known USB system, usb hub is as the bridge joint between USB function element and usb host (bridge) interface, under the situation that no usb host exists, even if usb hub is connected with and has the USB function element in USB function element or the usb hub, this USB function element will be lack scope for their abilities.
(3) summary of the invention
Therefore, a purpose of the present invention provides a kind of have bifunctional USB device of main frame/hub and control method thereof, under the situation of no circumscribed USB main frame, by USB device of the present invention, still can construction the USB system of independent (stand-alone).
Another object of the present invention provides has bifunctional USB device of main frame/hub and control method thereof, and under the situation that the circumscribed USB main frame is arranged, USB device of the present invention is still bridged between circumscribed USB main frame and the USB function element.
For achieving the above object, the present invention can be by providing a kind of USB device to finish.USB device according to the present invention comprises: a uplink port and a descending port, a connection detector and a controller.Connection detector is to be coupled to uplink port and downlink port, behind the connection state that detects uplink port and downlink port, produces a detection signal.Controller is then according to detection signal, and control USB is installed on a host mode or a hub pattern is operated.
In addition, the present invention also provides a kind of control method of USB device, and this USB device comprises a uplink port, a descending port and a controller.According to control method of the present invention, after the connection status of detection uplink port and downlink port, produce a detection signal earlier.Then, according to detection signal, operate under the situation that controller control USB one of is installed in a host mode and the hub pattern.
For further specifying above-mentioned purpose of the present invention, design feature and effect, the present invention is described in detail below with reference to accompanying drawing.
(4) description of drawings
Fig. 1 shows according to the block schematic diagram with bifunctional USB device one preferred embodiment of main frame/hub of the present invention;
Fig. 2 is the control method process flow diagram of displayed map 1;
Fig. 3 is that the USB device of displayed map 1 enters the synoptic diagram of hub pattern;
Fig. 4 is the synoptic diagram that the USB device of displayed map 1 enters host mode;
Fig. 5 shows according to the block schematic diagram with another preferred embodiment of the bifunctional USB device of main frame/hub of the present invention;
Fig. 6 is the control method process flow diagram of displayed map 5;
Fig. 7 is that the USB device of displayed map 5 enters the synoptic diagram of hub pattern; And
Fig. 8 is the synoptic diagram that the USB device of displayed map 5 enters host mode.
(5) embodiment
Please refer to Fig. 1, shown in be the block schematic diagram that has bifunctional USB device one preferred embodiment of main frame/hub according to of the present invention.As shown in Figure 1, USB device 1 comprises: a uplink port (upstream port) 10, at least one downlink port (downstream port) 11, one controller (controller) 12, a usb hub (USB hub) 13, one usb host (USB host) 14, one data buffer (data buffer) 15 and one connection detector (connection detector) 16 etc.; Wherein, the quantity of downlink port 11 can be one or a plurality of, though show three downlink port 11A, 11B, 11C among Fig. 1, also only for the usefulness of explanation, is not in order to limit the present invention.
Connection detector 16 is to couple with uplink port 10 and downlink port 11A, 11B, 11C, in order to detect the connection status of uplink port 10 and downlink port 11A, 11B, 11C.If connection detector 16 detect the connection status of uplink port 10 or downlink port 11A, 11B, 11C have any unusual, promptly with a detection signal 161 notification controllers 12.Controller 12 is to be coupled to usb hub 13 and usb host 14, and according to the detection signal 161 that connection detector 16 is transmitted, control USB device 1 enters a host mode (Host Mode) or a hub pattern (Hub Mode).Preferable, when under host mode, controller 12 can make usb host 14 operate between data buffer 15 and downlink port 11A, 11B or 11C according to detection signal 161 first activation usb hosts 14; When under the hub pattern, controller 12 can make usb hub 13 operate between uplink port 10 and downlink port 11A, 11B or 11C according to detection signal 161 first activation usb hubs 13.
Please refer to Fig. 2, be depicted as the control method process flow diagram of USB device 1 among Fig. 1.As shown in Figure 2, detect the connection state of uplink ports 10 and downlink port 11A, 11B, 11C with connection detector 16 prior to step 20, inferiorly carry out step 21, judge whether uplink port 10 has the situation that is connected to external main frame (externalhost), usually, this external main frame is built in the PC (personal computer) in being.Please refer to shown in Figure 3, USB device 1 is to be connected to a PC 2, to connect a function element 3 with descending port one 1A with up port one 0, then according to the control method of inventing, know that in step 21 uplink port 10 is connected to PC 2, no matter then downlink port 11A, 11B, 11C have and are not connected to function element 3, all carry out step 22, by controller 12 according to detection signal 161 activations (enable) usb hub 13, forbidden energy (disabled) usb host 14 after, enter the hub pattern in step 23.When under the hub pattern, usb hub 13 is coupled between uplink port 10 and downlink port 11A, 11B, the 11C through activation, if have function element 3 to be connected to downlink port 11A (promptly as shown in Figure 3) this moment, then PC 2 promptly can be carried out data access (access) operation via 13 pairs of function element of usb hub 3.
Please refer to Fig. 2 again, if know that in step 21 uplink port 10 does not have the situation that connects external main frame (external host), then can carry out step 24 and judge whether downlink port 11A, 11B or 11C have the situation of the function element of being connected to.Please refer to shown in Figure 4, USB device 1 is only with descending port one 1A linkage function element 3, then according to control method of the present invention, know that in step 21 uplink port 10 nothings are connected to PC 2, know that in step 24 downlink port 11A is connected to function element 3 again, then can carry out step 25, according to detection signal 161 activations (enable) usb host 14, forbidden energy (disabled) usb hub 13, enter host mode in step 26 by controller 12.When under host mode, usb host 14 is coupled between data buffer 15 and downlink port 11A, 11B, the 11C through activation, in view of the above, usb host 14 can carry out initialization (initialization) to the function element 3 that is connected to downlink port 11A, carries out exchanges data with data buffer 15 and function element 3 then.
If detecting uplink port 10 in step 24 is not connected to PC 2 and downlink port 11A, 11B, when 11C is not connected to function element 3, then can returns back to step 20.In addition, after step 23 enters the hub pattern or after step 26 enters host mode, still can return back to step 20, continue uplink port 10 and downlink port 11A, 11B, 11C are detected connection state with connection detector 16.
Please refer to Fig. 5, shown in be the block schematic diagram that has another preferred embodiment of the bifunctional USB device of main frame/hub according to of the present invention.As shown in Figure 5, USB device 5 comprises: a uplink port (upstream port) 50, at least one downlink port (downstream port) 51, one controller (controller) 52, a usb host (USB host) 53, one data buffer (data buffer) 54, one packet-switched servomechanism (packet exchange server) 55, one package processor (packetprocessor) 56 and a connection detector (connection detector) 57 etc.; Wherein, the quantity of downlink port 51 can be one or a plurality of, though show three downlink port 51A, 51B, 51C among Fig. 5, also only for the usefulness of explanation, is not in order to limit the present invention.
Connection detector 57 is to couple with uplink port 50 and downlink port 51A, 51B, 51C, in order to detect the connection status of uplink port 50 and downlink port 51A, 51B, 51C.If connection detector 57 detect the connection status of uplink port 50 or downlink port 51A, 51B, 51C have any unusual, promptly with a detection signal 571 notification controllers 52.Controller 52 is to be coupled to usb host 53, packet-switched servomechanism 55 and package processor 56, and according to the detection signal 571 that connection detector 57 is transmitted, control USB device 5 enters host mode or hub pattern.Preferable, when under host mode, controller 52 can make usb host 53 operate between data buffer 54 and downlink port 51A, 51B or 51C according to detection signal 571 first activation usb hosts 53; When under the hub pattern, controller 52 can be according to detection signal 571 first activation usb hosts 53, packet-switched servomechanism 55 and package processor 56, making package processor 56 be coupled between uplink port 50 and the data buffer 54 operates, also make usb host 53 be coupled to data buffer 54 and downlink port 51A, 51B, or between the 51C, and packet-switched servomechanism 55 is coupled between package processor 56 and the usb host 53, with at uplink port 50 and downlink port 51A, 51B, carry out the swap data package between 51C, the swap data package as for how then will be in hereinafter describing in detail.
Please refer to Fig. 6, be depicted as the control method process flow diagram of USB device 5 among Fig. 5.As shown in Figure 6, detect the connection state of uplink ports 50 and downlink port 51A, 51B, 51C with connection detector 57 prior to step 60, inferiorly carry out step 61, judge whether uplink port 50 has the situation that is connected to external main frame (externalhost), usually, this external main frame is built in the PC (personal computer) in being.Please refer to shown in Figure 7, USB device 5 is with uplink port 50 connection PC 6, with downlink port 51A linkage function element 7, then according to control method of the present invention, know that in step 61 uplink port 50 is connected to PC 2, no matter then downlink port 51A, 51B, 51C have and are not connected to function element 3, after all carrying out step 62 activation usb host 53, packet-switched servomechanism 55 and package processor 56, enter the hub pattern in step 63.
USB device 5 shown in Figure 5 there is no the setting of usb hub, so under the hub pattern, controller 52 promptly needs to provide the mechanism of linking up with external main frame (being PC 6 shown in Figure 7) in hub (hub) function; In other words, under the hub pattern, provide distinctive state of hub and steering order, make external main frame be able to configuring (configure) concentrator function, and can individually monitor downlink port 51A, 51B, 51C by controller 52.When under the hub pattern, when if PC 6 desires are write out data to function element 7, meeting transmission data are write out package (OUT packet) and are given package processor 56, and the data acquisition that data is write out in the package by package processor 56 comes out, and is stored in the data buffer 54.Simultaneously, package processor 56 is by signal wire 561 notice packet-switched servomechanisms 55, notify usb hosts 53 by packet-switched servomechanism 55 by signal wire 551 again, storage data is read out from data buffer 54 by usb host 53, and reply after original data write out package, send function element 7 to.During this period, write out package if PC 6 desires continue that function element 7 is transmitted data, and make when data buffer is filled up by 54 that it is also ready that then package processor 56 needs the responsible PC 6 of replying, can't accept (not acknowledge; NAK) follow-up data are write out package, have living space up to data buffer, can accept the data from PC 6 again, or PC 6 has transmitted till all data that finish.
When under the hub pattern,, can send out a data read package (IN packet) and give package processor 56 if PC 6 is desired when function element 7 reading of data.Package processor 56 is according to the data read package, by signal wire 561 notice packet-switched servomechanisms 55, again by packet-switched servomechanism 55 by signal wire 551 notice usb hosts 53, reply original data read package by usb host 53 after, send function element 7 to.Then, provide data to give usb host 53 by function element 7 according to the data read package, and be stored in the data buffer 54.Simultaneously, usb host 53 is with signal wire 552 notice packet-switched servomechanisms 55, and after reading desired data by signal wire 562 notice package processors 56 to data buffer 54 by packet-switched servomechanism 55, is sent to PC 6 places.In function element 7 does not also provide data to data buffer 54 between the storage life, PC 6 still may continue to transmit data read package (IN packet) and give package processor 56, promptly be responsible for replying PC 6 data by package processor 56 and also get ready this moment, can't reply (not acknowledge; NAK) required data, in desired data has been stored to data buffer 54 till.
Please refer to Fig. 6 again, if know that in step 61 uplink port 50 does not have the situation that connects external main frame, then carries out step 64 and judges whether downlink port 51A, 51B or 51C have the situation of the function element of being connected to.Please refer to shown in Figure 8, USB device 5 is only with downlink port 51A linkage function element 7, then according to control method of the present invention, know that in step 61 uplink port 50 nothings are connected to PC 6, know that in step 64 downlink port 51A is connected to function element 7 again, after then can carrying out step 65 activation usb host 53, enter host mode in step 66.When under host mode, usb host 53 is coupled between data buffer 54 and downlink port 51A, 51B, the 51C through activation, in view of the above, usb host 53 can carry out initialization (initialization) to the function element 7 that is connected to downlink port 51A, carries out exchanges data with data buffer 54 and function element 7 then.
If detecting uplink port 50 in step 64 is not connected to PC 6 and downlink port 51A, 51B, when 51C is not connected to function element 7, then can returns back to step 60.In addition, after step 63 enters the hub pattern or after step 66 enters host mode, still can return back to step 60, continue uplink port 50 and downlink port 51A, 51B, 51C are detected connection state with connection detector 57.
In view of the above, the present invention has bifunctional USB device of main frame/hub and control method thereof, under the situation of no circumscribed USB main frame, by USB device of the present invention, still can construction the USB system of independent (stand-alone), external or built-in USB function element is operated and access.Moreover the present invention has bifunctional USB device of main frame/hub and control method thereof, and under the situation that the circumscribed USB main frame is arranged, USB device of the present invention is still bridged between circumscribed USB main frame and the USB function element.
Therefore, when connecting the circumscribed USB main frame, promptly provide concentrator function, can supply the linkage function element, so needn't provide the circumscribed USB hub at the discrete function element, economization use cost significantly with the bifunctional USB device of main frame/hub of the present invention.In addition, the setting of no circumscribed USB hub more makes whole mechanism simplify further, be convenient for carrying, and the portability (portable) of lifting product.
Though the present invention describes with reference to current specific embodiment, but those of ordinary skill in the art will be appreciated that, above embodiment is used for illustrating the present invention, under the situation that does not break away from spirit of the present invention, also can make the variation and the modification of various equivalences, therefore, as long as variation, the modification to the foregoing description all will drop in the scope of claims of the present invention in connotation scope of the present invention.

Claims (6)

1. a USB (universal serial bus) (USB) is installed, and comprising:
One uplink port and a descending port;
One connection detector is coupled to this uplink port and this downlink port, behind the connection state that detects this uplink port and this downlink port, produces a detection signal;
One controller according to this detection signal, is controlled under the situation that this USB one of is installed in a host mode and the hub pattern and is operated.
2. USB device as claimed in claim 1 is characterized in that also comprising:
One data buffer;
One usb host, when under this host mode, this this usb host of controller activation is coupled between this data buffer and this downlink port; And
One usb hub, when under this hub pattern, this this usb hub of controller activation is coupled between this uplink port and this downlink port.
3. USB device as claimed in claim 1 is characterized in that also comprising:
One data buffer;
One usb host, when under this host mode and this hub pattern, this this usb host of controller activation is coupled between this data buffer and this downlink port;
One package processor, when under this hub pattern, this controller can be coupled between this uplink port and this data buffer by this package processor of activation;
One packet-switched servomechanism, when under this hub pattern, this packet-switched servomechanism of this controller activation is coupled between usb host and this package processor, makes this packet-switched servomechanism control this usb host and this package processor, carries out packet-switched.
4. the control method of a USB device, this USB device comprises a uplink port, a descending port and a controller; This control method comprises the following steps:
(a) detect the connection status of this uplink port and this downlink port after, produce a detection signal; And
(b) according to this detection signal, this controller is controlled under the situation that this USB one of is installed in a host mode and the hub pattern and is operated.
5. control method as claimed in claim 4 is characterized in that, step (b) also comprises:
When under this host mode, this controller activation one usb host is coupled between a data buffer and this downlink port; And
When under this hub pattern, this controller activation one usb hub is coupled between this uplink port and this downlink port.
6. control method as claimed in claim 4 is characterized in that, step (b) also comprises:
When under this host mode and this hub pattern, this controller activation one usb host is coupled between a data buffer and this downlink port;
When under this hub pattern, this controller activation one package processor is coupled between this uplink port and this data buffer;
When under this hub pattern, this controller activation one packet-switched servomechanism is coupled between this usb host and this package processor, makes this packet-switched servomechanism control this usb host and this package processor, carries out packet-switched.
CNB2003101142321A 2003-11-06 2003-11-06 Universal serial bus device with host computer/concentrator functions and its control Expired - Lifetime CN1304970C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2003101142321A CN1304970C (en) 2003-11-06 2003-11-06 Universal serial bus device with host computer/concentrator functions and its control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2003101142321A CN1304970C (en) 2003-11-06 2003-11-06 Universal serial bus device with host computer/concentrator functions and its control

Publications (2)

Publication Number Publication Date
CN1614578A true CN1614578A (en) 2005-05-11
CN1304970C CN1304970C (en) 2007-03-14

Family

ID=34760159

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2003101142321A Expired - Lifetime CN1304970C (en) 2003-11-06 2003-11-06 Universal serial bus device with host computer/concentrator functions and its control

Country Status (1)

Country Link
CN (1) CN1304970C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686132B (en) * 2008-09-23 2012-07-25 宏正自动科技股份有限公司 USB matrix switch system
CN105511998A (en) * 2015-11-25 2016-04-20 英业达科技有限公司 Detection device of universal serial bus ports
CN106095703A (en) * 2016-06-13 2016-11-09 成绎半导体技术(上海)有限公司 A kind of DRP recognition methods and device
CN107318037A (en) * 2016-04-26 2017-11-03 宏碁股份有限公司 Electronic installation and image transmission control method
CN109542812A (en) * 2018-09-30 2019-03-29 惠州市德赛西威汽车电子股份有限公司 Data communication control method, device and terminal device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6601109B1 (en) * 1999-03-31 2003-07-29 International Business Machines Corporation USB-based networking and I/O hub
JP2001184296A (en) * 1999-12-27 2001-07-06 Toshiba Corp Usb communication interface, computer, hub, electronic equipment, and function switching method in the electronic equipment
JP3664236B2 (en) * 2000-10-30 2005-06-22 ティアック株式会社 USB device
CN1175362C (en) * 2001-04-09 2004-11-10 华邦电子股份有限公司 USB concentrator with several upstream port and computer system using said concentrator
US7043587B2 (en) * 2001-09-20 2006-05-09 Lenovo (Singapore) Pte. Ltd. System and method for connecting a universal serial bus device to a host computer system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686132B (en) * 2008-09-23 2012-07-25 宏正自动科技股份有限公司 USB matrix switch system
CN105511998A (en) * 2015-11-25 2016-04-20 英业达科技有限公司 Detection device of universal serial bus ports
CN107318037A (en) * 2016-04-26 2017-11-03 宏碁股份有限公司 Electronic installation and image transmission control method
CN106095703A (en) * 2016-06-13 2016-11-09 成绎半导体技术(上海)有限公司 A kind of DRP recognition methods and device
CN106095703B (en) * 2016-06-13 2018-08-07 成绎半导体技术(上海)有限公司 A kind of DRP recognition methods and device
CN109542812A (en) * 2018-09-30 2019-03-29 惠州市德赛西威汽车电子股份有限公司 Data communication control method, device and terminal device
CN109542812B (en) * 2018-09-30 2022-06-24 惠州市德赛西威汽车电子股份有限公司 Data communication control method and device and terminal equipment

Also Published As

Publication number Publication date
CN1304970C (en) 2007-03-14

Similar Documents

Publication Publication Date Title
US7478191B2 (en) Method for automatically switching USB peripherals between USB hosts
CN202854801U (en) Data processing system for USB device virtualization and USB virtualized device
CN101345077B (en) A PC flash memory system structure based on USB
JP4886601B2 (en) Apparatus and method for operating USB interface equipment
CN1201215C (en) Remote control for power supply
CN102541791A (en) Data transferring apparatus and control method thereof
CN100388140C (en) Display device for train driving information and method thereof
US8082368B2 (en) Display device for indicating connection statuses of a communication channel provided between two systems and method thereof
US8996775B2 (en) Backplane controller for managing serial interface configuration based on detected activity
EP1805635A1 (en) Universal serial bus switching hub
US20080005620A1 (en) System and Method for Detecting False Positive Information Handling System Device Connection Errors
JP2005157636A (en) Magnetic disk array device with processing offloading function module
CN102567238A (en) Interface switching control method, portable terminal, portable mobile equipment, and input equipment
CN1304970C (en) Universal serial bus device with host computer/concentrator functions and its control
US7124235B2 (en) USB apparatus with switchable host/hub functions and control method thereof
CN1921448A (en) Network-attached storage device having a connection to a local device
CN102147739B (en) Multi-mainboard server system and network-driving method thereof
JP2004102716A (en) Electronic equipment having serial interface
US20110202692A1 (en) Computer peripheral apparatus
CA2881459A1 (en) Device and method for remote computer operation
CN101826061A (en) Shared system and management method of hardware device
CN102122238A (en) Computer management system and method
CN101377753A (en) Accessory test device and method
CN106250075A (en) Video adapter alignment
EP1469391A1 (en) Remote controlled data processing system via a network

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
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20070314