Battery life detection method, terminal device and computer readable storage medium

By judging and adjusting the voltage and temperature of the backup battery before battery life detection, ensuring that its status is normal and then performing detection, the problem of inaccurate internal resistance calculation caused by the backup battery loss is solved, and the accuracy of battery life detection is improved.

CN114994558BActive Publication Date: 2025-01-03GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210751343.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2025-01-03
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

The backup battery is out of power and causes inaccurate calculation of the internal resistance of the battery, affecting the accuracy of the battery life detection results.

Method used

Before starting the battery life detection, determine whether the open circuit voltage and temperature of the battery to be detected are within the preset range. If not, charge or wait for the range to be reached. Ensure that the battery status is normal before performing detection. Calculate the actual value through multiple sets of detection values Internal resistance value to improve detection accuracy.

Benefits of technology

Effectively prevent inaccurate internal resistance calculation problems caused by battery power loss, and improve the accuracy and reliability of battery life detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114994558B_ABST
    Figure CN114994558B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of detection technology, and provides a battery life detection method, terminal equipment and computer-readable storage medium, including: after the vehicle is started, the open circuit voltage of the battery to be detected in the vehicle is obtained; if the open circuit voltage of the battery to be detected is within the preset voltage range, the battery life detection is started; if the open circuit voltage of the battery to be detected is not within the preset voltage range, a charging instruction is sent to instruct the battery to be detected to charge, until the open circuit voltage of the battery to be detected is within the preset voltage range, and the battery life detection is started. Through the above method, the problem of inaccurate calculation of battery internal resistance caused by battery power loss can be effectively prevented, and the accuracy of battery life detection results can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of detection technology, and in particular, relates to a battery life detection method, a terminal device, and a computer-readable storage medium. Background Art

[0002] The vehicle power supply system includes a standard battery and a backup battery. When the standard battery is powered off or fails, the backup battery is used to power the vehicle. Therefore, it is necessary to regularly test the battery life of the backup battery to ensure the normal operation of the vehicle power supply system.

[0003] As the backup battery is used, or it is discharged naturally over a long period of time, it may become depleted. Depleted backup batteries will cause the battery voltage to be artificially high, which in turn will cause the calculated battery internal resistance to be artificially high. Battery internal resistance is a key indicator for judging the life of the backup battery, and the accuracy of its value will affect the accuracy of the battery life test results. Summary of the invention

[0004] The embodiments of the present application provide a battery life detection method, a terminal device, and a computer-readable storage medium, which can improve the accuracy of battery life detection results.

[0005] In a first aspect, an embodiment of the present application provides a battery life detection method, comprising:

[0006] After the vehicle is started, obtaining the open circuit voltage of the battery to be tested in the vehicle;

[0007] If the open circuit voltage of the battery to be tested is within a preset voltage range, the battery life test is started;

[0008] If the open circuit voltage of the battery to be detected is not within the preset voltage range, a charging instruction is sent to instruct the battery to be detected to charge until the open circuit voltage of the battery to be detected is within the preset voltage range, thereby starting the battery life detection.

[0009] In an embodiment of the present application, before starting the battery life test, it is first determined whether the open circuit voltage of the battery to be tested is within a preset voltage range. When the open circuit voltage of the battery to be tested is within the preset range, it indicates that the battery to be tested has a normal charge and is not depleted. Since a depleted battery will cause the battery voltage to be artificially high, the calculated internal resistance of the battery will be artificially high. Therefore, by using the above method, the open circuit voltage of the battery to be tested is first detected, and then the battery life test is performed, which can effectively prevent the problem of inaccurate calculation of the battery internal resistance caused by depleted battery, and effectively improve the accuracy of the battery life test results.

[0010] In a possible implementation of the first aspect, after the vehicle is started and before obtaining the open circuit voltage of the battery to be detected, the method further includes:

[0011] Acquiring the temperature of the battery to be tested;

