Interface insertion anomaly detection circuit and method
First Claim
1. A detection circuit for detecting an abnormal interface coupling, comprising:
- a power circuit;
a first USB interface, comprising a first power wire and a first signal wire, wherein a power end of the first power wire is coupled to the power circuit;
a second USB interface, comprising a second power wire and a second signal wire, wherein the second power wire and the second signal wire are short-circuited coupled, the second USB interface is coupled with the first USB interface, such that the second signal wire is coupled with the first signal wire;
the first power wire is configured to receive a power signal outputted by the power circuit, and to output the power signal received to the second power wire in the second USB interface coupled with the first USB interface; and
a controller, wherein a first voltage sampling end of the controller is coupled to the power end of the first power wire, a second voltage sampling end of the controller is coupled to a signal end of the first signal wire, and the controller is configured to, before a charging is performed or during the charging, acquire a voltage of the first power wire from the first voltage sampling end, to acquire a voltage of the first signal wire from the second voltage sampling end, to calculate a voltage difference according to the voltage of the first power wire and the voltage of the first signal wire, and to determine whether the abnormal interface coupling between the first USB interface and the second USB interface occurs according to the voltage difference.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure provides a detection circuit and a method for detecting an abnormal interface coupling. The detection circuit includes: a power circuit; a first USB interface, including a first power wire and a first signal wire, in which a power end of the first power wire is coupled to the power circuit; a second USB interface, including a second power wire and a second signal wire, in which the second USB interface is coupled with the first USB interface, such that the second signal wire is coupled with the first signal wire; and a controller, configured to acquire a voltage difference between a voltage of the first power wire and a voltage of the second power wire, and to determine whether the interface coupling is abnormal according to the voltage difference.
7 Citations
17 Claims
-
1. A detection circuit for detecting an abnormal interface coupling, comprising:
-
a power circuit; a first USB interface, comprising a first power wire and a first signal wire, wherein a power end of the first power wire is coupled to the power circuit; a second USB interface, comprising a second power wire and a second signal wire, wherein the second power wire and the second signal wire are short-circuited coupled, the second USB interface is coupled with the first USB interface, such that the second signal wire is coupled with the first signal wire;
the first power wire is configured to receive a power signal outputted by the power circuit, and to output the power signal received to the second power wire in the second USB interface coupled with the first USB interface; anda controller, wherein a first voltage sampling end of the controller is coupled to the power end of the first power wire, a second voltage sampling end of the controller is coupled to a signal end of the first signal wire, and the controller is configured to, before a charging is performed or during the charging, acquire a voltage of the first power wire from the first voltage sampling end, to acquire a voltage of the first signal wire from the second voltage sampling end, to calculate a voltage difference according to the voltage of the first power wire and the voltage of the first signal wire, and to determine whether the abnormal interface coupling between the first USB interface and the second USB interface occurs according to the voltage difference. - View Dependent Claims (2, 3, 4, 5, 6, 7, 10, 11, 12, 13)
-
-
8. A method for detecting an abnormal interface coupling between a first USB interface and a second USB interface, wherein the first USB interface comprises a first power wire and a first signal wire, the second USB interface comprises a second power wire and a second signal wire, a power end of the first power wire is coupled with a power circuit, and the first signal wire is coupled with the second signal wire when the first USB interface is coupled with the second USB interface, and the method comprises:
-
short-circuited coupling the second power wire with the second signal wire; outputting by the power circuit a power signal to the first power wire in the first USB interface when the first USB interface is coupled with the second USB interface, such that the first USB interface outputs the power signal to the second power wire in the second USB interface via the first power wire; detecting by a controller, the voltage of the first power wire and a voltage of the first signal wire, before a charging is performed or during the charging; acquiring by the controller, the voltage difference according to the voltage of the first power wire and the voltage of the first signal wire; and determining whether the abnormal interface coupling between the first USB interface and the second USB interface occurs according to the voltage difference. - View Dependent Claims (9, 14, 15, 16, 17)
-
Specification