A USB charging device intelligent detection device and method

Through the design of intelligent detection equipment, micro-control units and related modules are used to detect USB charging equipment under no-load conditions, which solves the limitations of the detection of charging status in the existing technology and achieves fast, accurate detection and multi-function of USB charging equipment. Exact examination of functional parameters.

CN114325462BActive Publication Date: 2024-09-06CHENGDU TME SOFTWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210005882.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-04
Publication Date
2024-09-06
Estimated Expiration
2042-01-04

AI Technical Summary

Technical Problem

Existing USB charging equipment detection devices need to perform detection in the charging state, which is very restrictive, and it is difficult for ordinary users to intuitively judge the quality of the equipment.

Method used

An intelligent detection device is designed, which uses a micro control unit, voltage acquisition module, DAC constant current source module and simulated load module to collect and analyze the voltage and current parameters of the charging equipment with or without a load. Fast, accurate detection and display of test results.

Benefits of technology

It realizes the charging performance detection of adapters and charging cables of USB charging equipment, supports the detection of multiple types of charging cables, provides an intuitive judgment on whether the charging equipment is qualified, and supports professionals to check the maximum output current of the adapter, charging line resistance, Accurate inspection of charging voltage and other parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114325462B
    Figure CN114325462B
Patent Text Reader

Abstract

The present invention discloses an intelligent detection device and method for USB charging equipment, the detection device comprises: a microcontroller unit; a voltage acquisition module for respectively acquiring the output voltage of the adapter and the output voltage of the charging line; a DAC constant current source module for outputting a specified current according to the voltage of the DC component of the PWM control signal generated by the microcontroller unit; a simulated load module for acquiring a simulated load current according to the specified current or the output voltage of the charging line; a first current acquisition module for acquiring the actual load current; and an input device, a display device and a power supply module. The present invention can quickly, intuitively and accurately detect the adapter and / or charging line of the USB charging device with or without a charging load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a charging equipment detection device. Background Art

[0002] USB charging devices refer to devices that use USB ports to connect to computers or charging heads to charge electronic products. Because of their compactness and portability, USB charging devices have become an indispensable tool in people's lives, but for ordinary users, it is difficult to intuitively judge their quality.

[0003] Meanwhile, some detection devices for detecting USB charging devices provided in the prior art mostly need to make judgments under the actual charging state, which has great application limitations. Summary of the invention

[0004] The purpose of the present invention is to provide an intelligent detection device and method that can quickly, intuitively and accurately detect a USB charging device when there is a charging device or no charging device on the load. The device or method can specifically accurately detect and judge the charging performance of the adapter and / or charging cable in the USB charging device.

[0005] The technical solution of the present invention is as follows:

[0006] A USB charging device intelligent detection device comprises: a microcontroller unit; a voltage acquisition module for respectively acquiring the adapter output voltage of the charging device, i.e., the charging line input voltage and the charging line output voltage, i.e., the charging voltage, and inputting the acquired data into the microcontroller unit; a DAC constant current source module for outputting a specified current according to the voltage of the DC component of a PWM control signal generated by the microcontroller unit; a simulated load module for feeding back a simulated load current obtained according to the specified current or the output voltage of the charging line to the microcontroller unit; a first current acquisition module for acquiring the actual load current at the USB output interface of the charging device and inputting the acquired data into the microcontroller unit; an input device for inputting a specified instruction into the microcontroller unit; a display device for displaying the detection result obtained by the microcontroller unit; and a power supply module for supplying power to the microcontroller unit and other components.

[0007] According to some preferred embodiments of the present invention, the microcontroller chip is selected from an STM32 processor with an internally integrated 12-bit ADC module.

[0008] According to some preferred embodiments of the present invention, the charging line input voltage and the charging line output voltage are divided by a voltage divider circuit and then input into corresponding acquisition terminals of the micro control unit.

[0009] According to some preferred embodiments of the present invention, the actual load current and the simulated load current are amplified by a proportional operation circuit and then input into corresponding acquisition terminals of the micro control unit.