[0012] If the temperature of the battery to be detected is within a preset temperature range, obtaining the open circuit voltage of the battery to be detected;

[0013] If the temperature of the battery to be detected is not within the preset temperature range, the temperature of the battery to be detected is obtained again after a preset time interval until the temperature of the battery to be detected is within the preset temperature range, and the open circuit voltage of the battery to be detected is obtained.

[0014] In a possible implementation manner of the first aspect, before acquiring the temperature of the battery to be detected, the method further includes:

[0015] Determining whether the number of starts of the vehicle currently reaches a preset number;

[0016] If the current number of startups of the vehicle reaches a preset number, the temperature of the battery to be detected is obtained.

[0017] In a possible implementation manner of the first aspect, after starting the battery life detection, the method includes:

[0018] Acquire multiple groups of detection values ​​of the battery to be detected, wherein each group of detection values ​​includes a first voltage value before discharge and a second voltage value after discharge of the battery to be detected during a discharge process;

[0019] Calculating the actual internal resistance value of the battery to be tested according to the multiple groups of test values;

[0020] Determining a life test result of the battery to be tested according to an actual internal resistance value of the battery to be tested and a reference internal resistance value;

[0021] Stop battery life detection.

[0022] In a possible implementation manner of the first aspect, calculating the actual internal resistance value of the battery to be tested according to the multiple groups of detection values ​​includes:

[0023] Deleting the largest first voltage value, the smallest first voltage value, the largest second voltage value, and the smallest second voltage value from the multiple groups of detection values ​​to obtain a detection value set;

[0024] Calculate a first average value of the first voltage value and a second average value of the second voltage value in the detection value set;

[0025] The actual internal resistance value of the battery to be detected is calculated according to the first average value and the second average value.

[0026] In a possible implementation manner of the first aspect, calculating the actual internal resistance value of the battery to be detected according to the first average value and the second average value includes:

[0027] Obtaining a discharge current of the battery to be detected during a discharge process;

[0028] calculating a first difference between the first average value and the second average value;

[0029] calculating a second difference between the discharge current and the reference current;

[0030] The ratio between the first difference and the second difference is calculated, and the ratio is recorded as the actual internal resistance value of the battery to be detected.

[0031] In a possible implementation manner of the first aspect, determining the life test result of the battery to be tested according to the actual internal resistance value and the reference internal resistance value of the battery to be tested includes:

[0032] Acquire a theoretical internal resistance value corresponding to the temperature of the battery to be detected, where the theoretical internal resistance value is recorded as the reference internal resistance value;

[0033] If the actual internal resistance value is greater than the reference internal resistance value, the life test result of the battery to be tested indicates that the test fails;

[0034] If the actual internal resistance value is less than or equal to the reference internal resistance value, the life test result of the battery to be tested indicates that the test has passed.

[0035] In a possible implementation manner of the first aspect, the method further includes:

[0036] If the life test results obtained N times in succession indicate that the test fails, an alarm prompt is sent, wherein N is a positive integer.

[0037] In a second aspect, an embodiment of the present application provides a battery life detection device, comprising:

[0038] A voltage acquisition unit, used to acquire the open circuit voltage of the battery to be detected in the vehicle after the vehicle is started;

[0039] A detection start unit, used to start battery life detection if the open circuit voltage of the battery to be detected is within a preset voltage range;

[0040] The battery charging unit is used to send a charging instruction to instruct the battery to be detected to charge if the open circuit voltage of the battery to be detected is not within the preset voltage range, until the open circuit voltage of the battery to be detected is within the preset voltage range, thereby starting the battery life detection.

[0041] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the battery life detection method as described in any one of the first aspects above is implemented.

[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium. An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the battery life detection method as described in any one of the above-mentioned first aspects is implemented.

[0043] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the terminal device executes the battery life detection method described in any one of the above-mentioned first aspects.

[0044] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0046] Figure 1 is a schematic diagram of a backup battery service framework provided in an embodiment of the present application;

