CN115129522A - USB function pin detection system - Google Patents
USB function pin detection system Download PDFInfo
- Publication number
- CN115129522A CN115129522A CN202210722168.8A CN202210722168A CN115129522A CN 115129522 A CN115129522 A CN 115129522A CN 202210722168 A CN202210722168 A CN 202210722168A CN 115129522 A CN115129522 A CN 115129522A
- Authority
- CN
- China
- Prior art keywords
- resistor
- unit
- pin
- mcu
- power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 46
- 238000012360 testing method Methods 0.000 claims abstract description 34
- 239000003990 capacitor Substances 0.000 claims description 36
- 230000005540 biological transmission Effects 0.000 claims description 6
- 230000008901 benefit Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 16
- 238000000034 method Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 101100102627 Oscarella pearsei VIN1 gene Proteins 0.000 description 1
- 108700025151 PD protocol Proteins 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013142 basic testing Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/273—Tester hardware, i.e. output processing circuits
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The invention discloses a USB function pin detection system which comprises a power adapter, a USB interface, a voltage detection unit, a CC control unit, a quick charge function unit, an MCU unit, an LDO power supply unit and a test indication unit, wherein the voltage detection unit, the CC control unit, the quick charge function unit, the LDO power supply unit and the test indication unit are all connected with the MCU unit, the voltage detection unit is also connected with the power adapter, the USB interface is connected with the MCU unit, and the power adapter is connected with the USB interface. The embodiment can judge whether the power management function and the quick charging function of the power adapter are normal, can judge the connection condition of the Type-C terminal in the USB, can judge whether the power function of the power adapter is normal through the indicating lamp, can also have the test quick charging function while having the test power management function, and has the advantages of simple circuit structure and low implementation cost.
Description
Technical Field
The invention relates to the technical field of USB detection, in particular to a USB functional pin detection system.
Background
The USB Type-C power supply is a device having an output terminal using a USB Type-C terminal and supporting a DFP function, and the PD power adapter (DFP) is a typical USB Type-C power supply, and generally supports a power management function and a quick charging function, i.e., a PD function and a QC function, referring to fig. 1, and the output port of the PD power adapter uses a Type-C interface. Referring to fig. 1, PIN PINs actually used by the PD POWER adapter include a1, a12, B1, B12, a4, a9, B4, B9, a5, B5, A6, a7, B6, and B7, that is, the PD POWER adapter uses GND, VBUS, CC1, CC2, D +, and D-to transmit signals and energy, where GND is POWER and signal ground, VBUS is POWER transmission PIN, CC1 and CC2 are PD signal PINs, and D +, D-are QC signal PINs. In the production process of a PD power Adapter (Adapter), only PD functions and QC functions are generally tested to output, and some existing test methods may have the phenomenon that the connection of a CC1 terminal is correct, but a CC2 is open, or the phenomenon that the connection of a CC2 is normal and the connection of a CC1 is open cannot be tested. It is also possible that the short circuit condition of CC1 and CC2 could not be tested. It is also possible that when one side D + and D- (e.g., a6, a7) are connected to the PCB board without error, but the other side D + and D- (e.g., B6, B7) are not connected to the PCB. Some test protocols, while capable of testing the above, are relatively expensive.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a USB function pin detection system which is simple in circuit structure and low in cost and can comprehensively detect the functions of all pins of a USB.
The purpose of the invention is realized by adopting the following technical scheme:
the invention provides a USB function pin detection system, which comprises a power adapter, a USB interface, a voltage detection unit, a CC control unit, a quick charge function unit, an MCU unit, an LDO power supply unit and a test indication unit, wherein the voltage detection unit, the CC control unit, the quick charge function unit, the LDO power supply unit and the test indication unit are all connected with the MCU unit, the voltage detection unit is also connected with the power adapter, the USB interface is connected with the MCU unit, the power adapter is connected with the USB interface, the LDO power supply unit is used for providing direct current for an MCU, the voltage detection unit is used for detecting the output voltage of the power adapter and setting a CC1V1 pin and a CC2V2 pin as input states, the CC control unit is used for controlling the EnCC1 pin and the EnCC2 pin to enable when the MCU is powered on, the quick charge function unit is used for outputting the set voltage by the power adapter, and adjusting the voltage of the DPV1 pin, the DPGND pin and the DMV1 pin so that the MCU unit reads the VBUS voltage of the USB interface through the voltage detection unit after setting the voltage of the quick charging pin in the USB interface. .
In the present invention, as an optional embodiment, the USB interface includes a power signal ground pin, an energy transmission pin, a power management signal pin, and a fast charging signal pin.
In the present invention, as an alternative embodiment, the model of the MCU unit is CS32G 02X.
In the present invention, as an alternative embodiment, the voltage detection unit includes a resistor R1 and a resistor R2, one end of the resistor R1 is connected to the VBUS pin of the USB interface, the other end of the resistor R1 is grounded through a resistor R2, one end of the resistor R1 is further connected to a power adapter, and an AINP8 pin of the MCU unit is connected between the resistor R1 and the resistor R2.
In the present invention, as an alternative embodiment, the CC control unit includes a resistor R50, a resistor R51, a resistor R3, a resistor R8, a transistor Q4, and a transistor Q5, one end of the resistor R50 and one end of the resistor R51 are both connected with the MCU unit, the other end of the resistor R50 and the resistor R51 are both connected with a CC1V1 pin of the USB interface, the other ends of the resistors are both connected with the USB interface and a CC2V2 pin of the USB interface, the other end of the resistor R50 is also connected with the collector of a triode Q4, the collector of the triode Q4 is also connected with the pin CC1_1 of the MCU unit, the emitter of the Q4 is grounded, the base of the triode Q4 is connected with the EnCC1 pin of the MCU unit through a resistor R3, the other end of the resistor R51 is also connected with the collector of a triode Q5, the collector of the triode Q5 is also connected with the pin CC2_1 of the MCU unit, the emitter of the Q5 is grounded, and the base of the triode Q5 is connected with the EnCC2 pin of the MCU unit through a resistor R5.
In the present invention, as an optional embodiment, the LD0 power supply unit includes a power chip, a resistor R27, a resistor R28, a resistor R29, a diode D1, a diode D2, a capacitor C32, a capacitor C33, a capacitor C34, and a capacitor C30, where an anode of the diode D1 is connected to a CVBUS pin of the USB interface, an anode of the diode D2 is connected to the power input VIN1, a cathode of the diode D1 is connected to the input terminal VIN of the power chip through the resistor R27, a cathode of the diode D2 is connected to the input terminal VIN of the power chip through the resistor R29, one end of the capacitor C32 is connected to the input terminal VIN of the power chip, and the other end of the capacitor C32 is grounded; one end of the capacitor C33, one end of the capacitor C34 and one end of the resistor R28 are all connected with an output end Vout of the power supply chip, the other end of the capacitor C33 and the other end of the capacitor C34 are all connected to the ground GND, the other end of the resistor R28 and one end of the capacitor C30 are connected to an MCU _ VCC pin of the MCU unit, and the other end of the capacitor C30 is connected to the ground.
In the present invention, as an alternative embodiment, the model of the power chip is ME6203a33M 3G.
In the present invention, as an optional embodiment, the test indication unit includes a light emitting diode LED1, a light emitting diode LED2, a light emitting diode LED3, a resistor R47, a resistor R48, and a resistor R49, an anode terminal of the light emitting diode LED1, an anode terminal of the light emitting diode LED2, and an anode terminal of the light emitting diode LED3 are all connected to the MCU unit, a cathode terminal of the light emitting diode LED1 is grounded through the resistor R49, a cathode terminal of the light emitting diode LED2 is grounded through the resistor R47, and the light emitting diode LED3 is grounded through the resistor R48.
In the present invention, as an optional embodiment, the quick charging function unit includes a resistor R4, a resistor R5, a resistor R6, and a resistor R7, where the resistor R4 and the resistor R6 are connected to form a first series branch, the resistor R5 and the resistor R7 are connected to form a second series branch, one end of the first series branch and one end of the second series branch are both connected to an MCU unit, the other end of the first series branch is further connected to the MCU unit, the other end of the second series branch is grounded, and the MCU unit is further connected between the resistor R4 and the resistor R6 and between the resistor R5 and the resistor R7, respectively.
Compared with the prior art, the invention has the beneficial effects that:
according to the USB functional pin detection system, the voltage detection unit, the CC control unit, the quick charging function unit, the MCU unit, the LDO power supply unit and the test indication unit are arranged, whether the power management function and the quick charging function of the power adapter are normal or not can be judged, the connection condition of a Type-C terminal in a USB can be judged, whether the power function of the power adapter is normal or not can be judged through the indication lamp, the test quick charging function can be realized while the test power management function is realized, the circuit structure is simple, and the implementation cost is low.
Drawings
Fig. 1 is a schematic block diagram of a USB functional pin detection system according to an embodiment of the present invention;
FIG. 2 is a circuit diagram of an MCU unit according to an embodiment of the present invention;
FIG. 3 is a circuit diagram of a USB interface according to an embodiment of the present invention;
FIG. 4 is a circuit diagram of a voltage detecting unit according to an embodiment of the present invention;
fig. 5 is a circuit configuration diagram of a CC control unit according to an embodiment of the present invention;
fig. 6 is a circuit configuration diagram of a LD0 power supply unit according to an embodiment of the present invention;
FIG. 7 is a circuit diagram of a test indication unit according to an embodiment of the present invention;
fig. 8 is a circuit configuration diagram of a fast charging functional unit according to an embodiment of the present invention;
FIG. 9 is a table showing the voltage mapping between D + and D-in the QC2.0 handshake protocol applied in the embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict. Except as specifically noted, the materials and equipment used in this example are commercially available. Examples of embodiments are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are exemplary only for explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the terms "upper", "lower", "front", "back", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like refer to orientations or positional relationships based on those shown in the drawings, merely for convenience of description and simplicity of description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated, and thus, are not to be construed as limiting the present application. In the description of this application, "plurality" means two or more unless specifically stated otherwise.
In the description of the present application, it should be noted that unless otherwise specifically stated or limited, the terms "connected," "communicating," and "connected" are to be construed broadly, e.g., as meaning a fixed connection, a connection through an intervening medium, a connection between two elements, or an interaction between two elements. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the application provides a USB function pin detecting system, through setting up voltage detecting element, CC the control unit, fill the functional unit soon, the MCU unit, LDO power supply unit and test instruction unit, can judge whether power adapter's power management function and fill the function soon normally, and can judge the connection condition of Type-C terminal in the USB, can judge whether power adapter's power function is normal through the pilot lamp, can still have the test function of filling soon when having test power management function, circuit structure is simple, the implementation cost is low.
Fig. 1 shows a schematic block diagram of a USB functional pin detection system according to an embodiment of the present invention, fig. 2 shows a circuit structure diagram of an MCU unit according to an embodiment of the present invention, fig. 3 shows a circuit structure diagram of a USB interface according to an embodiment of the present invention, fig. 4 shows a circuit structure diagram of a voltage detection unit according to an embodiment of the present invention, fig. 5 shows a circuit structure diagram of a CC control unit according to an embodiment of the present invention, fig. 6 shows a circuit structure diagram of an LD0 power supply unit according to an embodiment of the present invention, fig. 7 shows a circuit structure diagram of a test indication unit according to an embodiment of the present invention, and fig. 8 shows a circuit structure diagram of a fast charge function unit according to an embodiment of the present invention.
Referring to fig. 1, the USB functional pin detection system provided in this embodiment includes a power adapter, a USB interface, a voltage detection unit, a CC control unit, a fast charge functional unit, an MCU unit, an LDO power supply unit, and a test indication unit, where the voltage detection unit, the CC control unit, the fast charge functional unit, the LDO power supply unit, and the test indication unit are all connected to the MCU unit, the voltage detection unit is further connected to the power adapter, the USB interface is connected to the MCU unit, the power adapter is connected to the USB interface, the LDO power supply unit is configured to provide a dc power to the MCU, the voltage detection unit is configured to detect an output voltage of the power adapter, and set a CC1V1 pin and a CC2V2 pin as input states, the CC control unit is configured to control enabling of an EnCC1 pin and an EnCC2 pin when the MCU is powered on, and the fast charge functional unit is configured to output a set voltage by the power adapter, and adjusting the voltage of the DPV1 pin, the DPGND pin and the DMV1 pin so that the MCU unit reads the VBUS voltage of the USB interface through the voltage detection unit after setting the voltage of the quick charging pin in the USB interface. The power adapter is connected with the USB interface, the power adapter is a USB power adapter, and the USB interface is equivalent to an interface which is connected with the outside and is provided for the power adapter. Referring to fig. 3, the USB interface includes a PIN, a signal transmission PIN, a power signal ground PIN, and an energy transmission PIN. A power management signal pin and a quick charge signal pin. Specifically, the USB interface includes corresponding interface PINs of a1, a2, A3, A4, A5, A6, a7, A8, a9, a10, a11, a12, B12, B11, B10, B9, and B9 in fig. 2, where the PIN PINs used by the power adapter include a9, B9, a9, B9, and B9, that is, the power adapter uses GND, VBUS, CC 9, D +, D-transmission signal and energy, where the VBUS is a ground power transmission PIN, the power transmission PIN and the dc-CC 9 are power management PIN, and the D +, and GND PINs are GND PINs. In the embodiment, the voltage of the DPV1 pin, the DPGND pin and the DMV1 pin is adjusted, and the MCU unit reads the voltage difference of DP1, DM1, DP2 and DM2 to acquire the connection condition of two groups of D + and D-of the power adapter.
Referring to fig. 2 to 4, in the embodiment, the model of the MCU unit is CS32G 02X. The voltage detection unit comprises a resistor R1 and a resistor R2, one end of the resistor R1 is connected with a VBUS pin of the USB interface, the other end of the resistor R1 is grounded through a resistor R2, one end of the resistor R1 is further connected with a power adapter, and the MCU unit is connected between the resistor R1 and the resistor R2.
With reference to fig. 5-8, the CC control unit of the embodiment includes a resistor R50, a resistor R51, a resistor R3, a resistor R8, a transistor Q4, and a transistor Q5, where one end of the resistor R50 and one end of the resistor R51 are both connected to the MCU unit, the other end of the resistor R50 and the other end of the resistor R51 are both connected to the USB interface, the other end of the resistor R50 is further connected to a collector of a transistor Q4, a collector of the transistor Q4 is further connected to the MCU unit, an emitter of the transistor Q4 is grounded, a base of the transistor Q4 is connected to the MCU unit through a resistor R3, the other end of the resistor R51 is further connected to a collector of a transistor Q5, a collector of the transistor Q5 is further connected to the MCU unit, an emitter of the transistor Q5 is grounded, and a base of the transistor Q5 is connected to the MCU unit through a resistor R3.
Further, the LD0 power supply unit includes a power chip, a resistor R27, a resistor R28, a resistor R29, a diode D1, a diode D2, a capacitor C32, a capacitor C33, a capacitor C34, and a capacitor C30, wherein the positive terminal of the diode D1 is connected to the USB interface, the positive terminal of the diode D2 is connected to the power input, the negative terminal of the diode D1 is connected to the input terminal of the power chip through the resistor R27, the positive terminal of the diode D2 is connected to the input terminal of the power chip through the resistor R29, the negative terminal of the diode D2 is connected to the input terminal of the power chip through the resistor R29, one end of the capacitor C32 is connected to the input terminal of the power chip, and the other end of the capacitor C32 is grounded; one end of the capacitor C33, one end of the capacitor C34 and one end of the resistor R28 are all connected with the output end of the power supply chip, the other end of the capacitor C33 and the other end of the capacitor C34 are all grounded, the other end of the resistor R28 and one end of the capacitor C30 are connected with the MCU, and the other end of the capacitor C30 is grounded. In the embodiment, the model of the power chip is ME6203a33M 3G. The LDO power supply unit provides 3.3V voltage for the MCU unit to work.
The test indication unit comprises a light emitting diode LED1, a light emitting diode LED2, a light emitting diode LED3, a resistor R47, a resistor R48 and a resistor R49, wherein the positive end of the light emitting diode LED1, the positive end of the light emitting diode LED2 and the positive end of the light emitting diode LED3 are connected with the MCU, the negative end of the light emitting diode LED1 is grounded through the resistor R49, the negative end of the light emitting diode LED2 is grounded through the resistor R47, and the light emitting diode LED3 is grounded through the resistor R48.
The utility model provides a fill functional unit soon includes resistance R4, resistance R5, resistance R6, resistance R7, resistance R4 and resistance R6 are connected and are formed first series branch, resistance R5 with resistance R7 connects and form second series branch, MCU unit is all connected to the one end of first series branch and the one end of second series branch, the other end of first series branch still is connected to the MCU unit, the other end ground connection of second series branch, the MCU unit still is connected to between resistance R4 and resistance R6 and between R5 and resistance R7 respectively.
Based on the above, in the embodiments, in order to overcome the problems in the prior art, the CC1 and the CC2 are respectively tested for the power management function of the power adapter, when one of the CC1 and the CC2 is tested, the other one pulls down the GND ground, and if the CC1 and the CC2 are short-circuited, no output is tested. When the CC1 (or CC2) channel is tested, the voltage of the CC1 (or CC2) port is controlled according to the voltage of the UPF (power receiving end) when the UPF (power receiving end) is accessed, so that the power adapter considers that the UPF (power receiving end) is removed, and the output voltage is stopped. When the QC function is tested, according to a QC2.0 protocol, different voltages are set for D + and D-through a voltage dividing resistor to induce the power adapter to output corresponding voltages; when the D + is set to be 3.3V and the D-is set to be 0.6V, the MCU unit collects the voltages of all the DPs and judges the connection condition of the D + and the D-of the Type-C terminal of the power adapter. This application can judge whether power adapter's power management function and quick charge function are normal, and can judge the CC1 of power adapter's USB interface Type-C terminal, CC2, the connection condition of D + and D encapsulates the test procedure in test program, the tester puts into the test product behind the test switch, press test switch, judge whether adapter's power function and Type-C power function foot are normal through the pilot lamp, testing arrangement uses a MCU, resistance, triode etc. are all the lower device of some costs, thereby can improve the quality of production product, also can compromise the benefit of production.
In the embodiment, a single 5V power supply is used to supply power to the power panel, when the MCU is powered on and initialized, the EnCC1 and the EnCC2 of the CC control unit need to be enabled first, and the CC1V1 and the CC2V2 are set to the input states, so that the CC1 and the CC2 are pulled low. The tested power adapter is connected to an AC socket, the power adapter is connected with a test circuit of the test system through a TYPE-C full-function wire, after a key is pressed down, an MCU (microprogrammed control Unit) firstly shields the PD (PD) function of the MCU, the CC1 is enabled by setting the EnCC1 low, and when the power adapter detects that UFP (Universal flash) is inserted through a CC (Universal Serial bus) wire, the power adapter outputs 5V voltage. However, if CC1 and CC2 are short-circuited, since CC2 is set low at this time, CC1 will also be set low, and the power adapter will not detect the access of the test circuit, and will not output 5V. The MCU unit judges whether the power adapter has 5V output through the voltage detection unit, if so, the CC1 terminal of the power adapter is connected OK, and is not connected with the CC2 or other terminals causing the CC1 to be pulled down.
In conjunction with the corresponding table of the voltages of D + and D-in the QC2.0 handshake protocol shown in fig. 9, since the power adapter has output 5V, it is necessary to set the voltage of D + to 0.6V and the voltage of D-to 0V, the MCU unit sets the DPV1 to high (3.3V) and the DPGND to low (0V) by setting the fast charging function unit, and the voltage according to the ohm's law DP1(D +) is V ═ 3.3V/(4.2K Ω +1K Ω) × 1K Ω ≈ 0.6V; the MCU unit sets DM1 pin low, then D-is 0V. After a certain time delay, D + is set to 3.3V, D-is set to 0.6V, i.e. DPV1 output is high, DPGND is set to input, DP1 is set to ADC mode, DMV1 output is high, DM1 is set to ADC mode, and DP2 and DM2 are also set to ADC mode. The MCU unit uses an internal ADC module to read whether the voltages of DP1 and DP2 are larger than 3V and close to each other, and then read whether the voltages of DM1 and DM2 are larger than 0.5V and smaller than 0.7V, if the two conditions are not met, one path of D +, D-connection of the output terminal of the power adapter is abnormal, or D + and D-are short-circuited; if the above two conditions are satisfied, the MCU unit reads whether the VBUS voltage is 9V through the voltage detection unit, and if so, the QC9V gear test passes. Similarly, D + can be set to 0.6V and D-to 0.6V to see if the VBUS voltage is 12V. After the tests of 5V, 9V and 12V are OK, the basic test of QC2.0 function is OK, the D + and D-functions of the power adapter are also proved to be normal, and indirectly, if the protocol chip of the power adapter supports the QC3.0 function, the QC3.0 of the power adapter can work normally. The MCU unit opens the PD protocol of the MCU unit, and can allow the power adapter to output different voltages of 5V, 9V, 12V, 15V and 20V (different output voltages are required to be requested according to different adapter protocol chips) through negotiation with the power adapter, after the MCU unit sends an application, the MCU unit confirms whether the output voltages are normal through the voltage detection unit, and if the output voltages are normal, the CC1 channel is confirmed to be normal.
In order to test the CC2, the CC1 needs to be disconnected first, and the voltage of the CC line needs to be greater than that in fig. 6 when the CC2 is disconnected, so the MCU outputs CC1V1 high, and pulls the CC line high, so that the power adapter considers that the device is disconnected from the power adapter, and the power adapter has no output. Then by enabling CC2 with EnCC2 set low, the MCU unit, by negotiating with the power adapter, can let the power adapter output 5V, 9V, 12V, 15V, 20V different voltages (different output voltages are required to be requested by different adapter protocol chips). If the MCU unit detects that the corresponding voltage is output, the CC2 channel is considered to be normal and the PD function of the adapter is normal, and then the CC2V2 is set to output high, so that the power adapter stops outputting. After the tests are normal, the MCU unit sets a green indicating lamp to be on, otherwise, sets a red indicating lamp to be on.
While only certain features and embodiments of the present application have been illustrated and described, many modifications and changes may occur to those skilled in the art without departing substantially from the scope and spirit of the appended claims, for example: variations in the size, dimensions, structure, shape and proportions of the various elements, mounting arrangements, use of materials, colours, orientations and the like.
The above embodiments are only preferred embodiments of the present invention, and the scope of the embodiments of the present invention should not be limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the embodiments of the present invention are all within the scope of the embodiments of the present invention as claimed.
Claims (9)
1. A USB function pin detection system is characterized by comprising a power adapter, a USB interface, a voltage detection unit, a CC control unit, a quick charge function unit, an MCU unit, an LDO power supply unit and a test indication unit, wherein the voltage detection unit, the CC control unit, the quick charge function unit, the LDO power supply unit and the test indication unit are all connected with the MCU unit, the voltage detection unit is also connected with the power adapter, the USB interface is connected with the MCU unit, the power adapter is connected with the USB interface, the LDO power supply unit is used for providing direct current for an MCU, the voltage detection unit is used for detecting the output voltage of the power adapter and setting a CC1V1 pin and a CC2V2 pin to be in an input state, the CC control unit is used for controlling the EnCC1 pin and the EnCC2 pin to be enabled when the MCU is powered on, the quick charge function unit is used for outputting the set voltage when the power adapter, and adjusting the voltage of the DPV1 pin, the DPGND pin and the DMV1 pin so that the MCU unit reads the VBUS voltage of the USB interface through the voltage detection unit after setting the voltage of the quick charging pin in the USB interface.
2. The USB functional pin detection system according to claim 1, wherein the USB interface comprises a power signal ground pin, an energy transmission pin, a power management signal pin, and a fast charge signal pin.
3. The USB functional pin detection system according to claim 1, wherein the MCU unit has a model of CS32G 02X.
4. The USB function pin detection system according to claim 3, wherein the voltage detection unit comprises a resistor R1 and a resistor R2, one end of the resistor R1 is connected to the VBUS pin of the USB interface, the other end of the resistor R1 is connected to ground through a resistor R2, one end of the resistor R1 is further connected to a power adapter, and the MCU unit is connected between the resistor R1 and the resistor R2.
5. The USB functional pin detection system according to claim 4, wherein the CC control unit comprises a resistor R50, a resistor R51, a resistor R3, a resistor R8, a transistor Q4 and a transistor Q5, one end of the resistor R50 and one end of the resistor R51 are both connected with the MCU unit, the other end of the resistor R50 and the other end of the resistor R51 are both connected with the USB interface, the other end of the resistor R50 is also connected with a collector of a transistor Q4, a collector of the transistor Q4 is also connected with the MCU unit, an emitter of the Q4 is grounded, a base of the transistor Q4 is connected with the MCU unit through a resistor R3, the other end of the resistor R51 is also connected with a collector of a transistor Q5, a collector of the transistor Q5 is also connected with the MCU unit, an emitter of the Q5 is grounded, and a base of the transistor Q5 is connected with the MCU unit through a resistor R3.
6. The USB function pin detection system of claim 5, wherein the LD0 power supply unit comprises a power chip, a resistor R27, a resistor R28, a resistor R29, a diode D1, a diode D2, a capacitor C32, a capacitor C33, a capacitor C34 and a capacitor C30, wherein the positive terminal of the diode D1 is connected to the USB interface, the positive terminal of the diode D2 is connected to the power input, the negative terminal of the diode D1 is connected to the input terminal of the power chip through the resistor R27, the negative terminal of the diode D2 is connected to the input terminal of the power chip through the resistor R29, one terminal of the capacitor C32 is connected to the input terminal of the power chip, and the other terminal of the capacitor C32 is grounded; one end of the capacitor C33, one end of the capacitor C34 and one end of the resistor R28 are all connected with the output end of the power supply chip, the other end of the capacitor C33 and the other end of the capacitor C34 are all grounded, the other end of the resistor R28 and one end of the capacitor C30 are connected with the MCU, and the other end of the capacitor C30 is grounded.
7. The USB function pin detection system of claim 6, wherein the power chip is model ME6203A33M 3G.
8. The USB function pin detection system according to claim 1 or 7, wherein the test indication unit comprises a light emitting diode LED1, a light emitting diode LED2, a light emitting diode LED3, a resistor R47, a resistor R48 and a resistor R49, wherein the positive terminal of the light emitting diode LED1, the positive terminal of the light emitting diode LED2 and the positive terminal of the light emitting diode LED3 are all connected with the MCU unit, the negative terminal of the light emitting diode LED1 is grounded through the resistor R49, the negative terminal of the light emitting diode LED2 is grounded through the resistor R47, and the light emitting diode LED3 is grounded through the resistor R48.
9. The USB functional pin detection system according to claim 8, wherein the fast charging function unit comprises a resistor R4, a resistor R5, a resistor R6, and a resistor R7, the resistor R4 and the resistor R6 are connected to form a first series branch, the resistor R5 and the resistor R7 are connected to form a second series branch, one end of the first series branch and one end of the second series branch are both connected to the MCU unit, the other end of the first series branch is further connected to the MCU unit, the other end of the second series branch is grounded, and the MCU units are further connected between the resistor R4 and the resistor R6 and between the resistor R5 and the resistor R7, respectively.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210366628 | 2022-04-08 | ||
CN2022103666288 | 2022-04-08 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115129522A true CN115129522A (en) | 2022-09-30 |
Family
ID=83380464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210722168.8A Pending CN115129522A (en) | 2022-04-08 | 2022-06-24 | USB function pin detection system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115129522A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN206542232U (en) * | 2017-03-25 | 2017-10-03 | 郭敏仪 | A kind of new USB charge connectors |
CN109062751A (en) * | 2018-09-14 | 2018-12-21 | 电子科技大学中山学院 | USB Type-C interface rapid test system and method |
CN208283484U (en) * | 2018-06-14 | 2018-12-25 | 东莞理工学院 | A kind of USB Power Adapter detector |
US20190079130A1 (en) * | 2017-09-12 | 2019-03-14 | Samsung Electronics Co., Ltd. | Device and method of detecting leakage current generation condition in usb interface |
CN209946668U (en) * | 2019-06-17 | 2020-01-14 | 无锡比特信息科技有限公司 | Unmanned aerial vehicle flies to control test equipment control integrated circuit board |
CN213987481U (en) * | 2020-11-18 | 2021-08-17 | 苏州工业园区慧鱼科技有限公司 | USB interface test equipment |
-
2022
- 2022-06-24 CN CN202210722168.8A patent/CN115129522A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN206542232U (en) * | 2017-03-25 | 2017-10-03 | 郭敏仪 | A kind of new USB charge connectors |
US20190079130A1 (en) * | 2017-09-12 | 2019-03-14 | Samsung Electronics Co., Ltd. | Device and method of detecting leakage current generation condition in usb interface |
CN208283484U (en) * | 2018-06-14 | 2018-12-25 | 东莞理工学院 | A kind of USB Power Adapter detector |
CN109062751A (en) * | 2018-09-14 | 2018-12-21 | 电子科技大学中山学院 | USB Type-C interface rapid test system and method |
CN209946668U (en) * | 2019-06-17 | 2020-01-14 | 无锡比特信息科技有限公司 | Unmanned aerial vehicle flies to control test equipment control integrated circuit board |
CN213987481U (en) * | 2020-11-18 | 2021-08-17 | 苏州工业园区慧鱼科技有限公司 | USB interface test equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104375050B (en) | Automatic testing device for conductivity of high-voltage wire harness of electric automobile | |
CN111856256A (en) | Quick charging equipment test system and test method thereof | |
CN203084153U (en) | Chip testing system | |
CN113589147A (en) | Testing device and method for PCBA of smart watch | |
CN111426974B (en) | Automatic power supply testing circuit, system and method | |
CN115129522A (en) | USB function pin detection system | |
CN112526278B (en) | Switching device for optical module aging test, optical module aging device and method | |
CN108132445B (en) | Detection device of linear power supply | |
CN207586384U (en) | A kind of intelligent measurement relay life device | |
CN217718669U (en) | Sensor chip output test hardware | |
CN213183606U (en) | Memory card power consumption characteristic testing device | |
CN211181349U (en) | Automatic circuit connection detection system for physics electricity | |
US20130171841A1 (en) | Test device for testing usb sockets | |
CN210833626U (en) | Automobile instrument environmental test load box | |
CN211293113U (en) | Test tool of battery management system | |
CN215728394U (en) | Current test circuit of camera module | |
CN114910814A (en) | Multichannel acquisition circuit, aging test equipment and system | |
CN208767005U (en) | A kind of display device and jig | |
CN205880093U (en) | Extension test circuit structure of connector tester | |
CN205489655U (en) | Power supply cabinet | |
CN221686606U (en) | Type-C interface testing device | |
CN219039161U (en) | Module in-place detection device and system | |
CN111028639A (en) | Automatic circuit connection detection system for physics electricity | |
CN217689025U (en) | Circuit board clamp for verifying starting performance | |
CN205210211U (en) | General test platform of avionics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |