TW201301045A - Mode detection method, USB interface system and USB host - Google Patents
Mode detection method, USB interface system and USB host Download PDFInfo
- Publication number
- TW201301045A TW201301045A TW100123135A TW100123135A TW201301045A TW 201301045 A TW201301045 A TW 201301045A TW 100123135 A TW100123135 A TW 100123135A TW 100123135 A TW100123135 A TW 100123135A TW 201301045 A TW201301045 A TW 201301045A
- Authority
- TW
- Taiwan
- Prior art keywords
- serial bus
- universal serial
- host
- peripheral device
- universal
- Prior art date
Links
Landscapes
- Information Transfer Systems (AREA)
Abstract
Description
本發明是有關於一種方法、系統,及主機端,特別是指一種模式偵測方法、通用序列匯流排介面系統,及通用序列匯流排主機端。The invention relates to a method, a system, and a host end, in particular to a mode detecting method, a universal serial bus interface system, and a universal serial bus host.
通用串列匯流排(Universal Serial Bus)是Intel、Microsoft等大廠商為解決計算機週邊設備種類的日益增加與有限的主板插槽和端口之間的矛盾而於1995年提出製定的。它是一種用於將適用USB的週邊設備連接到主機的外部總線結構,主要用在中速和低速的週邊設備。USB同時又是一種通信協議,支持主機和USB的週邊設備之間的數據傳輸。The Universal Serial Bus was developed in 1995 by major vendors such as Intel and Microsoft to address the growing contradiction between computer peripherals and limited motherboard slots and ports. It is an external bus structure for connecting peripheral devices that are suitable for USB to the host, and is mainly used for medium-speed and low-speed peripheral devices. USB is also a communication protocol that supports data transfer between the host and USB peripherals.
USB應用於無線傳輸規格802.11n具有以下功能特點:USB is applied to the wireless transmission specification 802.11n has the following features:
(1)USB減輕了各個設備(像滑鼠、數據機、鍵盤和印表機等)對目前個人電腦(PC)中所有標準埠的需求,因而降低了硬體的複雜性和對埠的佔用。整個USB系統只有一個埠,使用一個中斷,節省了系統資源。(1) USB reduces the need for all standard devices (such as mice, modems, keyboards, and printers) to the current personal computer (PC), thus reducing the complexity of the hardware and the occupation of the device. . The entire USB system has only one flaw, using an interrupt, saving system resources.
(2)USB支持熱插拔(hot plug)。也就是說在不關閉PC的情況下,可以安全地插上和斷開USB設備,動態地載入驅動程式。(2) USB supports hot plug. This means that you can safely plug in and disconnect the USB device and dynamically load the driver without shutting down the PC.
(3)USB支持即插即用(plug and play,PnP)。當插入USB設備的時候,電腦系統檢測該外設,並且自動載入相關驅動程式,對該設備進行配置,使其正常工作。(3) USB supports plug and play (PnP). When a USB device is plugged in, the computer system detects the peripheral and automatically loads the relevant driver to configure the device to work properly.
(4)USB在設備供電方面提供了靈活性。USB介面不僅可以通過電纜為連接到USB集線器(hub)或主機(host)的設備供電,而且可以通過電池或者其他的電力設備為其供電,或使用兩種供電方式的組合,並且支援節約能源的掛機和喚醒模式。(4) USB provides flexibility in the power supply of the device. The USB interface not only provides power to devices connected to a USB hub or host via a cable, but also can be powered by a battery or other electrical device, or a combination of two power supplies, and supports energy-saving Hang up and wake mode.
(5)USB具有很高的容錯性能。因為在協議中規定了出錯處理和差錯恢復的機制,所以可以對有缺陷的設備進行認定,並對錯誤的資料進行恢復或報告。(5) USB has high fault tolerance. Because the error handling and error recovery mechanisms are specified in the protocol, it is possible to identify defective devices and recover or report the erroneous data.
(6)USB2.0規格的USB裝置具有二種支援模式,分別是一無線資料傳輸距離較短且所需供應電力為(5V/500mA)的2T2R之一般功率(normal power)模式,和一無線資料傳輸距離較長且所需供應電力為(5V/750mA)的2T2R之高功率(high power)模式。其中,2T2R是指二個天線執行發送(簡稱T)及接收(簡稱R)。(6) USB2.0 USB device has two support modes, namely a normal power mode of 2T2R with a short wireless data transmission distance and a required power supply (5V/500mA), and a wireless The 2T2R high power mode in which the data transmission distance is long and the required power supply is (5V/750mA). Where 2T2R means that two antennas perform transmission (referred to as T) and reception (referred to as R).
(7)USB3.0規格的特性可向下相容以支援USB1.1、USB2.0的規格,且USB3.0規格的USB埠可輸出的供應電力最大為(5V/900mA)的模式。(7) The USB3.0 specification can be backward compatible to support USB1.1 and USB2.0 specifications, and the USB3.0 specification USB port can output a maximum of (5V/900mA) mode.
如圖1所示,一種習知的通用序列匯流排(USB)介面系統1包含:一通用序列匯流排主機端(USB host)10,及一通用序列匯流排週邊裝置(USB slave)11,假設該通用序列匯流排主機端(USB host)10是USB3.0規格,而通用序列匯流排週邊裝置(USB slave)11是USB2.0規格且具有二種支援模式(2T2R一般功率/高功率),而該通用序列匯流排主機端(USB host)10無法偵測出該通用序列匯流排週邊裝置(USB slave)11的所有支援模式,因此只提供500mA大小的電流量以供應該通用序列匯流排週邊裝置(USB slave)11,使該通用序列匯流排週邊裝置(USB slave)11根據500mA大小的電流量操作於2T2R一般功率模式,所以不會提供750mA使該通用序列匯流排週邊裝置(USB slave)11操作於2T2R高功率模式,而無法使通用序列匯流排週邊裝置(USB slave)11操作於較長的無線資料傳輸距離,導致無法有效利用通用序列匯流排週邊裝置(USB slave)11的最大效益。As shown in FIG. 1, a conventional universal serial bus (USB) interface system 1 includes: a universal serial bus host (USB host) 10, and a universal serial bus peripheral device (USB slave) 11, assuming The universal serial bus host (USB host) 10 is a USB 3.0 specification, and the universal serial bus peripheral device (USB slave) 11 is a USB 2.0 standard and has two support modes (2T2R general power/high power). The universal serial bus host (USB host) 10 cannot detect all the support modes of the universal serial bus peripheral device (USB slave) 11, and therefore only supplies a current amount of 500 mA to supply the peripheral of the universal serial bus. The device (USB slave) 11 causes the universal serial bus peripheral device (USB slave) 11 to operate in the 2T2R general power mode according to the current amount of 500 mA, so that the universal serial bus peripheral device (USB slave) is not provided. 11 operates in the 2T2R high-power mode, and cannot operate the universal serial bus peripheral device (USB slave) 11 on a long wireless data transmission distance, resulting in the inability to effectively utilize the universal serial bus peripheral device (USB slave). The biggest benefit of 11.
因此,本發明之第一目的,即在提供一種解決上述問題的模式偵測方法。Accordingly, a first object of the present invention is to provide a pattern detecting method that solves the above problems.
該模式偵測方法,適用於由一控制單元執行無線資料傳輸,該控制單元電連接於一規格為通用序列匯流排2.0以上的主機端接口埠,該主機端接口埠可用以連接至一規格為通用序列匯流排2.0以上的通用序列匯流排週邊裝置,且該模式偵測方法包含以下步驟:The mode detection method is adapted to perform wireless data transmission by a control unit, and the control unit is electrically connected to a host end interface of a universal serial bus of 2.0 or higher, and the host interface can be connected to a specification. A universal serial bus peripheral device with a universal serial bus of 2.0 or higher, and the mode detecting method includes the following steps:
(A)利用該控制單元偵測該主機端接口埠是否有連接至該通用序列匯流排週邊裝置;(A) using the control unit to detect whether the host interface 埠 is connected to the peripheral device of the universal serial bus;
(B)若步驟(A)的偵測結果為是,則利用該控制單元偵測該主機端接口埠是否支援通用序列匯流排3.0規格;(B) if the detection result of the step (A) is YES, the control unit is used to detect whether the host interface 支援 supports the general sequence bus 3.0 specification;
(C)若步驟(B)的偵測結果為是,則利用該控制單元偵測該通用序列匯流排週邊裝置的最大電流是否高於一通用序列匯流排2.0的預設電流;及(C) if the detection result of the step (B) is YES, the control unit is used to detect whether the maximum current of the peripheral device of the universal sequence bus is higher than a preset current of a universal sequence bus 2.0;
(D)若步驟(C)的偵測結果為是,則利用該控制單元發出一指令到該主機端接口埠,使該主機端接口埠根據通用序列匯流排2.0規格所對應的一高功率模式與該通用序列匯流排週邊裝置進行資料傳輸。(D) If the detection result of the step (C) is YES, the control unit sends an instruction to the host interface 埠, so that the host interface 埠 is in accordance with a high power mode corresponding to the general sequence bus 2.0 specification. Data transmission is performed with the peripheral device of the universal serial bus.
本發明之第二目的,即在提供一種通用序列匯流排介面系統。A second object of the present invention is to provide a universal serial bus interface system.
該通用序列匯流排介面系統,應用於無線資料傳輸,且包含:一通用序列匯流排週邊裝置;一通用序列匯流排主機端,包括:一主機端接口埠;一控制單元,電連接於該主機端接口埠,並偵測該主機端接口埠是否有連接至該通用序列匯流排週邊裝置,若是,則更偵測該主機端接口埠是否支援通用序列匯流排3.0規格,若是,則更偵測該通用序列匯流排週邊裝置是否支援通用序列匯流排3.0規格,若是,則更偵測該通用序列匯流排週邊裝置的最大電流是否高於一通用序列匯流排2.0的預設電流,若是,則該控制單元發出一指令到該主機端接口埠,使該主機端接口埠根據通用序列匯流排2.0規格所對應的一高功率模式與該通用序列匯流排週邊裝置進行資料傳輸。The universal serial bus interface system is applied to wireless data transmission, and comprises: a universal serial bus peripheral device; a universal serial bus host, comprising: a host interface; a control unit electrically connected to the host End interface, and detecting whether the host interface is connected to the peripheral device of the universal serial bus, and if so, detecting whether the host interface supports the universal serial bus 3.0 specification, and if so, detecting further Whether the universal serial bus peripheral device supports the universal serial bus 3.0 specification, and if so, whether the maximum current of the universal serial bus peripheral device is higher than a preset current of a universal serial bus 2.0, and if so, The control unit sends an instruction to the host interface 埠, so that the host interface performs data transmission with the universal sequence bus peripheral device according to a high power mode corresponding to the universal sequence bus 2.0 specification.
本發明之第三目的,即在提供一種通用序列匯流排主機端。A third object of the present invention is to provide a universal serial bus host.
該通用序列匯流排主機端,可連接於一通用序列匯流排週邊裝置,且該通用序列匯流排主機端包含:一主機端接口埠;一控制單元,電連接於該主機端接口埠,並偵測該主機端接口埠是否有連接至該通用序列匯流排週邊裝置,若是,則更偵測該主機端接口埠是否支援通用序列匯流排3.0規格,若是,則更偵測該通用序列匯流排週邊裝置是否支援通用序列匯流排3.0規格,若是,則該控制單元發出一指令到該主機端接口埠,使該主機端接口埠根據通用序列匯流排2.0規格所對應的一高功率模式與該通用序列匯流排週邊裝置進行資料傳輸。The universal serial bus host can be connected to a universal serial bus peripheral device, and the universal serial bus host includes: a host interface; a control unit electrically connected to the host interface and detects Detecting whether the host interface is connected to the peripheral device of the universal serial bus, and if so, detecting whether the host interface supports the universal serial bus 3.0 specification, and if so, detecting the periphery of the universal serial bus Whether the device supports the universal serial bus 3.0 specification, and if so, the control unit issues an instruction to the host interface 埠, so that the host interface 一 is based on a high power mode corresponding to the universal sequence bus 2.0 specification and the universal sequence The peripheral device of the bus bar transmits data.
有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之一個較佳實施例的詳細說明中,將可清楚的呈現。The above and other technical contents, features and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments.
如圖2所示,本發明通用序列匯流排(USB)介面系統2之較佳實施例,適用於無線資料傳輸,且包含:一規格為USB2.0以上的通用序列匯流排週邊裝置(USB slave)3,及一規格為USB2.0以上的通用序列匯流排主機端(USB host)4。As shown in FIG. 2, the preferred embodiment of the universal serial bus (USB) interface system 2 of the present invention is applicable to wireless data transmission, and includes: a universal serial bus peripheral device with a specification of USB 2.0 or higher (USB slave) 3, and a universal serial bus host (USB host) 4 with a specification of USB 2.0 or higher.
該通用序列匯流排主機端4包括:一主機端接口埠41,及一電連接於該主機端接口埠41的控制單元42。The universal serial bus host 4 includes a host interface port 41 and a control unit 42 electrically connected to the host port interface 41.
該控制單元42執行一種模式偵測方法,如圖3所示,該模式偵測方法包含以下步驟:The control unit 42 performs a mode detection method. As shown in FIG. 3, the mode detection method includes the following steps:
步驟20:利用該控制單元42偵測該主機端接口埠41是否有連接至該通用序列匯流排週邊裝置3,若是則進到步驟21,反之,則結束。Step 20: The control unit 42 is used to detect whether the host interface 埠41 is connected to the universal sequence bus peripheral device 3, and if yes, proceed to step 21, otherwise, it ends.
步驟21:利用該控制單元42偵測該主機端接口埠41是否支援USB3.0規格,若是,則進到步驟22,反之,則進到步驟2A。Step 21: The control unit 42 detects whether the host interface 埠41 supports the USB3.0 specification. If yes, the process proceeds to step 22; otherwise, the process proceeds to step 2A.
步驟22:利用該控制單元42偵測該通用序列匯流排週邊裝置3的最大電流是否高於一USB2.0的預設電流,若是,則進到步驟23,反之,則進到步驟2A。在本實施例中,該USB2.0的預設電流為500mA。Step 22: The control unit 42 is used to detect whether the maximum current of the universal serial bus peripheral device 3 is higher than a preset current of a USB 2.0. If yes, proceed to step 23; otherwise, proceed to step 2A. In this embodiment, the preset current of the USB 2.0 is 500 mA.
步驟23:利用該控制單元42發出一指令到該主機端接口埠41,使該主機端接口埠41根據USB2.0規格所對應的該2T2R高功率模式與該通用序列匯流排週邊裝置3進行資料傳輸。Step 23: The control unit 42 sends an instruction to the host interface 埠41, so that the host interface 埠41 performs data with the universal sequence bus peripheral device 3 according to the 2T2R high power mode corresponding to the USB2.0 specification. transmission.
步驟2A:利用該控制單元42發出一指令到該主機端接口埠41,使該主機端接口埠41根據USB2.0規格所對應的一2T2R一般功率模式與該通用序列匯流排週邊裝置3進行資料傳輸。Step 2A: The control unit 42 sends an instruction to the host interface 埠41, so that the host interface 埠41 performs data according to a 2T2R general power mode corresponding to the USB2.0 specification and the universal sequence bus peripheral device 3. transmission.
綜上所述,上述實施例具有以下優點:偵測出該通用序列匯流排週邊裝置(USB slave)3的最大電流,而使通用序列匯流排週邊裝置(USB slave)3能操作於較長的無線資料傳輸距離來發揮最大效益。In summary, the above embodiment has the advantages of detecting the maximum current of the universal serial bus peripheral device (USB slave) 3, and enabling the universal serial bus peripheral device (USB slave) 3 to operate for a longer period of time. Wireless data transmission distance to maximize the benefits.
惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent.
20~23...偵測的步驟20~23. . . Detection step
2...通用序列匯流排介面系統2. . . Universal serial bus interface system
3...通用序列匯流排週邊裝置3. . . Universal serial bus peripheral device
4...通用序列匯流排主機端4. . . Universal serial bus host
41...主機端接口埠41. . . Host interface 埠
42...控制單元42. . . control unit
圖1是一種習知的通用序列匯流排介面系統的電路圖:1 is a circuit diagram of a conventional universal serial bus interface system:
圖2是本發明通用序列匯流排介面系統之較佳實施例的電路圖;及2 is a circuit diagram of a preferred embodiment of the universal serial bus interface system of the present invention; and
圖3是該較佳實施例執行一種模式偵測方法的流程圖。3 is a flow chart of a method for detecting a mode in the preferred embodiment.
2...通用序列匯流排介面系統2. . . Universal serial bus interface system
3...通用序列匯流排週邊裝置3. . . Universal serial bus peripheral device
4...通用序列匯流排主機端4. . . Universal serial bus host
41...主機端接口埠41. . . Host interface 埠
42...控制單元42. . . control unit
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100123135A TW201301045A (en) | 2011-06-30 | 2011-06-30 | Mode detection method, USB interface system and USB host |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100123135A TW201301045A (en) | 2011-06-30 | 2011-06-30 | Mode detection method, USB interface system and USB host |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201301045A true TW201301045A (en) | 2013-01-01 |
TWI448904B TWI448904B (en) | 2014-08-11 |
Family
ID=48137493
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW100123135A TW201301045A (en) | 2011-06-30 | 2011-06-30 | Mode detection method, USB interface system and USB host |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW201301045A (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI334545B (en) * | 2007-02-12 | 2010-12-11 | Via Tech Inc | A usb device and a mode detecting method thereof |
TWI365366B (en) * | 2008-04-03 | 2012-06-01 | Sunplus Mmedia Inc | Usb chip with self-calibration circuit and calibration method thereof |
TW201027351A (en) * | 2009-01-08 | 2010-07-16 | Innostor Technology Corp | Signal converter of all-in-one USB connector |
US8736227B2 (en) * | 2009-02-27 | 2014-05-27 | Fairchild Semiconductor Corporation | Peripheral device host charging |
-
2011
- 2011-06-30 TW TW100123135A patent/TW201301045A/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
TWI448904B (en) | 2014-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103078393B (en) | USB hub and electric power supply method for the same | |
US9645954B2 (en) | Embedded microcontroller and buses | |
US20070143505A1 (en) | Passive usb power configuration switching | |
JP4724187B2 (en) | Method and computer for accessing externally connected external storage device | |
TWI661309B (en) | Flexconnect disconnect detection | |
CN102999144B (en) | USB feed circuit and device thereof and method of supplying power to | |
TWI470412B (en) | Bridging device and energy saving method thereof | |
US8990461B2 (en) | On-The-Go (OTG) USB devices configuration method for identifying configuration of other connected devices by reacting to change in resistance value on a resistive line | |
TWI474679B (en) | Bridge and operation method thereof | |
US20140157012A1 (en) | Information processing apparatus and power supplying method | |
TWI528161B (en) | Data transmitting system and data transmitting method | |
CN108153626B (en) | USB, serial port multiplexing and safety isolation system | |
CN205263730U (en) | Novel IO riser integrated circuit board based on POWER platform | |
TW201301045A (en) | Mode detection method, USB interface system and USB host | |
CN201667067U (en) | USB interface | |
US11334506B2 (en) | Interface connection device, system and method thereof | |
CN211787062U (en) | MCTP equipment testing arrangement | |
Lin et al. | Design and implementation of OTG communication system terminal based on USB | |
CN208225049U (en) | A kind of computer data is to passing on-line unit | |
WO2011088753A1 (en) | Method for managing power supply of display and display | |
TWI297428B (en) | Computer system and power management method thereof | |
CN201773396U (en) | OTG device of USB | |
CN104252430A (en) | State indicating method and electronic equipment | |
TWI334290B (en) | ||
CN201600750U (en) | Network fiscal processor supporting USB communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |