Power consumption testing method, system, server and storage medium

The main controller obtains the power resistance value and sampling voltage, and adjusts the load of the adjustable load module, solving the problem that the power consumption current and prediction of the remaining time cannot be controlled in real time in the lithium battery power consumption measurement, real-time control and accurate prediction are achieved.

CN115980599BActive Publication Date: 2025-07-25WUXI RUIQIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211736841.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-07-25
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

The existing lithium battery power consumption measurement methods cannot control the power consumption current in real time, cannot draw the data curve of the power consumption and time, and cannot predict the remaining time.

Method used

The main controller obtains power resistance value information and sampling voltage, adjusts the load of the adjustable load module, controls the power consumption current in real time, draws the data curve of the power consumption and time, and predicts the remaining time.

Benefits of technology

Real-time control of power consumption current, draw the data curve of power consumption and time, and accurately predict the remaining time, which is suitable for various types of lithium batteries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115980599B_ABST
    Figure CN115980599B_ABST
Patent Text Reader

Abstract

The embodiment of the present application relates to the technical field of battery power consumption testing, and discloses a power consumption testing method, system, server, and storage medium. The power consumption testing method is applied to a main controller and includes: obtaining power resistance value information through a host computer communicating with the main controller; obtaining a first sampling voltage of a battery under test through a data storage module, where the first sampling voltage is obtained by a sampling module sampling the battery under test and stored in the data storage module; obtaining a load adjustment instruction according to the power resistance value information and the first sampling voltage, and sending the load adjustment instruction to an adjustable load module for the adjustable load module to adjust the load according to the load adjustment instruction; obtaining a second sampling voltage of the battery under test through the data storage module, where the second sampling voltage is obtained by the sampling module sampling the battery under test after the load adjustment and stored in the data storage module; obtaining a power consumption data curve and a power consumption time according to the adjusted load value and the second sampling voltage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of battery power consumption testing, and particularly to a power consumption testing method, system, server and storage medium. Background Art

[0002] With the development of new energy technologies, the consumption level of lithium batteries has been increasing day by day. For the measurement method of the power consumption of lithium batteries, the method based on an electronic load is usually adopted. However, this method requires setting the discharge cut-off voltage and the discharge current in advance, resulting in the inability to control the magnitude of the power consumption current in real time according to the voltage, the inability to draw a data curve representing the relationship between power consumption and time based on the data of voltage, current and time, and the inability to predict the remaining time of power consumption according to the current voltage. Summary of the Invention

[0003] The purpose of the embodiments of the present application is to provide a power consumption testing method, system, server and storage medium, which can detect the voltage of the battery under test in real time, and control the magnitude of the power consumption current in real time by adjusting the load based on the voltage, and then draw a data curve representing the relationship between power consumption and time and predict the remaining time of power consumption according to the load and voltage.

[0004] To solve the above technical problems, the embodiments of the present application provide a power consumption testing method, which is applied to a main controller and includes: obtaining power resistance value information through a host computer communicating with the main controller; obtaining a first sampled voltage of the battery under test through a data storage module, where the first sampled voltage is obtained by sampling the battery under test through a sampling module and stored in the data storage module; obtaining a load adjustment instruction according to the power resistance value information and the first sampled voltage, and sending the load adjustment instruction to an adjustable load module for the adjustable load module to adjust the load according to the load adjustment instruction; obtaining a second sampled voltage of the battery under test through the data storage module, where the second sampled voltage is obtained by sampling the battery under test through the sampling module after the load is adjusted and stored in the data storage module; obtaining a power consumption data curve and a power consumption time according to the adjusted load value and the second sampled voltage.

[0005] The embodiment of the present application further provides a power consumption testing system, including: a main controller, a host computer, a sampling module, a data storage module, an adjustable load module, and a battery under test; the main controller is configured to obtain power resistance value information through the host computer, obtain a first sampled voltage of the battery under test through the data storage module, obtain a load adjustment instruction according to the power resistance value information and the first sampled voltage, and send the load adjustment instruction to the adjustable load module; the adjustable load module is configured to adjust the load according to the load adjustment instruction; the sampling module is configured to sample the battery under test to obtain the first sampled voltage and store it in the data storage module, and sample the battery under test through the sampling module to obtain a second sampled voltage and store it in the data storage module after the load is adjusted; the main controller is further configured to obtain the second sampled voltage through the data storage module, and obtain a power consumption data curve and a power consumption time according to the adjusted load value and the second sampled voltage.

[0006] The embodiment of the present application further provides a server, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the above-mentioned power consumption testing method.

[0007] The embodiment of the present application further provides a computer-readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the above-mentioned power consumption testing method.

[0008] In an embodiment of the present application, on the main controller, power resistance information is obtained through a host computer communicating with the main controller; a first sampling voltage of the battery under test is obtained through a data storage module, where the first sampling voltage is obtained by a sampling module sampling the battery under test and stored in the data storage module; a load adjustment instruction is obtained based on the power resistance information and the first sampling voltage, and the load adjustment instruction is sent to an adjustable load module for the adjustable load module to adjust the load according to the load adjustment instruction; a second sampling voltage of the battery under test is obtained through the data storage module, where the second sampling voltage is obtained by the sampling module sampling the battery under test after the load adjustment and stored in the data storage module; power consumption data curves and power consumption time are obtained based on the adjusted load value and the second sampling voltage. This enables the present application to detect the voltage of the battery under test in real time, and to control the magnitude of the power consumption current in real time by adjusting the load based on the voltage, and then to draw data curves representing the relationship between power consumption and time and predict the remaining power consumption time based on the load and voltage; solving the problems that the power consumption current cannot be controlled in real time according to the voltage, the data curve representing the relationship between power consumption and time cannot be drawn, and the remaining power consumption time cannot be predicted due to the power consumption measurement method based on an electronic load.

[0009] In addition, for the power consumption test method provided by the embodiment of the present application, the step of obtaining the power consumption data curves and the power consumption time according to the adjusted load value and the second sampling voltage includes: obtaining the sampling time point of the second sampling voltage through the data storage module; obtaining fitting parameters based on a preset fitting parameter formula according to the sampling time point and the second sampling voltage; obtaining a fitting voltage value based on a preset fitting voltage formula according to the sampling time point and the fitting parameters; drawing the power consumption data curves according to the sampling time point and the fitting voltage value; sending the power consumption data curves and the adjusted load value to the host computer for the host computer to obtain the power consumption current according to the adjusted load value, the fitting voltage value and a preset offset, and obtaining the power consumption time according to the power consumption current, the battery capacity of the battery under test and the offset.

[0010] In addition, for the power consumption test method provided by the embodiments of the present application, after obtaining the power consumption data curve and the power consumption time according to the adjusted load value and the second sampling voltage, the method further includes: obtaining the comparison result between the power consumption time and a preset power consumption time threshold; when the comparison result is that the power consumption time is less than the power consumption time threshold, sending a preset adjusted load value to the adjustable load module for the adjustable load module to adjust the load according to the adjusted load value, and obtaining the second sampling voltage of the battery under test again through the data storage module; when the comparison result is that the power consumption time is greater than or equal to the power consumption time threshold, sending a power consumption time display instruction to the display module for the display module to display the power consumption time. This enables the present application to control the remaining power consumption time of the battery under test by adjusting the load.

[0011] In addition, for the power consumption test method provided by the embodiments of the present application, after obtaining the power consumption data curve and the power consumption time according to the adjusted load value and the second sampling voltage, the method further includes: obtaining the comparison result between the second sampling voltage and a preset cut-off voltage; when the comparison result is that the second sampling voltage is less than the cut-off voltage, obtaining the power resistance value information of the host computer again; when the comparison result is that the second sampling voltage is greater than or equal to the cut-off voltage, stopping the power consumption test. The cut-off voltage of the present application is set based on the battery under test, so that it can be applicable to the power consumption tests of various types of batteries under test.

[0012] In addition, for the power consumption test method provided by the embodiments of the present application, the method further includes: when a preset timer is at the first flag bit, obtaining the power resistance value information of the host computer communicating with the main controller; when the timer is at the second flag bit, obtaining the first sampling voltage of the battery under test through the data storage module; when the timer is at the third flag bit, obtaining a load adjustment instruction according to the power resistance value information and the first sampling voltage. The present application controls the execution time of each test step by setting a timer, so as to perform the power consumption test of the battery under test in a stable test environment and improve the accuracy of the power consumption data curve and the power consumption time obtained by the present application.

[0013] In addition, for the power consumption test method provided by the embodiments of the present application, before obtaining the power resistance value information through the host computer communicating with the main controller, the method further includes: when the main controller detects an interruption, setting the cut-off voltage of the battery under test and the adjustment mode of the adjustable load module based on the type of the battery under test. The cut-off voltage of the battery under test and the adjustment mode of the adjustable load module in the present application are both set based on the type of the battery under test, so that the present application can be applicable to different types of batteries under test and improve the applicability. Description of the Drawings

[0014] One or more embodiments are illustrated by way of example in the accompanying drawings, and such illustrative descriptions do not constitute a limitation on the embodiments.

[0015] Figure 1 is a flowchart of the power consumption testing method provided by an embodiment of the present application;

[0016] Figure 2 is Figure 1 a flowchart of step 105 in the power consumption testing method provided by the embodiment of the present application shown;

[0017] Figure 3 is a flowchart of the power consumption testing method provided by an embodiment of the present application;

[0018] Figure 4 is a flowchart of the power consumption testing method provided by an embodiment of the present application;

[0019] Figure 5 is a schematic structural diagram of the power consumption testing system provided by an embodiment of the present application Figure 1 ;

[0020] Figure 6 is a schematic structural diagram of the power consumption testing system provided by an embodiment of the present application Figure 2 ;

[0021] Figure 7 is a schematic structural diagram of the server provided by an embodiment of the present application. Detailed Embodiments

[0022] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can understand that in the embodiments of the present application, many technical details are provided to help the reader better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can still be implemented. The following division of each embodiment is for convenience of description and should not constitute any limitation on the specific implementation manner of the present application. Each embodiment can be combined and cross-referenced with each other on the premise of not conflicting.

[0023] The embodiments of the present application relate to a power consumption testing method, which is applied to the main controller of a power consumption testing system, as Figure 1 shown, and specifically includes the following steps.

[0024] Step 101, obtain power resistance value information through a host computer communicating with the main controller.

[0025] In an exemplary implementation, the main controller in the power consumption test system communicates with the host computer, and the host computer can be regarded as a computer storing the power resistance information of the terminal where the battery under test is installed. After the main controller communicates with the host computer, it obtains the power resistance information of the terminal where the battery under test is installed from the host computer.

[0026] In an exemplary implementation, a timer is also set in the power consumption test system. When the power consumption test system starts to work, the timer is first started to count. When the timer is at the first flag bit, the main controller communicates with the host computer to obtain the power resistance information. Here, the first flag bit means that when the timer counts to 10 ms, the flag bit is set to 1, and after the main controller obtains the power resistance information, the flag bit is set to 0, but the timer is not cleared.

[0027] In an exemplary implementation, a display module is also set in the power consumption test system. The main controller can also communicate with the display module and send the obtained power resistance information to the display module for display. The tester using this power consumption test system can know the relevant information during the power consumption test through the display module. Here, the display module can be an organic electroluminescent display screen (Organic Light-Emitting Diode, abbreviated as OLED).

[0028] Step 102: Obtain the first sampled voltage of the battery under test through the data storage module, where the first sampled voltage is obtained by sampling the battery under test through the sampling module and stored in the data storage module.

[0029] In an exemplary implementation, after the main controller obtains the power resistance information, the sampling module in the power consumption test system samples the voltage of the battery under test to obtain the first sampled voltage. After the sampling module obtains the first sampled voltage, it stores the sampling time point and the first sampled voltage in the data storage module, and then the main controller reads the first sampled voltage of the battery under test from the data storage module; where the sampling time point and the first sampled voltage in the data storage module have a corresponding relationship, the sampling module can be an analog-to-digital conversion AD module, and the data storage module can be a FLASH chip.

[0030] In an exemplary implementation, after step 101 is completed, the timer continues to count, and the flag bit is reset to 0; when the timer is at the second flag bit, the sampling module samples and stores the voltage of the battery under test. Here, the second flag bit means that when the timer counts to 50 ms, the flag bit is set to 1, and after the main controller obtains the first sampled voltage of the battery under test from the data storage module, the flag bit is set to 0, but the timer is not cleared.

[0031] In an exemplary implementation, after obtaining the first sampled voltage, the main controller may also send the first sampled voltage to the display module of the OLED for display by the display module.

[0032] Step 103: Obtain a load adjustment instruction based on the power resistance information and the first sampled voltage, and send the load adjustment instruction to the adjustable load module, so that the adjustable load module adjusts the load according to the load adjustment instruction.

[0033] In an exemplary implementation, the power resistance information includes the rated power P1, the first sampled voltage is denoted as U1, the load value of the adjustable load module is the initial load R0. Combining the formula P = U 2 / R, the first sampled voltage denoted as U1 and the initial load R0, the current power P2 can be obtained. Based on the difference between the current power P2 and the rated power P1, the first sampled voltage U1 and the formula P = U 2 / R, the theoretical load R1 can be calculated. A load adjustment instruction is generated based on the difference between the theoretical load R1 and the initial load R0 or a load adjustment instruction is generated based on the theoretical load. After generating the load adjustment instruction, the main controller sends the load adjustment instruction to the adjustable load module in the power consumption test system, and the adjustable load module adjusts its own load to the theoretical load R1 according to the load adjustment instruction.