[0047] Figure 2 It is a schematic diagram of the pre-process provided in the embodiment of the present application;

[0048] Figure 3 It is a schematic diagram of a pre-process provided by another embodiment of the present application;

[0049] Figure 4 It is a schematic diagram of a pre-process provided by another embodiment of the present application;

[0050] Figure 5 is a flowchart of a battery life detection method provided by an embodiment of the present application;

[0051] Figure 6 is a structural block diagram of a battery life detection device provided in an embodiment of the present application;

[0052] Figure 7 It is a structural diagram of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0054] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0055] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0056] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0057] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0058] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.

[0059] First, the application scenarios of this application are introduced. In some application scenarios, such as when a vehicle collides, the vehicle's standard battery cannot guarantee the working ability of the vehicle's emergency call system. When the external power supply system is damaged by a collision, the T-BOX (telematicbox, remote vehicle terminal) uses a backup battery as a power supply to maintain normal operation for a certain period of time and provide users with emergency call and other services.

[0060] See also Figure 1 , is a schematic diagram of a backup battery service framework provided by an embodiment of the present application. Figure 1 As shown, when the vehicle is driving normally, the vehicle battery supplies power to the T-BOX. When the vehicle collides, the vehicle battery is powered off, and the forced braking device (ABM, Automatic Brake Modulator) sends a collision signal to the T-BOX, and the T-BOX uses the backup battery as a power source. The backup battery can be used to supply power to the telematics service provider (TSP, Telematics Service Provider) to enable it to send vehicle data normally, to power emergency call speakers, to power the vehicle's internal reading lights, MIC and ECALL buttons, and to power ECALL (emergency call) services.

[0061] In other application scenarios, in non-collision scenarios, other control units (ECU, Electronic Control Unit) of the vehicle can control T-BOX to enable the backup battery.

[0062] With the use of the backup battery, or long-term natural discharge, the backup battery may become depleted. A depleted backup battery will cause the battery voltage to be artificially high, which will in turn cause the calculated battery internal resistance to be artificially high. Battery internal resistance is a key indicator for judging the life of the backup battery, and the accuracy of its value will affect the accuracy of the battery life detection result. The embodiment of the present application provides a battery life monitoring method, which performs a pre-judgment on the status of the backup battery before starting the battery life detection. When the status of the backup battery meets the requirements, the backup battery is tested for life. Through the method in the embodiment of the present application, the problem of inaccurate calculation of the battery internal resistance caused by battery depletion can be effectively prevented, and the accuracy of the battery life detection result can be effectively improved.

[0063] See also Figure 2 , is a schematic diagram of the pre-process provided in an embodiment of the present application. As an example but not a limitation, the method may include the following steps:

[0064] S101, after a vehicle is started, obtaining an open circuit voltage of a battery to be detected in the vehicle.

[0065] In practical applications, for fuel vehicles, the vehicle start can be determined by monitoring the engine start. For electric vehicles, the vehicle start can be determined by monitoring the high voltage on the vehicle.

[0066] S102: If the open circuit voltage of the battery to be detected is within a preset voltage range, start battery life detection.

[0067] The open circuit voltage of a battery refers to the difference between the positive electrode potential and the negative electrode potential of the battery when the battery is open (i.e. no current passes through the two electrodes).

[0068] In the embodiment of the present application, the preset voltage range may be greater than or equal to Vplus (the open circuit voltage when the battery capacity is 80%, that is, the open circuit voltage during trickle charging).

[0069] S103, if the open circuit voltage of the battery to be detected is not within the preset voltage range, a charging instruction is sent to instruct the battery to be detected to charge, until the open circuit voltage of the battery to be detected is within the preset voltage range, and the battery life detection is started.

[0070] When the open circuit voltage of the battery is too low, the battery is in a power-deficient state, and the internal resistance measured at this time is inaccurate. Through the above method, the open circuit voltage of the battery is first judged, which effectively avoids the problem of inaccurate detection caused by battery power deficiency and improves the accuracy of detection.

