Regulation circuit to facilitate USB cable compliance
10895899 ยท 2021-01-19
Assignee
Inventors
Cpc classification
G06F1/28
PHYSICS
H02M3/137
ELECTRICITY
International classification
H02M3/137
ELECTRICITY
G06F1/28
PHYSICS
Abstract
A circuit includes a regulation circuit configured to intercept messages on a configuration channel of a universal serial bus (USB) cable between a USB source device and a USB sink device. The regulation circuit regulates a source capability message from the USB cable configuration channel based on a predetermined power capability of the USB cable.
Claims
1. A system, comprising: a universal serial bus (USB) cable that includes at least one power connection and a configuration channel, the USB cable delivers power between a USB source device and a USB sink device via the power connection and enables negotiation of power capabilities between the USB source device and the USB sink device via the configuration channel; and a regulation circuit configured to control communications between the USB source device and USB sink device by controlling the configuration channel between the devices, the regulation circuit further comprising: a switching circuit to control communications on the configuration channel between the USB source device and USB sink device; a controller configured to control the switching circuit and to format source capability messages to the USB sink device based on received source capability messages from the USB source device; an activity detector to notify the controller of detected communications on the configuration channel by the USB source device or the USB sink device; a receiver to receive messages via the switching circuit from the USB source device or the USB sink device; and a transmitter to transmit messages via the switching circuit to the USB source device or the USB sink device, wherein the controller is configured to intercept a source capability message from the receiver via the configuration channel to determine power capabilities of the USB source device and modifies the source capability message sent to the USB sink device to the transmitter via the configuration channel if the power capability of the USB source device exceeds the power capability of the USB cable.
2. The system of claim 1, wherein the controller is configured to modify the source capability message sent to the USB sink device to be a different voltage or a different current offered by the USB source device based on voltage or current capabilities of the USB cable.
3. The system of claim 2, wherein the controller is configured to modify a power data object (PDO) in the source capability message to change voltage or current offered to the USB sink device.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION
(8) This disclosure relates to a regulation circuit to control power delivered by a universal serial bus (USB) cable. Some non-compliant USB sources may provide maximum power to be delivered by a USB cable without determining if the cable is designed for passing such power. The regulation circuit described herein is connected between a communications connection between a USB source device and a USB sink device. If the USB source device advertises a power capability greater than what can be carried by the USB cable, the regulation circuit modifies the source capability message provided by the USB source device before delivering it to the USB sink device. In this manner, the sink device may then request a lesser amount of power from the USB source device than what the USB source device originally advertises. As such, the power delivery scheme regulation circuit is in compliant with the power carrying capabilities of the cable.
(9) A universal serial bus (USB) cable (e.g., USB Type C cable) is provided that includes at least one power connection and a configuration channel (CC) connection. The USB cable delivers power between the USB source device and the USB sink device via the power connection and enables negotiation of power capabilities between the USB source device and the USB sink device via the configuration channel. The regulation circuit includes a switching circuit to control communications between the USB source device and USB sink device by controlling the configuration channel between the devices (e.g., using controlled switches to activate and/or deactivate the configuration channel from the USB source or sink device).
(10) A controller (or state machine) configured within or outside of the regulation circuit monitors communications of the configuration channel. This includes regulating (e.g., modifying or ignoring) a source capability message from the USB source device via the configuration channel to determine power capabilities of the USB source device. The controller modifies the source capability message before sending it to the USB sink device (or passes it through if the message is compliant with cable power requirements) if the power capability of the USB source device exceeds the power capability (e.g., a non-compliant message) of the USB cable. Power data objects (PDO) in the source capability message can be altered by the controller to change the source capability message to the USB sink device if the advertised voltage and/or current from the USB source device exceeds the capability of the USB cable.
(11) As used herein, the term circuit can include a collection of active and/or passive elements that perform a circuit function, such as an analog circuit or control circuit. Additionally or alternatively, for example, the term circuit can include an integrated circuit (IC) where all and/or some of the circuit elements are fabricated on a common substrate (e.g., semiconductor substrate, such as a die or chip).
(12)
(13) As shown, the USB cable 110 includes a source connector 170 to connect to the USB source device 140 and a sink connector 180 to connect to the USB sink device 150. The regulation circuit 120 can be located in or near the source connector 170, the sink connector 180, and/or an extended portion of the USB cable 110. Also, the regulation circuit 120 can be powered by a VBUS connection, a VCONN connection, or both the VBUS and the VCONN connections in the USB cable 110 (see, e.g.,
(14) The regulation circuit 120 can include a controller (see, e.g., 320 in
(15) In one example, the regulation circuit 120 modifies the source capability message sent to the USB sink device 150 to be a different voltage or a different current offered by the USB source device 140 based on the voltage or current capabilities of the USB cable (e.g., voltage or current capabilities of cable encoded in controller or state machine memory). The regulation circuit 120 can also modify a power data object (PDO) in the source capability message to change the voltage or the current offered to the USB sink device 150. In another example, the regulation circuit 120 passes through source capability messages from the USB source device to the USB sink device that does not violate the USB cable 110 power capability or regenerates a compliant message to the USB sink device 150 based on the USB source device sending a source capability message that does not violate the USB cable power capability. In some example, the regulation circuit 120 passes through messages unrelated to the power of the source (e.g., such as listen and pass 630 of
(16)
(17)
(18) The regulation circuit 300 includes a controller 320 operated by the state machine of
(19) The controller 320 monitors a source capability message from the receiver 350 via the configuration channel to determine power capabilities of the USB source device and modifies the source capability message sent to the USB sink device to the transmitter 360 via the configuration channel if the power capability of the USB source device exceeds the power capability of the USB cable. The regulation circuit 300 includes a power regulator 370 to regulate the voltage from the VBUS connection and/or the VCONN from connection 372 to a lower voltage for the regulation circuit (e.g., buck switching power supply). As noted previously, the transmitter 360 or the receiver 350 can send or receive data on the configuration channel via a biphase mark coding protocol (BMC). Also, the regulation circuit 300 can include a low pass filter on the configuration channel that includes capacitor C1 and resistor R1 or R2 depending of the setting of the switches in the switching circuit 310. The low pass filter prevents messages from being passed on the configuration channel and allows direct current (DC) voltage level to pass through on the configuration channel. In some examples, the DC level of the configuration channel can also be used to communicate information and thus, the low pass filter mitigates interruptions to such DC level communications. The filter can be set with a corner frequency of about 65 kHz to filter out 600 kHz USB BMC signal interference, for example. Operations of the regulation circuit 300 are illustrated described below with respect to the method of
(20) In view of the foregoing structural and functional features described above, example methods will be better appreciated with reference to
(21)
(22) The process at state 460 for Intercept and Change Message can be implemented in several ways. First, it may intercept the USB PD Request message from the Sink and override the requested current, voltage and/or power in order to limit the current to the amount the cable can support. A second method is to intercept the Source Capabilities USB PD message sent by the Source and modify the current, voltage and/or power it offers to what the cable can support. Other messages that the source may send may be intercepted also, for example, to inform the sink that the cable is limiting the amount of power. Other bit fields in the message are not modified. For example, the message identifier (ID). In examples where the cable wants to limit the voltage, it may remove respective power data objects (PDO's) from the source capabilities message. For example, if the source capabilities message contains four PDO's for 5V, 9V, 15V, and 20V a Type-C cable that cannot tolerate 20 V may remove the 4th PDO when it retransmits the message. In that case, the fields that specify the length of the message is also to be modified including the Number of Data objects. If one or more bits is changed in the message, then the cyclic redundancy check (CRC) that is appended to the end of the message may be different. The regulation performs its own CRC calculation in order to append the proper CRC.
(23) At state 424, the GoodCRC passed condition can be determined by the BMC Rx processing the message or by one of the activity detector circuits determining that the CC bus is idle. The CC bus is idle if there are no longer any BMC bit transitions detected within a certain time window. The Let GoodCRC pass state may also start a timer on the order of 1.2 ms by which time a GoodCRC message should have finished. If the message is determined not to be a GoodCRC message, then the regulation may proceed to the Idle State at 410 to prevent the message from passing. The CC1/CC2 Active condition is determined by the voltage on CC1 and CC2 which are connected in this state. The low-pass filter is connected to the CCx pins, so a BMC transmission will be filtered to a near DC voltage. However, the DC voltage will be different. The condition CC1/CC2 Active is true when the DC voltage has a change significant enough to be indicative of a transmission. The DC voltage for a transmission should not match the DC voltage when no transmission is in progress.
(24) In the Listen State at state 414, the low-pass filter is removed. If a true BMC signal is not detected within a predetermined time, then the regulation goes back to the Idle state at state 410. In the Listen State at state 414, the activity detectors are watching CC1 and CC2 respectively. In some examples, a single activity detector can sequentially monitor both pins. When bit transitions are detected on CC1 or CC2, then the CCx active condition is true and it is determined that a BMC signal is arriving on the CCx pin. Some USB PD messages are intended for the cable itself. Those messages have a frame marker called SOP, SOP, SOP_DBG, SOP_DBG, or Cable Reset. These messages can be processed in the same manner specified by the USB PD specification which is publicly available. The regulation processes those messages and responds to them in the normal way on the same CC pin (either CC1 or CC2) that the received message arrived on. Messages that have a frame marker called SOP or Hard Reset are intended for the device at the other end of the cable and should to be intercepted and changed or repeated or passed through on the other CC pin.
(25) The GoodCRC message should be received by the sender of a message within about 0.9 ms so it is easier for the regulation to let that message pass. The vGoodCRC variable in the flow chart enables this. Other messages can be delayed by as much as about 9 ms without causing timing issues. For example, the time within the responder is to respond is generally about 15 ms (tReceiverResponse), but the recipient of a message should wait for at least about 24 ms (tSenderResponse). This built in margin in the USB PD specification allows time for the regulation to intercept and modify the messages. The following table 1 shows the switch settings of the switch circuit 300 of
(26) TABLE-US-00001 TABLE 1 Q1 Q2 Q3 Q4 Q5 Q6 Idle state OFF ON ON OFF OFF OFF Connect CC1 to CC2 through a bi-directional low-pass filter. This should be the default state when the e-marker is unpowered. CC1 and CC2 are monitored by BMC idle circuits. Receive on CC1 ON OFF OFF OFF X X Q5 or Q6 could be ON, but not both. Receive on CC2 OFF OFF OFF ON X X Q5 or Q6 could be ON, but not both. Transmit on CC1 X OFF OFF X ON OFF Q1 or Q4 could be ON, but not both. Transmit on CC2 X OFF OFF X OFF ON Q1 or Q4 could be ON, but not both. Let GoodCRC pass ON OFF OFF ON OFF OFF Remove low pass filter (LPF), and connect CC1 and CC2. Other switch configurations can also achieve this. Circuit to monitor for BMC activity on CC1 or CC2 still running. Listen State: OFF OFF OFF OFF OFF OFF Remove LPF, but BMC Rx does not need to be connected yet. Whether the signal is arriving on CC1 or CC2 is to be determined.
(27)
(28)
(29) At state 624, if it is determined that a message should be intercepted, then the method enters a listen and do not pass state at state 640 and determines which CC pin carries the message. At state 644, the intercept message is generated and passed to a process received message state at state 650. The process received message state can also be entered upon a message for cable event being determined as YES at state 620 which proceeds to a listen and do not pass state at state 654 before proceeding to state 650. At state 660, a determination is made as to whether the received message is from CC1. If so and the flow has passed through state 654, the method proceeds to 670 and transmits on CC1 before returning to the idle state at state 610. If so and the flow has passed through state 640, the method proceeds to state 670 and transmits on CC2 before returning to the idle state at state 610. If not at state 660, the process proceeds to state 680 and transmits on CC2. The following table 2 shows the switch settings of the switch circuit 500 of
(30) TABLE-US-00002 TABLE 2 Q11 Q12 Q13 Q14 Q15 Idle state OFF ON ON OFF OFF Connect CC1 to CC2 through a bi-di- rectional low-pass filter. This should be the default state when the e- marker is unpowered. CC1 and CC2 are monitored by BMC Activity Detector circuit. Listen and Pass ON OFF OFF ON ON Listen with one BMC Rx and let message pass through between CC1 and CC2. Listen do not Pass ON OFF OFF ON OFF Each BMC Rx listens to a CC pin. message is not passed between CC1 and CC2. Transmit on CC1 ON OFF OFF OFF ON Transmit on CC2 OFF OFF OFF ON X
(31)
(32) What have been described above are examples. It is, of course, not possible to describe every conceivable combination of components or methodologies, but one of ordinary skill in the art will recognize that many further combinations and permutations are possible. Accordingly, the disclosure is intended to embrace all such alterations, modifications, and variations that fall within the scope of this application, including the appended claims. As used herein, the term includes means includes but not limited to, the term including means including but not limited to. The term based on means based at least in part on. Additionally, where the disclosure or claims recite a, an, a first, or another element, or the equivalent thereof, it should be interpreted to include one or more than one such element, neither requiring nor excluding two or more such elements.