Standard Downstream Port (SDP) — USB 2.0 and USB 3.0
An SDP is a traditional USB port that follows USB 2.0 and USB 3.0 protocol. An SDP supplies a minimum of 500 and 900-mA per port. USB 2.0 and USB 3.0 communications is supported, and the host controller must be active to allow charging.
Charging Downstream Port (CDP)
A CDP is a USB port that follows USB BC1.2 and supplies a minimum of 1.5 A per port. A CDP provides power and meets the USB-2.0 requirements for device enumeration. USB-2.0 communication is supported, and the host controller must be active to allow charging. The difference between CDP and SDP is the host-charge handshaking logic that identifies this port as a CDP. A CDP is identifiable by a compliant BC1.2 client device and allows for additional current draw by the client device.
The CDP hand-shaking process occurs in two steps. During step one the portable equipment outputs a nominal 0.6-V output on the D+ line and reads the voltage input on the D– line. The portable device detects the connection to an SDP if the voltage is less than the nominal data detect voltage of 0.3 V. The portable device
detects the connection to a CDP if the D– voltage is greater than the nominal data detect voltage of 0.3 V and optionally less than 0.8 V.
The second step is necessary for portable equipment to determine if the equipment is connected to a CDP or a DCP. The portable device outputs a nominal 0.6-V output on the D– line and reads the voltage input on the D+ line. The portable device concludes the equipment is connected to a CDP if the data line being read remains less than the nominal data detect voltage of 0.3 V. The portable device concludes it is connected to a DCP if the data line being read is greater than the nominal data detect voltage of 0.3 V.
Dedicated Charging Port (DCP)
A DCP only provides power but does not support data connection to an upstream port. As shown in following sections, a DCP is identified by the electrical characteristics of its data lines.
3、判断是否是CDP
A method of performing enumeration (connection recognition) by performing a handshake using USB data lines (D + and D-).
It recognizes whether it is CDP or not in two steps.
Output 0.6 V to the D + line and measure the voltage of the D - line
When the voltage of the D - line is less than 0.3 V, it is judged that it is connected to SDP;
When the voltage of the D - line is 0.3 V or more and less than 0.8 V, it is judged that it is connected to CDP or DCP
Output 0.6 V to the D - line and measure the voltage of the D + line
When the voltage of the D + line is less than 0.3 V, it is judged that it is connected to the CDP;
When the voltage of the D + line is 0.3 V or more and less than 0.8 V, it is determined that it is connected to DCP;