[0071] See also Figure 3 , is a schematic diagram of a pre-process provided by another embodiment of the present application. As an example but not a limitation, the method may include the following steps:

[0072] S201, after the vehicle is started, obtaining the temperature of the battery to be tested.

[0073] In practical applications, a temperature sensor may be installed on the battery to be tested to obtain the temperature of the battery.

[0074] S202, if the temperature of the battery to be detected is within a preset temperature range, obtaining the open circuit voltage of the battery to be detected. Jump to S204.

[0075] In the embodiment of the present application, the preset temperature range may be a temperature range allowed when the battery is operating normally. For example, the temperature range may be 0 degrees to 50 degrees.

[0076] S203, if the temperature of the battery to be detected is not within the preset temperature range, re-obtain the temperature of the battery to be detected after a preset time interval until the temperature of the battery to be detected is within the preset temperature range, and obtain the open circuit voltage of the battery to be detected. Jump to S204.

[0077] The temperature of the battery will affect the internal resistance of the battery. In actual applications, when the battery to be tested is just enabled, the temperature of the battery to be tested may not reach the preset temperature range. If the battery life test is performed directly in this case, the detection accuracy will be affected. Through the above method, when the battery temperature is not within the preset temperature range, the battery temperature is obtained again after a preset time interval, which is equivalent to letting the battery work for a period of time so that its temperature can reach the preset temperature range, thereby reducing the impact of temperature on the internal resistance of the battery and improving the accuracy of battery life detection.

[0078] S204: If the open circuit voltage of the battery to be detected is within a preset voltage range, start battery life detection.

[0079] S205, if the open circuit voltage of the battery to be detected is not within the preset voltage range, a charging instruction is sent to instruct the battery to be detected to charge until the open circuit voltage of the battery to be detected is within the preset voltage range, thereby starting battery life detection.

[0080] Steps S204-S205 are the same as steps S102-S103, and the details may refer to the description of the above steps.

[0081] It should be noted that in the above embodiments, the battery temperature is determined first, and then the open circuit voltage of the battery is determined. In other embodiments, the open circuit voltage of the battery may be determined first, and then the battery temperature. However, in practical applications, temperature will also have a certain impact on the open circuit voltage of the battery. The open circuit voltage measured at extreme temperatures is also inaccurate. Therefore, the method of first determining the battery temperature can reduce the number of judgments to a certain extent and reduce the complexity of the process.

[0082] See also Figure 4 , is a schematic diagram of a pre-process provided by another embodiment of the present application. As an example but not a limitation, the method may include the following steps:

[0083] S301, after the vehicle is started, determine whether the current number of starts of the vehicle reaches a preset number.

[0084] S302, if the current number of startups of the vehicle reaches a preset number, the temperature of the battery to be detected is obtained. Jump to S304.

[0085] S303: If the current number of starts of the vehicle does not reach the preset number, the process ends.

[0086] Usually, when the vehicle is just manufactured, the battery life is sufficient, and there is no need to perform a battery life test at this time. In addition, during the use of the vehicle, the battery life usually does not change much in a short period of time. Therefore, in the embodiment of the present application, a judgment process for the number of vehicle starts is provided, that is, after the vehicle is started a preset number of times (after a period of use), the battery life is tested again. Through the above method, invalid detection processes can be avoided and the data usage of the battery life detection process can be reduced.

[0087] S304, if the temperature of the battery to be detected is within a preset temperature range, obtaining the open circuit voltage of the battery to be detected. Jump to S306.

[0088] S305, if the temperature of the battery to be detected is not within the preset temperature range, re-obtain the temperature of the battery to be detected after a preset time interval until the temperature of the battery to be detected is within the preset temperature range, and obtain the open circuit voltage of the battery to be detected. Jump to S306.