[0010] According to some preferred embodiments of the present invention, the magnitude of the divided voltage obtained after the voltage division is 1 / 2 of the original charging line input voltage or the charging line output voltage.

[0011] In this preferred embodiment, under the general USB charging device configuration, the voltage collected during the 1 / 2 voltage division is about 2.5V, accounting for 75.7% of the ADC reference voltage (i.e., full bias voltage) of 3.3V. The collection effect is good, and the voltage division value of an integer power of 2 is conducive to the control unit to perform relatively simple shift calculation operations, which can significantly improve program efficiency.

[0012] According to some preferred embodiments of the present invention, the magnification is 5 to 7 times, preferably 6.6 times.

[0013] According to some preferred embodiments of the present invention, the DAC constant current source module includes a digital-to-analog converter and a MOS tube constant current circuit, wherein the digital-to-analog converter includes a filter for performing second-order active filtering on the PWM control signal, and the MOS tube constant current circuit outputs the specified current corresponding to the output voltage obtained by the digital-to-analog converter.

[0014] According to some preferred embodiments of the present invention, the voltage acquisition module includes a first voltage acquisition module for acquiring the input voltage of the charging line and a second voltage acquisition module for acquiring the output voltage of the charging line, and the first voltage acquisition module and / or the second voltage acquisition module are selected from a resistor voltage division sampling circuit.

[0015] According to some preferred embodiments of the present invention, the simulated load module uses a second current acquisition module, and the first current acquisition module and / or the second current acquisition module includes a current sampling circuit composed of a sampling resistor and a proportional amplifier circuit.

[0016] The present invention further provides a method for performing intelligent detection according to any of the above intelligent detection devices, comprising:

[0017] When the intelligent detection device performs detection, the USB charging device is not connected to an actual load:

[0018] The microcontroller controls the simulated load module to be in an available state, and can detect the adapter and / or charging cable parameters of the charging device, including:

[0019] The size of the specified current output is configured through the input device, and the corresponding simulated load current is collected through the simulated load module and fed back to the micro control unit;

[0020] Obtaining the real-time output voltage of the adapter, the charging voltage, and / or the charging line resistance through the AD acquisition process of the microcontroller, and further controlling the display device to display;

[0021] or include:

[0022] Entering the automatic measurement mode through the input device, the DAC constant current source module controls the output under the control of the microcontroller unit, and gradually increases the specified current. During this process, the microcontroller unit monitors the output voltage of the adapter, obtains the maximum charging current of the adapter, and controls the display device to display it;

[0023] When the intelligent detection device performs detection, the USB charging device is not connected to an actual load:

[0024] The microcontroller controls the simulated load module to be in a disabled state, at which time the real-time charging parameters of the actual load can be detected. The microcontroller obtains the charging voltage, the actual load current, and / or the charging internal resistance, and / or the charging power during the charging process, and controls the display device to display them.

[0025] According to some preferred embodiments of the present invention, the AD acquisition process includes:

[0026] The ADC rule is triggered by a timer to convert the collected adapter output voltage V1, charging voltage V2, simulated load current I3, and actual load current I4, wherein I3=V3 / R3, I4=V4 / R4, R3 represents the sampling resistor in the simulated load current collection, and R4 represents the sampling resistor in the actual load current collection.

[0027] According to some preferred embodiments of the present invention, the control output process of the DAC constant current source module includes:

[0028] When the maximum output current test mode of the adapter is selected through the input device, the simulated load current is gradually increased through the control program of the microcontroller, and the adapter output voltage V1 and the simulated load current I3 are monitored at the same time. When V1 drops below a first threshold, I3 at this time is recorded as the maximum charging current and displayed through the display device;

[0029] When the general test mode is selected through the input device and the simulated load current is selected, the adapter output voltage V1 and the charging voltage V2 are monitored. When V2 is lower than the second threshold, it is determined that the charging line is abnormal and displayed. When V1 is lower than the third threshold, it is determined that the adapter is abnormal and displayed.

[0030] When the charging line resistance measurement mode is selected through the input device, the line resistance value is calculated according to R=(V2-V1) / I3 and displayed.