[0034] In an exemplary implementation, after step 102 is completed, the timer continues to count, and the flag bit is reset to 0 again. When the timer is at the third flag bit, the main controller sends a load adjustment instruction to the adjustable load module. The third flag bit means that when the timer counts to 100 ms, the flag bit is set to 1, and after the load adjustment instruction is sent, the flag bit is set to 0, and the timer is cleared. In this application, by setting the timer to control the execution time of steps 101 to 103, the power consumption test of the battery under test can be performed in a stable test environment, thereby improving the accuracy of the power consumption data curve and power consumption time obtained in this application.

[0035] In an exemplary implementation, after obtaining the theoretical load R1, the main controller may also send the theoretical load R1 to the display module of the OLED for display by the display module.

[0036] Step 104: Obtain the second sampled voltage of the battery under test through the data storage module, where the second sampled voltage is obtained by sampling the battery under test through the sampling module after the load is adjusted and stored in the data storage module.

[0037] In an exemplary implementation, after the main controller sends a load adjustment instruction to the adjustable load module and the adjustable load module completes the adjustment of the load, the sampling module in the power consumption test system samples the voltage of the battery under test to obtain a second sampled voltage. After the sampling module obtains the second sampled voltage, it stores the sampling time point and the second sampled voltage value in the data storage module, and then the main controller reads the second sampled voltage of the battery under test from the data storage module; among them, there is also a corresponding relationship between the sampling time point and the second sampled voltage in the data storage module.

[0038] In an exemplary implementation, after the main controller obtains the second sampled voltage, it can also send the second sampled voltage to the display module for the OLED for display by the display module.

[0039] Step 105, obtain the power consumption data curve and the power consumption time according to the adjusted load value and the second sampled voltage.

[0040] In an exemplary implementation, as Figure 2 shown, steps 201 - 206 are the specific processes for obtaining the power consumption data curve and the time taken.

[0041] Step 201, obtain the sampling time point of the second sampled voltage through the data storage module.

[0042] In an exemplary implementation, the data storage module stores the second sampled voltage and the sampling time corresponding to the second sampled voltage.

[0043] Step 202, based on a preset fitting parameter formula, obtain the fitting parameter according to the sampling time point and the second sampled voltage.

[0044] In an exemplary implementation, the fitting parameter formula is θ = (2X T X) -1 X T Y, where θ is the fitting parameter, X is the sampling time point, Y is the second sampled voltage, and T is the fitting exponent set by the user according to requirements; the main controller substitutes the obtained sampling time point and the second sampled voltage into the above formula to obtain the fitting parameter θ.

[0045] Step 203, based on a preset fitting voltage formula, obtain the fitting voltage value according to the sampling time point and the fitting parameter.

[0046] In an exemplary implementation, the fitting voltage formula is H = X θ , where θ is the fitting parameter, X is the sampling time point, and H is the fitting voltage value; the main controller substitutes the obtained sampling time point and the fitting parameter into the above formula to obtain the fitting voltage value.

[0047] In an exemplary implementation, the fitting parameter formula θ = (2XT X) -1 X T The derivation process of Y includes: According to the fitting voltage formula H = X θ to obtain J(θ) = (H - Y) 2 , take the derivative of the function J(θ), and when the derivative is 0, the value of the function J(θ) is the maximum. Therefore, the formula is obtained After taking the inverse of this formula, the fitting parameter formula θ = (2X T X) - 1 X T Y

[0048] Step 204, draw the power consumption data curve according to the sampling time points and the fitting voltage values

[0049] In an exemplary implementation, the horizontal and vertical coordinates of the power consumption data curve are the sampling time points and the fitting voltage values respectively. Each obtained sampling time point and fitting voltage value can form a point on the power consumption data curve. By repeating the acquisition multiple times to obtain multiple points, a complete power consumption data curve can be obtained

[0050] Step 205, send the power consumption data curve and the adjusted load value to the host computer for the host computer to obtain the power consumption current according to the adjusted load value, the fitting voltage value and the preset offset, and obtain the power consumption time according to the power consumption current, the battery capacity of the battery under test and the offset

[0051] In an exemplary implementation, the main controller does not calculate the power consumption time, but sends the power consumption data curve and the load value adjusted by the adjustable load module to the host computer. After receiving the power consumption data curve and the adjusted load value, the host computer first takes the adjusted load value as the power consumption resistance, the fitting voltage value as the battery voltage, and obtains the power consumption current based on the formula power consumption current (mA) = battery voltage (V) / power consumption resistance (Ω) + offset; then obtains the power consumption time based on the formula power consumption time (h) = battery capacity (mAh) / power consumption current (mA) + offset; where the power consumption time represents the remaining power consumption time

[0052] Step 206, receive the power consumption time returned by the host computer based on the power consumption data curve

[0053] In an exemplary implementation, after calculating the power consumption time, the host computer will return the power consumption time to the main controller. After receiving the power consumption time, the main controller will send information such as the power consumption time and the power consumption data curve to the display module for display

[0054] In an embodiment of the present application, on the main controller, power resistance information is obtained through a host computer communicating with the main controller; a first sampled voltage of the battery under test is obtained through a data storage module, where the first sampled voltage is obtained by sampling the battery under test through a sampling module and stored in the data storage module; a load adjustment instruction is obtained based on the power resistance information and the first sampled voltage, and the load adjustment instruction is sent to an adjustable load module for the adjustable load module to adjust the load according to the load adjustment instruction; a second sampled voltage of the battery under test is obtained through the data storage module, where the second sampled voltage is obtained by sampling the battery under test through the sampling module after the load is adjusted and stored in the data storage module; power consumption data curves and power consumption time are obtained based on the adjusted load value and the second sampled voltage. This enables the present application to detect the voltage of the battery under test in real time, and to control the magnitude of the power consumption current in real time by adjusting the load based on the voltage, and then to draw data curves representing the relationship between power consumption and time based on the load and voltage and predict the remaining power consumption time; it solves the problems that the power consumption current cannot be controlled in real time according to the voltage, the data curve representing the relationship between power consumption and time cannot be drawn, and the remaining power consumption time cannot be predicted due to the power consumption measurement method based on an electronic load.

[0055] An embodiment of the present application relates to a power consumption test method, which is applied to the main controller of a power consumption test system, as Figure 3 shown, and specifically includes the following steps.

[0056] Step 301, obtain power resistance information through a host computer communicating with the main controller.

[0057] In an exemplary implementation, this step is substantially the same as step 101 in the embodiment of the present application, and will not be elaborated here one by one.

[0058] Step 302, obtain a first sampled voltage of the battery under test through a data storage module, where the first sampled voltage is obtained by sampling the battery under test through a sampling module and stored in the data storage module.

[0059] In an exemplary implementation, this step is substantially the same as step 102 in the embodiment of the present application, and will not be elaborated here one by one.

[0060] Step 303, obtain a load adjustment instruction based on the power resistance information and the first sampled voltage, and send the load adjustment instruction to an adjustable load module for the adjustable load module to adjust the load according to the load adjustment instruction.

[0061] In an exemplary implementation, this step is substantially the same as step 103 in the embodiment of the present application, and will not be elaborated here one by one.

[0062] Step 304, obtain the second sampling voltage of the battery under test through the data storage module, where the second sampling voltage is obtained by sampling the battery under test through the sampling module after load adjustment and stored in the data storage module.

[0063] In an exemplary implementation, this step is substantially the same as step 104 in the embodiments of the present application, and will not be elaborated here one by one.

[0064] Step 305, obtain the power consumption data curve and the power consumption time according to the adjusted load value and the second sampling voltage.

[0065] In an exemplary implementation, this step is substantially the same as step 105 in the embodiments of the present application, and will not be elaborated here one by one.

[0066] Step 306, obtain the comparison result between the power consumption time and a preset power consumption time threshold.

[0067] In an exemplary implementation, during the power consumption test, it is necessary to set a judgment condition for determining whether to stop obtaining the power consumption time. Before the power consumption test, the main controller can obtain the power consumption time threshold from the host computer or the power consumption time threshold is set by the user himself. The comparison result between the power consumption time and the power consumption time threshold is the judgment condition for determining whether to stop obtaining the power consumption time.

[0068] Step 307, when the comparison result is that the power consumption time is less than the power consumption time threshold, send a preset adjusted load value to the adjustable load module for the adjustable load module to adjust the load according to the adjusted load value.

[0069] In an exemplary implementation, when the power consumption time is less than the power consumption time threshold, it indicates that the acquisition process of the power consumption time has not ended. It is necessary to send a preset adjusted load value to the adjustable load module for the adjustable load module to adjust the load according to the adjusted load value. After the load adjustment is completed, step 304 is executed again.

[0070] Step 308, when the comparison result is that the power consumption time is greater than or equal to the power consumption time threshold, send a power consumption time display instruction to the display module for the display module to display the power consumption time.

[0071] In an exemplary implementation, when the power consumption time is greater than or equal to the power consumption time threshold, it indicates that the acquisition process of the power consumption time has been completed, and the acquisition of the power consumption time can be stopped. At this time, it is necessary to send a power consumption time display instruction to the display module for the display module to display the power consumption time.

[0072] Step 309, obtain the comparison result between the second sampling voltage and the preset cut-off voltage of the battery under test.