[0089] S306: If the open circuit voltage of the battery to be detected is within a preset voltage range, start battery life detection.

[0090] S307, if the open circuit voltage of the battery to be detected is not within the preset voltage range, a charging instruction is sent to instruct the battery to be detected to charge, until the open circuit voltage of the battery to be detected is within the preset voltage range, and the battery life detection is started.

[0091] The above steps S304-S307 are the same as S202-S205, and the details can refer to the description of the above steps.

[0092] In some embodiments, the above Figure 2-Figure 4 The battery to be tested in the embodiment is a backup battery of a communication module in a vehicle. Figure 1 In the application scenario shown in the embodiment, the communication module in the vehicle may be a T-BOX. Accordingly, the battery to be detected in the embodiment of the present application is a backup battery of the T-BOX in the vehicle.

[0093] Unlike ordinary rechargeable batteries, T-BOX's backup battery is charged and discharged under specific conditions, such as Figure 1 As described in the embodiment, the battery is discharged when the vehicle collides, or other control units of the vehicle control the discharge. Therefore, the parameters of the backup battery of the T-BOX, such as the open circuit voltage, temperature, and discharge times, are easily overlooked. Figure 2-Figure 4 The pre-process described in the embodiment can effectively monitor the parameters of the T-BOX backup battery to ensure the accuracy of its life detection result.

[0094] Above Figure 2-Figure 4The embodiment describes the pre-process before starting the battery life detection. After starting the battery life detection, the detection process includes:

[0095] I. Acquire multiple groups of detection values ​​of the battery to be detected, wherein each group of detection values ​​includes a first voltage value of the battery to be detected before discharge and a second voltage value of the battery to be detected after discharge during a discharge process.

[0096] In the embodiment of the present application, during each battery life detection process, the battery to be detected may be discharged multiple times. For example, each discharge duration is t, and each discharge current is I. A first voltage value of the battery is obtained before each discharge, and a second voltage value of the battery is obtained after each discharge.

[0097] II. Calculating the actual internal resistance of the battery to be tested based on the multiple groups of test values.

[0098] In one embodiment, an average value of the first voltage and an average value of the second voltage in the plurality of groups of detection values ​​may be calculated, and the internal resistance value may be calculated based on the two average values.

[0099] In another embodiment, an internal resistance value may be calculated according to the first voltage and the second voltage in each group of detection values, and then an average value of the calculated multiple internal resistance values ​​may be used as the final internal resistance value.

[0100] III. Determine the life test result of the battery to be tested according to the actual internal resistance value and the reference internal resistance value of the battery to be tested.

[0101] In one embodiment, a reference internal resistance value may be preset. When the actual internal resistance value is greater than the reference internal resistance value, the life test result is determined to be failed; conversely, when the actual internal resistance value is less than the reference internal resistance value, the life test result is determined to be passed.

[0102] IV. Stop battery life detection.

[0103] In the embodiment of the present application, the internal resistance of the battery is calculated by using multiple sets of detection values, which can effectively avoid the calculation error caused by unilateral measurement error, effectively improve the calculation accuracy of the internal resistance value, and thus effectively improve the detection accuracy of the battery life.

[0104] Optionally, in order to further improve the calculation accuracy of the internal resistance value, the calculation method of the actual internal resistance value in step II includes:

[0105] Delete the largest first voltage value, the smallest first voltage value, the largest second voltage value and the smallest second voltage value in the multiple groups of detection values ​​to obtain a detection value set; calculate a first average value of the first voltage value and a second average value of the second voltage value in the detection value set; calculate the actual internal resistance value of the battery to be detected based on the first average value and the second average value.

[0106] In this embodiment, the extreme values ​​of the first voltage value and the second voltage value in the plurality of groups of detection values ​​are removed, which can effectively reduce the influence of the extreme values ​​on the calculation accuracy.

[0107] Furthermore, the method of calculating the actual internal resistance of the battery to be tested according to the first average value and the second average value is:

[0108] Obtaining the discharge current of the battery to be detected during the discharge process; calculating a first difference between the first average value and the second average value; calculating a second difference between the discharge current and a reference current; calculating a ratio between the first difference and the second difference, wherein the ratio is recorded as the actual internal resistance value of the battery to be detected.

[0109] For example, the formula Wherein, DCimpedance represents the actual internal resistance value, V1 represents the first voltage, V2 represents the second voltage, I represents the discharge current, and I0 is a preset value. Usually, I0=0.

[0110] In practical applications, the internal resistance values ​​of the battery at different temperatures are different. If the same reference internal resistance value is used, the accuracy of the detection will be affected. In order to solve this problem, optionally, the method of determining the life detection result of the battery to be detected according to the actual internal resistance value and the reference internal resistance value of the battery to be detected in step III includes:

[0111] Acquire a theoretical internal resistance value corresponding to the temperature of the battery to be detected, where the theoretical internal resistance value is recorded as the reference internal resistance value;

[0112] If the actual internal resistance value is greater than the reference internal resistance value, the life test result of the battery to be tested indicates that the test fails;

[0113] If the actual internal resistance value is less than or equal to the reference internal resistance value, the life test result of the battery to be tested indicates that the test has passed.

[0114] For example, assuming that the current temperature of the battery to be tested is 20 degrees, the reference internal resistance value corresponding to the battery at 20 degrees is 470 degrees, and the actual internal resistance value is 480 degrees, then the actual internal resistance value is greater than the reference internal resistance value, indicating that the test fails. Assuming that the current temperature of the battery to be tested is 30 degrees, the reference internal resistance value corresponding to the battery at 30 degrees is 426 degrees, and the actual internal resistance value is 400 degrees, then the actual internal resistance value is less than the reference internal resistance value, indicating that the test passes.

[0115] The above steps I-IV describe the process of a battery life detection from starting the battery life detection to stopping the battery life detection. In practical applications, the following steps can be performed before each battery life detection: Figure 2-Figure 4 The preceding process described in any embodiment. Figure 4 The embodiment introduces the complete process including the pre-process and the battery life detection process:

[0116] After the vehicle is started, determine whether the number of starts of the current vehicle has reached the preset number; if the preset number has been reached, obtain the temperature of the battery to be tested in the vehicle; if the temperature of the battery to be tested is not within the preset temperature range, re-obtain the temperature of the battery to be tested after a preset time interval; if the temperature of the battery to be tested is within the preset temperature range, obtain the open circuit voltage of the battery to be tested; if the open circuit voltage of the battery to be tested is not within the preset voltage range, send a charging instruction to instruct the battery to be tested to charge; if the open circuit voltage of the battery to be tested is within the preset voltage range, start the battery life test. After starting the battery life test, control the battery to be tested to discharge multiple times to obtain multiple groups of test values ​​of the battery to be tested; calculate the actual internal resistance value of the battery to be tested based on the multiple groups of test values; determine the life test result of the battery to be tested based on the actual internal resistance value and the reference internal resistance value of the battery to be tested; stop the battery life test.

[0117] In one embodiment, in order to further ensure the accuracy of the test results, multiple test results may be comprehensively considered. Specifically, if the life test results obtained N times in succession indicate that the test fails, an alarm prompt is sent, wherein N is a positive integer.

[0118] For example, see Figure 5 , is a flow chart of a battery life detection method provided by an embodiment of the present application. Figure 5 As shown, each time the vehicle is started, the pre-process S401 is first entered. The pre-process can adopt the above Figure 2-Figure 4 Any one of the embodiments. If the conditions of the previous process are met, enter the battery life detection process S402. The battery life detection process can refer to the contents described in the above steps I-IV. After obtaining the life detection result, stop the battery life detection and end the detection process. Determine whether the current cumulative number of detection passes is N consecutive times; if so, send an alarm prompt; if not, continue to monitor the next vehicle start.