[0031] According to some preferred embodiments of the present invention, the amplitude of the PWM control signal is set to 3.3V; the first threshold, the second threshold and the third threshold are all 4.5V; in the general test mode, the selected values ​​of the simulated load current include 0.5A, 1A and 1.5A.

[0032] The device of the present invention can perform designated detection on the charging device through the input device, and directly display the detection result through the display device, and supports multi-functional detection of multiple adapters and multiple charging cables such as type-c, mini-USB, etc. For ordinary charging device users, the test mode of this device can be used to intuitively obtain whether the charging adapter and cable are qualified. For professional maintenance personnel, the device can be used to check the maximum output current of the adapter, the line resistance of the charging cable, the peak-to-peak value of the charging voltage, the real-time charging voltage, charging current, charging internal resistance and charging power, etc.

[0033] Compared with other existing technologies for charging detection, the simulated load controlled by the constant current source inside the present invention can accurately test the charging performance without actual charging equipment. If an STM32 processor with an internal integrated 12-bit ADC module is further selected, the charging voltage can be collected and processed more accurately. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a system structure block diagram of the device of the present invention.

[0035] Figure 2 The figure is a schematic diagram of a specific power module structure.

[0036] Figure 3 It is a schematic diagram of a specific MCU module structure.

[0037] Figure 4 It is a schematic diagram of the structure of the first part of a specific DAC constant current source module.

[0038] Figure 5 It is a schematic diagram of the structure of the second part of a specific DAC constant current source module.

[0039] Figure 6This is a specific schematic diagram of the structure of the second current acquisition module.

[0040] Figure 7 The figure is a schematic diagram of a specific voltage acquisition module structure.

[0041] Figure 8 This is a specific schematic diagram of the structure of the first current acquisition module.

[0042] Fig. 9 It is a schematic diagram of a specific OLED module structure.

[0043] Fig.10 The figure is a schematic diagram of a specific key module structure.

[0044] Fig.11 The figure is a schematic diagram of a specific intelligent detection process. DETAILED DESCRIPTION

[0045] The technical solution of the present invention is described clearly and completely below in conjunction with the embodiments and drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0046] According to the technical solution of the present invention, referring to Figure 1 A specific intelligent detection device includes a microcontroller unit MCU; an adapter output voltage, i.e., a charging line input voltage V1, and a charging line output voltage V2 (i.e., the charging voltage V2 shown in the figure) are collected respectively and the collected data are input into a voltage collection module of the microcontroller unit; an input device such as an input key for inputting a detection instruction to the microcontroller unit MCU; a DAC constant current source module for receiving a PWM control signal calculated by the microcontroller unit according to each input data and outputting a specified current; a simulated load module for feeding back a simulated load current I3 obtained according to the specified current or the charging line output voltage V2 to the microcontroller unit; an actual load current I4 at the USB output interface is collected and the collected data is input into a first current collection module of the microcontroller unit; a display device such as an OLED display for displaying the detection result obtained by the microcontroller unit; and a power supply module for supplying power to the microcontroller unit and other modules.

[0047] Among them, preferably,

[0048] The collected data of the voltage collection module and the current collection module are obtained by the MCU through an analog-to-digital converter (ADC).

[0049] The microcontroller chip MCU is an STM32 processor with an internally integrated 12-bit ADC module, and its processing frequency can reach 72Mhz.

[0050] The charging line input voltage V1 and the output voltage V2 are divided by the voltage divider circuit and then input into the AD acquisition terminal of the micro control unit.

[0051] The actual load current I4 and the simulated load current I3 at the USB output interface are amplified by the proportional operation circuit and then input into the AD acquisition terminal of the micro control unit.

[0052] The DAC constant current source module includes a digital analog converter (DAC) and a MOS tube constant current circuit, wherein the DAC can perform second-order active filtering on the PWM wave of a specific frequency output by the MCU, and control the magnitude of the DAC output voltage through the duty cycle, and the process is as follows:

[0053] According to Fourier theory, a waveform f(t) of any period can be decomposed into the sum of an infinite number of harmonics whose frequencies are integer multiples of it, as follows:

[0054]

[0055]

[0056]

[0057]

[0058] If K represents the amplitude of the output PWM waveform f(t) and p represents the duty cycle of the PWM waveform, and substitute into the above calculation formula, the expansion coefficients of f(t) are as follows:

[0059] A0=K×p

[0060]

[0061] B n =0

[0062] It can be seen from the expansion coefficients that the DC component A0 is equal to the PWM waveform amplitude multiplied by the PWM waveform duty cycle, which is the desired D / A conversion output result. By selecting a suitable duty cycle, any D / A conversion output voltage between 0 and K (i.e., the DAC output voltage) can be obtained;

[0063] The MOS tube constant current circuit outputs a specified current according to the DAC output voltage.

[0064] The simulated load module is a second current acquisition module, and the collected current is the simulated load current actually output by the MOS tube constant current circuit. When the DAC constant current source module is normally started and operated, the simulated load current is equal to the specified current.

[0065] In some specific embodiments,

[0066] Power module as attached Figure 2 As shown, the adapter input voltage can be passed through the voltage regulator chip to power each module of the circuit, where AVCC_4V4 powers the op amp in the amplifier circuit, REF_3V3 provides ADC reference voltage for STM32, +3.3V powers STM32, and ADC_V1 is the adapter voltage divided and input to the AD acquisition terminal of STM32. According to the voltage division relationship, the voltage collected by ADC is 0.5 times the adapter voltage 5V_1.

[0067] MCU module as attached Figure 3 As shown, it can collect the AD values ​​of each collection point and calculate various parameters, generate PWM waves to control the constant current source output, detect key events, execute corresponding functions, and display the corresponding measurement parameters through the OLED screen.

[0068] The DAC constant current source module includes the following Figure 4 Part 1 and attached Figure 5 The second part shown can realize the PWM waveform and ADC control constant current source output, where the first part is a second-order active low-pass filter, which is used to filter out the high-frequency part of PWM and retain only the DC component. The amplitude of the DC part after filtering is the amplitude of the PWM waveform multiplied by the duty cycle of the PWM waveform. The second part is a constant current source circuit. The DC component is isolated by a follower and forms a current source with the field effect tube working in the constant current area.

[0069] The second current acquisition module for acquiring the simulated load current I3 is shown in the attached Figure 6 As shown, it is input to the proportional amplifier circuit through a 0.25R sampling resistor and then input to the ADC acquisition end of the STM32. Preferably, R29 is 5.6k and R31 is 1k, so its amplification factor k=1+(R29 / R31)=6.6 times.

[0070] The voltage acquisition module for collecting the charging line input voltage V1 or the charging line output voltage V2 is shown in the attached Figure 7 As shown, 5V_2 is the charging voltage, which is input into the ADC acquisition terminal of STM32 as ADC_V2 after 1 / 2 voltage division. 5V_2 is connected to 5V_1 through the charging line, and the line resistance of the charging line can be calculated by the voltage difference between the two.

[0071] The first current acquisition module for acquiring the actual load current I4 at the USB output interface is shown in the attached Figure 8As shown, it is input to the proportional amplifier circuit through a 0.25R sampling resistor and then input to the ADC acquisition terminal of the STM32. Preferably, R57 is 5.6k and R58 is 1k, so its magnification k=1+(R29 / R31)=6.6 times.

[0072] OLED module as attached Fig. 9 As shown, the STM32 drives the OLED screen output through SPI communication to display the corresponding measurement parameters.

[0073] Button module as attached Fig.10 As shown, the STM32 detects the input level and responds to the corresponding key event.

[0074] Further, refer to Fig.11 , the intelligent detection performed according to the above equipment includes:

[0075] Different types of detection are performed depending on whether the actual load is connected, including:

[0076] When the actual load is not connected, the microcontroller controls the simulated load module to be in a usable state, and at this time, the adapter and / or charging cable parameters of the charging device can be detected, including:

[0077] The size of the specified current outputted by the key configuration is collected by the current acquisition module and the size of the corresponding simulated load current I3 is fed back to the micro control unit;

