The disclosure generally relates to a power supply, and more specifically detecting an improper loading condition of the power supply.
With the proliferation of portable electronic devices (e.g., a smart phone, tablet computer, laptop, etc.), safe and efficient charging of batteries becomes important. In case of an improper condition in the connection between a charger and a loading device (e.g., a portable electronic device), for example due to shorted pins or partially shorted pins, supplying power to the loading device leads to unnecessary power consumption and may cause damages to the loading device and/or the charger. To avoid such damages, the loading device can notify the charger of an improper loading condition, and the charger may shutdown the power supply to stop supplying power to the loading device in response. For instance, for charging through a Universal Serial Bus (USB) interface, one common approach involves using the data signal pins (e.g. D+/D− pin) in USB connectors to indicate from the loading device whether any improper condition exists.
However, in case the data signal pins are damaged or shorted, the loading electronic device is unable to inform the charger of the improper condition. As a result, the charger continues to supply power to the portable electronic device, and may cause damages to the loading device and/or the charger.
Embodiments relate to a device for determining a proper loading condition. The device determines impedance at a data pin of a communication interface for determining the loading condition of the pin.
In one embodiment, the device includes a current source configured to selectively inject a test current to the data pin. The device also includes a sensing circuit for sensing a first test voltage corresponding to a voltage at the data pin without the test current injected, and a second test voltage corresponding to another voltage at the data pin with the test current injected. The sensing circuit determines the impedance at the data pin based on the first test voltage and the second test voltage.
In one embodiment, the device determines that the data pin has a short condition responsive to the determined impedance being smaller than threshold impedance.
In one embodiment, the first test voltage is a scaled-down voltage of the voltage at the data pin without the test current injected and the second test voltage is a scaled-down voltage of said another voltage at the data pin with the test current injected.
In one embodiment, the device determines that the data pin has a short condition responsive to the second test voltage being smaller than the first test voltage added with a predetermined threshold voltage.
In one embodiment, the sensing circuit includes a first resistor coupled between the data pin and a node, and a second resistor coupled between the node and a second voltage. The first test voltage and the second test voltage may be sensed at the node. The sensing circuit may further include a first switch coupled in series with the second resistor between the node and the second voltage.
The sensing circuit may further include a sample and hold circuit coupled to the node to sense and hold the first test voltage. The sensing circuit may also include a comparator to compare the first test voltage and the second test voltage. The sensing circuit may determine the impedance at the data pin based on the comparison of the first test voltage and the second test voltage. The sample and hold circuit may include a capacitor and a second switch coupled between the node and the capacitor. The capacitor may store the first test voltage responsive to the second switch being turned on. A predetermined threshold voltage may be added to the first test voltage held by the sample and hold circuit, and the sensing circuit may determine that the data pin has a short condition based on the comparison of the second test voltage with the first test voltage to which the predetermined threshold voltage is added. The device may determine that the data pin has a short condition responsive to the second test voltage being smaller than the first test voltage with the predetermined threshold voltage added to the first test voltage.
In one embodiment, the communication interface is a Universal Serial Bus (USB) interface, and the data pin is one of D+ pin and D− pin of the USB interface.
Embodiments also relate to a method for determining impedance at a data pin of a communication interface. In one embodiment, the method includes sensing a first test voltage corresponding to a voltage at the data pin without a test current injected to the data pin. The method also includes injecting the test current to the data pin. The method includes sensing a second test voltage corresponding to another voltage at the data pin with the test current injected. Additionally, the method includes determining the impedance at the data pin based on a comparison of the first test voltage with the second test voltage.
In one embodiment, the method further includes determining that the data pin has a short condition responsive to the determined impedance being smaller than threshold impedance. The threshold impedance varies depending on the application, e.g. from 100Ω to 1000Ω or any other abnormally low value that impacts the correct communication between the devices.
In one embodiment, the method further includes determining that the data pin has a short condition responsive to the second test voltage being smaller than the first test voltage.
In one embodiment, the method further includes scaling-down the voltage at the data pin without the test current injected to the data pin to generate the first test voltage. The method also includes scaling-down said another voltage at the data pin with the test current injected to the data pin to generate the second test voltage.
In one embodiment, the method includes adding a predetermined threshold voltage to the first test voltage. Determining the impedance at the data pin may be performed with the first test voltage added with the predetermined threshold voltage. The method may also include determining that the data pin has a short condition responsive to the second test voltage being smaller than the first test voltage with the predetermined threshold voltage added to the first voltage.
In one embodiment, the method further includes sampling the first test voltage and holding the first test voltage. The second test voltage is sensed while the first test voltage is held, and determining the impedance at the data pin is performed with the first test voltage held.
The disclosed embodiments have other advantages and features which will be more readily apparent from the detailed description, the appended claims, and the accompanying figures (or drawings). A brief introduction of the figures is below.
Embodiments are described herein with reference to the accompanying drawings. Principles disclosed herein may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. In the description, details of well-known features and techniques may be omitted to avoid unnecessarily obscuring the features of the embodiments.
In the drawings, like reference numerals in the drawings denote like elements. The shape, size and regions, and the like, of the drawing may be exaggerated for clarity.
Embodiments herein relate to a device establishing a proper connection with another device through a communication interface. In one embodiment, the device determines a loading condition to establish a proper connection with another device. The device determines the loading condition by measuring impedance at a data pin of the communication interface. Responsive to determining a proper loading condition, the device establishes a connection with another device. In addition, responsive to determining an improper loading condition, the device terminates a connection with another device or discontinues supplying power to another device.
Improper loading condition herein refers to a loading condition of a device's data pin with low impedance due to a shorted or partially shorted connection. For example, a device's data pin has an improper loading condition with an impedance value of less than 100Ω or other abnormally low values that can impede proper communication.
In one embodiment, the device 110A is a charger supplying power to the device 110B through communication interface 140. The device 110A may be any electronic device capable of providing power to the device 110B. For example, the device 110A is a charger, computer, or a mobile handheld device. The device 110B is a loading device, which can be any electronic device receiving power from the device 110A through the communication interface 140. For example, the device 110B is a computer, or a mobile handheld device. The device 110B may include a battery to store the supplied power from the device 110A. In one embodiment, the device 110A is a power charger unit, the device 110B is a portable electronic device (e.g., a mobile handheld device), and communication interface 140 is a Universal Serial Bus (USB) interface.
The devices 110A and 110B are communicatively coupled to each other through the communication interface 140. The communication interface 140 includes a connector 130A on the device 110A, another connector 130B on the device 110B, and a cable 150 coupled between the connectors 130. Each connector 130 includes multiple physical pins, and the cable 150 includes multiple connection lines 145 (e.g., 145A, 145B, 145C, 145D, 145E, etc.). In one implementation, each pin of the connector 130A is coupled to its corresponding pin of the connector 130B through a respective connection line 145. For example, a data pin of the connector 130A is coupled to a corresponding data pin of the connector 130B through a connection line 145. In other implementations, some pins may not be connected, or a single pin in one device is connected to multiple pins in another device.
In one embodiment, the communication interface 140 is a Universal Serial Bus (USB) interface including USB connectors 130A, 130B, and a USB cable 150. Each of the USB connectors 130A and 130B includes VBUS, D+, D−, identification (ID), and ground (GND) pins. VBUS pin is used to provide a high supply voltage. D+ and D− pins are data pins used to transfer data. ID pin is used for identifying which device is connected to the USB cable. GND pin is used to supply a low supply voltage (e.g., a ground voltage). VBUS, D+, D−, ID, and GND pins in the connectors 130A and 130B are coupled to each other through connection lines 145A through 145E respectively. The cable 150 may also include a shield 148 to reduce electrical noise from affecting the signals and to reduce electromagnetic radiation that may interfere with other devices. Preferably, the shield 148 is coupled to the low supply voltage 190.
Often, the cable 150 or one of the connectors 130 becomes damaged, thereby impeding proper communication between two devices 110. The cable 150 or a connector 130 may be damaged due to dust or a poor connection. For example, a data pin (e.g., D−) in the device 110B becomes shorted with relatively low parasitic (i.e., undesired) impedance and reduces signal amplitude. The reduced signal amplitude obstructs communication between two devices 110. In case the data pin is shorted to a pin (e.g., VBUS) for providing a high supply voltage, parasitic impedance between two shorted pins can be represented as a resistor Rup. Similarly, in case the data pin is shorted to a pin (e.g., GND) for providing a low supply voltage 190, parasitic impedance between two shorted pins can be represented as a resistor Rdn. Hence, parasitic impedance at the data pin can be represented as a parallel combination of resistors Rup and Rdn (i.e., Rup∥Rdn). When the parasitic impedance is substantially low (e.g., <100Ω), total impedance at the data pin including the load impedance and the parasitic impedance becomes close to the parasitic impedance.
Measuring the impedance at the data pin in the device 110A allows the device 110A to determine an improper loading condition without receiving a notification or indication from the device 110B. The device 110A determines an improper loading condition when the total impedance measured is less than a certain threshold (e.g., 100Ω). Hence, the device 110A may become aware of the improper loading condition and respond accordingly. For example, the device 110A may terminate the connection or stop supplying power to the device 110B responsive to determining the improper loading condition.
In one aspect, the impedance measurement circuit 200 determines impedance at one of the data pins of the connector 130 by injecting test current Itest to the data pin using the current source 220. In one implementation, the current source 220 is coupled between a pin (e.g., VBUS) for providing a high supply voltage and the data pin (e.g., D−). The switch SW may be coupled in series with the current source 220 between the pin (e.g., VBUS) and the data pin for selectively injecting test current Itest to the data pin. As will be explained in more detail below, the sensing circuit 250 uses a voltage at the data pin without the test current Itest injected and another voltage at the data pin with the test current Itest injected to determine impedance at the data pin.
In one implementation, the impedance measurement circuit 200 determines impedance at multiple data pins, for example, by multiplexing. In another implementation, the device 110 includes a plurality of impedance measurement circuits 200, where each one of the plurality of impedance measurement circuits 200 determines impedance at its corresponding pin. Based on the determined impedance, the device 110 identifies improper loading condition at the data pin.
The voltage divider circuit 310 performs voltage division of a voltage at the data pin based on operation of the switch S1. When the switch S1 is off, a voltage at the node 325 is substantially equal to a voltage of the data pin because no current flow through the resistors Rpd1, Rpd2. When the switch S1 is on, a voltage at the node 325 is a scaled-down voltage of a voltage at the data pin D−. By dividing the voltage at the data pin, the voltage divider circuit 310 enables the sample and hold circuit 350 to properly operate even when the voltage at the data pin is very large, for example, close to a voltage level of the high voltage supply.
In one implementation, the sample and hold circuit 350 includes a capacitor Ct and switches S2, S3. In one implementation, a first input (e.g., a negative input) of the comparator 360 is coupled to the node 325, and a second input (e.g., a positive input) of the comparator 360 is coupled to a node 335, where a switch S2 is coupled between the node 325 and the node 335. The capacitor Ct is coupled between the node 335 and a node 345.
The switches S3, S4 and the threshold voltage supply 370 perform addition of a predetermined threshold voltage V_TH to a voltage held by the sample and hold circuit 350. In one implementation, the switch S3 is coupled between the node 345 and a low supply voltage (e.g., GND). The switch S4 is coupled between the node 345 and the threshold voltage supply 370 having a predetermined threshold voltage V_TH. Preferably, the switches S3 operates in a same state of the S2, and the switch S4 operates in an opposite state of the states of the switches S2 and S3.
For obtaining a voltage at the node 325 without the test current Itest injected, the switch SW is disabled and the voltage divider circuit 310 is enabled (i.e., the switch SW is turned off and the switch S1 is turned on). The switch S2 is turned on to couple the node 325 and the node 335, the switch S3 is turned on to couple the node 345 to the low supply voltage, and the switch S4 is turned off to decouple the node 345 from the threshold voltage supply 370. Hence, the capacitor Ct is charged for sampling the voltage at the node 335, which is a scaled-down voltage of a voltage at the data pin D− without the test current Itest injected. This voltage is stored in the capacitor Ct as voltage Vdn1, which is the positive input of comparator 360. After sampling of Vdn1, the switches S2 and S3 are turned off to hold the voltage Vdn1 at the node 335 with the charges stored on the capacitor Ct. For the sensing circuit in
When the voltage Vdn1 at the node 335 is held, the switch S4 is turned on to add the predetermined threshold voltage V_TH to the voltage Vdn1 at the node 335. In one approach, the predetermined threshold voltage V_TH may be calculated as the following equation:
In one aspect, parasitic impedance Rup∥Rdn is determined as target impedance (e.g., 100Ω).
For sensing a voltage at the node 325 with the test current Itest injected, the switch SW and the voltage divider circuit 310 is enabled (i.e., the switch SW is turned on and the switch S1 is turned on.) The switch S2 is turned off to decouple the node 325 and the node 335. The voltage Vdn2 at the node 325 increases according to the test current Itest injected to the data pin D− and the impedance at the data pin D−. Thus, the voltage Vdn2 at node 325 reflects the scaled down voltage of a voltage at the data pin D− with the test current Itest injected to the data pin D−, which appears as voltage Vdn2 at node 325 and the negative input of comparator 360. For the sensing circuit in
After sensing the voltage Vdn2 at the node 325 with the test current Itest injected and the voltage Vdn1 at the node 335 without the test current Itest injected, the comparator 360 compares the voltages Vdn1 and Vdn2 to generate the comparison signal 365. In one approach, if the voltage Vdn2 is lower than the voltage Vdn1 with the predetermined threshold voltage V_TH added to Vdn1, the comparator 360 generates a comparison signal 365 with a high state. If the voltage Vdn2 is not lower than the voltage Vdn1 with the predetermined threshold voltage V_TH added to Vdn1, the comparator 360 generates a comparison signal 365 with a low state.
The output circuit 380 receives the comparison signal 365 from the comparator 360 and generates an impedance detection signal DET according to an enable signal 385. The output circuit 380 stores the comparison signal 365 state (high or low) and generates an impedance detection signal DET as its output. In one aspect, the impedance detection signal DET in a high state indicates the impedance at the data pin D− is low, because Vdn2 with the test current Itest injected is lower than Vdn1 without the test current Itest injected due to an improperly low impedance condition at the data pin D−, thus indicating that the data pin D− has an improper loading condition such as short or partial short condition. Similarly, the impedance detection signal DET in a low state indicates the impedance at the data pin D− is normally high, because Vdn2 with the test current Itest injected is higher than Vdn1 without the test current Itest injected due to a normal impedance condition at the data pin D−, thus indicating that the data pin D− has a proper loading condition. In one implementation, the output circuit 380 is a latch, and the impedance detection signal DET is generated based on the comparison signal 365, when the enable signal 385 is in an enable state (e.g., a high state). In another implementation, the output circuit 380 is a flip flop, and the impedance detection signal DET is generated based on the comparison signal 365, when the enable signal 385 transitions from one state (e.g., low state) to another state (e.g., high state).
Referring to
In the first phase T1, the impedance measurement circuit 200 is disabled. The switches SW and S1 are turned off to disable test current Itest from flowing through the data pin. The switches S2 and S3 are turned on, and the switch S4 is turned off. Thus, the positive input voltage V+ and the negative input voltage V− are substantially equal to each other at a voltage level 405 at the data pin. Furthermore, the impedance detection signal DET, for example, in a low state indicates no improper impedance is detected.
In the second phase T2, the impedance measurement circuit 200 senses (or samples) a voltage at the node 325 corresponding to a voltage at the data pin. The first switch S1 is turned on and the voltage divider circuit 310 of the impedance measurement circuit 200 is enabled. In addition, the switches S2 and S3 remain turned on, and the switch S4 remains turned off. The resisters Rpd1 and Rpd2 pull down the voltage at the node 325. Accordingly, the positive input voltage V+ of the comparator 360 at the node 335 and the negative input voltage V− of the comparator 360 at the node 325 reach a voltage level 410. The sample and hold circuit 350 samples the voltage level 410 at the nodes 325, 335 without the test current Itest injected as voltage Vdn1.
In the third phase T3, the impedance measurement circuit 200 holds the sampled voltage and determines impedance at the data pin. The switches S2 and S3 are turned off, and the switch S4 is turned on. Hence, the predetermined threshold voltage V_TH is added to the voltage Vdn1 at the node 335, and the positive input voltage V+ of the comparator 360 at the node 335 reaches the voltage level 430. In addition, the switch SW is turned on to enable the current source 220 and to inject the test current Itest to the data pin. With the test current Itest injected, the negative input voltage V− of the comparator 360 at the node 325 reaches the voltage level 440. The comparator 360 senses the voltage Vdn2 at the node 325 in level 440, and compares the voltage Vdn1 at the node 335 in level 430 and the voltage Vdn2 at the node 325 in level 440. In one example, if the voltage Vdn2 at the node 325 in level 440 is less than the voltage Vdn1 at the node 335 in level 430, indicating an improper load condition at data pin D−, the impedance measurement circuit 200 generates the detection signal DET in a high state 450. The detection signal DET may be generated with a certain delay 460 according to the enable signal 385 which latches the comparison signal 365.
In the fourth phase T4, the impedance measurement circuit 200 is reset. The first switch S1 remains turned on to enable the voltage divider circuit 310 of the impedance measurement circuit 200. In addition, the switches S2 and S3 are turned on, and the switch S4 is turned off. The resisters Rpd1 and Rpd2 pull down the voltage at the node 325, because the voltage divider 310 is enabled as in the phase T2. Accordingly, the positive input voltage V+ of the comparator 360 at the node 335 and the negative input voltage V− of the comparator 360 at the node 325 reach the voltage level 410. Unlike in the phase T2, responsive to detecting an improper load condition in the phase T3, the detection signal DET is latched and remains in the high state 450 to indicate an improper load condition at data pin D−. The impedance measurement circuit 200 may enter the phase T1, after the positive input voltage V+ and the negative input voltage V− of the comparator 360 are substantially equal to each other.
As disclosed with respect to
The device 110A is attached 510 to a loading device 110B through a communication interface 140. The device 110B may turn on a power supply of the device 110A responsive to attaching the load device 110B.
The device 110A determines 520 impedance at a data pin of the communication interface 140 using the impedance measurement circuit 200 as described above with respect to
Responsive to determining that impedance at the data pin is normal, the device 110A determines the data pin has a proper loading condition and performs 560 a handshake operation. For example in case of the USB interface, the device 110A shorts the data pins D+ and D− and performs handshake operation according to the USB battery charging 1.2 protocol. After finishing the handshake operation (i.e., passing the USB BC 1.2 protocol), the data pins D+ and D− are released.
The device 110A may also determine 570 again impedance at the data pin using the impedance measurement circuit 200. Similarly, responsive to determining that impedance at the data pin is low, the device 110A turns the power supply off 530.
Responsive to determining that impedance at the data pin is normal, the device 110A establishes 580 a communication connection with the loading device 110B. In case the device 110A is a charger, the device 110A supplies power to the loading device 110B.
Other embodiments can perform the steps of
In one approach, the device 110A senses a voltage at a data pin without the test current Itest being injected. The device 110A scales-down 610 a voltage at a data pin when test current Itest is not injected. In one embodiment, the device 110A employs a voltage divider circuit 310 to scale-down the voltage at the data pin. The device 110A samples 620 the scaled-down voltage of the voltage at the data pin without the test current Itest being injected using the sample and hold circuit 350. In addition, the device holds 630 the sampled voltage using the sample and hold circuit 350. The held voltage may be added with a predetermined threshold voltage V_TH.
In addition, the device 110A senses a voltage at the data pin with the test current Itest being injected. The device 110A injects 640 test current Itest to the data pin. The device 110A scales-down 650 the voltage at the data pin when test current Itest is injected using the voltage divider circuit.
The device 110A compares 660 the scaled-down voltage of the voltage at the data pin without the current being injected and the scaled-down voltage of the voltage at the data pin with the current being injected.
The device 110A generates 670 an impedance detection signal DET based on the comparison. In one approach, the device 110A generates the impedance detection signal DET based on the comparison to indicate low impedance at the data pin is detected. The device 110A determines an improper loading condition at the data pin based on the impedance detection signal DET.
Beneficially, the disclosed device and method enable detection of improper loading condition at a data pin from the device itself. Without receiving indication or notification from another device, the device and method determines improper loading condition at the data pin by measuring impedance at the data pin. For a charging device, self-determination of the improper loading condition prevents supplying power to a loading device with shorted connections and avoids damaging the charging device and the loading device.
Although the present invention has been described above with respect to several embodiments, various modifications can be made within the scope of the present invention. Accordingly, the disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is set forth in the following claims.
This application is a continuation of U.S. application Ser. No. 15/508,477, filed Mar. 2, 2017, which is the National Stage of International Application No. PCT/CN2014/087237, filed Sep. 23, 2014, which are incorporated by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
6313657 | Hashimoto | Nov 2001 | B1 |
6975103 | Blom | Dec 2005 | B1 |
7508228 | Walker | Mar 2009 | B2 |
20090058435 | Nakamura | Mar 2009 | A1 |
20120126859 | Kawamoto et al. | May 2012 | A1 |
20130271167 | Thiruvengadam | Oct 2013 | A1 |
20150268289 | Onodera | Sep 2015 | A1 |
20150303724 | Lin | Oct 2015 | A1 |
20160261127 | Worry | Sep 2016 | A1 |
20170138998 | Lin | May 2017 | A1 |
Number | Date | Country |
---|---|---|
1877347 | Dec 2006 | CN |
101995912 | Mar 2011 | CN |
102288831 | Dec 2011 | CN |
202854303 | Apr 2013 | CN |
Entry |
---|
PCT International Search Report and Written Opinion, PCT/CN2014/087237, dated Jun. 19, 2015, 11 pages. |
China National Intellectual Property Administration, Notification of the First Office Action, CN Patent Application No. 201480082118.1, dated Nov. 5, 2018, 16 pages. |
Number | Date | Country | |
---|---|---|---|
20200141988 A1 | May 2020 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15508477 | US | |
Child | 16735582 | US |