[0119] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0120] Corresponding to the battery life detection method described in the above embodiment, Figure 6 This is a structural block diagram of a battery life detection device provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0121] Reference Figure 6, the device comprises:

[0122] A voltage acquisition unit 61 is used to acquire the open circuit voltage of the battery to be detected in the vehicle after the vehicle is started;

[0123] A detection start unit 62, used to start battery life detection if the open circuit voltage of the battery to be detected is within a preset voltage range;

[0124] The battery charging unit 63 is used to send a charging instruction to instruct the battery to be detected to charge if the open circuit voltage of the battery to be detected is not within the preset voltage range, until the open circuit voltage of the battery to be detected is within the preset voltage range, thereby starting the battery life detection.

[0125] Optionally, the device 6 further comprises:

[0126] The temperature detection unit 64 is used to obtain the temperature of the battery to be detected before obtaining the open circuit voltage of the battery to be detected after the vehicle is started; if the temperature of the battery to be detected is within a preset temperature range, the open circuit voltage of the battery to be detected is obtained; if the temperature of the battery to be detected is not within the preset temperature range, the temperature of the battery to be detected is obtained again after a preset time interval until the temperature of the battery to be detected is within the preset temperature range, and the open circuit voltage of the battery to be detected is obtained.

[0127] Optionally, the device 6 further comprises:

[0128] The startup detection unit 65 is used to determine whether the current startup times of the vehicle have reached a preset number of times before obtaining the temperature of the battery to be detected; if the current startup times of the vehicle have reached the preset number of times, the temperature of the battery to be detected is obtained.

[0129] Optionally, the device 6 further comprises:

[0130] The life detection unit 66 is used to obtain multiple groups of detection values ​​of the battery to be detected after starting the battery life detection, wherein each group of detection values ​​includes a first voltage value of the battery to be detected before discharge and a second voltage value after discharge during a discharge process; calculate the actual internal resistance value of the battery to be detected according to the multiple groups of detection values; determine the life detection result of the battery to be detected according to the actual internal resistance value of the battery to be detected and a reference internal resistance value; and stop the battery life detection.

[0131] Optionally, the life detection unit 66 is further used for:

[0132] Delete the largest first voltage value, the smallest first voltage value, the largest second voltage value and the smallest second voltage value in the multiple groups of detection values ​​to obtain a detection value set; calculate a first average value of the first voltage value and a second average value of the second voltage value in the detection value set; calculate the actual internal resistance value of the battery to be detected based on the first average value and the second average value.

[0133] Optionally, the life detection unit 66 is further used for:

[0134] Obtaining a discharge current of the battery to be detected during a discharge process;

[0135] calculating a first difference between the first average value and the second average value;

[0136] calculating a second difference between the discharge current and the reference current;

[0137] The ratio between the first difference and the second difference is calculated, and the ratio is recorded as the actual internal resistance value of the battery to be detected.

[0138] Optionally, the life detection unit 66 is further used for:

[0139] Acquire a theoretical internal resistance value corresponding to the temperature of the battery to be detected, where the theoretical internal resistance value is recorded as the reference internal resistance value;

[0140] If the actual internal resistance value is greater than the reference internal resistance value, the life test result of the battery to be tested indicates that the test fails;

[0141] If the actual internal resistance value is less than or equal to the reference internal resistance value, the life test result of the battery to be tested indicates that the test has passed.

[0142] Optionally, the device 6 further comprises:

[0143] The detection statistics unit 67 is used to send an alarm prompt if the life detection results obtained N times in succession indicate that the detection fails, wherein N is a positive integer.

[0144] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0145] in addition, Figure 6 The battery life detection device shown can be a software unit, a hardware unit, or a combination of software and hardware units built into an existing terminal device, or can be integrated into the terminal device as an independent pendant, or can exist as an independent terminal device.