[0078] The real-time adapter output voltage V1, charging voltage V2 and the line resistance of the charging line connecting 5V_1 and 5V_2 are obtained through the AD acquisition process, and fed back to the micro control unit, which further controls the display device OLED to display;

[0079] or include:

[0080] By pressing a button to enter the automatic measurement mode, the constant current source module controls the output under the control of the microcontroller unit, gradually increases the specified current, and monitors the adapter output voltage V1 at the same time to obtain the maximum charging current of the adapter.

[0081] When the actual load is connected, the microcontroller controls the simulated load module to be in a disabled state. For example, if the simulated load is currently in working state, the microcontroller will turn off the PWM output to turn off the simulated load. At this time, the real-time charging parameters of the actual load are mainly checked. The charging voltage and charging current can be displayed through the OLED. Based on the charging voltage and charging current, the charging power and charging internal resistance are calculated and displayed.

[0082] The AD acquisition process further includes:

[0083] The ADC rule conversion is triggered by the timer to collect the adapter output voltage V1, the charging voltage V2, the voltage V3 obtained by the simulated load current collection module, and the voltage V4 obtained by the actual load current collection module. According to V3 and V4 and their corresponding collection resistors R3 and R4, the simulated load current I3=V3 / R3 and the actual load current I4=V4 / R4 can be calculated. When current is generated at the actual load end, the microcontroller unit will calculate that the actual load current I4 is not 0, then the PWM output of the driving DAC is turned off to stop the DAC from working, so that the constant current source I3 stops outputting. According to the collected data, when there is an actual charging device, the charging voltage V3 and the charging current I4, as well as the charging internal resistance and charging power and other parameters are displayed in real time.

[0084] The constant current source control output process further includes:

[0085] The DAC output voltage is PWM amplitude * PWM duty cycle. The adapter maximum output current test mode is selected by pressing the button. The program controls to gradually increase the simulated load current. At the same time, the adapter output voltage V1 and the charging current I3 are monitored. When V1 drops below the first threshold, I3 at this time is recorded as the maximum charging current and displayed. At the same time, by pressing the button to select the test mode, the simulated load current can be selected. At this time, if V2 is lower than the second threshold, it is determined that the charging line is abnormal and displayed. When V1 is lower than the third threshold, it is determined that the adapter is abnormal and displayed. The charging line resistance measurement mode can be selected by pressing the button, and the line resistance value is calculated according to R=(V2-V1) / I3.

[0086] In some specific embodiments, the PWM amplitude may be set to 3.3V, for example; the first threshold, the second threshold, and the third threshold may be set to 4.5V, for example; and the selection of the simulated load current in the test mode may include 0.5A, 1A, and 1.5A, for example.

