TWI685752B - Usb hub - Google Patents
Usb hub Download PDFInfo
- Publication number
- TWI685752B TWI685752B TW107136847A TW107136847A TWI685752B TW I685752 B TWI685752 B TW I685752B TW 107136847 A TW107136847 A TW 107136847A TW 107136847 A TW107136847 A TW 107136847A TW I685752 B TWI685752 B TW I685752B
- Authority
- TW
- Taiwan
- Prior art keywords
- host
- usb
- hub
- control unit
- module
- Prior art date
Links
- 238000011144 upstream manufacturing Methods 0.000 claims abstract description 26
- 230000005540 biological transmission Effects 0.000 claims description 20
- 238000006243 chemical reaction Methods 0.000 abstract description 8
- 230000008859 change Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 59
- 238000004804 winding Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 14
- 230000002093 peripheral effect Effects 0.000 description 10
- 238000013519 translation Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 8
- 238000012546 transfer Methods 0.000 description 4
- 239000002131 composite material Substances 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 150000001875 compounds Chemical class 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Images
Landscapes
- Information Transfer Systems (AREA)
Abstract
Description
本發明是有關於一種具有主機對主機功能的複合式(composite)萬用串列匯流排(USB)集線器(hub)。The invention relates to a composite universal serial bus (USB) hub with host-to-host function.
在過往,當移動裝置透過USB(Universal Serial Bus,萬用串列匯流排)來連接至主機(筆記型電腦、桌上型電腦或車載系統(Car system))時,移動裝置是當成裝置(device)(亦即從裝置)。In the past, when a mobile device was connected to a host (notebook computer, desktop computer, or car system) via a USB (Universal Serial Bus), the mobile device was regarded as a device (device ) (That is, from the device).
然而,目前移動裝置(如智慧型手機)日漸普及,且硬體功能強大,所以移動裝置有可能逐漸取代筆記型電腦、桌上型電腦或車載系統(Car system)等的角色。也就是說,移動裝置已從裝置轉變為主機(host)。However, mobile devices (such as smart phones) are becoming more and more popular and have powerful hardware functions. Therefore, mobile devices may gradually replace the roles of laptop computers, desktop computers, or car systems. That is, the mobile device has transitioned from a device to a host.
此外,由於USB 的應用非常龐大,具備USB主機功能的裝置(如手機/桌上型電腦/筆電等)可能需要連接USB集線器(Hub)來連結其他的周邊USB裝置。然而,以USB集線器的原始設計而言,USB集線器具有一個上游埠(upstream port)來連接至主機,且具有多個下游埠(downstream port)來連接其他周邊USB裝置。但USB集線器的下游埠只具備主機對裝置的功能,並不具備主機對主機的功能。但隨著不過移動裝置的快速發展,主機對主機的運作模式已成必然趨勢。In addition, due to the huge application of USB, devices with USB host functions (such as mobile phones/desktop computers/notebooks, etc.) may need to connect a USB hub (Hub) to connect other peripheral USB devices. However, in terms of the original design of the USB hub, the USB hub has an upstream port to connect to the host and multiple downstream ports to connect to other peripheral USB devices. However, the downstream port of the USB hub only has the host-to-device function, and does not have the host-to-host function. However, with the rapid development of mobile devices, the host-to-host operation mode has become an inevitable trend.
亦即,需要有一種新的USB集線器設計,能同時支援「主機對主機」與「主機對裝置」的運作模式。當處在主機對主機模式時,移動裝置連接至USB集線器設計的下游埠,但移動裝置仍是以主機的角色在運作。That is, there is a need for a new USB hub design that can support both "host-to-host" and "host-to-device" modes of operation. When in host-to-host mode, the mobile device is connected to the downstream port of the USB hub design, but the mobile device still operates as the host.
根據本案一例,提出一種萬用串列匯流排(USB)集線器,該USB集線器包括:一上游埠,耦接至一第一主機;一第一USB裝置控制單元,耦接於該上游埠,用以進行封包格式轉換;一先入先出電路,耦接至該第一USB裝置控制單元,用以暫存由該第一主機所傳來的資料;一第二USB裝置控制單元,耦接至該先入先出電路,用以進行封包格式轉換;以及複數個下游埠,耦接至該第二USB裝置控制單元。當該些下游埠之一任一下游埠耦接至一移動裝置時,如果該第一主機下令該移動裝置從一裝置角色切換至一主機角色,該移動裝置暫時斷開與該USB集線器之間的連接,而且,該第一主機下令該USB集線器以切換其內部繞線路徑,當該移動裝置切換至該主機角色之後,該第一主機仍扮演該主機角色,該第一USB裝置控制單元扮演該裝置角色,該移動裝置扮演該主機角色,該第二USB裝置控制單元扮演裝置角色,該第一主機與該第一USB裝置控制單元為成對,該移動裝置與該第二USB裝置控制單元為成對。According to an example of the present case, a universal serial bus (USB) hub is proposed. The USB hub includes: an upstream port coupled to a first host; and a first USB device control unit coupled to the upstream port for To perform packet format conversion; a first-in first-out circuit, coupled to the first USB device control unit, for temporarily storing data transmitted from the first host; and a second USB device control unit, coupled to the The first-in first-out circuit is used for packet format conversion; and a plurality of downstream ports are coupled to the second USB device control unit. When any one of the downstream ports is coupled to a mobile device, if the first host orders the mobile device to switch from a device role to a host role, the mobile device temporarily disconnects from the USB hub Connection, and the first host orders the USB hub to switch its internal winding path. After the mobile device switches to the host role, the first host still plays the role of the host, and the first USB device control unit plays the role Device role, the mobile device plays the role of the host, the second USB device control unit plays the role of the device, the first host and the first USB device control unit are paired, the mobile device and the second USB device control unit are In pairs.
根據本案另一例,提出一種萬用串列匯流排(USB)集線器,該USB集線器包括:一上游埠,耦接至一第一主機;一集線器功能模組,耦接至該上游埠,用以執行一集線器功能;一主機對主機功能模組,耦接至該上游埠,當連接至該USB集線器的一移動裝置執行一裝置角色時,透過該集線器功能模組的控制,該第一主機與該移動裝置之間的信號流經一旁通路徑或該主機對主機功能模組,該主機對主機功能模組實現一「主機對主機模式」;至少一控制模組,耦接至該上游埠,控制相連接的至少一裝置;一虛擬集線器功能單元,耦接至該集線器功能模組、該主機對主機功能模組與該至少一控制模組,該虛擬集線器功能單元支援一虛擬集線器功能且具有儲存USB位址和相關裝置之間關係的功能,該虛擬集線器功能單元存有複數個虛擬USB位址;以及複數個下游埠,耦接至該第二USB裝置控制單元。根據該第一主機所指定的一USB位址,該虛擬集線器功能單元指定該集線器功能模組、該主機對主機功能模組與該至少一控制模組的各別虛擬USB位址。According to another example of the present case, a universal serial bus (USB) hub is proposed. The USB hub includes: an upstream port coupled to a first host; and a hub function module coupled to the upstream port for Perform a hub function; a host-to-host functional module, coupled to the upstream port, when a mobile device connected to the USB hub performs a device role, through the control of the hub functional module, the first host and The signal between the mobile devices flows through a bypass path or the host-to-host functional module, the host-to-host functional module implements a "host-to-host mode"; at least one control module is coupled to the upstream port, Control at least one connected device; a virtual hub functional unit, coupled to the hub functional module, the host-to-host functional module and the at least one control module, the virtual hub functional unit supports a virtual hub function and has The function of storing the relationship between the USB address and related devices. The virtual hub function unit stores a plurality of virtual USB addresses; and a plurality of downstream ports, coupled to the second USB device control unit. According to a USB address specified by the first host, the virtual hub functional unit specifies the respective virtual USB addresses of the hub functional module, the host-to-host functional module and the at least one control module.
為了對本發明之上述及其他方面有更佳的瞭解,下文特舉實施例,並配合所附圖式詳細說明如下:In order to have a better understanding of the above and other aspects of the present invention, the following examples are specifically described in conjunction with the accompanying drawings as follows:
本說明書的技術用語係參照本技術領域之習慣用語,如本說明書對部分用語有加以說明或定義,該部分用語之解釋係以本說明書之說明或定義為準。本揭露之各個實施例分別具有一或多個技術特徵。在可能實施的前提下,本技術領域具有通常知識者可選擇性地實施任一實施例中部分或全部的技術特徵,或者選擇性地將這些實施例中部分或全部的技術特徵加以組合。The technical terms of this specification refer to the idioms in the technical field. If this specification describes or defines some terms, the interpretation of these terms shall be based on the description or definition of this specification. Each embodiment of the present disclosure has one or more technical features. Under the premise of possible implementation, those skilled in the art can selectively implement some or all of the technical features in any of the embodiments, or selectively combine some or all of the technical features in these embodiments.
現請參照第1圖,顯示根據本案一實施例的USB集線器的功能方塊示意圖。如第1圖所示,USB集線器130包括:上游埠131、複數個下游埠132、集線器功能模組141、主機對主機功能模組142、第一控制模組143、第二控制模組144與介面151與152。第一主機(例如是桌上型電腦、筆記型電腦、車載系統等)110透過USB介面連接至USB集線器130的上游埠131,而移動裝置(例如是智慧型手機等)120透過USB介面連接至USB集線器130的下游埠132。Referring now to FIG. 1, a functional block diagram of a USB hub according to an embodiment of the present case is shown. As shown in FIG. 1, the
集線器功能模組141用以執行一般的集線器功能(亦即,例如主機對裝置之間的信號傳輸)。The
當連接至USB集線器130的移動裝置(例如是智慧型手機等)120執行裝置角色時,透過集線器功能模組141的控制,第一主機110與移動裝置120之間的信號乃是流經旁通路徑BY而不流經主機對主機功能模組142。相反地,當連接至USB集線器130的移動裝置(例如是智慧型手機等)120從裝置角色切換至主機角色時,透過集線器功能模組141的控制,第一主機110與移動裝置120之間的信號乃是流經主機對主機功能模組142而不流經旁通路徑BY。也就是說,在本案實施例中,「主機對主機模式」可由主機對主機功能模組142實現,其細節將於底下說明之。When a mobile device (for example, a smart phone, etc.) 120 connected to the
第一控制模組143與第二控制模組144透過介面151與152而控制相連接的裝置。例如,第一控制模組143可以具有儲存裝置控制的功能,而第二控制模組144可以具音效裝置控制的功能。雖然第1圖顯示出2個控制模組143與144,但本案並不受限於此。在本案其他可能實施例中,集線器130可以包括更多數量的控制模組。The
現請參照第2圖,其顯示根據本案一實施例的USB集線器200的功能方塊圖。如第2圖所示,根據本案一實施例的USB集線器200包括:重複電路(repeater)210、傳輸轉譯電路(transaction translator)212、繞線邏輯電路(routing logic)214、狀態機器(state machine)216、USB裝置控制單元218、虛擬集線器功能單元220、FIFO(first in first output,先入先出)電路222、USB裝置控制單元224、儲存控制單元226、音效控制單元228、上游埠242,複數個下游埠244_1-244_N(N為正整數),以及介面246_1與246_2。Refer now to FIG. 2, which shows a functional block diagram of the
重複電路210用以複製由第一主機所傳來的信號/資料,並傳送給傳輸轉譯電路212或繞線邏輯電路214。重複電路210的架構與其細節在此可不多做說明。The repeating
傳輸轉譯電路212控制掌握高速與低速/全速的資料交易,實現上游埠與下游埠不同速時的資料封包轉換,以及執行其他的功能以確保匯流排上的不同速度資料可以被正確傳送。當進行傳輸轉譯時,由第一主機所傳來的封包流經重複電路210與傳輸轉譯電路212,而到達繞線邏輯電路214;當無需進行傳輸轉譯時,由第一主機所傳來的封包流經重複電路210,而到達繞線邏輯電路214。傳輸轉譯電路212的架構與其細節在此可不多做說明。The transmission and
繞線邏輯電路214用以負責資料的繞線,以讓資料在上游埠242與下游埠244_1-244_N之間傳輸。繞線邏輯電路214的架構與其細節在此可不多做說明。The
狀態機器216可解碼由第一主機所傳來信號/資料,來決定該信號/資料該傳給哪個下游埠。狀態機器216可由硬體加韌體所組成。狀態機器216的架構與其細節在此可不多做說明。The
USB裝置控制單元218可由硬體或韌體所執行。當由第一主機所傳來的封包要送至不同USB類型的USB周邊裝置時,USB裝置控制單元218對該封包進行格式轉換。同樣地,當由不同USB類型的USB周邊裝置所傳來的封包要送至第一主機時,USB裝置控制單元218對該封包進行格式轉換。USB裝置控制單元218的架構與其細節在此可不多做說明。The USB
虛擬集線器功能單元220用以讓USB集線器能支援複合裝置(compound device)及/或綜合裝置(composite device),其細節將於底下說明之。另外,在本案實施例中,虛擬集線器功能單元220支援虛擬集線器(Virtual hub)功能且具有指定虛擬USB位址的功能。虛擬集線器功能單元220內存有複數個虛擬USB位址。狀態機器216、USB裝置控制單元218與虛擬集線器功能單元220可組成集線器控制單元(hub control unit)。The virtual
FIFO(先入先出)電路222介於USB裝置控制單元218與224之間(或者是介於USB裝置控制單元218與儲存控制單元226之間,或者是介於USB裝置控制單元218與音效控制單元228之間),用以暫存由第一主機及/或USB周邊裝置及/或移動裝置所傳來的資料,並傳往第一主機及/或USB周邊裝置及/或移動裝置。其細節將於底下參考第3圖說明之。The FIFO (First In First Out)
USB裝置控制單元224可由硬體或韌體所執行。USB裝置控制單元224具有跟USB裝置控制單元218相同或相似的功能。此外,於本案實施例中,當移動裝置120從裝置角色切換至主機角色時,USB裝置控制單元218與224皆扮演裝置角色(其中,第一主機110與USB裝置控制單元218是一對的,而移動裝置與USB裝置控制單元224是一對的),以實現本案實施例的主機對主機模式。細言之,假設移動裝置120連接到下游埠244_1。當移動裝置120扮演裝置角色時,第一主機110與移動裝置120之間的信號路徑為:上游埠242、重複電路210(及/或傳輸轉譯電路212)、繞線邏輯電路214與下游埠244_1。The USB
當第一主機110下令讓移動裝置120從裝置角色切換至主機角色時,移動裝置120暫時斷開與集線器200之間的連接,而且,第一主機110亦下命令給USB集線器200。回應於此命令,繞線邏輯電路214切換其內部繞線路徑。當移動裝置120切換至主機角色之後,第一主機110與移動裝置120之間的信號路徑為:上游埠242、重複電路210、USB裝置控制單元218、先入先出電路222、USB裝置控制單元224、繞線邏輯電路214與下游埠244_1。也就是說,當移動裝置120切換至主機角色之後,第一主機110仍扮演主機角色,USB裝置控制單元218仍扮演裝置角色;另一方面,移動裝置120扮演主機角色,USB裝置控制單元224仍扮演裝置角色。藉此,本案實施例可以達成主機對主機模式。When the
儲存控制單元226可以是記憶卡的讀卡機控制器,用於控制外接至USB集線器200的介面246_1的記憶卡。或者,儲存控制單元226可以是外接硬碟控制器,用於控制外接至USB集線器200的介面246_1的硬碟機。當然,本案並不受限於此。儲存控制單元226的架構與其細節在此可不多做說明。The
音效控制單元228可用於控制外接至USB集線器200的介面246_2的周邊音效裝置(如喇叭或麥克風等)。音效控制單元228的架構與其細節在此可不多做說明。The
上游埠242可連接至第一主機(如第1圖之第一主機110)。該些下游埠244_1-244_N可連接至USB周邊裝置(例如但不受限於,USB隨身碟、USB外接硬碟等)。此外,該些下游埠244_1-244_N之任一可以連接至移動裝置120。The
現請再次參考第1圖與第2圖。在第1圖中,集線器功能模組141例如由重複電路210、傳輸轉譯電路212與繞線邏輯電路214所實現。主機對主機功能模組142例如由 USB裝置控制單元218、先入先出電路222與USB裝置控制單元224所實現。第一控制模組143例如由USB裝置控制單元218、先入先出電路222與儲存控制單元226所實現。第二控制模組144例如由USB裝置控制單元218、先入先出電路222與音效控制單元228所實現。也就是說,在本案實施例中,集線器功能模組141、主機對主機功能模組142、第一控制模組143與第二控制模組144可彼此共享某些單元。Now please refer to Figure 1 and Figure 2 again. In FIG. 1, the hub
USB裝置控制單元218、FIFO(先入先出)電路222與USB裝置控制單元224可執行USB集線器200的主機對主機模式或者是內建資料緩衝。本案實施例如何實現「主機對主機模式」已於上面說明之。The USB
在本案實施例中,當要將移動裝置的角色從裝置切換成主機時,第一主機送出自定義指令(Vendor command)給USB集線器200,以改變USB集線器200的內部信號路徑(如上述般),來實現「主機對主機功能」,但不影響其他正在傳輸中的下游埠244_1-244_N及/或上游埠242。In the embodiment of the present invention, when the role of the mobile device is to be switched from the device to the host, the first host sends a custom command (Vendor command) to the
或者是,在本案實施例的USB集線器200中,USB裝置控制單元224可以自動判定連結到任一下游埠244_1-244_N的移動裝置的USB裝置描述元(USB Device Descriptor)(如果該USB裝置描述元指示該移動裝置可以扮演主機角色)來決定是否需要從主機對裝置傳輸模式切換成主機對主機傳輸模式(改變USB集線器200的內部信號路徑,如上述般)並啟動裝置模式轉換,但不影響其他正在傳輸中的下游埠244_1-244_N及/或上游埠242。Or, in the
舉例而言,假設下游埠244_1連接至移動裝置,而下游埠244_2連接至USB隨身碟。當移動裝置仍當成裝置角色時,在繞線邏輯電路214內(請參考第2圖),移動裝置的信號走路徑P1,而USB隨身碟的信號走路徑P2。當移動裝置切換成主機角色時,在繞線邏輯電路214內(請參考第2圖),移動裝置的信號改走路徑P3,而USB隨身碟的信號仍走路徑P2。也就是說,在本案實施例中,當第一主機下令將移動裝置的角色從裝置角色切換成主機角色時,不會影響到其他下游埠的資料傳輸。For example, assume that the downstream port 244_1 is connected to a mobile device and the downstream port 244_2 is connected to a USB flash drive. When the mobile device still assumes the role of the device, in the winding logic circuit 214 (please refer to FIG. 2), the signal path of the mobile device is P1, and the signal path of the USB flash drive is P2. When the mobile device switches to the role of host, in the winding logic circuit 214 (please refer to FIG. 2), the signal of the mobile device changes to the path P3, while the signal of the USB flash drive still follows the path P2. That is to say, in the embodiment of the present case, when the first host orders to switch the role of the mobile device from the device role to the host role, it will not affect the data transmission of other downstream ports.
第3圖顯示根據本案實施例的FIFO電路222的功能方塊圖。如第3圖所示,FIFO電路222包括:FIFO 302與304,多工器306與308、DMA直接記憶體存取(Direct Memory Access)電路310與多工器312。FIFO 302耦接於USB裝置控制單元218與224之間。另外,FIFO 304透過多工器306與308而分別耦接至USB裝置控制單元218與224。FIG. 3 shows a functional block diagram of the
於本案實施例中,FIFO電路222支援資料快速傳輸路徑,能讓資料可以在USB裝置控制單元218、FIFO 302、多工器312與USB裝置控制單元224(及/或儲存控制單元226及/或音效控制單元228)之間快速傳輸,經由這條路徑的資料不會被中央處理器322修改。In the embodiment of the present invention, the
另外,於本案實施例中,如果資料可能需要由中央處理器322進行處理後,才能傳給另一端,則資料傳輸流程如後。底下以資料從第一主機傳往移動裝置為例做說明,習知此技者當可依而推論出知資料從移動裝置傳往第一主機的流程。第一主機所送出的資料透過USB裝置控制單元218與多工器306而寫入到FIFO 304。接著,DMA電路310將資料從FIFO 304與多工器308而暫存至第一主機110的緩衝器320。當第一主機110的中央處理器(CPU)322將緩衝器320內的資料處理/修改後,中央處理器(CPU)322告知DMA電路310。由DMA電路310將修改後/處理後的資料從緩衝器320經過多工器306而寫入至FIFO 304,再由FIFO 304透過多工器308,並透過多工器312來將FIFO304內的資料送給USB裝置控制單元224以傳給移動裝置,或者送給儲存控制單元226以傳給儲存裝置(未示出),或者送給音效控制單元228以傳給音效裝置(未示出)。In addition, in the embodiment of the present invention, if the data may need to be processed by the
或者是,在本案實施例中,如果CPU 322想要傳資料給移動裝置或儲存裝置或音效裝置的話,CPU322可以將資料先存在緩衝器320裡,然後透過DMA電路310、多工器306而暫存至FIFO 304,之後,透過多工器312來將FIFO304內的資料送給USB裝置控制單元224以傳給移動裝置,或者送給儲存控制單元226以傳給儲存裝置(未示出),或者送給音效控制單元228以傳給音效裝置(未示出)。Or, in the embodiment of the present invention, if the
或者,在本案實施例中,資料由第一主機透過USB裝置控制單元218與多工器306寫入到FIFO 304,接著,DMA電路310將資料從多工器308存進到緩衝器320,等到CPU 322修改完/處理完資料後,CPU 322告知DMA電路310,DMA電路310將修改後/處理後的資料從緩衝器320讀出,並經過多工器306而寫入至FIFO 304,但不傳給USB裝置控制單元224、儲存控制單元226與音效控制單元228。該修改後/處理後資料存在FIFO 304中,可以等日後有需要才讀出。Or, in this embodiment, the data is written into the
在本案實施例中,移動裝置(如智慧型手機)可當主機也可當裝置。In the embodiment of the present invention, a mobile device (such as a smart phone) can be used as a host or a device.
現請參考第4A圖至第4C圖,其顯示根據本案實施例的應用端示意圖。在第4A圖應用端示意中,對於第一主機110而言,經由USB集線器200的回報,第一主機110可以得知「集線器功能模組141、主機對主機功能模組142、第一控制模組143與第二控制模組144屬於同一層,亦即,屬於「同一綜合裝置(Composite device)」。在實現第4A圖應用端示意時,第一主機會指定USB位址(在此例如但不受限於,USB位址為5)給此一綜合裝置(此一綜合裝置包含集線器功能模組141、主機對主機功能模組142、第一控制模組143與第二控制模組144)。亦即,集線器功能模組141、主機對主機功能模組142、第一控制模組143與第二控制模組144共用USB位址5。Now please refer to FIGS. 4A to 4C, which show schematic diagrams of the application side according to the embodiment of the present application. In the application diagram of FIG. 4A, for the
當USB集線器200接收到由第一主機所傳來的指令/資料時,集線器功能模組141檢查該指令/資料的USB位址中的「介面(interface)欄位」,以決定該指令/資料要傳送至集線器功能模組141、主機對主機功能模組142、第一控制模組143與第二控制模組144的哪一者。When the
相似地,在第4B圖應用端示意中,對於第一主機110而言,集線器功能模組141、第一控制模組143與第二控制模組144屬於同一層,亦即,屬於同一綜合裝置。在邏輯上而言,主機對主機功能模組142則被第一主機110視為接到集線器功能模組141的下游埠。Similarly, in the application diagram of FIG. 4B, for the
在實現第4B圖應用端示意時,第一主機會指定USB位址(在此例如但不受限於,USB位址為5)給上層綜合裝置,該上層綜合裝置包含集線器功能模組141、第一控制模組143與第二控制模組144。亦即,集線器功能模組141、第一控制模組143與第二控制模組144共用USB位址5。 而且,第一主機會指定USB位址(在此例如但不受限於,USB位址為6)給主機對主機功能模組142。USB集線器200的虛擬集線器功能單元220可儲存USB位址5-6、和其相對應裝置之間的關係。When implementing the application diagram shown in FIG. 4B, the first host will assign a USB address (here, but not limited to, the USB address is 5) to the upper-layer integrated device, which includes the
當USB集線器200接收到由第一主機所傳來的指令/資料時,USB集線器200會檢查該指令/資料的USB位址。如果該指令/資料的USB位址是6,則USB集線器200將該指令/資料傳送至主機對主機功能模組142,如果該指令/資料的USB位址是5,則USB集線器200不將該指令/資料傳送至下一層,而是傳給上層綜合裝置。另外,如果該指令/資料的USB位址是5,USB集線器200會檢查該指令/資料中的「介面(interface)欄位」,以決定該指令/資料要傳送至集線器功能模組141、第一控制模組143與第二控制模組144之一。When the
相似地,在第4C圖應用端示意中,對於第一主機110而言,集線器功能模組141自己一層,而主機對主機功能模組142、第一控制模組143與第二控制模組144則屬於同一層(同一綜合裝置)。在邏輯上,第一主機110將此綜合裝置視為接到集線器功能模組141的下游埠。在實現第4C圖應用端示意時,第一主機會指定USB位址(在此例如但不受限於,USB位址為5)給集線器功能模組141。 而且,第一主機會指定USB位址(在此例如但不受限於,USB位址為6)給下層綜合裝置,此綜合裝置包含主機對主機功能模組142、第一控制模組143與第二控制模組144。USB集線器200的虛擬集線器功能單元220會儲存USB位址5-6,和其相對應裝置之間的關係。Similarly, in the application diagram of FIG. 4C, for the
當USB集線器200接收到由第一主機所傳來的指令/資料時,USB集線器200會檢查該指令/資料的USB位址。如果該指令/資料的USB位址是5,則集線器功能模組141接收該指令/資料。另外,如果該指令/資料的USB位址是6,USB集線器200會檢查該指令中的「介面欄位」,以決定該指令/資料要送給主機對主機功能模組142、第一控制模組143與第二控制模組144的哪一者。When the
亦即,在應用情況下,於移動裝置從USB裝置模式切換成USB主機模式之後,移動裝置可以支援第一主機,而第一主機依然維持USB主機模式。如此一來,第一主機可以透過USB集線器200的其他下游埠連結其他USB周邊裝置,以進行第一主機與其他USB周邊裝置之間的傳輸、應用等。移動裝置支援第一主機是指,例如第一主機為車載系統時,移動裝置可以將畫面顯示於第一主機的螢幕上,並讓使用者透過在第一主機上操作,而來操作移動裝置,就如同使用者在直接操作移動裝置般。例如,使用者可以在第一主機上操作,以移動裝置所提供的路線指引、撥打電話、收發訊息和聆聽音樂等功能。That is, in an application case, after the mobile device is switched from the USB device mode to the USB host mode, the mobile device can support the first host, and the first host still maintains the USB host mode. In this way, the first host can connect to other USB peripheral devices through other downstream ports of the
綜上所述,在本案實施例中,根據第一主機所送出的自定義指令,USB集線器200可以切換內部的信號路徑,以支援主機對主機功能,且此內部信號路徑切換不影響其他傳輸中的信號路徑。In summary, in the embodiment of the present invention, according to the custom command sent by the first host, the
此外,如上述般,透過USB集線器200的虛擬USB集線功能(儲存USB位址),可以支援多種應用端情況(如第4A圖至第4C圖),增加使用上的彈性。In addition, as described above, through the virtual USB hub function (storage of USB addresses) of the
綜上所述,雖然本發明已以實施例揭露如上,然其並非用以限定本發明。本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾。因此,本發明之保護範圍當視後附之申請專利範圍所界定者為準。In summary, although the present invention has been disclosed as above with examples, it is not intended to limit the present invention. Those with ordinary knowledge in the technical field to which the present invention belongs can make various modifications and retouching without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be deemed as defined by the scope of the attached patent application.
110‧‧‧第一主機120‧‧‧移動裝置130‧‧‧USB集線器131‧‧‧上游埠132-134‧‧‧下游埠141‧‧‧集線器功能模組142‧‧‧主機對主機功能模組143‧‧‧第一控制模組144‧‧‧第二控制模組151與152‧‧‧介面BY‧‧‧旁通路徑200‧‧‧USB集線器210‧‧‧重複電路212‧‧‧傳輸轉譯電路214‧‧‧繞線邏輯電路216‧‧‧狀態機器218、224‧‧‧USB裝置控制單元220‧‧‧虛擬集線器功能單元222‧‧‧先入先出電路226‧‧‧儲存控制單元228‧‧‧音效控制單元242‧‧‧上游埠244_1-244_N‧‧‧下游埠246_1-246_2‧‧‧介面P1、P2、P3‧‧‧路徑302與304‧‧‧FIFO306、308、312‧‧‧多工器310‧‧‧直接記憶體存取(DMA)電路320‧‧‧緩衝器322‧‧‧中央處理器(CPU)110‧‧‧
第1圖顯示根據本案一實施例的USB集線器的功能方塊示意圖。 第2圖顯示根據本案一實施例的USB集線器的功能方塊圖。 第3圖顯示根據本案實施例的FIFO電路的功能方塊圖。 第4A圖至第4C圖顯示根據本案實施例的應用端示意圖。FIG. 1 shows a functional block diagram of a USB hub according to an embodiment of the present case. Figure 2 shows a functional block diagram of a USB hub according to an embodiment of the present case. Fig. 3 shows a functional block diagram of the FIFO circuit according to the embodiment of the present invention. 4A to 4C show schematic diagrams of the application side according to the embodiment of the present application.
200‧‧‧USB集線器 200‧‧‧USB hub
210‧‧‧重複電路 210‧‧‧Repeat circuit
212‧‧‧傳輸轉譯電路 212‧‧‧ Transmission and Translation Circuit
214‧‧‧繞線邏輯電路 214‧‧‧ winding logic circuit
216‧‧‧狀態機器 216‧‧‧ State Machine
218、224‧‧‧USB裝置控制單元 218, 224‧‧‧USB device control unit
220‧‧‧虛擬集線器功能單元 220‧‧‧ Virtual Hub Functional Unit
222‧‧‧先入先出電路 222‧‧‧First in first out circuit
226‧‧‧儲存控制單元 226‧‧‧Storage control unit
228‧‧‧音效控制單元 228‧‧‧Audio control unit
242‧‧‧上游埠 242‧‧‧Upstream port
244_1-244_N‧‧‧下游埠 244_1-244_N‧‧‧ downstream port
246_1、246_2‧‧‧介面 246_1, 246_2‧‧‧‧Interface
P1、P2、P3‧‧‧路徑 P1, P2, P3‧‧‧path
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107136847A TWI685752B (en) | 2017-09-20 | 2017-09-20 | Usb hub |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107136847A TWI685752B (en) | 2017-09-20 | 2017-09-20 | Usb hub |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201915767A TW201915767A (en) | 2019-04-16 |
TWI685752B true TWI685752B (en) | 2020-02-21 |
Family
ID=66992233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107136847A TWI685752B (en) | 2017-09-20 | 2017-09-20 | Usb hub |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI685752B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI760905B (en) * | 2020-10-28 | 2022-04-11 | 英業達股份有限公司 | Processing device and method with serial communication interface processing function |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI749658B (en) * | 2020-07-22 | 2021-12-11 | 旺玖科技股份有限公司 | Usb hub device having functionality of self firmware updating and host system having the same |
CN113971146B (en) * | 2020-07-22 | 2024-05-28 | 旺玖科技股份有限公司 | USB hub device with automatic firmware update function and host system with the USB hub device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080288708A1 (en) * | 2007-05-14 | 2008-11-20 | Aten International Co., Ltd. | Multiple virtual usb devices with virtual hub implemented using one usb device controller |
US20100122010A1 (en) * | 2008-11-11 | 2010-05-13 | Aten International Co., Ltd. | Usb sharing switch with automatic switching capabilities |
TW201201022A (en) * | 2010-06-23 | 2012-01-01 | Kye Systems Corp | Universal serial bus hub |
US8850082B2 (en) * | 2010-08-30 | 2014-09-30 | Qualcomm Incorporated | Virtual USB compound device enumeration |
TWI497306B (en) * | 2012-11-29 | 2015-08-21 | Faraday Tech Corp | Usb super speed hub and associated traffic managing method |
TW201610690A (en) * | 2014-09-12 | 2016-03-16 | 亞信電子股份有限公司 | Electronic device providing real-time switching and sharing of USB electronic apparatuses among hosts |
TW201631487A (en) * | 2015-02-26 | 2016-09-01 | 威盛電子股份有限公司 | Hub, operation system and control method thereof |
-
2017
- 2017-09-20 TW TW107136847A patent/TWI685752B/en active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080288708A1 (en) * | 2007-05-14 | 2008-11-20 | Aten International Co., Ltd. | Multiple virtual usb devices with virtual hub implemented using one usb device controller |
US20100122010A1 (en) * | 2008-11-11 | 2010-05-13 | Aten International Co., Ltd. | Usb sharing switch with automatic switching capabilities |
TW201201022A (en) * | 2010-06-23 | 2012-01-01 | Kye Systems Corp | Universal serial bus hub |
US8850082B2 (en) * | 2010-08-30 | 2014-09-30 | Qualcomm Incorporated | Virtual USB compound device enumeration |
TWI497306B (en) * | 2012-11-29 | 2015-08-21 | Faraday Tech Corp | Usb super speed hub and associated traffic managing method |
TW201610690A (en) * | 2014-09-12 | 2016-03-16 | 亞信電子股份有限公司 | Electronic device providing real-time switching and sharing of USB electronic apparatuses among hosts |
TW201631487A (en) * | 2015-02-26 | 2016-09-01 | 威盛電子股份有限公司 | Hub, operation system and control method thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI760905B (en) * | 2020-10-28 | 2022-04-11 | 英業達股份有限公司 | Processing device and method with serial communication interface processing function |
Also Published As
Publication number | Publication date |
---|---|
TW201915767A (en) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111597132B (en) | universal serial bus hub | |
US20230297531A1 (en) | Flexible mobile device connectivity to automotive systems with usb hubs | |
CN113434446B (en) | Flexible bus protocol negotiation and enable sequence | |
CN107015928B (en) | system and method for switching multiple interfaces and system for switching buses | |
CN112631959B (en) | High bandwidth link layer for coherence messages | |
JP5903801B2 (en) | Communication apparatus and ID setting method | |
TWI685752B (en) | Usb hub | |
US8250258B2 (en) | Hybrid serial peripheral interface data transmission architecture and method of the same | |
US9843436B2 (en) | Flexible interconnect architecture | |
KR20120131155A (en) | Memory management system offering direct as well as managed access to local storage memory | |
JP2010218196A (en) | Data transfer controller, and electronic equipment | |
CN103176925A (en) | Data flow analysis management device, system and method of interface device | |
TWI784165B (en) | Usb host-to-usb host chip | |
JP2006244258A (en) | Computer system using serial connect bus and method of connecting multiple CPU units by serial connect bus | |
CN107992437A (en) | A kind of hard disk backboard connection method, system and connection cables for supporting pattern of double controlling | |
CN101937410A (en) | Control apparatus and method thereof | |
TW201405315A (en) | Data routing system supporting dual master apparatuses | |
KR20160081852A (en) | Electronic system with storage control mechanism and method of operation thereof | |
JP2013065079A (en) | Relay device and communication system | |
TWI852755B (en) | Hot plugging control system | |
JP2000231538A (en) | System for bridging system bus with plural pci buses | |
CN103049214A (en) | Disk array card and disk array system with expansion function | |
US11537539B2 (en) | Acceleration of data between a network and local I/O in a NUMA system | |
JP2009009250A (en) | Communication system, communication equipment and data transfer method to be used for the same | |
CN206115431U (en) | shared storage |