[0146] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0147] Figure 7 Schematic diagram of the structure of the terminal device provided in the embodiment of the present application. Figure 7 As shown, the terminal device 7 of this embodiment includes: at least one processor 70 ( Figure 7 Only one is shown in the figure) a processor, a memory 71, and a computer program 72 stored in the memory 71 and executable on the at least one processor 70, and when the processor 70 executes the computer program 72, the steps in any of the above-mentioned battery life detection method embodiments are implemented.

[0148] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 7 It is only an example of the terminal device 7 and does not constitute a limitation on the terminal device 7. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0149] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0150] In some embodiments, the memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or memory of the terminal device 7. In other embodiments, the memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 71 may also be used to temporarily store data that has been output or is to be output.

[0151] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0152] An embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0154] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0155] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0156] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0157] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0158] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A battery life detection method, characterized in that: include: After the vehicle is started, obtaining the open circuit voltage of the battery to be tested in the vehicle; If the open circuit voltage of the battery to be tested is within a preset voltage range, the battery life test is started; If the open circuit voltage of the battery to be detected is not within the preset voltage range, a charging instruction is sent to instruct the battery to be detected to charge until the open circuit voltage of the battery to be detected is within the preset voltage range, thereby starting the battery life detection; After the vehicle is started and before obtaining the open circuit voltage of the battery to be tested, the method further includes: Acquiring the temperature of the battery to be tested; If the temperature of the battery to be detected is within a preset temperature range, obtaining the open circuit voltage of the battery to be detected; If the temperature of the battery to be detected is not within the preset temperature range, the temperature of the battery to be detected is obtained again after a preset time interval until the temperature of the battery to be detected is within the preset temperature range, and the open circuit voltage of the battery to be detected is obtained; Before obtaining the temperature of the battery to be detected, the method further includes: Determining whether the number of starts of the vehicle currently reaches a preset number; If the number of startups of the current vehicle reaches a preset number, obtaining the temperature of the battery to be detected; After starting the battery life detection, the method includes: Acquire multiple groups of detection values ​​of the battery to be detected, wherein each group of detection values ​​includes a first voltage value before discharge and a second voltage value after discharge of the battery to be detected during a discharge process; Calculating the actual internal resistance value of the battery to be tested according to the multiple groups of test values; Determining a life test result of the battery to be tested according to an actual internal resistance value of the battery to be tested and a reference internal resistance value; Stop battery life detection; The calculating the actual internal resistance value of the battery to be tested according to the multiple groups of test values ​​includes: Deleting the largest first voltage value, the smallest first voltage value, the largest second voltage value, and the smallest second voltage value from the multiple groups of detection values ​​to obtain a detection value set; Calculate a first average value of the first voltage value and a second average value of the second voltage value in the detection value set; Calculating the actual internal resistance of the battery to be tested according to the first average value and the second average value; The calculating the actual internal resistance value of the battery to be detected according to the first average value and the second average value includes: Obtaining a discharge current of the battery to be detected during a discharge process; calculating a first difference between the first average value and the second average value; calculating a second difference between the discharge current and the reference current; Calculating a ratio between the first difference and the second difference, wherein the ratio is recorded as an actual internal resistance value of the battery to be tested; The determining the life test result of the battery to be tested according to the actual internal resistance value and the reference internal resistance value of the battery to be tested comprises: Acquire a theoretical internal resistance value corresponding to the temperature of the battery to be detected, where the theoretical internal resistance value is recorded as the reference internal resistance value; If the actual internal resistance value is greater than the reference internal resistance value, the life test result of the battery to be tested indicates that the test fails; If the actual internal resistance value is less than or equal to the reference internal resistance value, the life test result of the battery to be tested indicates that the test has passed; The method further comprises: If the life test results obtained N times in succession indicate that the test fails, an alarm prompt is sent, wherein N is a positive integer.

2. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to claim 1 is implemented.

3. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to claim 1 is implemented.