[0073] In an exemplary implementation, during the power consumption test, it is necessary to set a judgment condition for determining whether to stop the test on the battery under test. Before the power consumption test, the main controller can obtain the cut-off voltage of the battery under test from the host computer, or the cut-off voltage can be set by the user himself. The comparison result between the second sampling voltage and the cut-off voltage of the battery under test is the judgment condition for determining whether to stop the test on the battery under test.

[0074] In an exemplary implementation, when the second sampling voltage is less than the cut-off voltage of the battery under test, it indicates that the test on the battery under test has not ended, and it is necessary to re-execute step 301 and repeat the test steps for the battery under test.

[0075] Step 310, when the comparison result is that the second sampling voltage is greater than or equal to the cut-off voltage, stop the power consumption test.

[0076] In an exemplary implementation, when the second sampling voltage is greater than or equal to the cut-off voltage of the battery under test, it indicates that the test on the battery under test has been completed, and the power consumption test on the battery under test can be stopped.

[0077] In the embodiment of the present application, on the basis of other embodiments, the remaining power consumption time of the battery under test can be controlled by adjusting the load. At the same time, the cut-off voltage of the present application is set based on the battery under test, and thus it can be applied to the power consumption tests of various types of batteries under test.

[0078] The embodiment of the present application relates to a power consumption test method, which is applied to the main controller of a power consumption test system, as Figure 4 shown, and specifically includes the following steps.

[0079] Step 401, when the main controller detects an interruption, set the cut-off voltage of the battery under test and the adjustment mode of the adjustable load module based on the type of the battery under test.

[0080] In an exemplary implementation, an interruption button is also set in the power consumption test system. When the interruption button is pressed, the main controller detects the occurrence of an interruption. At this time, the cut-off voltage of the battery under test and the adjustment mode of the adjustable load module can be set based on the type of the battery under test. Among them, the type of the battery under test refers to the terminal gear of the terminal using the battery under test and its corresponding resistance requirement. For example, the terminal of the battery under test is a mobile phone, a computer or a tablet, the corresponding terminal gear of the battery under test is 1, 2 or 3, and the corresponding resistance requirement is 4.7, 7.7 or 20, etc. The specific corresponding relationship between the terminal gear of the battery under test and the resistance requirement is shown in Table 1, and the type of the battery under test is represented by the numbers 1-10.

[0081] Table 1 Corresponding relationship table of terminal gear and resistance requirement of battery under test

[0082] Terminal gear of the battery under test Resistance requirement 1 4.7 Ω 2 7.7 Ω (3 + 4.7) 3 20 Ω 4 37.7(30+4.7+3) 5 60 (two 30s) 6 100 Ω 7 300 Ω 8 1K

[0083] Step 402: Obtain power resistance value information through a host computer that communicates with the main controller.

[0084] In an exemplary implementation, this step is substantially the same as step 101 in the embodiments of the present application, and will not be elaborated here one by one.

[0085] Step 403: Obtain the first sampled voltage of the battery under test through the data storage module, where the first sampled voltage is obtained by the sampling module sampling the battery under test and stored in the data storage module.

[0086] In an exemplary implementation, this step is substantially the same as step 102 in the embodiments of the present application, and will not be elaborated here one by one.

[0087] Step 404: Obtain a load adjustment instruction based on the power resistance value information and the first sampled voltage, and send the load adjustment instruction to the adjustable load module for the adjustable load module to adjust the load according to the load adjustment instruction.

[0088] In an exemplary implementation, this step is substantially the same as step 103 in the embodiments of the present application, and will not be elaborated here one by one.

[0089] Step 405: Obtain the second sampled voltage of the battery under test through the data storage module, where the second sampled voltage is obtained by the sampling module sampling the battery under test after the load adjustment and stored in the data storage module.

[0090] In an exemplary implementation, this step is substantially the same as step 104 in the embodiments of the present application, and will not be elaborated here one by one.

[0091] Step 406: Obtain the power consumption data curve and the power consumption time based on the adjusted load value and the second sampled voltage.

[0092] In an exemplary implementation, this step is substantially the same as step 105 in the embodiments of the present application, and will not be elaborated here one by one.

[0093] In the embodiments of the present application, on the basis of other embodiments, the cut-off voltage of the battery under test and the adjustment mode of the adjustable load module can also be set according to the type of the battery under test, so that the present application can be applicable to different types of batteries under test and improve the applicability.

[0094] The step division of the above various methods is only for clear description. When implemented, they can be combined into one step or some steps can be split into multiple steps. As long as the same logical relationship is included, they are all within the protection scope of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of its algorithm and process are all within the protection scope of this patent.

