TWI512481B - USB 3.0 bus mapping of the USB port method - Google Patents

USB 3.0 bus mapping of the USB port method Download PDF

Info

Publication number
TWI512481B
TWI512481B TW102103683A TW102103683A TWI512481B TW I512481 B TWI512481 B TW I512481B TW 102103683 A TW102103683 A TW 102103683A TW 102103683 A TW102103683 A TW 102103683A TW I512481 B TWI512481 B TW I512481B
Authority
TW
Taiwan
Prior art keywords
usb
hub
port
same
current
Prior art date
Application number
TW102103683A
Other languages
Chinese (zh)
Other versions
TW201430577A (en
Original Assignee
Innostor Technology Corp
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 Innostor Technology Corp filed Critical Innostor Technology Corp
Priority to TW102103683A priority Critical patent/TWI512481B/en
Publication of TW201430577A publication Critical patent/TW201430577A/en
Application granted granted Critical
Publication of TWI512481B publication Critical patent/TWI512481B/en

Links

Landscapes

  • Information Transfer Systems (AREA)

Description

USB3.0集線器的映對USB埠方法 USB3.0 hub's mapping USB method

本發明係一種USB集線器的映對USB埠方法,尤指一種USB3.0集線器的映對USB埠方法。 The invention relates to a USB port method for USB hub, in particular to a USB port method for USB 3.0 hub.

目前電腦相關產品間係以使用USB傳輸協定最為常見,自早期的USB1.0、USB2.0到現在USB3.0傳輸協定,其中USB3.0具有更快的傳輸速度的優點,也成為電腦相關主機的標準配備,由於保留USB3.0能夠相容USB2.0的傳輸協定,故目前主機的作業系統會於識別USB3.0插座插設有USB裝置,會自動產生一組USB3.0埠及USB2.0埠,再視目前USB裝置為USB3.0裝置或USB2.0裝置,再標註對應的USB3.0埠或USB2.0埠成已連結標識;此時,該作業系統即以目前USB傳輸協定與該USB裝置進行通訊,以下謹進一步以實際主機加以說明之。 At present, computer-related products are most commonly used to use USB transmission protocols. Since the early USB1.0, USB2.0 to the current USB3.0 transmission protocol, USB3.0 has the advantage of faster transmission speed, and has become a computer-related host. The standard equipment, because the USB3.0 can be compatible with the USB2.0 transmission protocol, the current host operating system will be equipped with a USB device in the USB3.0 socket, which will automatically generate a set of USB3.0 and USB2. 0埠, then look at the current USB device as a USB3.0 device or USB2.0 device, and then mark the corresponding USB3.0埠 or USB2.0 into a connected logo; at this time, the operating system is based on the current USB transfer protocol. The USB device communicates, and the following will be further explained by the actual host.

請參閱圖7所示,係為一台內建有一個NEC-USB3.0控制器及二個Intel-USB2.0控制器的主機,而該主機10對應裝設有二個USB3.0插座11、四個USB2.0插座12,而其中一個USB2.0插座12中插設有一具有八個USB2.0插座的USB2.0集線器30,此八個USB2.0插座的其中一個USB2.0插座31插設有一支滑鼠(USB2.0裝置)50,故此台主機10的作業系統於掃描完週邊裝置後, 會於標示有USB2.0集線器30的第5個USB2.0埠31上標示已連結的標示,如圖8所示,而以USB2.0傳輸協定與該USB2.0集線器30上的USB2.0裝置50進行通訊。 Please refer to FIG. 7 , which is a host with a NEC-USB3.0 controller and two Intel-USB2.0 controllers, and the host 10 is equipped with two USB3.0 sockets 11 . Four USB2.0 sockets 12, and one of the USB2.0 sockets 12 is provided with a USB 2.0 hub 30 having eight USB 2.0 sockets, one of the eight USB 2.0 sockets of the USB 2.0 socket 31 A mouse (USB2.0 device) 50 is inserted, so that the operating system of the host computer 10 scans the peripheral device. The connected logo will be marked on the fifth USB 2.0 port 31 marked with the USB 2.0 hub 30, as shown in Figure 8, and the USB 2.0 transfer protocol and the USB 2.0 on the USB 2.0 hub 30. Device 50 communicates.

請參閱圖9所示,當此主機10外接一台USB3.0集線器20進行USB3.0裝置40的產線檢測時,該USB3.0集線器40插設至該主機10的其中一USB3.0插座11,待主機10掃描周邊裝置後,如圖10所示,雖然只有插入一台具有四個USB3.0插座21的USB3.0集線器20,但主機10卻掃描出NEC-USB3.0控制器的Root HUB的其中一個USB3.0埠[port 1]標示有一具有四個USB3.0埠的21aUSB3.0集線器20a,並同時對Intel-USB2.0控制器的Root HUB的下之其中一USB2.0埠[port3]標示為一個USB2.0集線器20b,並於該USB2.0集線器20b下展出含四個USB2.0埠21b;因此,當主機外接一台具有四個USB3.0插座的USB3.0集線器20時,作業系統會將其中一USB3.0埠標示為USB3.0集線器20a外,更自動將USB2.0集線器的其中一USB2.0埠標示為一個USB2.0集線器20b,共有8個USB埠。 Referring to FIG. 9 , when the host 10 is externally connected to a USB 3.0 hub 20 for performing line detection of the USB 3.0 device 40, the USB 3.0 hub 40 is inserted into one of the USB 3.0 sockets of the host 10. 11. After the host 10 scans the peripheral device, as shown in FIG. 10, although only one USB 3.0 hub 20 having four USB 3.0 sockets 21 is inserted, the host 10 scans out the NEC-USB3.0 controller. One of the USB ports of the Root HUB [port 1] is marked with a 21aUSB3.0 hub 20a with four USB3.0 ports, and one of the USB 2.0 ports under the Root HUB of the Intel-USB2.0 controller.埠[port3] is marked as a USB2.0 hub 20b, and four USB2.0埠21b are displayed under the USB2.0 hub 20b; therefore, when the host is externally connected to a USB3 with four USB3.0 sockets. 0 Hub 20, the operating system will mark one of the USB3.0 ports as USB3.0 hub 20a, and automatically mark one USB2.0 port of the USB2.0 hub as a USB2.0 hub 20b, a total of 8 USB port.

目前主機10的USB3.0控制器會有如此設計,主要為了使得主機10的USB3.0插座11可向下相容USB2.0裝置50使用,但如此設計也造成此類主機10用於USB3.0裝置產線上檢測良劣品時的誤判;也就是說,該產線檢測系統會依據主機作業系統上標示有USB3.0集線器20,以及總USB埠數量,於產線檢測系統上顯示第1至8號的USB3.0裝置40。其中第1至4號會分別對應作業系統上的 USB3.0控制器下第一個USB3.0埠的四個USB3.0埠21a,當作業員將USB3.0裝置40插入該外接至主機的USB3.0集線器20的第一個USB3.0插座21時,正常來說該檢測系統60會顯示第1號,圖11A及圖11B,但也有可能因為主機作業系統錯誤或作業員插入動作不確實等等因素,該主機10誤判成USB2.0裝置,圖12A及圖12B,從而由作業系統上標示該Intel-USB2.0控制器的USB2.0集線器下第三個USB2.0埠下的第一個USB2.0埠標示為已連結標識,此時檢測系統60會透過主機與USB3.0裝置40溝通,因為主機10會以USB2.0傳輸模式與USB3.0裝置通訊,而使得檢測錯誤,作業員會因此而淘汰目前好的USB3.0裝置,此問題有必要進一步改良之。 At present, the USB 3.0 controller of the host 10 is designed such that the USB 3.0 socket 11 of the host 10 can be used downward compatible with the USB 2.0 device 50, but this design also causes such a host 10 to be used for USB 3. 0 device misjudgment when detecting good products on the production line; that is, the line detection system displays the first on the line detection system according to the USB3.0 hub 20 and the total number of USB ports on the host operating system. To the USB 3.0 device 40 of the 8th. Among them, the first to fourth will correspond to the operating system USB3.0 controller under the first USB3.0埠 four USB3.0埠21a, when the operator inserts the USB3.0 device 40 into the first USB3.0 socket of the USB3.0 hub 20 externally connected to the host At 21 o'clock, normally, the detection system 60 will display No. 1, FIG. 11A and FIG. 11B, but it is also possible that the host 10 misjudges the USB 2.0 device due to factors such as a host operating system error or an operator insertion action. 12A and FIG. 12B, so that the first USB 2.0 port under the third USB 2.0 under the USB 2.0 hub of the Intel-USB 2.0 controller on the operating system is marked as the connected identifier. The time detection system 60 communicates with the USB 3.0 device 40 through the host, because the host 10 communicates with the USB 3.0 device in the USB 2.0 transmission mode, so that the detection error, the operator will eliminate the current good USB3.0 device. This issue needs to be further improved.

有鑑於上述既有USB3.0集線器插設至具有USB3.0連接器的主機時,插設至USB3.0集線器的USB3.0裝置會被主機誤認為USB2.0裝置的技術缺陷,本發明主要目的係提供一種USB3.0集線器的映對USB埠方法。 In view of the above-mentioned USB 3.0 hub plugged into a host with a USB 3.0 connector, the USB 3.0 device plugged into the USB 3.0 hub is mistaken by the host for the technical defect of the USB 2.0 device, and the present invention mainly The purpose is to provide a USB 3.0 hub mapping method.

欲達上述目的所使用的主要技術手段係令USB3.0集線器的映對USB埠方法包含有:取得主機掃描後的USB埠樹狀關係;自所有USB埠中選取標示有USB集線器的USB埠;依據不同的USB傳輸協定,分群為所屬USB3.0集線器的USB3.0埠以及所屬USB2.0集線器的USB2.0埠;及將所有USB3.0集線器逐一與USB2.0集線器比對,若滿足匹配關係則產生一映對表。 The main technical means used to achieve the above purpose is to make the USB 3.0 hub's mapping method include: obtaining the USB tree relationship after the host scan; selecting the USB port marked with the USB hub from all the USB ports; According to different USB transmission protocols, the group is the USB3.0 port of the USB3.0 hub and the USB2.0 port of the USB2.0 hub; and all USB3.0 hubs are compared with the USB2.0 hub one by one, if the match is satisfied The relationship produces a pair of tables.

上述本發明產生的映對表係將因主機插設有USB3.0集線器而自動標示對應的USB2.0集線器,將該USB2.0集線器與其真正USB3.0集線器加以映對,即將USB2.0集線器的數個USB2.0埠設定與USB3.0集線器的USB3.0埠的映對關係,如此當檢測系統判斷作業系統的USB2.0集線器之其中一USB2.0埠已標示連結時,即可依據其映對關係找到USB3.0埠,從而顯示對應該USB3.0埠的對應號碼予操作人員。因此,本發明即可解決操作人員插設至USB3.0集線器特定USB3.0插座,於檢測系統上顯示錯誤號碼的技術缺陷。 The above-mentioned pairing table generated by the present invention will automatically mark the corresponding USB 2.0 hub by inserting a USB 3.0 hub into the host, and the USB 2.0 hub will be mapped with its real USB 3.0 hub, that is, the USB 2.0 hub. The number of USB 2.0 ports is set to match the USB 3.0 port of the USB 3.0 hub. When the detection system determines that one of the USB 2.0 ports of the operating system has been marked as a link, it can be based on The mapping relationship finds USB3.0埠, so that the corresponding number corresponding to USB3.0埠 is displayed to the operator. Therefore, the present invention can solve the technical defect that the operator inserts the USB 3.0 hub into the USB 3.0 socket and displays the wrong number on the detection system.

10‧‧‧主機 10‧‧‧Host

11‧‧‧USB3.0插座 11‧‧‧USB3.0 socket

12‧‧‧USB2.0插座 12‧‧‧USB2.0 socket

13‧‧‧USB3.0控制器 13‧‧‧USB3.0 controller

14、14’‧‧‧USB2.0控制器 14, 14'‧‧‧USB2.0 controller

20‧‧‧USB3.0集線器 20‧‧‧USB3.0 Hub

20a‧‧‧USB3.0集線器 20a‧‧‧USB3.0 Hub

20b‧‧‧USB2.0集線器 20b‧‧‧USB2.0 Hub

21‧‧‧USB3.0插座 21‧‧‧USB3.0 socket

21a‧‧‧USB3.0埠 21a‧‧‧USB3.0埠

21b‧‧‧USB2.0埠 21b‧‧‧USB2.0埠

30、30’‧‧‧USB2.0集線器 30, 30'‧‧‧USB2.0 Hub

30a、30a’‧‧‧USB2.0集線器 30a, 30a’‧‧‧USB2.0 Hub

31、31’‧‧‧USB2.0插座 31, 31'‧‧‧USB2.0 socket

31a‧‧‧USB2.0埠 31a‧‧‧USB2.0埠

40‧‧‧USB3.0裝置 40‧‧‧USB3.0 device

50‧‧‧USB2.0裝置 50‧‧‧USB2.0 device

60‧‧‧檢測系統 60‧‧‧Detection system

圖1:係本發明USB3.0裝置之檢測系統的架構圖。 Figure 1 is a block diagram showing the detection system of the USB 3.0 device of the present invention.

圖2A至2D:係係本發明使用一種USB3.0控制器於主機掃描後的樹狀圖。 2A to 2D are diagrams showing the tree of the present invention after scanning by a host using a USB 3.0 controller.

圖3:係本發明匹配關係判斷方法的第一較佳實施例流程圖。 3 is a flow chart showing a first preferred embodiment of the method for judging the matching relationship of the present invention.

圖4:係本發明匹配關係判斷方法的第二較佳實施例流程圖。 4 is a flow chart showing a second preferred embodiment of the method for judging the matching relationship of the present invention.

圖5A至5D:係本發明使用一種USB3.0控制器於主機掃描後的樹狀圖。 5A to 5D are tree diagrams of the present invention after scanning by a host using a USB 3.0 controller.

圖6:係本發明檢測系統的檢測畫面示意圖。 Figure 6 is a schematic diagram of a detection screen of the detection system of the present invention.

圖7:係習用一主機及USB2.0集線器與USB2.0裝置的連接示意圖。 Figure 7: Schematic diagram of the connection between a host and a USB 2.0 hub and a USB 2.0 device.

圖8:係圖7之主機所使用多個USB控制器掃描後的樹狀圖。 Figure 8: Tree diagram after scanning by multiple USB controllers used by the host of Figure 7.

圖9:係一主機及USB2.0及USB3.0集線器與USB3.0裝置的連接示意圖。 Figure 9: Schematic diagram of a host and USB2.0 and USB3.0 hub and USB3.0 device connection.

圖10:係一種USB3.0裝置之檢測系統的架構圖。 Figure 10 is an architectural diagram of a detection system for a USB 3.0 device.

圖11A及圖11B:係圖10之主機所使用多個USB控制器掃描後的樹狀圖及檢測畫面示意圖。 11A and FIG. 11B are schematic diagrams showing a tree diagram and a detection screen after scanning by a plurality of USB controllers used by the host of FIG. 10.

圖12A及圖12B:係圖10之主機所使用多個USB控制器掃描後的樹狀圖及檢測畫面示意圖。 12A and FIG. 12B are schematic diagrams showing a tree diagram and a detection screen after scanning by a plurality of USB controllers used by the host of FIG. 10.

首先請參閱圖1所示,本發明USB3.0集線器的映對USB埠方法係包含有:取得主機10掃描後的USB埠樹狀關係,如圖2C或2D所示;自所有USB埠中選取標示有USB集線器的USB埠;依據不同的USB傳輸協定,分群為所屬USB3.0集線器20a的USB3.0埠21a以及所屬USB2.0集線器20b的USB2.0埠21b,如圖2C或2D所示;及將所有USB3.0集線器20a逐一與USB2.0集線器20b比對,若滿足匹配關係則產生一映對表。 First, referring to FIG. 1 , the USB 集线器 method of the USB 3.0 hub of the present invention includes: obtaining a USB 埠 tree relationship after scanning by the host 10, as shown in FIG. 2C or 2D; selecting from all USB ports. A USB port labeled with a USB hub; according to different USB transmission protocols, the group is the USB 3.0 port 21a of the USB 3.0 hub 20a and the USB 2.0 port 21b of the USB 2.0 hub 20b, as shown in FIG. 2C or 2D. And compare all USB3.0 hubs 20a one by one with the USB 2.0 hub 20b, and if a matching relationship is satisfied, a pair of tables is generated.

如上映對表例示,當其中一USB2.0集線器20b與目前USB3.0集線器20a滿足匹配關係,則會設定USB2.0集線器20b的USB2.0埠21b與其對應的USB3.0埠21a映對關係,因此當該檢測系統60判斷作業系統上對該USB2.0集線器20b的其中一USB2.0埠21b標示已連結時,即可依據其映對關係(USB3.0插座X)找到USB3.0埠21a,如圖2C所示,以USB2.0集線器20b下的第一USB2.0埠[Port 1]為例,即可依據其配對關係(USB3.0插座1),找到其對應該USB3.0集線器20a的第一USB3.0埠[Port1]。 As illustrated in the above table, when one of the USB 2.0 hubs 20b satisfies the matching relationship with the current USB 3.0 hub 20a, the USB 2.0 埠 21b of the USB 2.0 hub 20b and its corresponding USB 3.0 埠 21a mapping relationship are set. Therefore, when the detection system 60 determines that one of the USB 2.0 ports 21b of the USB 2.0 hub 20b is connected on the operating system, the USB 3.0 can be found according to the mapping relationship (USB3.0 socket X). 21a, as shown in FIG. 2C, taking the first USB2.0埠[Port 1] under the USB2.0 hub 20b as an example, according to its pairing relationship (USB3.0 socket 1), it can be found corresponding to USB3.0. The first USB 3.0 port [Port1] of the hub 20a.

至於上述USB3.0集線器及USB2.0集線器匹配關的判斷方式可有以下幾種方式。 As for the above USB3.0 hub and USB2.0 hub matching off, there are several ways to judge.

首先請參閱圖1所示,係以一個連接有二個USB3.0插座11的USB3.0控制器為例,當主機10內建此一USB3.0控制器,會於掃描週邊裝置後顯示如圖2A所示的樹狀關係的樹狀圖,即該USB3.0控制器下出現一根集線器(RootHUB),並自該根集線器向下展出二組USB3.0埠RootHUB_[Port1]、RootHUB_[Port2]及二組USB2.0埠RootHUB_[Port3]、RootHUB_[Port4]。當一具有四個USB3.0插座21的USB3.0集線器20連接至該主機10的其中一USB3.0插座11,經主機10掃描後會更新一樹狀關係的樹狀圖,如圖2B所示,基於判斷USB3.0集線器20為USB3.0裝置的一種,該樹狀圖中會標示有一USB3.0集線器20a及一USB2.0集線器20b,即該USB3.0集線器20a包含有四組USB3.0埠21a,而USB2.0集線器20b包含有四組 USB2.0埠21b。其中四組USB3.0埠21a係自其中一USB3.0埠RootHUB_[Port1]向下展出,而四組USB2.0埠21b係自其中一USB2.0埠RootHUB_[Port3]向下展出。 First, please refer to FIG. 1 , taking a USB 3.0 controller with two USB3.0 sockets 11 as an example. When the USB 10 controller is built in the host 10, it will display after scanning the peripheral device. The tree diagram of the tree relationship shown in FIG. 2A, that is, a hub (RootHUB) appears under the USB3.0 controller, and two sets of USB3.0埠RootHUB_[Port1] and RootHUB_ are displayed downward from the root hub. [Port2] and two sets of USB2.0埠RootHUB_[Port3], RootHUB_[Port4]. When a USB 3.0 hub 20 having four USB 3.0 sockets 21 is connected to one of the USB 3.0 sockets 11 of the host 10, a tree diagram of a tree relationship is updated after scanning by the host 10, as shown in FIG. 2B. Based on the determination that the USB 3.0 hub 20 is a USB 3.0 device, a USB 3.0 hub 20a and a USB 2.0 hub 20b are indicated in the tree diagram, that is, the USB 3.0 hub 20a includes four sets of USB3. 0埠21a, while USB2.0 hub 20b contains four groups USB2.0埠21b. Four sets of USB3.0埠21a are exhibited downwards from one of the USB3.0埠 RootHUB_[Port1], and four sets of USB2.0埠21b are displayed downward from one of the USB2.0埠RootHUB_[Port3].

由此USB3.0控制器的特性可知,主機10掃描此USB3.0控制器後會對稱標示一組USB3.0集線器20a及一組USB2.0集線器20b,而且該USB3.0及USB2.0集線器20a、20b均具有相同數量的USB埠21a、21b;是以,判斷滿足其中一種匹配關係包含以下步驟,並請配合參閱圖3所示:判斷目前USB3.0集線器20a與任一USB2.0集線器20b是否同屬相同父節點(RootHUB)S131a;若屬相同父節點,則進一步判斷USB3.0集線器20a的USB3.0埠21a與USB2.0集線器20b的USB2.0埠21b數量是否相同S132a;若為相同數量,則進一步判斷USB3.0集線器20a與USB2.0集線器20b所連接的USB3.0埠21a及USB2.0埠21b是否具有埠次序對應關係,如正向埠次序對應關係或反向埠次序對應關係S133a;及若具有埠次序對應關係,則分別將USB3.0集線器20a與USB2.0集線器20b所屬的USB3.0埠21a和USB2.0埠21b分別配對,並記錄於該映對表中S134a。 According to the characteristics of the USB3.0 controller, after scanning the USB3.0 controller, the host 10 will symmetrically indicate a set of USB3.0 hub 20a and a set of USB2.0 hub 20b, and the USB3.0 and USB2.0 hubs. 20a, 20b have the same number of USB ports 21a, 21b; Yes, determine that one of the matching relationships includes the following steps, and please refer to Figure 3: determine the current USB3.0 hub 20a and any USB2.0 hub Whether 20b belongs to the same parent node (RootHUB) S131a; if it belongs to the same parent node, it is further determined whether the number of USB3.0埠21a of USB3.0 hub 20a and USB2.0埠21b of USB2.0 hub 20b are the same as S132a; For the same number, it is further determined whether the USB 3.0 埠 21a and the USB 2.0 埠 21b to which the USB 3.0 hub 20a and the USB 2.0 hub 20b are connected have a 埠 order correspondence, such as a forward 埠 order correspondence or a reverse 埠The order correspondence relationship S133a; and if there is a 埠 order correspondence relationship, the USB 3.0 hub 20a and the USB 3.0 埠 21a and the USB 2.0 埠 21b to which the USB 2.0 hub 20b belongs are respectively paired and recorded in the mapping table. In S134a.

上述正向埠次序對應關係為USB3.0 Port 1,2...n順序對應USB2.0 port 1,2...n;而反向埠次序對應關係為USB3.0 Port 1,2...n順序對應USB2.0 port n,n-1...1。 The above-mentioned forward 埠 order correspondence is USB3.0 Port 1, 2...n corresponds to USB2.0 port 1, 2...n; and the reverse 埠 order correspondence is USB3.0 Port 1,2.. The .n order corresponds to USB2.0 port n, n-1...1.

本發明另一種判斷匹配關係方式與上述匹配 關係判斷方式大致相同,如圖4所示,惟由上述判斷USB3.0埠及USB2.0埠的數量不相同時S132,進一步判斷其中USB3.0集線器的USB3.0埠數量為奇數S135,再找尋任一USB2.0集線器的父節點是否即為USB3.0集線器S136;若相同,則進一步比較USB3.0集線器和USB2.0集線器所連接的USB3.0埠及USB2.0埠是否具有埠次序對應關係S137;若具有埠次序對應關係,則除了連接USB2.0集線器外的USB3.0埠,其餘USB3.0埠再與USB2.0集線器所屬USB2.0埠分別配對,並記錄於該映對表中S138,如下表。 Another way of judging the matching relationship with the above matching The relationship judgment method is roughly the same, as shown in FIG. 4, but when the number of USB3.0埠 and USB2.0埠 is different, S132 is further determined, and the number of USB3.0 ports of the USB3.0 hub is further determined to be an odd number S135, and then Find out if the parent node of any USB2.0 hub is USB3.0 hub S136; if they are the same, compare the USB3.0 ports and USB2.0 ports connected to the USB3.0 hub and USB2.0 hub to see if they have the order. Correspondence relationship S137; if there is a 埠 order correspondence, in addition to the USB3.0 port connected to the USB2.0 hub, the remaining USB3.0 ports are respectively paired with the USB 2.0 ports to which the USB 2.0 hub belongs, and recorded in the pair S138 in the table, as shown in the following table.

除上述步驟外,更可進一步判斷各USB3.0埠21a和USB2.0埠21b的提供商的ID(VID)相同才加以配對,或判斷各USB3.0埠21a和USB2.0埠21b的產品的ID(PID)相同才加以配對,或各USB3.0埠21a和USB2.0埠21b的VID與PID均要相同才加以配對。原則上USB裝置被主機掃描後,可以自USB封包中讀取其提供商的ID及產品ID;是以,增加此判斷即可更確保USB3.0及USB2.0的配對正確性。 In addition to the above steps, it is further determined that the IDs (VIDs) of the providers of each USB 3.0埠21a and USB2.0埠21b are the same, or the products of each USB3.0埠21a and USB2.0埠21b are judged. The IDs (PIDs) are the same only when paired, or the VID and PID of each USB3.0埠21a and USB2.0埠21b are the same. In principle, after the USB device is scanned by the host, the ID and product ID of the provider can be read from the USB packet; therefore, by adding this judgment, the correctness of the pairing of USB3.0 and USB2.0 can be ensured.

如應用於另一台USB3.0集線器再插設該USB3.0集線器的串接架構,以上述二種匹配關係的判斷方式遞迴找出新串接USB3.0集線器的配對USB3.0埠及USB2.0埠。 For example, if it is applied to another USB3.0 hub and then plugged into the serial connection architecture of the USB3.0 hub, it is determined by the above two kinds of matching relationship to find out the paired USB 3.0 port of the new serial USB3.0 hub and USB2.0埠.

由上述說明可知,不論主機使用如圖2A或圖5A的USB3.0控制器,當主機10作業系統掃描周邊裝置後,只要經過本發明的配對,均可將USB3.0集線器20經作業系統掃描後所映對出來的USB2.0集線器20b與USB3.0集線器20a配對,因此如圖1所示,當USB3.0裝置40插設至第一USB3.0插座21,而主機10掃描出圖2C、圖2D、圖5C或圖5D的結果,均可正確地顯示對應該USB3.0插座的對應號碼予操作人員,如圖6所示,如此縱使該主機10的作業系統誤認該USB3.0裝置為USB2.0裝置,該檢測系統60亦能顯示對應該USB3.0裝置20所插設之USB3.0插座21的正確號碼。 As can be seen from the above description, whether the host uses the USB 3.0 controller as shown in FIG. 2A or FIG. 5A, after the host 10 operating system scans the peripheral device, the USB 3.0 hub 20 can be scanned by the operating system as long as the pairing of the present invention is performed. The USB2.0 hub 20b that is reflected later is paired with the USB 3.0 hub 20a, so as shown in FIG. 1, when the USB 3.0 device 40 is plugged into the first USB 3.0 socket 21, the host 10 scans out FIG. 2C. The result of FIG. 2D, FIG. 5C or FIG. 5D can correctly display the corresponding number corresponding to the USB3.0 socket to the operator, as shown in FIG. 6, so that the operating system of the host 10 misidentifies the USB3.0 device. For the USB 2.0 device, the detection system 60 can also display the correct number corresponding to the USB 3.0 socket 21 that is plugged into the USB 3.0 device 20.

綜上所述,上述本發明產生的映對表係將因主機10插設有USB3.0集線器而自動標示出一組USB2.0集線器,與其真正USB3.0集線器加以映對,即將USB2.0集線器的數個USB2.0埠設定與USB3.0集線器的USB3.0埠的映對關係,如此當檢測系統60判斷作業系統將該USB2.0集線器的其中一USB2.0插座標示已連結時,即可依據其映對關係找到USB3.0埠,從而顯示對應該USB3.0埠的對應號碼予操作人員。因此,本發明即可解決操作人員插設至USB3.0集線器特定USB3.0插座,於檢測系統上顯示錯誤號碼的技術缺陷。 In summary, the above-mentioned map generated by the present invention will automatically indicate a set of USB 2.0 hubs due to the USB 3.0 hub inserted in the host 10, and the true USB 3.0 hub will be reflected, that is, USB 2.0 The USB 2.0 settings of the hub are mapped to the USB 3.0 port of the USB 3.0 hub, so that when the detection system 60 determines that the operating system has marked one of the USB 2.0 sockets of the USB 2.0 hub, You can find USB3.0埠 according to its mapping relationship, and display the corresponding number corresponding to USB3.0埠 to the operator. Therefore, the present invention can solve the technical defect that the operator inserts the USB 3.0 hub into the USB 3.0 socket and displays the wrong number on the detection system.

10‧‧‧主機 10‧‧‧Host

11‧‧‧USB3.0插座 11‧‧‧USB3.0 socket

20‧‧‧USB3.0集線器 20‧‧‧USB3.0 Hub

21‧‧‧USB3.0插座 21‧‧‧USB3.0 socket

40‧‧‧USB3.0裝置 40‧‧‧USB3.0 device

60‧‧‧檢測系統 60‧‧‧Detection system

Claims (6)

一種USB3.0集線器的映對USB埠方法,取得主機掃描後的USB埠樹狀關係;自所有USB埠中選取標示為USB集線器的USB埠;依據不同的USB傳輸協定,分群為所屬USB3.0集線器的USB3.0埠以及所屬USB2.0集線器的USB2.0埠;及將所有USB3.0集線器逐一與USB2.0集線器比對,若滿足匹配關係則產生一映對表;其中,該映對表中包含該USB3.0埠與該USB2.0埠之對應關係,係包括有一USB3.0集線器以顯示USB3.0埠之欄位、一USB2.0集線器以顯示USB2.0埠之欄位以及一對應顯示USB3.0插座之欄位;及藉此,該映對表使該USB3.0集線器能映對出相對應的USB埠。 A USB3.0 hub USB port method, which obtains the USB tree relationship after the host scans; selects the USB port labeled USB hub from all USB ports; according to different USB transmission protocols, the group belongs to the USB3.0. USB3.0埠 of the hub and USB2.0埠 of the USB2.0 hub; and compare all USB3.0 hubs to the USB2.0 hub one by one. If the matching relationship is satisfied, a pair of pairs is generated; The table includes the correspondence between the USB 3.0 port and the USB 2.0 port, including a USB 3.0 hub to display the USB 3.0 port field, a USB 2.0 hub to display the USB 2.0 port field, and A field corresponding to the display of the USB 3.0 socket; and thereby, the map allows the USB 3.0 hub to display the corresponding USB port. 如請求項1所述USB3.0集線器的映對USB埠方法,上述判斷滿足匹配關的步驟中係包含:判斷目前USB3.0集線器與任一USB2.0集線器是否同屬相同父節點;若屬相同父節點,則進一步判斷目前USB3.0集線器的USB3.0埠與USB2.0集線器的USB2.0埠數量是否相同;若為相同數量,則進一步判斷目前USB3.0集線器與USB2.0集線器所連接的USB3.0埠及USB2.0埠是否具有埠次序對應關係;及若具有埠次序對應關係,則分別將所屬於USB3.0集線器與USB2.0集線器的USB3.0埠和USB2.0埠分別配對,並 記錄於該映對表中。 In the USB 集线器 method of the USB 3.0 hub according to claim 1, the step of determining that the matching meets the matching includes: determining whether the current USB 3.0 hub and the same USB 2.0 hub belong to the same parent node; The same parent node, further judge whether the USB3.0 of the USB3.0 hub is the same as the USB2.0 of the USB2.0 hub; if it is the same number, further judge the current USB3.0 hub and USB2.0 hub Whether the connected USB3.0埠 and USB2.0埠 have the order correspondence; and if there is a corresponding order, the USB3.0 ports and USB2.0 belonging to the USB3.0 hub and the USB2.0 hub respectively. Paired separately, and Recorded in the map. 如請求項1所述USB3.0集線器的映對USB埠方法,上述判斷滿足匹配關的步驟中係包含:判斷目前USB3.0集線器與任一USB2.0集線器是否同屬相同父節點;若屬相同父節點,則進一步判斷目前USB3.0集線器的USB3.0埠與USB2.0集線器的USB2.0埠數量是否相同;若為不相同數量,則進一步判斷目前USB3.0集線器的USB3.0埠數量是否為奇數;若為奇數,則進一步判斷任一USB2.0集線器的父節點是否即為目前USB3.0集線器;若相同,則進一步比較USB3.0集線器和USB2.0集線器所連接的USB3.0埠及USB2.0埠是否具有埠次序對應關係;若具有埠次序對應關係,則除了標示為USB2.0集線器的USB3.0埠以外,其餘USB3.0埠再與USB2.0集線器的USB2.0埠分別配對,並記錄於該映對表中。 In the USB 集线器 method of the USB 3.0 hub according to claim 1, the step of determining that the matching meets the matching includes: determining whether the current USB 3.0 hub and the same USB 2.0 hub belong to the same parent node; The same parent node, further judge whether the USB3.0 port of the current USB3.0 hub is the same as the USB2.0 port of the USB2.0 hub; if it is not the same number, further judge the USB3.0 of the current USB3.0 hub. Whether the number is an odd number; if it is an odd number, further determine whether the parent node of any USB2.0 hub is the current USB3.0 hub; if the same, further compare the USB3 hub and the USB3 connected to the USB2.0 hub. 0埠 and USB2.0埠 have a corresponding order; if there is a corresponding order, except for the USB3.0 port labeled USB2.0 hub, the other USB3.0 ports are connected to the USB2.0 of the USB2.0 hub. 0埠 are paired separately and recorded in the map. 如請求項2或3所述USB3.0集線器的映對USB埠方法,上述於USB3.0集線器的USB3.0埠與USB2.0集線器的USB2.0埠分別配對之前,進一步判斷目前USB3.0集線器和USB2.0集線器的提供商的ID相同後,才加以配對。 The USB 3.0 method of the USB 3.0 hub described in claim 2 or 3, before the USB 3.0 port of the USB 3.0 hub and the USB 2.0 port of the USB 2.0 hub are separately paired, further determine the current USB 3.0. The hub and the USB 2.0 hub's provider have the same ID before they are paired. 如請求項2或3所述USB3.0集線器的映對USB埠方法,上述於USB3.0集線器的USB3.0埠與USB2.0集線器的USB2.0埠分別配對之前,進一步判斷目前USB3.0集線器和USB2.0集線器的產品ID相同後,才加以配對。 The USB 3.0 method of the USB 3.0 hub described in claim 2 or 3, before the USB 3.0 port of the USB 3.0 hub and the USB 2.0 port of the USB 2.0 hub are separately paired, further determine the current USB 3.0. The hub and USB 2.0 hub have the same product ID before they are paired. 如請求項2或3所述USB3.0集線器的映對USB埠方法,上述於USB3.0集線器的USB3.0埠與USB2.0集線器的USB2.0埠分別配對之前,進一步判斷目前USB3.0集線器和USB2.0集線器的提供商ID及產品ID均相同後,才加以配對。 The USB 3.0 method of the USB 3.0 hub described in claim 2 or 3, before the USB 3.0 port of the USB 3.0 hub and the USB 2.0 port of the USB 2.0 hub are separately paired, further determine the current USB 3.0. The hub and USB 2.0 hubs are paired only after the provider ID and product ID are the same.
TW102103683A 2013-01-31 2013-01-31 USB 3.0 bus mapping of the USB port method TWI512481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102103683A TWI512481B (en) 2013-01-31 2013-01-31 USB 3.0 bus mapping of the USB port method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102103683A TWI512481B (en) 2013-01-31 2013-01-31 USB 3.0 bus mapping of the USB port method

Publications (2)

Publication Number Publication Date
TW201430577A TW201430577A (en) 2014-08-01
TWI512481B true TWI512481B (en) 2015-12-11

Family

ID=51796887

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102103683A TWI512481B (en) 2013-01-31 2013-01-31 USB 3.0 bus mapping of the USB port method

Country Status (1)

Country Link
TW (1) TWI512481B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6701401B1 (en) * 2000-07-14 2004-03-02 Inventec Corporation Method for testing a USB port and the device for the same
TW201235838A (en) * 2011-02-18 2012-09-01 Via Tech Inc Testing system and method for USB hub
US20120290761A1 (en) * 2011-05-10 2012-11-15 Jui-Yen Chen USB Converter and Related Method
EP2533156A1 (en) * 2011-06-10 2012-12-12 Nxp B.V. Compliance mode detection from limited information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6701401B1 (en) * 2000-07-14 2004-03-02 Inventec Corporation Method for testing a USB port and the device for the same
TW201235838A (en) * 2011-02-18 2012-09-01 Via Tech Inc Testing system and method for USB hub
US20120290761A1 (en) * 2011-05-10 2012-11-15 Jui-Yen Chen USB Converter and Related Method
EP2533156A1 (en) * 2011-06-10 2012-12-12 Nxp B.V. Compliance mode detection from limited information

Also Published As

Publication number Publication date
TW201430577A (en) 2014-08-01

Similar Documents

Publication Publication Date Title
CN105302755A (en) PCIE board card with monitoring function and monitoring method therefor
CN103401728B (en) A kind of for detecting the method and apparatus that equipment room interface connects
TW201027351A (en) Signal converter of all-in-one USB connector
CN104063296A (en) Veneer in-place state detection method and device
CN111476582A (en) Defective product processing method and device and computer readable storage medium
CN105262638A (en) Method for simultaneously testing plurality of electronic products
US10802991B2 (en) Pluggable module identification system
CN105955859A (en) Verification circuit and method for USB configuration channel
TWI512481B (en) USB 3.0 bus mapping of the USB port method
CN106603332A (en) Method for simultaneously testing internet accesses of to-be-tested product
WO2020000657A1 (en) Method and apparatus for establishing operation and maintenance monitoring connection, terminal device, and medium
CN102902858B (en) The relevance mask method of fault components and parts in combination circuit plate test result
CN103984656B (en) The auto-addressing fixed end mouthful method of USB3.0 hubs
TWI759380B (en) Pin of connector slot of circuit board conduction detection system and method thereof
CN105372546A (en) Point location identification device of electric connectors
WO2019047392A1 (en) Differential line testing information determination method and device
CN102455972A (en) Programming device
US20180233844A1 (en) Interface, electronic device and test method
US20180062328A1 (en) Configured port-width indication for ganged-style connectors
CN106817631B (en) Automatic detection method for wireless communication module
US9742654B1 (en) Communication interface testing
JP2014130582A (en) Motherboard
CN209513951U (en) Servo drive system cable detecting device
TWI475380B (en) Inspection fixture and inspection system for expansion card, and inspection method thereof
US8676941B2 (en) Using wireless technology to direct complex wiring configurations