摘要 |
Disclosed is a device and method for detecting types of a universal serial bus cable. The detection device includes a detection circuit and a control unit. The detection circuit includes a signal source, a receiving end, a first resistor, a second resistor, a variable resistor, a first capacitor, a second capacitor, first through fourth switches, a VBUS end, an ID end, and a ground end. The signal source provides a detection signal. The control unit is electrically connected to the detection circuit, and is configured to control the first through the fourth switches according to a plurality of on-off states, to receive the detection signal and a VBUS signal from the receiving end in the plurality of on-off states, to generate a plurality of detection results, and to determine the type of the USB cable according to the plurality of detection results. |
主权项 |
1. A device for detecting types of universal serial bus (USB) cable, applicable to determine types of a USB cable, the USB cable at least comprising a VBUS line and a ground line, an electronic device connected to another end of the USB cable opposing to the device for detecting types of USB cable, and providing a VBUS signal to the VBUS line, the device for detecting types of USB cable comprising:
a detection circuit, comprising:
a signal source, providing a detection signal;a first resistor, having a first end and a second end, the first end connected to the signal source;a variable resistor, having a first end and a second end, the first end of the variable resistor connected to the second end of the first resistors;a second resistor, having a first end and a second end, the first end of the second resistor connected to the second end of the variable resistor, the second end of the second resistor connected to a ground end corresponding to the ground line;a first capacitor, having a first end and a second end, the first end of the first capacitor connected to a first node between the variable resistor and the second resistor, the second end of the first capacitor connected to an ID end;a second capacitor, having a first end and a second end, the first end of the second capacitor connected to a second node between the first resistor and the second resistor, the second end of the second capacitor connected to a VBUS end corresponding to the VBUS line;a receiving end;a first switch, connected between the second node and the receiving end;a second switch, one end of which connected between the receiving end and the second end of the first switch, another end connected to the first node;a third switch, connected in series between the first node and the first capacitor, and a fourth switch, connected in series between the first node and the first end of the second resistor; and a control unit, electrically connected to the detection circuit, configured to control the first switch, the second switch, the third switch and the fourth switch according to a plurality of on-off states, to control the variable resistor and the signal source to transmit the detection signal respectively corresponding to the plurality of on-off states, to receive the detection signal and the VBUS signal respectively from the receiving end during the plurality of on-off states, to generate a plurality of detection results and to determine types of the USB cable based on the plurality of detection results. |