The Universal Serial Bus (USB) is an industry standard protocol developed in the mid-1990s that defines cables, connectors and communication protocols used in a bus for connection, communication, and power supply between a computer (host) and an electronic device (client). Unlike other data buses (e.g., Ethernet, HDMI), USB connections are directed, with both upstream and downstream ports emanating from a single host. It is currently developed by the USB Implementers Forum (USB IF).
The original USB 1.0 specification, which was introduced in January 1996, defined data rates of 1.5 Mbit/s as “Low Speed” and 12 Mbit/s as “Full Speed.” The USB 2.0 specification was released in April 2000 and was ratified by USB-IF at the end of 2001 and defined an additional data rate of 480 Mbit/s as “High Speed.” USB 2.0 uses four shielded wires: two for power (VBUS and GND) and two for differential data signals (D+ and D−), providing half-duplex data transfers. The data rate for a USB 2.0 bus defaults to Full Speed after each bus reset but can be increased to High Speed as determined by a “handshake” protocol using out-of-band signals to verify that both host and client are capable of High Speed operation.
While the D+ and D− signals are transmitted on a differential pair with USB 2.0, they still may be affected by large common-mode differentials between the host and client when, for example, the grounds of the host and/or client are not at earth ground. This can happen in industrial settings, on airplanes, with heating, venting and air conditioning (HVAC) systems, to name a few.
Common-mode interference becomes more problematical at higher data rates, e.g. during High Speed operation of a USB 2.0 bus. There are therefore situations where it is desirable to operate a USB 2.0 bus at the slower Full Speed rate even though the devices are High Speed compatible. However, the automatic handshake protocol used after a bus reset makes Full Speed operation problematical when both the host and client are High Speed compatible.
These and other limitations of the prior art will become apparent to those of skill in the art upon a reading of the following descriptions and a study of the several figures of the drawing.
A method and apparatus are provided for disabling High Speed bus operation in a USB 2.0 bus.
An example method for disabling High Speed bus operation includes monitoring a Universal Serial Bus (USB) for a bus reset signal and disabling a High Speed handshake protocol on the USB during a handshake window period after a detection of a reset if a High Speed disable signal is present. The High Speed disable signal can be the result of the detection of a high common mode voltage on the bus or can be for other reasons where lower data rates are desired.
A first example apparatus includes handshake window enabler having a pair of differential inputs and a window enablement output, a common mode detector coupled to a power input and a ground input and having a handshake inhibit output, and a handshake disabler coupled to the handshake window enabler, the common mode detector, and the pair of differential inputs. If a common mode voltage that out of range (“too high”) is detected, High Speed handshake protocols will be disabled.
A second example apparatus includes: a handshake window enabler having a pair of differential inputs and a window enablement output, wherein the handshake window enabler includes a USB reset detector and a one shot multivibrator coupled to the USB reset detector; a common mode detector coupled to a power input and a ground input and having a handshake inhibit output, wherein the common mode detector includes a ground line resistor provided between the ground input and a ground output, a ground comparator coupled to the ground input, a power comparator coupled to the power input, and a latch having a set input coupled to the ground comparator and a reset input coupled to the power comparator; a handshake disabler coupled to the pair of differential inputs; and an AND gate having inputs coupled to the window enablement output and the handshake inhibit output and an output coupled to a control input of the handshake disabler.
These and other embodiments, features and advantages will become apparent to those of skill in the art upon a reading of the following descriptions and a study of the several figures of the drawing.
Several example embodiments will now be described with reference to the drawings, wherein like components are provided with like reference numerals. The example embodiments are intended to illustrate, but not to limit, the invention. The drawings include the following figures:
In
The handshake window enabler 12, in this non-limiting example, includes a USB Reset Detector 20 and a One Shot Multivibrator (One Shot) 22. THE USB Reset Detector 20 has inputs coupled to the D+_IN and D−_IN lines and an output coupled to an input of the One Shot 22. The output of One Shot 22 develops the window enablement signal WE. In this non-limiting example, the USB Reset Detector detects a bus reset when both D+IN and D−_IN are LO for approximately 2.5 microseconds and triggers the One Shot 22 output WE to go HI for approximately 9 milliseconds. In this example, the 9 milliseconds comprises a “handshake window” during which High Speed handshakes can occur.
The common mode detector 14 includes, in this non-limiting example, a ground line resistor 24 between GND_IN and GND_OUT, a pair of comparators 26 and 28, an OR gate 30, a latch 32 and a comparator 34. In this example, the comparators 26 and 28 are referenced to +0.25 V and −0.25V such that the output of OR gate 30 is HI if GND_IN is out of the range of −0.25V to +0.25V (a range of acceptable common mode voltages). If the common mode voltages are out of range, OR Gate 30 will set latch 32 such that the HS_Inhibit signal is HI. The latch 30 is reset by comparator 34 when VBUS Ind. crosses, for example, a 3V reference voltage. The term “high common mode voltage”, as used herein, means a high absolute value for the common mode voltage, either negative or positive, e.g. outside of a range of acceptable common mode voltages.
The handshake disabler 16 includes a normally closed, single-throw, double pole electronic switch 36, a normally open, single-throw, quadruple pole electronic switch 38, four grounding resistors 40, and an inverter 42. In this non-limiting example, electronic switch 36 includes a first differential line electronic switch coupling a first differential input D+_IN to a first differential output D+_OUT and a second differential line electronic switch coupling a second differential input D−_IN to a second differential output D−_OUT. Also in this non-limiting example, electronic switch 38 includes a first electronic switch, a second electronic switch, a third electronic switch and a fourth electronic switch, each of which forms a series connection with one of the four grounding resistors 40. For example, the handshake disabler 16 can include a series connection of a first electronic switch and a first resistor coupling a first differential input of the pair of differential inputs to ground, a series connection of a second electronic switch and a second resistor coupling a second differential input of the pair of differential inputs to ground, a series connection of a third electronic switch and a third resistor coupling the first differential output to ground, and a series connection of a fourth electronic switch and a fourth resistor coupling the second differential input of the pair of differential inputs to ground.
In operation, when the output HD of AND gate 18 is HI (e.g. WE is HI and HS_Inhibit is HI resulting in a handshake disable signal), electronic switch 36 opens and electronic switch 38 closes to isolate and ground each of D+_IN, D+_OUT, D−_IN and D−_OUT. This effectively stops any handshake communication on the D+ and D− lines for the duration of the handshake window. When the output HD of AND gate 18 is LO, electronic switch 36 closes and electronic switch 38 opens, allowing normal communication on the D+ and D− lines.
In
While various embodiments have been discussed wherein High Speed operation is disabled when high common mode voltages are present on the bus, there are other reasons why disabling High Speed operation may be desirable. For example, if the host and client do not need high data rate communication, it may be desirable to disable High Speed operation in order to reduce power consumption, reduce radiation, increase bus length, etc. The HS_Inhibit signal can therefore be generated in a number of fashions, including simply tying the HS_Inhibit line to the power bus.
Although various embodiments have been described using specific terms and devices, such description is for illustrative purposes only. The words used are words of description rather than of limitation. It is to be understood that changes and variations may be made by those of ordinary skill in the art without departing from the spirit or the scope of various inventions supported by the written disclosure and the drawings. In addition, it should be understood that aspects of various other embodiments may be interchanged either in whole or in part. It is therefore intended that the claims be interpreted in accordance with the true spirit and scope of the invention without limitation or estoppel.
This application is a continuation of U.S. patent Ser. No. 15/709,177, filed Sep. 19, 2017, which claims the benefit of U.S. Pat. Ser. No. 62/402,843, filed Sep. 30, 2016, both of which are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
8156251 | Sorensen et al. | Apr 2012 | B1 |
8391420 | An | Mar 2013 | B1 |
8971423 | Fu et al. | Mar 2015 | B1 |
9444357 | Matthews | Sep 2016 | B1 |
10606772 | Chellappan et al. | Mar 2020 | B2 |
20030140274 | Neumiller et al. | Jul 2003 | A1 |
20040221077 | Yen | Nov 2004 | A1 |
20050144345 | Nakano | Jun 2005 | A1 |
20080140885 | Collins | Jun 2008 | A1 |
20080235418 | Werthen | Sep 2008 | A1 |
20090027003 | Adelman et al. | Jan 2009 | A1 |
20100070748 | Duan et al. | Mar 2010 | A1 |
20100275037 | Lee | Oct 2010 | A1 |
20100313059 | Wang | Dec 2010 | A1 |
20110131356 | Devam | Jun 2011 | A1 |
20110181432 | Ou et al. | Jul 2011 | A1 |
20120079308 | Sasaki | Mar 2012 | A1 |
20140077777 | Vemula | Mar 2014 | A1 |
20140146860 | Wright | May 2014 | A1 |
20140325201 | Nam | Oct 2014 | A1 |
20150058642 | Okamoto | Feb 2015 | A1 |
20160019174 | Sreenath et al. | Jan 2016 | A1 |
20160103781 | Lin et al. | Apr 2016 | A1 |
20170168979 | Remple | Jun 2017 | A1 |
20170277249 | Low | Sep 2017 | A1 |
Number | Date | Country |
---|---|---|
PCTCN2010071415 | Oct 2010 | WO |
Number | Date | Country | |
---|---|---|---|
20210048876 A1 | Feb 2021 | US |
Number | Date | Country | |
---|---|---|---|
62402843 | Sep 2016 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15709177 | Sep 2017 | US |
Child | 17084029 | US |