[0087] The above embodiments are only preferred implementations of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A method for performing intelligent detection by an intelligent detection device for a USB charging device, characterized in that: The USB charging device intelligent detection device comprises: a microcontroller unit; a voltage acquisition module for respectively acquiring the adapter output voltage of the charging device, i.e., the charging line input voltage, and the charging line output voltage, i.e., the charging voltage, and inputting the acquired data into the microcontroller unit; a DAC constant current source module for outputting a specified current according to the voltage of the DC component of the PWM control signal generated by the microcontroller unit; a simulated load current obtained according to the specified current or the charging line output voltage is fed back to the simulated load module of the microcontroller unit; an actual load current at the USB output interface of the charging device is acquired and the acquired data is input into the first current acquisition module of the microcontroller unit; an input device for inputting a specified instruction into the microcontroller unit; and a detection result obtained by the microcontroller unit is processed. A display device for displaying; a power supply module for powering the micro control unit and other components; the DAC constant current source module includes a digital-to-analog converter and a MOS tube constant current circuit, wherein the digital-to-analog converter includes a filter for performing second-order active filtering on the PWM control signal, and the MOS tube constant current circuit outputs the specified current according to the output voltage obtained by the digital-to-analog converter; the analog load module uses a second current acquisition module, and the current collected by the module is the simulated load current actually output by the MOS tube constant current circuit, and when the DAC constant current source module is normally turned on, the simulated load current is equal to the specified current; the first current acquisition module and the second current acquisition module include a current sampling circuit composed of a sampling resistor and a proportional amplifier circuit; The method for performing intelligent detection comprises: When the intelligent detection device performs detection, the USB charging device is not connected to an actual load: The microcontroller controls the simulated load module to be in an available state, and can detect the adapter and charging cable parameters of the charging device, including: The size of the specified current output is configured through the input device, and the corresponding simulated load current is collected through the simulated load module and fed back to the micro control unit; The real-time output voltage of the adapter, the charging voltage and the charging line resistance are obtained through the AD acquisition process of the microcontroller, and the display device is further controlled to display; or include: Entering the automatic measurement mode through the input device, the DAC constant current source module controls the output under the control of the microcontroller unit, and gradually increases the specified current. During this process, the microcontroller unit monitors the output voltage of the adapter, obtains the maximum charging current of the adapter, and controls the display device to display it; When the intelligent detection device performs detection, the USB charging device is connected to an actual load: The microcontroller controls the simulated load module to be in a disabled state, at which time the real-time charging parameters of the actual load can be detected, and the charging voltage, the actual load current, the charging internal resistance and the charging power during the charging process are obtained by the AD acquisition process of the microcontroller, and the display device is controlled to display them.

2. The method for performing intelligent detection according to claim 1, characterized in that: The microcontroller unit is selected from an STM32 processor with an internally integrated 12-bit ADC module.

3. The method for performing intelligent detection according to claim 1, characterized in that: in, The charging line input voltage and the charging line output voltage are divided by a voltage divider circuit and then input into the corresponding acquisition terminal of the micro control unit; the actual load current and the simulated load current are amplified by a proportional operation circuit and then input into the corresponding acquisition terminal of the micro control unit.

4. The method for performing intelligent detection according to claim 3, characterized in that: The magnitude of the divided voltage obtained after the voltage division is 1 / 2 of the original charging line input voltage or the charging line output voltage; and / or the amplification factor of the proportional amplification circuit is 5 to 7 times.

5. The method for performing intelligent detection according to claim 4, characterized in that: The amplification factor of the proportional amplifier circuit is 6.6 times.

6. The method for performing intelligent detection according to claim 1, characterized in that: The voltage acquisition module includes a first voltage acquisition module for acquiring the input voltage of the charging line and a second voltage acquisition module for acquiring the output voltage of the charging line. The first voltage acquisition module and / or the second voltage acquisition module are selected from a resistor voltage division sampling circuit.

7. The method for performing intelligent detection according to claim 1, characterized in that: in, The AD acquisition process includes: The ADC rule is triggered by a timer to convert the collected adapter output voltage V1, charging voltage V2, simulated load current I3, and actual load current I4, wherein I3=V3 / R3, I4=V4 / R4, R3 represents the sampling resistor in the simulated load current collection, and R4 represents the sampling resistor in the actual load current collection; The control output process of the DAC constant current source module includes: When the maximum output current test mode of the adapter is selected through the input device, the simulated load current is gradually increased through the control program of the microcontroller, and the adapter output voltage V1 and the simulated load current I3 are monitored at the same time. When V1 drops below a first threshold, I3 at this time is recorded as the maximum charging current and displayed through the display device; When the general test mode is selected through the input device and the simulated load current is selected, the adapter output voltage V1 and the charging voltage V2 are monitored. When V2 is lower than the second threshold, it is determined that the charging line is abnormal and displayed. When V1 is lower than the third threshold, it is determined that the adapter is abnormal and displayed. When the charging line resistance measurement mode is selected through the input device, the line resistance value is calculated according to R=(V2-V1) / I3 and displayed.

8. The intelligent detection method according to claim 7, characterized in that: The amplitude of the PWM control signal is set to 3.3V; the first threshold, the second threshold and the third threshold are all 4.5V; in the general test mode, the selected values ​​of the simulated load current include 0.5A, 1A and 1.5A.