A universal serial bus interface detection circuit and method
A universal serial bus, detection circuit technology, applied in the direction of measuring electricity, measuring electrical variables, measuring devices, etc., can solve problems such as affecting the normal use of users, inability to charge, etc., and achieve the effect of solving the problem of terminal identification errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] Figure 2A It is a structural representation of a USB interface detection circuit provided by Embodiment 1 of the present invention Figure 1 , Figure 2B The second schematic diagram of the structure of a USB interface detection circuit provided by the first embodiment of the present invention. The technical solution of this embodiment is applicable to the situation where the communication interface of the terminal with the OTG function performs detection. The terminal can be any electronic device with an OTG function, typically such as a mobile phone, a tablet computer, and the like.
[0027] Such as Figure 2A and 2B As shown, the interface detection circuit includes: a USB interface 110 , a voltage divider circuit 120 , an identification signal detection terminal 130 , an ADC detection terminal 140 and a detection module 150 . Wherein the voltage dividing circuit 120 includes a first power source 121 and a voltage dividing point 122 .
[0028] Wherein, the ide...
Embodiment 2
[0035] image 3 It is a circuit diagram of a USB interface detection circuit provided by Embodiment 2 of the present invention. Based on the first embodiment, this embodiment provides a specific circuit implementation manner.
[0036] Such as image 3 As shown, CN1101 is the USB interface of the mobile terminal, which includes an ID pin, a VBUS pin, two data pins (D+, D-) and a GND pin.
[0037] The voltage dividing circuit specifically includes: a first resistor R1, a second resistor R2 and a third resistor R3 connected in series between the first power supply (VDD) and the ground, and the point between R2 and R3 is used as a voltage dividing point. Here R2 does not have to exist, and the removal of R2 is the situation in the first embodiment. Adding R2 here can adjust the threshold value of the second level, so that the setting of the detection threshold value is more flexible, and the threshold value of the second level can be changed. When the second resistor R2 is con...
Embodiment 3
[0050] Figure 4 It is a flowchart of a detection method of a universal serial bus interface detection circuit provided by Embodiment 3 of the present invention. In this embodiment, the detection method is performed by the serial bus interface detection circuit of the above-mentioned embodiment, and the detection method is as follows: Figure 4 As shown, the method includes:
[0051] S410. The detection module acquires the first level and the second level.
[0052] S420. The detection module determines the connection state between the interface and the device according to the first level and the second level.
[0053] Specifically, such as Figure 5 As shown, the detection module judges the connection status between the interface and the device according to the first level and the second level, including:
[0054] S421. Identify that the first level is a set low level.
[0055] S422. Detect whether the second level is lower than the set threshold value. If it is lower tha...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


