TWI691847B - The resource switch system and method of the usb hub - Google Patents

The resource switch system and method of the usb hub Download PDF

Info

Publication number
TWI691847B
TWI691847B TW108105228A TW108105228A TWI691847B TW I691847 B TWI691847 B TW I691847B TW 108105228 A TW108105228 A TW 108105228A TW 108105228 A TW108105228 A TW 108105228A TW I691847 B TWI691847 B TW I691847B
Authority
TW
Taiwan
Prior art keywords
transmission channel
usb
interface
device interface
hub
Prior art date
Application number
TW108105228A
Other languages
Chinese (zh)
Other versions
TW202030616A (en
Inventor
黃沛峰
Original Assignee
三泰科技股份有限公司
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 三泰科技股份有限公司 filed Critical 三泰科技股份有限公司
Priority to TW108105228A priority Critical patent/TWI691847B/en
Application granted granted Critical
Publication of TWI691847B publication Critical patent/TWI691847B/en
Publication of TW202030616A publication Critical patent/TW202030616A/en

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The resource switch system and method of the USB hub comprise of a source, a USB device and USB hub. The source include a first channel, a second channel and a third channel. The USB hub include a switch circuit, a switch component, a first port, a second port and a control chip. The switch circuit couple to the first port, the second port and the control chip. The first channel connect to the the first port. The third channel connect to the second port. The switch circuit selects the the path of the second channel for connecting to the the first port or the second port. The first port and the second port connect to the GPIO of the control chip. The control chip identifies the kinds of the USB device via the GPIO. The second channel connect to the first port or the second port according to the USB device.

Description

USB集線器的資源切換系統與方法 Resource switching system and method of USB hub

一種周邊硬體資源的切換系統與方法,特別有關USB集線器的資源切換系統與方法。 A system and method for switching peripheral hardware resources, in particular to a resource switching system and method for a USB hub.

隨著計算機運算能力的提升,使得周邊裝置的傳輸能力也需要加強。因此通用序列匯流排(Universal Serial Bus,簡稱USB)從第一代協議的1.5Mbps加強至第三代協議的5Gbps。USB設備也從儲存設備、周邊裝置拓展至影像輸出等功能。 As the computing power of computers improves, the transmission capabilities of peripheral devices also need to be strengthened. Therefore, the universal serial bus (Universal Serial Bus, USB for short) has been strengthened from 1.5Mbps of the first generation protocol to 5Gbps of the third generation protocol. USB devices have also expanded from storage devices and peripherals to video output and other functions.

由於第三代USB協議的影像輸出機制,使得單一擴展塢(dock)可以提供USB接口與影像接口,例如顯示埠(DisplayPort)、高畫質多媒體介面(High Definition Multimedia Interface,簡稱HDMI)或影片圖形陣列(Video Graphics Array,簡稱VGA)。在傳輸顯示埠的高解析度影像需要高頻寬的通道,因此習知技術的擴展塢會提供影像資料與數據資料的通道切換的機制。在台灣發明專利第I6515719案(自動切換裝置及自動切換方法)中述及以傳輸的影像解析度流量作為傳輸通道數量與切換。在I6515719案中當解析度變換時擴展塢的USB傳輸通道的數量會提高或降低,藉以滿足傳輸影像資料的同時也符合數據資料的傳輸。舉例來說,在傳輸高解析度的情況中,擴展塢會從第三代USB通訊協議切換為第二代USB通訊協議,並將空出來的傳輸通道提供給影像資料進行傳輸。 Due to the video output mechanism of the third generation USB protocol, a single dock can provide a USB interface and a video interface, such as a DisplayPort, High Definition Multimedia Interface (HDMI) or video graphics Array (Video Graphics Array, VGA for short). The transmission of high-resolution images in the display port requires a high-frequency channel. Therefore, the docking station of the conventional technology will provide a mechanism for switching between image data and data data. In Taiwan Patent No. I6515719 (Automatic Switching Device and Automatic Switching Method), it is mentioned that the transmitted image resolution flow is used as the number of transmission channels and switching. In the case of I6515719, when the resolution is changed, the number of USB transmission channels of the docking station will increase or decrease, so as to satisfy the transmission of image data and also meet the transmission of data data. For example, in the case of high-resolution transmission, the docking station will switch from the third-generation USB communication protocol to the second-generation USB communication protocol, and provide the free transmission channel to the image data for transmission.

但這樣的切換機制會產生兩項缺點,第一缺點是解析度的識別是由主機端(host)所決定。由於擴展塢本身不具備資料流量的識別機制。因此只能藉由主機端進行判斷,而為實現此一目標則需要在主機端有 對應的代理程序。由代理程序判斷影像流量後,代理程序在驅動擴展塢的切換傳輸通道的處理。第二點則是影像解析度的切換會造成數據資料的傳輸錯誤。特別是數據資料在傳輸的過程中,如果此時擴展塢切換傳輸通道數量則會造成數據資料的寫入錯誤。這是因為由四條傳輸通道降為兩條傳輸通道會使得傳輸中的數據資料遺失,因而導致寫入錯誤。而且影像解析度發生頻繁的切換時,則數據資料的寫入也會連帶被影響。 However, such a switching mechanism will have two shortcomings. The first shortcoming is that the resolution is determined by the host. Because the dock itself does not have a data flow identification mechanism. Therefore, it can only be judged by the host, and to achieve this goal, you need to have The corresponding agent. After the agent program judges the image traffic, the agent program switches the transmission channel of the driving dock. The second point is that the switching of image resolution will cause transmission errors of data. Especially in the process of transferring data, if the dock changes the number of transmission channels at this time, it will cause errors in writing the data. This is because the reduction from four transmission channels to two transmission channels will cause the loss of data in the transmission, resulting in write errors. Moreover, when the image resolution frequently switches, the writing of data will also be affected.

本發明提供一種USB集線器的資源切換系統,其特徵在於切換來源端的資料傳輸通道並用於資料的加速傳輸。 The invention provides a resource switching system of a USB hub, which is characterized in that the data transmission channel at the source end is switched and used for accelerated transmission of data.

本發明的USB集線器的資源切換系統包括來源端、USB設備與集線器。來源端具有第二通訊介面,第二通訊介面具有第一傳輸通道、第二傳輸通道與第三傳輸通道;集線器電性連接於來源端與USB設備,集線器具有切換電路、切換開關、第一通訊介面、第一設備接口、第二設備接口與控制晶片,切換電路耦接於第一通訊介面、第一設備接口、第二設備接口與控制晶片,切換開關連接於控制晶片,第一通訊介面連接於第二通訊介面,切換電路用於選擇第二傳輸通道的路徑,第一傳輸通道連接於第一設備接口,第三傳輸通道連接於第二設備接口,第一設備接口與第二設備接口電性連接於至控制晶片的GPIO腳位,第二設備接口連接USB設備,控制晶片透過GPIO腳位識別USB設備的通訊種類,並決定第二傳輸通道連接至第一設備接口或第二設備接口。 The resource switching system of the USB hub of the present invention includes a source end, a USB device and a hub. The source end has a second communication interface, and the second communication interface has a first transmission channel, a second transmission channel, and a third transmission channel; the hub is electrically connected to the source end and the USB device, and the hub has a switching circuit, a switching switch, and a first communication The interface, the first device interface, the second device interface and the control chip, the switching circuit is coupled to the first communication interface, the first device interface, the second device interface and the control chip, the switch is connected to the control chip, and the first communication interface is connected In the second communication interface, the switching circuit is used to select the path of the second transmission channel. The first transmission channel is connected to the first device interface, the third transmission channel is connected to the second device interface, and the first device interface is electrically connected to the second device interface. It is connected to the GPIO pin of the control chip, the second device interface is connected to the USB device, the control chip recognizes the communication type of the USB device through the GPIO pin, and determines that the second transmission channel is connected to the first device interface or the second device interface.

本發明另提供一種USB集線器,其特徵在於根據所連接的USB設備進而決定傳輸通道的數量。本發明的USB集線器包括第一通訊介面、切換開關、第一設備接口、第二設備接口、切換電路與控制晶片。第一通訊介面連接於來源端,第一通訊介面具有第一傳輸通道、第二傳輸通道與第三傳輸通道;觸發切換開關時生成切換命令;第一設備接口電性連接於第一通訊介面與第一傳輸通道;第二設備接口電性連接於第一通訊介面與第三傳輸通道,第二設備接口具有複數資料腳位,第二設備接口用於連接USB設備;切換電路連接於第一通訊介面,切換電路用於選擇第二傳輸通道的連接路徑;控制晶片包括GPIO腳位,控制晶片電性連接於 切換電路,控制晶片根據USB設備的種類切換第二傳輸通道連接至第一設備接口或第二設備接口,或控制晶片根據切換命令將第二傳輸通道連接於第一設備接口。 The invention also provides a USB hub, which is characterized in that the number of transmission channels is determined according to the connected USB device. The USB hub of the present invention includes a first communication interface, a switch, a first device interface, a second device interface, a switch circuit and a control chip. The first communication interface is connected to the source end. The first communication interface has a first transmission channel, a second transmission channel, and a third transmission channel; a switching command is generated when the switching switch is triggered; the first device interface is electrically connected to the first communication interface and The first transmission channel; the second device interface is electrically connected to the first communication interface and the third transmission channel, the second device interface has a plurality of data pins, the second device interface is used to connect a USB device; the switching circuit is connected to the first communication Interface, the switching circuit is used to select the connection path of the second transmission channel; the control chip includes GPIO pins, and the control chip is electrically connected to The switching circuit controls the chip to switch the second transmission channel to the first device interface or the second device interface according to the type of USB device, or controls the chip to connect the second transmission channel to the first device interface according to the switching command.

本發明更提供一種USB集線器的資源切換方法,其係包括以下步驟:將USB設備連接於集線器的第一設備接口;由USB設備觸發集線器的GPIO腳位,用於識別USB設備的種類;若USB設備係為USB1.0或USB2.0,則集線器將第二傳輸通道連接於第一設備接口;若USB設備係為USB3.0,則集線器將第二傳輸通道連接於第二設備接口;重置第二設備接口與控制晶片的傳輸時脈。 The invention further provides a resource switching method of a USB hub, which includes the following steps: connecting a USB device to the first device interface of the hub; the USB device triggers the GPIO pin of the hub to identify the type of USB device; if the USB If the device is USB1.0 or USB2.0, the hub connects the second transmission channel to the first device interface; if the USB device is USB3.0, the hub connects the second transmission channel to the second device interface; reset The transmission clock of the second device interface and the control chip.

本發明的USB集線器的資源切換系統與方法可以根據所連接的USB設備決定數據資料與影像資料的傳輸通道,藉以保證影像播放的質量。而且本發明的集線器可以識別所連接的USB設備的通訊協議種類,進而選擇相應的傳輸通道數量。相較於習知技術而言,本發明不需來源端與驅動程式作為識別使用情況,因此本發明可以避免影像解析度的自動切換的問題。 The resource switching system and method of the USB hub of the present invention can determine the transmission channel of data data and image data according to the connected USB device, thereby ensuring the quality of image playback. Moreover, the hub of the present invention can recognize the type of communication protocol of the connected USB device, and then select the corresponding number of transmission channels. Compared with the conventional technology, the present invention does not require the source end and the driver to identify the usage, so the present invention can avoid the problem of automatic switching of image resolution.

有關本發明的特徵與實作,茲配合圖式作最佳實施例詳細說明如下。 Regarding the features and implementation of the present invention, the preferred embodiment in conjunction with the drawings is described in detail below.

100‧‧‧資源切換系統 100‧‧‧Resource switching system

110‧‧‧集線器 110‧‧‧Hub

111‧‧‧控制晶片 111‧‧‧Control chip

112‧‧‧切換電路 112‧‧‧Switch circuit

113‧‧‧切換開關 113‧‧‧Switch

114‧‧‧第一通訊介面 114‧‧‧First Communication Interface

115‧‧‧第一設備接口 115‧‧‧ First device interface

116‧‧‧第二設備接口 116‧‧‧Second device interface

117‧‧‧GPIO腳位 117‧‧‧GPIO pin

120‧‧‧來源端 120‧‧‧Source

121‧‧‧第二通訊介面 121‧‧‧Second Communication Interface

121a‧‧‧第一傳輸通道 121a‧‧‧First transmission channel

121b‧‧‧第二傳輸通道 121b‧‧‧Second transmission channel

121c‧‧‧第三傳輸通道 121c‧‧‧ Third transmission channel

130‧‧‧USB設備 130‧‧‧USB device

140‧‧‧顯示設備 140‧‧‧Display equipment

151‧‧‧第一設備 151‧‧‧ First equipment

152‧‧‧第二設備 152‧‧‧Second equipment

第1圖係為本發明的系統架構示意圖。 Figure 1 is a schematic diagram of the system architecture of the present invention.

第2圖係為本發明的傳輸通道連接示意圖。 Figure 2 is a schematic diagram of the transmission channel connection of the present invention.

第3圖係為本發明的運作流程示意圖。 Figure 3 is a schematic diagram of the operation process of the present invention.

第4圖係為本發明的USB設備連接與傳輸通道的狀態示意圖。 FIG. 4 is a schematic diagram of the state of the USB device connection and transmission channel of the present invention.

第5圖係為本發明的USB設備連接與傳輸通道的另一狀態示意圖。 FIG. 5 is another schematic diagram of the USB device connection and transmission channel of the present invention.

第6圖係為本發明的運作流程示意圖。 Figure 6 is a schematic diagram of the operation process of the present invention.

第7圖係為本發明的切換開關觸發時傳輸通道的狀態示意圖。 FIG. 7 is a schematic diagram of the state of the transmission channel when the switch of the present invention is triggered.

本發明提出一種USB集線器的資源切換系統100,其係包括集線器110、來源端120與USB設備130(Universal Serial Bus, 簡稱USB),並請配合第1圖所示。集線器110包括控制晶片111、切換電路112、切換開關113、第一通訊介面114、第一設備接口115與第二設備接口116。第1圖中係以粗黑線條作為電性連接,而箭頭代表訊號的傳遞路徑。 The present invention provides a resource switching system 100 for a USB hub, which includes a hub 110, a source 120, and a USB device 130 (Universal Serial Bus, (Referred to as USB), and please cooperate as shown in Figure 1. The hub 110 includes a control chip 111, a switching circuit 112, a switching switch 113, a first communication interface 114, a first device interface 115, and a second device interface 116. In Figure 1, thick black lines are used as electrical connections, and arrows represent signal transmission paths.

控制晶片111耦接來源端120、切換電路112、切換開關113、第一設備接口115與第二設備接口116。控制晶片111具有通用型之輸入輸出(General-purpose input/output,簡稱GPIO)腳位117,且GPIO腳位117連接於第二設備接口116。控制晶片111用於偵測USB設備130的種類並驅動切換電路112的連接路徑。切換開關113用於將第二傳輸通道121b切換並連接至第二設備接口116。切換開關113的種類可以是但不限定為按壓開關、指撥開關,也可以是旋鈕開關等具有可發送觸發訊號的元件。 The control chip 111 is coupled to the source 120, the switch circuit 112, the switch 113, the first device interface 115 and the second device interface 116. The control chip 111 has a general-purpose input/output (GPIO) pin 117, and the GPIO pin 117 is connected to the second device interface 116. The control chip 111 is used to detect the type of the USB device 130 and drive the connection path of the switching circuit 112. The switch 113 is used to switch and connect the second transmission channel 121b to the second device interface 116. The type of the switch 113 may be, but not limited to, a push switch, a dip switch, or a component such as a rotary switch that can send a trigger signal.

來源端120可以是但不限定為個人電腦、筆記型電腦,也可以是具有影像輸出與資料存取的計算機裝置,例如:行動電話(mobile phone)或平板電腦(tablet)。來源端120具有第二通訊介面121,第二通訊介面121具有第一傳輸通道121a、第二傳輸通道121b與第三傳輸通道121c。來源端120透過第一傳輸通道121a、第二傳輸通道121b與第三傳輸通道121c傳輸影像資料或數據資料。 The source 120 may be, but not limited to, a personal computer, a notebook computer, or a computer device with image output and data access, such as a mobile phone (mobile phone) or a tablet (tablet). The source 120 has a second communication interface 121. The second communication interface 121 has a first transmission channel 121a, a second transmission channel 121b, and a third transmission channel 121c. The source 120 transmits image data or data data through the first transmission channel 121a, the second transmission channel 121b, and the third transmission channel 121c.

第一通訊介面114、第二通訊介面121與第二設備接口116係為USB介面,第一通訊介面114與第二通訊介面121的協議種類係為USB3.0系列,第二設備接口116的協議種類係為USB1.0、2.0或3.0系列。第一設備接口115係為顯示埠(DisplayPort)或高畫質多媒體介面(High Definition Multimedia Interface,簡稱HDMI)。第一設備接口115用於連接顯示設備140,並輸出影像資料至顯示設備140。第一設備接口115可以傳輸高解析度畫質影片(High Definition或Full High Definition Video)或超高解析度畫質影片(Ultra HD Video)。 The first communication interface 114, the second communication interface 121 and the second device interface 116 are USB interfaces. The protocol types of the first communication interface 114 and the second communication interface 121 are the USB3.0 series, and the protocol of the second device interface 116 The type is USB1.0, 2.0 or 3.0 series. The first device interface 115 is a display port (DisplayPort) or a high definition multimedia interface (High Definition Multimedia Interface, HDMI for short). The first device interface 115 is used to connect to the display device 140 and output image data to the display device 140. The first device interface 115 can transmit high-definition video (High Definition or Full High Definition Video) or ultra-high-resolution video (Ultra HD Video).

第一傳輸通道121a係由TX1±與RX1±的兩組差動訊號線所構成(共四條訊號線),而第二傳輸通道121b係由TX2±與RX2±的兩組差動訊號線所構成。第三傳輸通道121c係由USB2.0的D+與D-所構 成。換言之,第一傳輸通道121a具有兩組可以傳輸影像資料的通道。同理,第二傳輸通道121b也是具有兩組可供傳輸影像資料或數據資料的通道,如第2圖所示。而第三傳輸通道121c則是傳輸USB的數據資料。在第2圖中連接線表示元件間的電性連接,而箭頭部分表示通道的傳輸路徑。 The first transmission channel 121a is composed of two sets of differential signal lines of TX1± and RX1± (a total of four signal lines), and the second transmission channel 121b is composed of two sets of differential signal lines of TX2± and RX2± . The third transmission channel 121c is constructed by D+ and D- of USB2.0 to make. In other words, the first transmission channel 121a has two channels that can transmit image data. Similarly, the second transmission channel 121b also has two channels for transmitting image data or data data, as shown in FIG. 2. The third transmission channel 121c transmits USB data. In FIG. 2, the connecting line indicates the electrical connection between the elements, and the arrow part indicates the transmission path of the channel.

第一通訊介面114係以纜線連接於第二通訊介面121,使得第一通訊介面114導通第一傳輸通道121a、第二傳輸通道121b與第三傳輸通道121c。切換電路112分別連接第二傳輸通道121b、第一設備接口115與第二設備接口116。切換電路112用於切換第二傳輸通道121b的目的端,使得第二傳輸通道121b可以選擇連接於第一設備接口115或第二設備接口116。在本發明中第二設備接口116電性連接於控制晶片111的GPIO腳位117。因此集線器110可以透過GPIO腳位117的觸發內容進而識別所連接的USB設備130的種類。 The first communication interface 114 is connected to the second communication interface 121 by a cable, so that the first communication interface 114 leads the first transmission channel 121a, the second transmission channel 121b, and the third transmission channel 121c. The switching circuit 112 is respectively connected to the second transmission channel 121b, the first device interface 115 and the second device interface 116. The switching circuit 112 is used to switch the destination end of the second transmission channel 121b, so that the second transmission channel 121b can be selectively connected to the first device interface 115 or the second device interface 116. In the present invention, the second device interface 116 is electrically connected to the GPIO pin 117 of the control chip 111. Therefore, the hub 110 can recognize the type of the connected USB device 130 through the trigger content of the GPIO pin 117.

為清楚說明本發明請參考第3圖所示,其係為本發明的運作流程示意圖。在本發明的USB集線器的資源切換方法包括以下步驟:步驟S310:將USB設備連接於集線器的第一設備接口;步驟S320:由USB設備觸發集線器的GPIO腳位,用於識別USB設備的種類;步驟S330:若USB設備係為USB1.0或USB2.0,則集線器將第二傳輸通道連接於第一設備接口;步驟S340:若USB設備係為USB3.0,則集線器將第二傳輸通道連接於第二設備接口;以及步驟S350:重置第二設備接口與控制晶片的傳輸時脈。 For a clear description of the present invention, please refer to FIG. 3, which is a schematic diagram of the operation flow of the present invention. The resource switching method of the USB hub of the present invention includes the following steps: Step S310: Connect the USB device to the first device interface of the hub; Step S320: The USB device triggers the GPIO pin of the hub to identify the type of USB device; Step S330: If the USB device is USB1.0 or USB2.0, the hub connects the second transmission channel to the first device interface; Step S340: If the USB device is USB3.0, the hub connects the second transmission channel At the second device interface; and Step S350: Reset the transmission clock of the second device interface and the control chip.

當第二設備接口116連接支援USB2.0(或以降)的通訊協議的USB設備130時,GPIO腳位117可偵測USB設備130的D±的訊號並觸發控制晶片111。控制晶片111驅動切換電路112將第二傳輸通道121b連接至第一設備接口115,如第4圖所示。當第二設備接口116連接USB3.0(或以上)的通訊協議的USB設備130時,由於GPIO腳位117將不會收到D±的訊號,因此控制晶片111驅動切換電路112 將第二傳輸通道121b連接至第二設備接口116,如第5圖所示。 When the second device interface 116 is connected to the USB device 130 supporting the USB 2.0 (or lower) communication protocol, the GPIO pin 117 can detect the D± signal of the USB device 130 and trigger the control chip 111. The control chip 111 drives the switching circuit 112 to connect the second transmission channel 121b to the first device interface 115, as shown in FIG. 4. When the second device interface 116 is connected to the USB device 130 of the USB3.0 (or above) communication protocol, the GPIO pin 117 will not receive the D± signal, so the control chip 111 drives the switching circuit 112 Connect the second transmission channel 121b to the second device interface 116, as shown in FIG. 5.

在進行第二傳輸通道121b的切換過程中,控制晶片111會另外重置對USB設備130的傳輸時脈,藉以重新傳輸數據資料至USB設備130(或來源端120)。由於傳輸通道數量的改變會影響來源端120對於數據資料的配置,因此控制晶片111需要重置傳輸時脈。若第二設備接口116連接新的USB設備130時,新的USB設備130與前一USB設備130屬於相同通訊協議,則控制晶片111不會重置傳輸時脈。 During the switching process of the second transmission channel 121b, the control chip 111 will additionally reset the transmission clock to the USB device 130, so as to retransmit the data to the USB device 130 (or the source 120). Since the change in the number of transmission channels affects the configuration of the source 120 for data, the control chip 111 needs to reset the transmission clock. If the new USB device 130 is connected to the second device interface 116, and the new USB device 130 and the previous USB device 130 belong to the same communication protocol, the control chip 111 will not reset the transmission clock.

舉例來說,若第二設備接口116連接USB2.0的第一設備151。第二傳輸通道121b會連通至第一設備接口115。使用者若是將第一設備151移除並裝設第二設備152,且第二設備152亦為USB2.0(或1.0)系列。控制晶片111不會切換第二傳輸通道121b。若是第二設備152為USB3.0(或以上)的通訊協議,控制晶片111會向來源端120發送第二要求用以將第二傳輸通道121b連接至第二設備接口116。 For example, if the second device interface 116 is connected to the first device 151 of USB 2.0. The second transmission channel 121b will communicate with the first device interface 115. If the user removes the first device 151 and installs the second device 152, and the second device 152 is also a USB 2.0 (or 1.0) series. The control chip 111 does not switch the second transmission channel 121b. If the second device 152 is a USB 3.0 (or above) communication protocol, the control chip 111 sends a second request to the source 120 to connect the second transmission channel 121b to the second device interface 116.

在步驟S330中,使用者可以觸發集線器110的切換開關113,請同時配合第6圖所示,其係為本發明的觸發切換開關113的處理流程示意圖。在觸發切換開關113中包括以步驟:步驟S331:觸發集線器的切換開關;以及步驟S332:驅動集線器將第二傳輸通道切換並連接至第一設備接口。 In step S330, the user can trigger the switch 113 of the hub 110. Please also cooperate with FIG. 6, which is a schematic diagram of the processing flow of the trigger switch 113 of the present invention. The trigger switch 113 includes the following steps: step S331: trigger the switch of the hub; and step S332: drive the hub to switch and connect the second transmission channel to the first device interface.

在集線器110連接USB3.0的USB設備130時,第二傳輸通道121b預設會連接至第二設備接口116。當使用者按壓切換開關113時,控制晶片111根據觸發訊號產生第一要求將第二傳輸通道121b從第二設備接口116切換至第一設備接口115,如第7圖所示。於此同時,控制晶片111也會重置傳輸時脈,已確保來源端120與USB設備130的同步並保證數據資料的完整性。當第一設備接口115所連接的顯示設備140被移除時,控制晶片111才會驅動切換電路112將第二傳輸通道121b改接至第一設備接口115。此外,若第二設備接口116為空接時,則第二傳輸通道121b預設會連接至第二設備接口116。 When the hub 110 is connected to the USB device 130 of USB 3.0, the second transmission channel 121b is preset to be connected to the second device interface 116. When the user presses the switch 113, the control chip 111 generates a first request according to the trigger signal to switch the second transmission channel 121b from the second device interface 116 to the first device interface 115, as shown in FIG. At the same time, the control chip 111 will also reset the transmission clock, which has ensured the synchronization of the source 120 and the USB device 130 and the integrity of the data. When the display device 140 connected to the first device interface 115 is removed, the control chip 111 drives the switching circuit 112 to reconnect the second transmission channel 121 b to the first device interface 115. In addition, if the second device interface 116 is empty, the second transmission channel 121b will be connected to the second device interface 116 by default.

本發明的USB集線器110的資源切換系統100與方法可以根據所連接的USB設備130決定數據資料與影像資料的傳輸通道,藉 以保證影像播放的質量。而且本發明的集線器110可以識別所連接的USB設備130的通訊協議種類,進而選擇相應的傳輸通道數量。相較於習知技術而言,本發明不需來源端120與驅動程式作為識別使用情況,因此本發明可以避免影像解析度的自動切換的問題。 The resource switching system 100 and method of the USB hub 110 of the present invention can determine the transmission channel of data data and image data according to the connected USB device 130. To ensure the quality of video playback. Moreover, the hub 110 of the present invention can identify the type of communication protocol of the connected USB device 130, and then select the corresponding number of transmission channels. Compared with the conventional technology, the present invention does not require the source 120 and the driver to identify the usage, so the present invention can avoid the problem of automatic switching of image resolution.

雖然本發明以前述之較佳實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。 Although the present invention is disclosed as the above preferred embodiments, it is not intended to limit the present invention. Any person familiar with similar arts can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of patent protection for inventions shall be subject to the scope defined in the patent application scope attached to this specification.

100‧‧‧資源切換系統 100‧‧‧Resource switching system

110‧‧‧集線器 110‧‧‧Hub

111‧‧‧控制晶片 111‧‧‧Control chip

112‧‧‧切換電路 112‧‧‧Switch circuit

113‧‧‧切換開關 113‧‧‧Switch

114‧‧‧第一通訊介面 114‧‧‧First Communication Interface

115‧‧‧第一設備接口 115‧‧‧ First device interface

116‧‧‧第二設備接口 116‧‧‧Second device interface

117‧‧‧GPIO腳位 117‧‧‧GPIO pin

120‧‧‧來源端 120‧‧‧Source

121‧‧‧第二通訊介面 121‧‧‧Second Communication Interface

121a‧‧‧第一傳輸通道 121a‧‧‧First transmission channel

121b‧‧‧第二傳輸通道 121b‧‧‧Second transmission channel

121c‧‧‧第三傳輸通道 121c‧‧‧ Third transmission channel

130‧‧‧USB設備 130‧‧‧USB device

140‧‧‧顯示設備 140‧‧‧Display equipment

Claims (10)

一種USB集線器的資源切換系統,其特徵在於切換來源端的資料傳輸通道並用於資料的加速傳輸,USB集線器的資源切換系統包括:一來源端,具有一第二通訊介面,該第二通訊介面具有一第一傳輸通道、一第二傳輸通道與一第三傳輸通道;一USB設備;以及一集線器,電性連接於該來源端與該USB設備,該集線器具有一切換電路、一切換開關、一第一通訊介面、一第一設備接口、一第二設備接口與一控制晶片,該切換電路耦接於該第一通訊介面、該第一設備接口、該第二設備接口與該控制晶片,該切換開關連接於該控制晶片,該第一通訊介面連接於該第二通訊介面,該切換電路用於選擇該第二傳輸通道的路徑,該第一傳輸通道連接於該第一設備接口,該第三傳輸通道連接於該第二設備接口,該第一設備接口與該第二設備接口電性連接於至該控制晶片的一GPIO腳位,該第二設備接口連接該USB設備,該控制晶片透過該GPIO腳位識別該USB設備的通訊種類,並決定該第二傳輸通道連接至該第一設備接口或該第二設備接口。 A resource switching system of a USB hub, characterized by switching a data transmission channel of a source end and used for accelerated transmission of data. The resource switching system of a USB hub includes: a source end, having a second communication interface, and the second communication interface mask has A first transmission channel, a second transmission channel and a third transmission channel; a USB device; and a hub, electrically connected to the source and the USB device, the hub has a switching circuit, a switching switch, a first A communication interface, a first device interface, a second device interface and a control chip, the switching circuit is coupled to the first communication interface, the first device interface, the second device interface and the control chip, the switching The switch is connected to the control chip, the first communication interface is connected to the second communication interface, the switching circuit is used to select the path of the second transmission channel, the first transmission channel is connected to the first device interface, and the third The transmission channel is connected to the second device interface, the first device interface and the second device interface are electrically connected to a GPIO pin of the control chip, the second device interface is connected to the USB device, and the control chip passes through the The GPIO pin identifies the communication type of the USB device and determines that the second transmission channel is connected to the first device interface or the second device interface. 如請求項1所述之USB集線器的資源切換系統,其中該USB設備的種類包括USB1.0系列、USB2.0系列與USB3.0系列。 The resource switching system of a USB hub as described in claim 1, wherein the types of the USB device include USB1.0 series, USB2.0 series and USB3.0 series. 如請求項2所述之USB集線器的資源切換系統,其中該USB設備的種類為USB1.0或USB2.0,則該控制晶片向該來源端發送一第一要求,以使該第二傳輸通道連接於該第一設備接口,該USB設備的種類為USB3.0或USB3.1,則該控制晶片向該來源端發送一第二要求,以使該第二傳輸通道連接於該第二設備接口。 The resource switching system of a USB hub as described in claim 2, wherein the type of the USB device is USB1.0 or USB2.0, then the control chip sends a first request to the source to enable the second transmission channel Connected to the first device interface, the type of the USB device is USB3.0 or USB3.1, then the control chip sends a second request to the source end to connect the second transmission channel to the second device interface . 如請求項1所述之USB集線器的資源切換系統,其中致能該切換開關使該控制晶片向該來源端發送一第一要求,並令該第二傳輸通道連接於該第一設備接口。 The resource switching system of a USB hub as described in claim 1, wherein enabling the switch causes the control chip to send a first request to the source, and connects the second transmission channel to the first device interface. 一種USB集線器,其特徵在於切換資料的傳輸通道用以加速資料的傳遞,該USB集線器包括:一第一通訊介面,連接於一來源端,該第一通訊介面具有一第一 傳輸通道、一第二傳輸通道與一第三傳輸通道;一切換開關,於觸發該切換開關時生成一切換命令;一第一設備接口,電性連接於該第一通訊介面與該第一傳輸通道;一第二設備接口,電性連接於該第一通訊介面與該第三傳輸通道,該第二設備接口具有複數資料腳位,該第二設備接口用於連接一USB設備;一切換電路,連接於該第一通訊介面,該切換電路用於選擇該第二傳輸通道的連接路徑;以及一控制晶片,其係包括一GPIO腳位,該控制晶片電性連接於該切換電路,該控制晶片根據該USB設備的種類切換該第二傳輸通道連接至該第一設備接口或該第二設備接口,或該控制晶片根據該切換命令將該第二傳輸通道連接於該第一設備接口。 A USB hub is characterized by switching data transmission channels to accelerate data transmission. The USB hub includes: a first communication interface connected to a source end, and the first communication interface has a first A transmission channel, a second transmission channel and a third transmission channel; a switch to generate a switch command when the switch is triggered; a first device interface electrically connected to the first communication interface and the first transmission Channel; a second device interface, electrically connected to the first communication interface and the third transmission channel, the second device interface has a plurality of data pins, the second device interface is used to connect a USB device; a switching circuit , Connected to the first communication interface, the switching circuit is used to select the connection path of the second transmission channel; and a control chip, which includes a GPIO pin, the control chip is electrically connected to the switching circuit, the control The chip switches the second transmission channel to the first device interface or the second device interface according to the type of the USB device, or the control chip connects the second transmission channel to the first device interface according to the switching command. 如請求項5所述之USB集線器,其中該USB設備的種類包括USB1.0系列、USB2.0系列與USB3.0系列。 The USB hub as described in claim 5, wherein the types of the USB device include USB1.0 series, USB2.0 series and USB3.0 series. 如請求項6所述之USB集線器,其中該USB設備的種類為USB1.0或USB2.0,則該控制晶片向該來源端發送一第一要求,以使該第二傳輸通道連接於該第一設備接口,該USB設備的種類為USB3.0或USB3.1,則該控制晶片向該來源端發送一第二要求,以使該第二傳輸通道連接於該第二設備接口。 The USB hub according to claim 6, wherein the type of the USB device is USB1.0 or USB2.0, then the control chip sends a first request to the source to connect the second transmission channel to the first A device interface, the type of the USB device is USB3.0 or USB3.1, then the control chip sends a second request to the source end, so that the second transmission channel is connected to the second device interface. 一種USB集線器的資源切換方法,其係包括:將一USB設備連接於一集線器的一第一設備接口;由該USB設備觸發該集線器的一GPIO腳位,用於識別該USB設備的種類;若該USB設備係為USB1.0或USB2.0,則該集線器將一第二傳輸通道連接於該第一設備接口;以及若該USB設備係為USB3.0,則該集線器將該第二傳輸通道連接於一第二設備接口。 A resource switching method of a USB hub, which includes: connecting a USB device to a first device interface of a hub; triggering a GPIO pin of the hub by the USB device to identify the type of the USB device; If the USB device is USB1.0 or USB2.0, the hub connects a second transmission channel to the first device interface; and if the USB device is USB3.0, the hub uses the second transmission channel Connected to a second device interface. 如請求項8所述之USB集線器的資源切換方法,其中在該第二傳輸通道連接於該第二設備接口之步驟中包括:觸發該集線器的一切換開關;以及 驅動該集線器將該第二傳輸通道切換並連接至該第一設備接口。 The resource switching method of a USB hub according to claim 8, wherein the step of connecting the second transmission channel to the interface of the second device includes: triggering a switch of the hub; and Drive the hub to switch and connect the second transmission channel to the first device interface. 如請求項9所述之USB集線器的資源切換方法,其中於觸發該切換開關更包括:重置該第二設備接口的一傳輸時脈。 The method for switching resources of a USB hub according to claim 9, wherein triggering the switching switch further comprises: resetting a transmission clock of the second device interface.
TW108105228A 2019-02-14 2019-02-14 The resource switch system and method of the usb hub TWI691847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108105228A TWI691847B (en) 2019-02-14 2019-02-14 The resource switch system and method of the usb hub

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108105228A TWI691847B (en) 2019-02-14 2019-02-14 The resource switch system and method of the usb hub

Publications (2)

Publication Number Publication Date
TWI691847B true TWI691847B (en) 2020-04-21
TW202030616A TW202030616A (en) 2020-08-16

Family

ID=71134495

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108105228A TWI691847B (en) 2019-02-14 2019-02-14 The resource switch system and method of the usb hub

Country Status (1)

Country Link
TW (1) TWI691847B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383676A (en) * 2012-07-13 2013-11-06 威盛电子股份有限公司 Hub device and method for initializing hub device
TW201703392A (en) * 2015-06-30 2017-01-16 Dong-Sheng Li Hub
TW201737104A (en) * 2016-02-26 2017-10-16 基礎產品股份有限公司 Systems and techniques for intelligently switching between multiple sources of universal serial bus signals
TW201807592A (en) * 2016-08-19 2018-03-01 微晶片科技公司 USB multi-host endpoint reflector hub
CN207283696U (en) * 2017-10-13 2018-04-27 东莞市江涵电子有限公司 A kind of USB3.1 Mobynebs integrator
TW201818260A (en) * 2016-11-07 2018-05-16 全漢企業股份有限公司 Universal serial bus hub
TW201832091A (en) * 2017-02-23 2018-09-01 宏正自動科技股份有限公司 Automatic switching apparatus and automatic switching method
TW201834338A (en) * 2017-02-13 2018-09-16 美商微晶片科技公司 Host-detecting usb hub
TWM583078U (en) * 2019-02-14 2019-09-01 三泰科技股份有限公司 Resource switching system of USB hub

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383676A (en) * 2012-07-13 2013-11-06 威盛电子股份有限公司 Hub device and method for initializing hub device
TW201703392A (en) * 2015-06-30 2017-01-16 Dong-Sheng Li Hub
TW201737104A (en) * 2016-02-26 2017-10-16 基礎產品股份有限公司 Systems and techniques for intelligently switching between multiple sources of universal serial bus signals
TW201807592A (en) * 2016-08-19 2018-03-01 微晶片科技公司 USB multi-host endpoint reflector hub
TW201818260A (en) * 2016-11-07 2018-05-16 全漢企業股份有限公司 Universal serial bus hub
TW201834338A (en) * 2017-02-13 2018-09-16 美商微晶片科技公司 Host-detecting usb hub
TW201832091A (en) * 2017-02-23 2018-09-01 宏正自動科技股份有限公司 Automatic switching apparatus and automatic switching method
CN207283696U (en) * 2017-10-13 2018-04-27 东莞市江涵电子有限公司 A kind of USB3.1 Mobynebs integrator
TWM583078U (en) * 2019-02-14 2019-09-01 三泰科技股份有限公司 Resource switching system of USB hub

Also Published As

Publication number Publication date
TW202030616A (en) 2020-08-16

Similar Documents

Publication Publication Date Title
EP3657778B1 (en) Terminal device and control method therefor
US11232057B2 (en) Terminal device and control method thereof
US9952986B2 (en) Power delivery and data transmission using PCIe protocol via USB type-C port
US9274994B2 (en) Method and system for using a standard connector to deliver combined display, data and power signals
US8799537B1 (en) Transfer of uncompressed multimedia contents and data communications
TWI552562B (en) Method, apparatus and system for transitioning an audio/video device between a source mode and a sink mode
US20110087806A1 (en) Dual-Mode Data Transfer of Uncompressed Multimedia Contents or Data Communications
US9990328B2 (en) Increased data flow in universal serial bus (USB) cables
US20160224493A1 (en) Universal serial bus (usb) kvm switch using virtual usb for switching among multiple hosts
TW201624227A (en) Apparatus, system and method for communication of touch sensor information
US20150350592A1 (en) Electronic device and video data receiving method thereof
CN111316253A (en) Method for increasing bandwidth of USB-C connector
TWM583078U (en) Resource switching system of USB hub
JP2019159921A (en) System, electronic device, and connection control method
TWI691847B (en) The resource switch system and method of the usb hub
US10176133B2 (en) Smart device with no AP
CN209543330U (en) The resource switch system of usb hub
US20230251987A1 (en) Systems and methods of controlling communication modes in an electronic device
CN111858420A (en) Resource switching system of USB concentrator
TWI786883B (en) Usb hub with multi-mode transmission physical layer and method thereof
CN213876695U (en) Display interface circuit and display device
US20220303497A1 (en) Electronic device and signal processing method
TW202403563A (en) Electronic system, monitoring chip, and operation method
TWM648471U (en) Display circuit device
CN116598855A (en) Connector, mainboard and computing equipment