Test system and method for battery charger
By simulating the power receiving end to identify the charging protocol and detect electrical safety performance, combined with electromagnetic interference testing, the problem of not considering the charging protocol and electrical safety performance in traditional technology is solved, and efficient and accurate charger detection is achieved, reducing the testing cost.
Patent Information
- Application Number
- CN202411213138.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-30
AI Technical Summary
Traditional technology does not consider the impact of different charging protocols when detecting mobile phone battery chargers, and only relies on current or voltage values for detection, ignores the detection of electrical safety performance, and requires full-process charging to increase time and power costs.
By connecting the power receiving end to the charger, the charging protocol type is identified, and the electrical safety performance detection is carried out, including overvoltage, overcurrent and overtemperature protection capabilities, and the current waveform deviation degree is detected through dynamic time regularization algorithm, combined with electromagnetic interference testing, Use the preset score model to calculate the charger's comprehensive detection score.
Reduces testing time and power costs, accurately detects the electrical safety performance and charging performance of the charger, and is suitable for chargers with smart and non-intelligent charging protocols, improving detection efficiency and accuracy.
Smart Images

Figure CN119064694A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of charger testing, and in particular to a testing system and method for a battery charger. Background Art
[0002] In recent years, as the smartphone market has entered a mature stage, the functions of new smartphones have continued to innovate and break through, and the software and hardware environment has continued to improve. Correspondingly, the penetration rate of smartphones and the actual usage time of users have continued to grow. Therefore, the consumer market's demand for high-quality mobile phone battery chargers has also continued to increase. At present, mainstream mobile phone merchants have popularized fast charging technology, among which high-power super flash charging technology has gradually become a standard configuration for flagship models. Some large mobile phone manufacturers have also formulated fast charging protocols and corresponding charging adapters to improve the charging efficiency and intelligence level of mobile phones. Due to the emergence of new market demands, the sales of high-performance chargers equipped with multiple charging protocols have also gradually increased.
[0003] At present, the Chinese invention patent with application number 202310227085.6 discloses a charger testing system and method, which specifically includes: a charger testing system and method, including a host computer, a DC power supply and an electronic load; the host computer is respectively connected to the electronic load, the DC power supply and the charger to be tested, and the charger to be tested is respectively connected to the electronic load and the DC power supply. The DC power supply is used to wake up the charger to be tested according to the test start instruction issued by the host computer. The host computer is used to issue the test start instruction, wake up the charger to be tested through the DC power supply, and perform electrical parameter testing on the charger to be tested based on the electronic load. The electronic load is used to change the load state according to the control signal sent by the host computer, and obtain the output electrical parameters of the charger to be tested. The invention can test the charger more conveniently, thereby improving the efficiency of the charger testing work. However, during the charging process of the mobile phone, the current and voltage performance are different at different stages. The invention has a single method for detecting the performance of the charger, and does not consider different detection methods for different charging protocols. In addition, the scheme has limited detection of mobile phone chargers and ignores the most basic electrical safety performance of chargers. Summary of the invention
[0004] The technical problem solved by the present invention is that the influence of different charging protocols is not considered when using traditional technology to detect mobile phone battery chargers. The data collection and processing only rely on current or voltage values, and fail to detect the charger from multiple aspects. In addition, the traditional technology usually requires the battery to be fully charged during the detection process, which increases the time cost and electricity cost of the test.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: Step S1, connecting the charger to be detected to the simulated power receiving end, pairing the charging protocol of the charger to be detected based on a preset charging protocol library, and completing the identification of the charging protocol type of the charger to be detected; Step S2, performing electrical safety performance testing on the charger to be tested based on the charging protocol type identification result, where the electrical safety performance testing includes overvoltage protection capability, overcurrent protection capability, and overtemperature protection capability; Step S3, determining a test path based on the charging protocol type identification result, includes: If the identification result of the charging protocol type of the charger to be tested is a smart charging protocol, determining a first test path; If the identification result of the charging protocol type of the charger to be detected is a non-intelligent charging protocol, determining a second test path; Step S4, performing a performance test on the charger to be tested through the first test path, sending a third charging state data packet sequence to the charger to be tested by simulating the power receiving end, and calculating the maximum power, maximum power maintenance time and output current waveform deviation of the charger to be tested based on the second output data set; The performance test of the charger to be tested is performed through the second test path, and a fourth charging state data packet sequence is obtained based on the power node in the non-intelligent charging protocol. The fourth charging state data packet sequence is sent to the charger to be tested by simulating the power receiving end, and the third output data set of the charger to be tested is collected to calculate the constant current charging stage characteristics and the constant voltage charging stage characteristics.
[0006] Step S5, testing the electromagnetic interference capability of the charger, sending a fifth charging state data packet sequence to the charger to be detected, measuring at a preset distance radius by an electromagnetic radiation analyzer, and calculating the external electromagnetic interference intensity of the charger to be detected by depolarization and averaging processing; Step S6, calculating a score based on the obtained electrical safety performance data, electromagnetic interference intensity and charging performance data, and completing the detection of the charger based on a preset charger test score model.
[0007] As a preferred embodiment of a method for testing a battery charger according to the present invention, wherein: Connect the charger to be detected to the simulated power receiving end, perform charging protocol pairing on the charger to be detected based on a preset charging protocol library in the simulated power receiving end, and determine the charging protocol type of the charger to be detected; The charging protocol pairing logic is as follows: a first data packet received by the simulated power receiving end and sent by the charger to be detected is decoded once, an initial frame detected, decoded twice, and a cyclic redundancy check is performed to obtain first charging handshake data; the first charging handshake data is matched with the charging handshake data corresponding to each protocol in the preset charging protocol library one by one in sequence; a successful match indicates that the charging protocol type of the charger to be detected is obtained.
[0008] As a preferred solution of a test method for a battery charger according to the present invention, the overvoltage protection capability, overcurrent protection capability and overtemperature protection capability of the charger to be tested are tested, and the overtemperature protection capability includes active overtemperature protection capability and passive overtemperature protection capability; Determine the corresponding preset cutoff current, preset cutoff voltage and preset cutoff temperature based on the charging protocol type of the charger to be detected; The first charging status data packet sequence is sent to the charger to be detected by simulating the power receiving end, the output current value of the charger to be detected is collected, and the collection is stopped when the output current value of the charger to be detected returns to zero to obtain a first output data set, and the actual cut-off current is calculated based on the current data of the first output data set; The second charging state data packet sequence is sent to the charger to be detected by simulating the power receiving end, the output voltage value of the charger to be detected is collected, and the collection is stopped when the output voltage value of the charger to be detected returns to zero to obtain the second output data set, and the actual cutoff voltage is calculated based on the current data of the second output data set; By simulating the power receiving end to send a third charging state data packet sequence to the charger to be detected, the output current value of the charger to be detected is collected, and the collection is stopped when the output current value of the charger to be detected returns to zero, so as to obtain the actual passive cutoff temperature; Among them, the first mobile phone status data packet sequence includes a simulated cutoff current model value, the second mobile phone status data packet sequence includes a simulated cutoff voltage model value, and the third mobile phone status data packet sequence includes a simulated passive cutoff temperature model value, and the calculation expression thereof is: in, Indicates the analog current signal value, Indicates the preset cut-off current, Represents the buffer current range, represents the simulated current growth rate, Indicates the analog current output time. Indicates the analog voltage signal value, Indicates the preset cutoff voltage, Represents the buffer voltage range, represents the analog voltage growth rate, Indicates the analog voltage output time, Represents the analog temperature signal value, Indicates the preset cutoff temperature, represents the buffer temperature range, represents the simulated temperature growth rate, Indicates the analog temperature output time.
[0009] As a preferred solution of the test method for a battery charger described in the present invention, the active over-temperature protection capability of the charger to be tested is tested, the charger is heated by a constant temperature heating platform, the temperature of the charger to be tested is monitored by an infrared thermometer, and the temperature value when the voltage returns to zero is recorded to obtain the actual active cutoff temperature. If the actual active cutoff temperature is greater than the preset cutoff temperature, it is judged to be unqualified.
[0010] As a preferred solution of a test method for a battery charger according to the present invention, wherein: a charging test is performed on the charger to be tested based on a first test path, a third charging state data packet sequence is sent to the charger to be tested by simulating a power receiving end, and a maximum power, a maximum power maintenance time and an output current waveform deviation of the charger to be tested are calculated based on a second output data set; The third charging state data packet sequence includes a maximum current request and M simulated power node data; The calculation logic of the maximum power and the maximum power maintenance time is: through the maximum current request in the third charging state data packet sequence, the charger to be detected outputs the actual maximum current, calculates the maximum power based on the actual maximum current and the corresponding voltage, and records the maximum power maintenance time.
[0011] As a preferred solution of a test method for a battery charger described in the present invention, wherein: the output current waveform deviation is calculated by a segment sampling method and a dynamic time warping algorithm, and the processing logic of the segment sampling method is: based on M simulated power node data in the third charging state data packet sequence, fixed-time sampling is performed to obtain M current function segment images of the output current with respect to time; The deviation between each function segment and the reference waveform corresponding to the charging protocol is calculated by the dynamic time warping algorithm. The calculation logic of the current waveform deviation is: The current waveform fragments and the reference waveform of the corresponding electric quantity are vectorized, and the deviation matrix is established by calculating the paradigm distance between the vectors. The initial corner element position of the deviation matrix is used as the starting point, and the cumulative paradigm distance from the initial corner element to each element is recursively calculated. The cumulative paradigm distances of each path are sorted to obtain the minimum cumulative paradigm distance, and the cumulative distances are normalized to obtain the similarity value. Based on the similarity value, the current waveform deviation is calculated, and its calculation expression is: in, Indicates the current waveform deviation, Represents the similarity value.
[0012] As a preferred embodiment of a test method for a battery charger described in the present invention, a performance test is performed on the charger to be tested through a second test path, a fourth charging state data packet sequence is obtained based on a pre-charging power node, a constant current charging power node and a constant voltage charging power node in a non-intelligent charging protocol, a fourth charging state data packet sequence is sent to the charger to be tested by simulating a power receiving end, a third output data set of the charger to be tested is collected, and an average value and a standard deviation of the current in the constant current charging stage, and an average value and a standard deviation of the voltage in the constant voltage charging stage are calculated based on the third output data set.
[0013] As a preferred embodiment of the test method for a battery charger described in the present invention, the electromagnetic interference capability of the charger is tested, a fifth charging state data packet sequence is sent to the charger to be tested, so that the charger outputs a maximum current value, and an electromagnetic radiation analyzer is used to measure L times at a preset distance radius, and the L electromagnetic interference intensity values measured are depolarized and averaged to obtain the external electromagnetic interference intensity of the charger to be tested.
[0014] As a preferred embodiment of the test method for a battery charger described in the present invention, based on the electrical safety performance data, electromagnetic interference intensity and charging performance data obtained by measurement and calculation, a charger test score model is established to calculate the score and complete the detection of the charger.
[0015]
[0016] Where i represents the charging protocol index, FS represents the charger test score, Indicates the electrical safety performance test score, Indicates the current waveform deviation, Indicates the current waveform deviation threshold, represents the current waveform deviation weight, Indicates the current standard deviation during constant current charging. Indicates the current standard deviation threshold during constant current charging. Represents the current standard deviation weight in the constant current charging stage, Indicates the voltage standard deviation during constant voltage charging. Indicates the voltage standard deviation threshold during constant voltage charging. Represents the voltage standard deviation weight in the constant voltage charging stage, Indicates the external electromagnetic interference intensity. Indicates the external electromagnetic interference intensity threshold. Represents the external electromagnetic interference intensity weight, Indicates the actual cut-off current, Indicates the minimum cut-off current, Indicates the preset cut-off current, Indicates the actual cutoff voltage, Indicates the minimum cutoff voltage, Indicates the preset cutoff voltage, represents the actual passive cutoff temperature, Indicates the actual active cutoff temperature, represents the minimum cutoff temperature, Indicates the preset cutoff temperature.
[0017] A test system for a battery charger, comprising: a power module, a simulated power receiving end module, a charging data acquisition module, a data processing module, an over-protection capability detection module, an electromagnetic detection module and an interactive terminal module; The power supply module is used to provide a regulated power supply for the test system; The simulated power receiving end module is used to receive a first data packet sent by the charger to be detected, decode it to obtain first charging handshake data, and complete charging protocol matching; Used to communicate with the charger to be detected, receive instructions sent by the interactive terminal module and encode them to obtain a charging status data packet sequence, and send the charging status data packet sequence to the charger to be detected; Used to provide a load, build a current loop and receive the current output by the charger to be detected; The charging data acquisition module is used to measure the voltage value and current value output by the charger to be detected, obtain an output data set and send the output data set to the data processing module; The over-protection capability detection module is used to measure the actual cut-off current, the actual cut-off current, the first actual cut-off temperature and the second actual cut-off temperature, complete the protection capability judgment by the preset cut-off current, the preset cut-off voltage and the preset cut-off temperature, and send the judgment result to the data processing module; The electromagnetic detection module is used to measure the electromagnetic interference intensity of the charger to be detected at a preset distance when the output power is maximum, and send the measured electromagnetic interference intensity to the data processing module; The data processing module is used to process and analyze the received over-protection capability detection data, electromagnetic interference intensity data and output data set, and calculate the charger test score.
[0018] The beneficial effects of the present invention are as follows: using a simulated power receiving end to replace a mobile phone to establish a current path with the charger to be detected, receiving a handshake data packet of the charger to complete the charging protocol identification, and sending a simulated charging signal to the charger to regulate and detect the output of the charger, avoiding the use of the mobile phone for full charging of the whole process, which is conducive to reducing the time cost and power cost required for the test. By simulating the power receiving end to send the temperature data of the mobile phone to the charger to be detected, the passive cut-off temperature is obtained, and the power-off ability of the charger itself at high temperature is detected to obtain the active cut-off temperature, which is conducive to accurately detecting the most important over-temperature protection ability in electrical safety performance. Since the intelligent charging protocol adopts a complex charging architecture design, it can dynamically adjust the charging current and charging voltage in combination with the power and temperature information of the mobile phone, so it cannot be directly detected using the threshold discrimination method of the non-intelligent charging protocol charger. The dynamic time warping algorithm is conducive to measuring the similarity between the current waveform fragments with different fluctuation ranges and the corresponding reference waveform. The smaller the similarity, the more similar the two time series are, and the charging performance of the charger equipped with the intelligent charging protocol can be effectively indirectly detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A basic flow chart of a method for testing a battery charger provided by an embodiment of the present invention; Figure 2 A schematic diagram of a framework of a test system for a battery charger provided by an embodiment of the present invention; Figure 3 A basic flow chart of a first detection path in a test method for a battery charger provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings. It is obvious that the described embodiments are only part of the embodiments of the present invention, but not all of the embodiments.
[0021] Example 1, reference Figure 1 and Figure 3 , as an embodiment of the present invention, provides a testing method for a battery charger, comprising: Step S1, connecting the charger to be detected to the simulated power receiving end, pairing the charging protocol of the charger to be detected based on a preset charging protocol library, and completing the identification of the charging protocol type of the charger to be detected; Step S2, performing electrical safety performance testing on the charger to be tested based on the charging protocol type identification result, where the electrical safety performance testing includes overvoltage protection capability, overcurrent protection capability, and overtemperature protection capability; Step S3, determining a test path based on the charging protocol type identification result, includes: If the identification result of the charging protocol type of the charger to be tested is a smart charging protocol, determining a first test path; If the identification result of the charging protocol type of the charger to be detected is a non-intelligent charging protocol, determining a second test path; Step S4, performing a performance test on the charger to be tested through the first test path, sending a third charging state data packet sequence to the charger to be tested by simulating the power receiving end, and calculating the maximum power, maximum power maintenance time and output current waveform deviation of the charger to be tested based on the second output data set; The performance test of the charger to be tested is performed through the second test path, and a fourth charging state data packet sequence is obtained based on the power node in the non-intelligent charging protocol. The fourth charging state data packet sequence is sent to the charger to be tested by simulating the power receiving end, and the third output data set of the charger to be tested is collected to calculate the constant current charging stage characteristics and the constant voltage charging stage characteristics.
[0022] Step S5, testing the electromagnetic interference capability of the charger, sending a fifth charging state data packet sequence to the charger to be detected, measuring at a preset distance radius by an electromagnetic radiation analyzer, and calculating the external electromagnetic interference intensity of the charger to be detected by depolarization and averaging processing; Step S6, calculating a score based on the obtained electrical safety performance data, electromagnetic interference intensity and charging performance data, and completing the detection of the charger based on a preset charger test score model.
[0023] In this embodiment, the charger to be detected is connected to the simulated power receiving end, and the charging protocol of the charger to be detected is matched based on the preset charging protocol library in the simulated power receiving end to determine the charging protocol type of the charger to be detected; The charging protocol pairing logic is as follows: a first data packet received by the simulated power receiving end and sent by the charger to be detected is decoded once, an initial frame detected, decoded twice, and a cyclic redundancy check is performed to obtain first charging handshake data; the first charging handshake data is matched with the charging handshake data corresponding to each protocol in the preset charging protocol library one by one in sequence; a successful match indicates that the charging protocol type of the charger to be detected is obtained.
[0024] In this embodiment, the overvoltage protection capability, overcurrent protection capability and overtemperature protection capability of the charger to be detected are tested, and the overtemperature protection capability includes active overtemperature protection capability and passive overtemperature protection capability; Determine the corresponding preset cutoff current, preset cutoff voltage and preset cutoff temperature based on the charging protocol type of the charger to be detected; The first charging status data packet sequence is sent to the charger to be detected by simulating the power receiving end, the output current value of the charger to be detected is collected, and the collection is stopped when the output current value of the charger to be detected returns to zero to obtain a first output data set, and the actual cut-off current is calculated based on the current data of the first output data set; The second charging state data packet sequence is sent to the charger to be detected by simulating the power receiving end, the output voltage value of the charger to be detected is collected, and the collection is stopped when the output voltage value of the charger to be detected returns to zero to obtain the second output data set, and the actual cutoff voltage is calculated based on the current data of the second output data set; By simulating the power receiving end to send a third charging state data packet sequence to the charger to be detected, the output current value of the charger to be detected is collected, and the collection is stopped when the output current value of the charger to be detected returns to zero, so as to obtain the actual passive cutoff temperature; Among them, the first mobile phone status data packet sequence includes a simulated cutoff current model value, the second mobile phone status data packet sequence includes a simulated cutoff voltage model value, and the third mobile phone status data packet sequence includes a simulated passive cutoff temperature model value, and the calculation expression thereof is: in, Indicates the analog current signal value, Indicates the preset cut-off current, Represents the buffer current range, represents the simulated current growth rate, Indicates the analog current output time. Indicates the analog voltage signal value, Indicates the preset cutoff voltage, Represents the buffer voltage range, represents the analog voltage growth rate, Indicates the analog voltage output time, Represents the analog temperature signal value, Indicates the preset cutoff temperature, represents the buffer temperature range, represents the simulated temperature growth rate, Indicates the analog temperature output time.
[0025] Among them, when the charger is running the over-protection function, whether to cut off the circuit of the charger is based on the current value, voltage value and temperature value received from the mobile phone. In this embodiment, the actual cut-off current, the actual cut-off voltage and the first actual cut-off temperature represent the analog signal output by the simulated power receiving end when the charger cuts off the circuit. In addition, since there is a deviation between the actual cut-off current and the preset cut-off current, the actual cut-off voltage and the preset cut-off voltage, and the actual cut-off temperature and the preset cut-off temperature, the simulated power receiving end is used instead of the mobile phone to communicate with the charger to be tested, and the analog signal is fed back to the charger. It avoids using the mobile phone for complete charging, which is conducive to accurately controlling the parameters received by the charger and reducing the time cost and electricity cost required for testing.
[0026] In this embodiment, the active over-temperature protection capability of the charger to be tested is tested. The charger is heated by a constant temperature heating platform, the temperature of the charger to be tested is monitored by an infrared thermometer, and the temperature value when the voltage returns to zero is recorded to obtain the actual active cutoff temperature. If the actual active cutoff temperature is greater than the preset cutoff temperature, it is judged to be unqualified.
[0027] In this embodiment, a charging test is performed on the charger to be tested based on the first test path, a third charging state data packet sequence is sent to the charger to be tested by simulating the power receiving end, and the maximum power, the maximum power maintenance time and the output current waveform deviation of the charger to be tested are calculated based on the second output data set; The third charging state data packet sequence includes a maximum current request and M simulated power node data; The calculation logic of the maximum power and the maximum power maintenance time is: through the maximum current request in the third charging state data packet sequence, the charger to be detected outputs the actual maximum current, calculates the maximum power based on the actual maximum current and the corresponding voltage, and records the maximum power maintenance time.
[0028] In this embodiment, the output current waveform deviation is calculated by a fragment sampling method and a dynamic time warping algorithm. The processing logic of the fragment sampling method is: based on the M simulated power node data in the third charging state data packet sequence, fixed-time sampling is performed to obtain M current function fragment images of the output current with respect to time; The deviation between each function segment and the reference waveform corresponding to the charging protocol is calculated by the dynamic time warping algorithm. The calculation logic of the current waveform deviation is: The current waveform fragments and the reference waveform of the corresponding electric quantity are vectorized, and the deviation matrix is established by calculating the paradigm distance between the vectors. The initial corner element position of the deviation matrix is used as the starting point, and the cumulative paradigm distance from the initial corner element to each element is recursively calculated. The cumulative paradigm distances of each path are sorted to obtain the minimum cumulative paradigm distance, and the cumulative distances are normalized to obtain the similarity value. Based on the similarity value, the current waveform deviation is calculated, and its calculation expression is: in, Indicates the current waveform deviation, Represents the similarity value.
[0029] In this embodiment, the performance test of the charger to be tested is performed through the second test path, and a fourth charging state data packet sequence is obtained based on the pre-charging power node, the constant current charging power node, and the constant voltage charging power node in the non-intelligent charging protocol. The fourth charging state data packet sequence is sent to the charger to be tested by simulating the power receiving end, and the third output data set of the charger to be tested is collected. The average value and standard deviation of the current in the constant current charging stage and the average value and standard deviation of the voltage in the constant voltage charging stage are calculated based on the third output data set.
[0030] In this embodiment, the electromagnetic interference capability of the charger is tested, and a fifth charging state data packet sequence is sent to the charger to be tested, so that the charger outputs a maximum current value. The electromagnetic radiation analyzer is used to measure L times at a preset distance radius, and the L measured electromagnetic interference intensity values are depolarized and averaged to obtain the external electromagnetic interference intensity of the charger to be tested.
[0031] In this embodiment, based on the electrical safety performance data, electromagnetic interference intensity and charging performance data obtained by measurement and calculation, a charger test score model is established to calculate the score and complete the detection of the charger.
[0032] Where i represents the charging protocol index, FS represents the charger test score, Indicates the electrical safety performance test score, Indicates the current waveform deviation, Indicates the current waveform deviation threshold, represents the current waveform deviation weight, Indicates the current standard deviation during constant current charging. Indicates the current standard deviation threshold during constant current charging. Represents the current standard deviation weight in the constant current charging stage, Indicates the voltage standard deviation during constant voltage charging. Indicates the voltage standard deviation threshold during constant voltage charging. Represents the voltage standard deviation weight in the constant voltage charging stage, Indicates the external electromagnetic interference intensity. Indicates the external electromagnetic interference intensity threshold. Represents the external electromagnetic interference intensity weight, Indicates the actual cut-off current, Indicates the minimum cut-off current, Indicates the preset cut-off current, Indicates the actual cutoff voltage, Indicates the minimum cutoff voltage, Indicates the preset cutoff voltage, represents the actual passive cutoff temperature, Indicates the actual active cutoff temperature, represents the minimum cutoff temperature, Indicates the preset cutoff temperature.
[0033] Example 2, reference Figure 2 , as another embodiment of the present invention, provides a test system for a battery charger, comprising: Power supply module, simulated power receiving end module, charging data acquisition module, data processing module, over-protection capability detection module, electromagnetic detection module and interactive terminal module; The power supply module is used to provide a regulated power supply for the test system; The simulated power receiving end module is used to receive a first data packet sent by the charger to be detected, decode it to obtain first charging handshake data, and complete charging protocol matching; Used to communicate with the charger to be detected, receive instructions sent by the interactive terminal module and encode them to obtain a charging status data packet sequence, and send the charging status data packet sequence to the charger to be detected; Used to provide a load, build a current loop and receive the current output by the charger to be detected; The charging data acquisition module is used to measure the voltage value and current value output by the charger to be detected, obtain an output data set and send the output data set to the data processing module; The over-protection capability detection module is used to measure the actual cut-off current, the actual cut-off current, the first actual cut-off temperature and the second actual cut-off temperature, complete the protection capability judgment by the preset cut-off current, the preset cut-off voltage and the preset cut-off temperature, and send the judgment result to the data processing module; The electromagnetic detection module is used to measure the electromagnetic interference intensity of the charger to be detected at a preset distance when the output power is maximum, and send the measured electromagnetic interference intensity to the data processing module; The data processing module is used to process and analyze the received over-protection capability detection data, electromagnetic interference intensity data and output data set, and calculate the charger test score.
[0034] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0035] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A testing method for a battery charger, characterized in that: include: Step S1, connecting the charger to be detected to the simulated power receiving end, pairing the charging protocol of the charger to be detected based on a preset charging protocol library, and completing the identification of the charging protocol type of the charger to be detected; Step S2, performing electrical safety performance testing on the charger to be tested based on the charging protocol type identification result, where the electrical safety performance testing includes overvoltage protection capability, overcurrent protection capability, and overtemperature protection capability; Step S3, determining a test path based on the charging protocol type identification result, includes: If the identification result of the charging protocol type of the charger to be tested is a smart charging protocol, determining a first test path; If the identification result of the charging protocol type of the charger to be detected is a non-intelligent charging protocol, determining a second test path; Step S4, performing a performance test on the charger to be tested through the first test path, sending a third charging state data packet sequence to the charger to be tested by simulating the power receiving end, and calculating the maximum power, maximum power maintenance time and output current waveform deviation of the charger to be tested based on the second output data set; The performance test of the charger to be tested is performed through the second test path, a fourth charging state data packet sequence is obtained based on the power node in the non-intelligent charging protocol, the fourth charging state data packet sequence is sent to the charger to be tested by simulating the power receiving end, and the third output data set of the charger to be tested is collected to calculate the constant current charging stage characteristics and the constant voltage charging stage characteristics; Step S5, testing the electromagnetic interference capability of the charger, sending a fifth charging state data packet sequence to the charger to be detected, measuring at a preset distance radius by an electromagnetic radiation analyzer, and calculating the external electromagnetic interference intensity of the charger to be detected by depolarization and averaging processing; Step S6, calculating a score based on the obtained electrical safety performance data, electromagnetic interference intensity and charging performance data, and completing the detection of the charger based on a preset charger test score model.
2. A method for testing a battery charger as claimed in claim 1, characterized in that: Connect the charger to be detected to the simulated power receiving end, perform charging protocol pairing on the charger to be detected based on a preset charging protocol library in the simulated power receiving end, and determine the charging protocol type of the charger to be detected; The charging protocol pairing logic is as follows: a first data packet received by the simulated power receiving end and sent by the charger to be detected is decoded once, an initial frame detected, decoded twice, and a cyclic redundancy check is performed to obtain first charging handshake data; the first charging handshake data is matched with the charging handshake data corresponding to each protocol in the preset charging protocol library one by one in sequence; a successful match indicates that the charging protocol type of the charger to be detected is obtained.
3. A method for testing a battery charger as claimed in claim 1, characterized in that: Test the overvoltage protection capability, overcurrent protection capability and overtemperature protection capability of the charger to be tested. The overtemperature protection capability includes active overtemperature protection capability and passive overtemperature protection capability. Determine the corresponding preset cutoff current, preset cutoff voltage and preset cutoff temperature based on the charging protocol type of the charger to be detected; The first charging status data packet sequence is sent to the charger to be detected by simulating the power receiving end, the output current value of the charger to be detected is collected, and the collection is stopped when the output current value of the charger to be detected returns to zero to obtain a first output data set, and the actual cut-off current is calculated based on the current data of the first output data set; The second charging state data packet sequence is sent to the charger to be detected by simulating the power receiving end, the output voltage value of the charger to be detected is collected, and the collection is stopped when the output voltage value of the charger to be detected returns to zero to obtain the second output data set, and the actual cutoff voltage is calculated based on the current data of the second output data set; By simulating the power receiving end to send a third charging state data packet sequence to the charger to be detected, the output current value of the charger to be detected is collected, and the collection is stopped when the output current value of the charger to be detected returns to zero, so as to obtain the actual passive cutoff temperature; Among them, the first mobile phone status data packet sequence includes a simulated cutoff current model value, the second mobile phone status data packet sequence includes a simulated cutoff voltage model value, and the third mobile phone status data packet sequence includes a simulated passive cutoff temperature model value, and the calculation expression thereof is: in, Indicates the analog current signal value, Indicates the preset cut-off current, Represents the buffer current range, represents the simulated current growth rate, Indicates the analog current output time. Indicates the analog voltage signal value, Indicates the preset cutoff voltage, Represents the buffer voltage range, represents the analog voltage growth rate, Indicates the analog voltage output time, Represents the analog temperature signal value, Indicates the preset cutoff temperature, represents the buffer temperature range, represents the simulated temperature growth rate, Indicates the analog temperature output time.
4. A method for testing a battery charger as claimed in claim 3, characterized in that: The active over-temperature protection capability of the charger to be tested is tested. The charger is heated by a constant temperature heating platform, and the temperature of the charger to be tested is monitored by an infrared thermometer. The temperature value when the voltage returns to zero is recorded to obtain the actual active cutoff temperature. If the actual active cutoff temperature is greater than the preset cutoff temperature, it is judged as unqualified.
5. A method for testing a battery charger as claimed in claim 1, characterized in that: Based on the first test path, a charging test is performed on the charger to be tested, a third charging state data packet sequence is sent to the charger to be tested by simulating the power receiving end, and the maximum power, the maximum power maintenance time and the output current waveform deviation of the charger to be tested are calculated based on the second output data set; The third charging state data packet sequence includes a maximum current request and M simulated power node data; The calculation logic of the maximum power and the maximum power maintenance time is: through the maximum current request in the third charging state data packet sequence, the charger to be detected outputs the actual maximum current, calculates the maximum power based on the actual maximum current and the corresponding voltage, and records the maximum power maintenance time.
6. A method for testing a battery charger as claimed in claim 5, characterized in that: The output current waveform deviation is calculated by a fragment sampling method and a dynamic time warping algorithm. The processing logic of the fragment sampling method is as follows: based on the M simulated power node data in the third charging state data packet sequence, fixed-time sampling is performed to obtain M current function fragment images of the output current with respect to time; The deviation between each function segment and the reference waveform corresponding to the charging protocol is calculated by the dynamic time warping algorithm. The calculation logic of the current waveform deviation is: The current waveform fragments and the reference waveform of the corresponding electric quantity are vectorized, and the deviation matrix is established by calculating the paradigm distance between the vectors. The initial corner element position of the deviation matrix is used as the starting point, and the cumulative paradigm distance from the initial corner element to each element is recursively calculated. The cumulative paradigm distances of each path are sorted to obtain the minimum cumulative paradigm distance, and the cumulative distances are normalized to obtain the similarity value. Based on the similarity value, the current waveform deviation is calculated, and its calculation expression is: in, Indicates the current waveform deviation, Represents the similarity value.
7. A method for testing a battery charger as claimed in claim 1, characterized in that: The performance test of the charger to be tested is performed through the second test path, and a fourth charging state data packet sequence is obtained based on the pre-charging power node, the constant current charging power node and the constant voltage charging power node in the non-intelligent charging protocol. The fourth charging state data packet sequence is sent to the charger to be tested by simulating the power receiving end, and the third output data set of the charger to be tested is collected. The average value and standard deviation of the current in the constant current charging stage and the average value and standard deviation of the voltage in the constant voltage charging stage are calculated based on the third output data set.
8. A method for testing a battery charger as claimed in claim 1, characterized in that: To test the electromagnetic interference capability of the charger, a fifth charging state data packet sequence is sent to the charger to be tested, so that the charger outputs the maximum current value. The electromagnetic radiation analyzer is used to measure L times at a preset distance radius. The L measured electromagnetic interference intensity values are depolarized and averaged to obtain the external electromagnetic interference intensity of the charger to be tested.
9. A method for testing a battery charger as claimed in claim 1, characterized in that: Based on the measured and calculated electrical safety performance data, electromagnetic interference intensity and charging performance data, a charger test scoring model is established to calculate the score and complete the charger detection: Where i represents the charging protocol index, FS represents the charger test score, Indicates the electrical safety performance test score, Indicates the current waveform deviation, Indicates the current waveform deviation threshold, represents the current waveform deviation weight, Indicates the current standard deviation during constant current charging. Indicates the current standard deviation threshold during constant current charging. Represents the current standard deviation weight in the constant current charging stage, Indicates the voltage standard deviation during constant voltage charging. Indicates the voltage standard deviation threshold during constant voltage charging. Represents the voltage standard deviation weight in the constant voltage charging stage, Indicates the external electromagnetic interference intensity. Indicates the external electromagnetic interference intensity threshold. Represents the external electromagnetic interference intensity weight, Indicates the actual cut-off current, Indicates the minimum cut-off current, Indicates the preset cut-off current, Indicates the actual cutoff voltage, Indicates the minimum cutoff voltage, Indicates the preset cutoff voltage, represents the actual passive cutoff temperature, Indicates the actual active cutoff temperature, represents the minimum cutoff temperature, Indicates the preset cutoff temperature.
10. A test system for a battery charger, comprising: Power supply module, simulated power receiving end module, charging data acquisition module, data processing module, over-protection capability detection module, electromagnetic detection module and interactive terminal module; The power supply module is used to provide a regulated power supply for the test system; The simulated power receiving end module is used to receive a first data packet sent by the charger to be detected, decode it to obtain first charging handshake data, and complete charging protocol matching; Used to communicate with the charger to be detected, receive instructions sent by the interactive terminal module and encode them to obtain a charging status data packet sequence, and send the charging status data packet sequence to the charger to be detected; Used to provide a load, build a current loop and receive the current output by the charger to be detected; The charging data acquisition module is used to measure the voltage value and current value output by the charger to be detected, obtain an output data set and send the output data set to the data processing module; The over-protection capability detection module is used to measure the actual cut-off current, the actual cut-off current, the first actual cut-off temperature and the second actual cut-off temperature, complete the protection capability judgment by the preset cut-off current, the preset cut-off voltage and the preset cut-off temperature, and send the judgment result to the data processing module; The electromagnetic detection module is used to measure the electromagnetic interference intensity of the charger to be detected at a preset distance when the output power is maximum, and send the measured electromagnetic interference intensity to the data processing module; The data processing module is used to process and analyze the received over-protection capability detection data, electromagnetic interference intensity data and output data set, and calculate the charger test score.
Citation Information
Patent Citations
Method and system for testing mobile phone charger
CN104237675A
QC quick charge test method
CN111953049A
Auxiliary test equipment, test method, test system, storage medium and product
CN115934570A
Testing device and testing method of power battery charger and electronic equipment
CN117289070A
Multi-protocol charging method and device, equipment and storage medium
CN118322920A
Cited By
Power conversion cabinet power control method and system, and power conversion cabinet
CN119283710A
Quick test method and device for quick charge adapter of mobile phone
CN119492946A