[0095] Embodiments of the present application relate to a power consumption testing system. Specifically, the details of the power consumption testing system in this embodiment will be described below. The following content is only implementation details provided for convenient understanding and is not necessary for implementing this example. Figure 5 It is a schematic diagram of the power consumption testing system in this embodiment, including: a main controller 51, a host computer 52, a sampling module 53, a data storage module 54, an adjustable load module 55, and a battery under test 56.

[0096] Among them, the main controller 51 is used to obtain power resistance value information through the host computer 52, obtain the first sampled voltage of the battery under test through the data storage module 54, obtain a load adjustment instruction based on the power resistance value information and the first sampled voltage, and send the load adjustment instruction to the adjustable load module 55.

[0097] The adjustable load module 55 is used to adjust the load according to the load adjustment instruction.

[0098] The sampling module 53 is used to sample the battery under test to obtain the first sampled voltage and store it in the data storage module 54, and sample the battery under test through the sampling module 53 after the load is adjusted to obtain the second sampled voltage and store it in the data storage module 54.

[0099] The main controller 51 is further used to obtain the second sampled voltage through the data storage module 54, and obtain a power consumption data curve and a power consumption time based on the adjusted load value and the second sampled voltage.

[0100] In an exemplary implementation, the main controller 51 is an MCU, the sampling module 53 is an AD module, the data storage module 54 is a FLASH chip, and the adjustable load module 55 is composed of multiple switches and multiple loads. Each switch and each load are connected in series, and the series-connected switches and loads are connected in parallel with other series-connected switches and loads.

[0101] In an exemplary implementation, as Figure 6 shown, the power consumption testing system further includes a battery voltage stabilization module 61, a display module 62, and a heat dissipation module 63; the battery voltage stabilization module 61 is used to provide voltage to the main controller 51 and the heat dissipation module 63, the display module 62 is used to receive and display the display information transmitted by the main controller 51, and the display information can be the load value of the adjustable load module 55, the working state of the power consumption testing system, the voltage obtained by the sampling module 53, and the power consumption data curve and the power consumption time, etc.; the heat dissipation module 63 is used to dissipate heat for the adjustable load module 55.

[0102] In an exemplary implementation, the battery voltage regulation module 61 is further configured to control the voltage coupling problem between the provided voltage and the voltage of the sampling module. The battery voltage regulation module 61 adopts the method of connecting a freewheeling diode in parallel to cancel the back electromotive force generated when the switch is turned on and off. The stability of the battery is one of the important means to control the voltage coupling problem. Moreover, by adding a filtering capacitor to the power supply circuit, the voltage change is reduced, and the optical coupling isolation method is also adopted to reduce the power supply interference.

[0103] It is not difficult to find that this embodiment is a system embodiment corresponding to the above method embodiment, and this embodiment can be implemented in cooperation with the above method embodiment. The relevant technical details and technical effects mentioned in the above embodiments are still valid in this embodiment. To avoid repetition, they will not be elaborated here. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied to the above embodiments.

[0104] An embodiment of the present application relates to a server, as Figure 7 shown, including: at least one processor 701; and a memory 702 communicatively connected to the at least one processor 701; wherein, the memory 702 stores instructions executable by the at least one processor 701, and the instructions are executed by the at least one processor 701 so that the at least one processor 701 can execute the power consumption testing method in the above embodiments.

[0105] Among them, the memory and the processor are connected by a bus. The bus can include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and the memory together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art. Therefore, they will not be further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one component or multiple components, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on the transmission medium. The data processed by the processor is transmitted over the wireless medium through the antenna. Further, the antenna also receives data and transmits the data to the processor.

[0106] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. The memory can be used to store the data used by the processor when executing operations.

[0107] An embodiment of the present application relates to a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the above method embodiment is implemented.

[0108] That is, those skilled in the art can understand that all or part of the steps in the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.

[0109] Those of ordinary skill in the art can understand that the above embodiments are specific embodiments for implementing the present application. In actual applications, various changes can be made to them in form and details without departing from the spirit and scope of the present application.

Claims

1. A power consumption testing method, characterized in that, Applied to the main controller, the method includes: Obtaining power resistance value information through a host computer communicating with the main controller; Obtaining a first sampled voltage of the battery under test through a data storage module, where the first sampled voltage is obtained by a sampling module sampling the battery under test and stored in the data storage module; Obtaining a load adjustment instruction according to the power resistance value information and the first sampled voltage, and sending the load adjustment instruction to an adjustable load module for the adjustable load module to adjust the load according to the load adjustment instruction; Obtaining a second sampled voltage of the battery under test through the data storage module, where the second sampled voltage is obtained by the sampling module sampling the battery under test after load adjustment and stored in the data storage module; Obtaining a power consumption data curve and a power consumption time according to the adjusted load value and the second sampled voltage; Among them, the obtaining of the power consumption data curve includes: obtaining the sampling time point of the second sampled voltage through the data storage module; obtaining fitting parameters according to the sampling time point and the second sampled voltage based on a preset fitting parameter formula; obtaining fitting voltage values according to the sampling time point and the fitting parameters based on a preset fitting voltage formula; drawing the power consumption data curve according to the sampling time point and the fitting voltage values; Among them, the power consumption data curve contains fitting voltage values, and the obtaining of the power consumption time includes: sending the power consumption data curve and the adjusted load value to the host computer for the host computer to obtain a power consumption current according to the adjusted load value, the fitting voltage values and a preset offset, and obtaining the power consumption time according to the power consumption current, the battery capacity of the battery under test and the offset; receiving the power consumption time returned by the host computer based on the power consumption data curve.

2. The power consumption testing method according to claim 1, wherein After obtaining the power consumption data curve and the power consumption time according to the adjusted load value and the second sampled voltage, it further includes: Obtaining a comparison result between the power consumption time and a preset power consumption time threshold; When the comparison result is that the power consumption time is less than the power consumption time threshold, sending a preset adjusted load value to the adjustable load module for the adjustable load module to adjust the load according to the adjusted load value, and obtaining the second sampled voltage of the battery under test through the data storage module again; When the comparison result is that the power consumption time is greater than or equal to the power consumption time threshold, sending a power consumption time display instruction to a display module for the display module to display the power consumption time.

3. The power consumption testing method according to any one of claims 1 to 2, characterized in that, After obtaining the power consumption data curve and the power consumption time according to the adjusted load value and the second sampled voltage, it further includes: Obtaining a comparison result between the second sampled voltage and a preset cut-off voltage of the battery under test; When the comparison result is that the second sampled voltage is less than the cut-off voltage, obtaining the power resistance value information of the host computer again; When the comparison result is that the second sampled voltage is greater than or equal to the cut-off voltage, stopping the power consumption test.

4. The power consumption testing method according to any one of claims 1 to 2, characterized in that, The method further includes: When the preset timer is at the first flag bit, obtain the power resistance value information of the host computer communicating with the main controller; When the timer is at the second flag bit, obtain the first sampled voltage of the battery under test through the data storage module; When the timer is at the third flag bit, obtain a load adjustment instruction according to the power resistance value information and the first sampled voltage.

5. The power consumption testing method according to any one of claims 1 to 2, characterized in that, Before obtaining the power resistance value information through the host computer communicating with the main controller, it further includes: When the main controller detects an interruption, set the cut-off voltage of the battery under test and the adjustment mode of the adjustable load module based on the type of the battery under test.

6. A power consumption testing system, characterized in that, The system includes: a main controller, a host computer, a sampling module, a data storage module, an adjustable load module, and a battery under test; The main controller is configured to obtain the power resistance value information through the host computer, obtain the first sampled voltage of the battery under test through the data storage module, obtain a load adjustment instruction according to the power resistance value information and the first sampled voltage, and send the load adjustment instruction to the adjustable load module; The adjustable load module is configured to adjust the load according to the load adjustment instruction; The sampling module is configured to sample the battery under test to obtain the first sampled voltage and store it in the data storage module, and sample the battery under test through the sampling module after the load is adjusted to obtain a second sampled voltage and store it in the data storage module; The main controller is further configured to obtain the second sampled voltage through the data storage module, and obtain a power consumption data curve and a power consumption time according to the adjusted load value and the second sampled voltage; Among them, the obtaining of the power consumption data curve includes: obtaining the sampling time point of the second sampled voltage through the data storage module; obtaining a fitting parameter according to the sampling time point and the second sampled voltage based on a preset fitting parameter formula; obtaining a fitting voltage value according to the sampling time point and the fitting parameter based on a preset fitting voltage formula; drawing the power consumption data curve according to the sampling time point and the fitting voltage value; Among them, the power consumption data curve contains the fitting voltage value, and the obtaining of the power consumption time includes: sending the power consumption data curve and the adjusted load value to the host computer for the host computer to obtain a power consumption current according to the adjusted load value, the fitting voltage value and a preset offset, and obtaining the power consumption time according to the power consumption current, the battery capacity of the battery under test and the offset; receiving the power consumption time returned by the host computer based on the power consumption data curve.

7. A server, characterized in that, It includes: At least one processor; And, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the power consumption test method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the power consumption test method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Estimation method and terminal device of electricity quantity of battery

    CN103176132A

  • Sensor parameter tester and testing method

    CN110470976A