Method and device for determining battery capacity, computing device, and storage medium
By obtaining the SOC and operating condition confidence when the battery is standing still, selecting the starting point and end point, and calculating the battery capacity, it solves the problem of inaccurate battery capacity calculation under different operating conditions and achieves highly accurate battery capacity evaluation.
Patent Information
- Application Number
- CN202410939369.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-15
AI Technical Summary
It is difficult to accurately calculate battery capacity under different working conditions with existing technology, resulting in different SOC accuracy and affecting the accuracy of battery capacity calculation.
By obtaining the SOC and operating condition confidence when the battery is standing still, select the starting point and end point, obtain the SOC change and cumulative ampere-hours, calculate the current capacity of the battery, and use the relationship between SOC and confidence to classify the battery operating conditions in detail. Set relevant confidence levels to ensure the accuracy of SOC change data.
The accuracy of battery capacity calculation is achieved under different working conditions, avoiding inaccurate SOC calculation due to hysteresis, and improving the accuracy and reliability of battery capacity calculation.
Smart Images

Figure CN118465582B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of power batteries and computers, and specifically relates to a method and device for determining battery capacity, a computing device, and a storage medium. Background Art
[0002] In recent years, the new energy industry has developed vigorously. As an important component of new energy equipment (such as automobiles, aircraft, etc.), power batteries (hereinafter referred to as batteries) have also received widespread attention.
[0003] Due to the influence of factors such as the battery cell material system, the accuracy of the calculated State of Charge (State of Charge) varies after the battery has experienced different charging and discharging conditions. For example, in certain scenarios where charging and discharging are frequently alternating and then left at rest, the SOC estimated by voltage has low accuracy, while in scenarios where charging or unidirectional discharge is left at rest, the SOC estimated by voltage has high accuracy.
[0004] Therefore, there is an urgent need for a method for determining battery capacity that can accurately calculate the battery capacity under different operating conditions. Summary of the invention
[0005] The technical problem to be solved by the present application is to provide a method for determining battery capacity, which can simply and accurately calculate the battery capacity under different working conditions.
[0006] In order to solve or improve the above technical problems to a certain extent, according to the first aspect of the present application, a method for determining battery capacity is provided, the method comprising: when the battery is at rest, obtaining the SOC of the battery; identifying the operating condition of the battery, and obtaining the confidence level corresponding to the operating condition; within a preset time period, selecting a starting point and an ending point based on the SOC and the confidence level; obtaining the change in the SOC between the starting point and the ending point and the accumulated ampere-hours; and obtaining the current capacity of the battery based on the change and the accumulated ampere-hours.
[0007] Optionally, the selecting of the starting point and the ending point based on the SOC and the confidence level includes: taking the moment when the confidence level is greater than a first threshold and the SOC value is the minimum SOC value within the preset time length as the starting point; and taking the moment when the confidence level is greater than a second threshold and the SOC value is the maximum SOC value within the preset time length as the ending point.
[0008] Optionally, the operating condition is determined by the working state of the battery between two periods of rest.
[0009] Optionally, the operating condition is determined based on at least one of the following charging and discharging actions: charging to discharging, discharging to charging, discharging only, and charging only.
[0010] Optionally, the operating condition is determined based on the following factors: the open circuit voltage value when at rest is greater than or equal to a third threshold value, and the open circuit voltage value when at rest is less than the third threshold value.
[0011] Optionally, when the battery is at an abnormal temperature, the preset time length is set to a first time length; when the battery is at a normal operating temperature, the preset time length is set to a second time length; and the second time length is greater than the first time length.
[0012] Optionally, after obtaining the current capacity of the battery, the method further includes: obtaining the SOH of the battery according to the current capacity and the nominal capacity of the battery.
[0013] According to a second aspect of the present application, a device for determining battery capacity is provided, the device comprising: an SOC acquisition module, for acquiring the SOC of the battery when the battery is stationary; a confidence determination module, for identifying the operating condition of the battery and acquiring the confidence corresponding to the operating condition; a start and end point selection module, for selecting a start point and an end point based on the SOC and the confidence within a preset time length; a difference acquisition module, for acquiring the change in the SOC between the start point and the end point and the accumulated ampere-hours; and a capacity calculation module, for obtaining the current capacity of the battery based on the change and the accumulated ampere-hours.
[0014] According to a third aspect of the present application, a computing device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the program is executed by the processor, the program can implement the steps of any one of the above-mentioned methods for determining the battery capacity.
[0015] According to a fourth aspect of the present application, a storage medium is provided for storing a computer program, wherein the program, when executed by a computer or a processor, implements the steps of the method for determining the battery capacity as described in any one of the above items.
[0016] Compared with the prior art, the present application has obvious advantages and beneficial effects. By means of the above technical solution, the battery capacity determination method and device, computing device, and storage medium of the present application can achieve considerable technical advancement and practicality, and have wide industrial utilization value, and have at least the following advantages:
[0017] The present application provides a method for determining the battery capacity of a battery pack. Based on the confidence of SOC under different working conditions, a starting point and an end point are selected within a period of time, the change amount of SOC and the accumulated ampere-hours between the starting point and the end point are obtained, and the capacity of the battery is calculated, which can ensure the accuracy of the battery capacity calculation. The problem of inaccurate battery capacity calculation caused by different SOC accuracy under different working conditions is effectively solved.
[0018] Furthermore, the present application provides a variety of ways to divide battery operating conditions, which can divide the battery operating conditions in detail based on operations such as battery charging and discharging and parameters such as the OCV of the battery when stationary, and set the relevant SOC confidence level, thereby accurately determining the SOC confidence level under different operating conditions, avoiding inaccurate SOC calculation due to battery hysteresis and other reasons, and thus inaccurate battery capacity calculation.
[0019] Furthermore, the present application also provides an effective method for selecting the starting point and the ending point, which can select the starting and ending SOCs with high SOC confidence to ensure the accuracy of the obtained SOC change. In addition, selecting the maximum and minimum SOC values to calculate the SOC change can also ensure that sufficient SOC change data is obtained. The battery capacity calculated in this way is more accurate.
[0020] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following specifically cites the preferred embodiments and describes them in detail with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of a flow chart of a method for determining battery capacity according to an embodiment of the present application;
[0022] Figure 2 A schematic diagram of the structure of a device for determining battery capacity according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] As mentioned in the background technology, due to the influence of factors such as the battery cell material system in the battery, the accuracy of the calculated state of charge (State of Charge) varies after the battery has experienced different charging and discharging conditions. For example, in certain scenarios where charging and discharging are frequently alternating and then left at rest, the SOC accuracy estimated by voltage is low, while in scenarios where charging or unidirectional discharge is left at rest, the SOC accuracy estimated by voltage is high.
[0024] In a practical situation, batteries with silicon-carbon negative electrodes have obvious hysteresis, and it is difficult to directly confirm the SOC through the voltage after standing still. When calculating the battery capacity based on the SOC, the calculation results will be inaccurate.
[0025] Therefore, there is an urgent need for a method for determining battery capacity that can accurately calculate the battery capacity under different operating conditions.
[0026] To solve the above problems, the present application provides a method and apparatus for determining battery capacity, a computing device, and a storage medium, wherein the battery is an energy system that provides a power source for electric vehicles, aircraft, or other new energy equipment, and the battery is installed on these new energy equipment.
[0027] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined application purpose, the following, in combination with the accompanying drawings and preferred embodiments, the specific implementation methods and effects of the battery capacity determination method and device, computing equipment, and computer-readable storage medium proposed in the present application are described in detail as follows.
[0028] According to the first aspect of this application, see Figure 1 , Figure 1 1 is a flow chart of a first method for determining battery capacity. The method includes the following steps S101 to S105. Each step is described in detail below.
[0029] Step S101, when the battery is at rest, obtaining the SOC of the battery.
[0030] Optionally, after the battery has been stationary for a period of time, the open circuit voltage (OCV) of the battery can be obtained through voltage detection; based on the corresponding relationship between SOC and OCV, the current SOC of the battery can be obtained.
[0031] The current SOC of the battery refers to the SOC value calculated when the battery is at rest.
[0032] Step S102, identifying the operating condition of the battery and obtaining the confidence level corresponding to the operating condition.
[0033] The working condition of the battery may be a working condition of the battery, such as a charging condition, a discharging condition, a high temperature condition, etc. It should be noted that the working condition of the battery may be determined based on factors such as the current direction, current value, voltage value, temperature, etc. of the battery, including but not limited to the aforementioned examples, which will not be described in detail here.
[0034] Optionally, the confidence level of the SOC under these operating conditions may be set in advance, thereby establishing a correlation between the confidence level of the SOC and the operating condition of the battery. After the operating condition of the battery is identified, the corresponding confidence level is acquired based on the correlation.
[0035] Step S103: selecting a start point and an end point based on the SOC and the confidence within a preset time period.
[0036] Among them, the preset time length is a period for determining the battery capacity, and the time length can be set as needed, for example, the preset time length can be set to 3 days, 5 days, etc.
[0037] If the preset time is set too short, it may not be possible to monitor enough data, resulting in an inability to accurately calculate the battery capacity; if the preset time is set too long, it may cause a large error due to problems such as the detection accuracy of the current sensor, which will also affect the calculation results. Therefore, the preset time needs to be set to an appropriate value.
[0038] In a preferred embodiment, the preset time length is related to the accuracy of the current sensor. The greater the accuracy of the current sensor, the longer the preset time length can be set.
[0039] The starting point (recorded as t1) is the time when the cumulative ampere-hours are calculated, and the ending point (recorded as t2) is the time when the cumulative ampere-hours are calculated. When the SOC meets the first SOC condition and the confidence meets the first confidence condition, this time is taken as t1; when the SOC meets the second SOC condition and the confidence meets the second confidence condition, this time is taken as t2.
[0040] Step S104, obtaining the change amount and accumulated ampere-hours of the SOC between the starting point and the end point.
[0041] In a specific embodiment of step S104, the SOC corresponding to t1 is recorded as SOC1; the SOC corresponding to t2 is recorded as SOC2; and the change in SOC △SOC=|SOC2-SOC1|.
[0042] In another specific embodiment of step S104, the sum of the ampere-hours in all the charging and discharging processes during the period from t1 to t2 is obtained to obtain the cumulative ampere-hour ΔQ.
[0043] In the actual working state of the battery, t1 to t2 may be a long time. If the battery or new energy equipment controller restarts during this period, the accumulated ampere-hours cannot be calculated smoothly. Therefore, the capacity calculation data can be cleared and the calculation time can be calculated according to the current capacity calculation time. Figure 1 The step of executing the method of determining the battery capacity next time.
[0044] Step S105, obtaining the current capacity of the battery according to the change amount and the accumulated ampere-hours.
[0045] In one embodiment of step S105 , the current capacity of the battery=ΔQ / ΔSOC.
[0046] pass Figure 1 The battery capacity determination method described above selects a starting point and an end point within a period of time (i.e., a preset duration) based on the confidence of the SOC under different working conditions, obtains the change in SOC and the accumulated ampere-hours between the starting point and the end point, and calculates the battery capacity, which can ensure the accuracy of the battery capacity calculation. This effectively solves the problem of inaccurate battery capacity calculation caused by different SOC accuracies under different working conditions.
[0047] In one embodiment, Figure 1 The operating condition in step S102 can be determined by the operating state of the battery between two periods of rest.
[0048] Optionally, the operating condition is determined based on at least one of the following charging and discharging actions (ie, charging and / or discharging actions): charging to discharging, discharging to charging, discharging only, and charging only.
[0049] For example, if a battery has undergone a charging operation after the last resting period and before the current resting period begins, it is determined that the battery is in a charging-only condition. For another example, if a battery has undergone a discharging operation after the last resting period and before the current resting period begins, it is determined that the battery is in a discharging-only condition. For another example, if a battery has undergone a charging operation and then a discharging operation after the last resting period and before the current resting period begins, it is determined that the battery is in a charging-to-discharging condition. For another example, if a battery has undergone a discharging operation and then a charging operation after the last resting period and before the current resting period begins, it is determined that the battery is in a discharging-to-charging condition.
[0050] It should be noted that the operating conditions of the battery include but are not limited to the above examples, and its operating conditions may also include a series of complex situations such as charging to discharging and then to charging, or discharging to charging and then to discharging, which will not be repeated here.
[0051] In one embodiment, the operating condition may also be determined based on the following factors: an open circuit voltage (OCV) value at rest is greater than or equal to a third threshold, and the open circuit voltage (OCV) value at rest is less than the third threshold.
[0052] The third threshold is a set voltage value, and its specific value can be set based on needs.
[0053] In practical applications, the operating conditions described in this application can be determined in combination with the charging and / or discharging action of the battery and the OCV value when it is at rest. Specific embodiments of several operating conditions are provided below.
[0054] In a specific embodiment, six operating conditions are specifically included, and the confidence level corresponding to the SOC setting of each operating condition is:
[0055] The situation where the OCV of the battery during the static state is less than the third threshold value and the battery undergoes an overcharge-to-discharge operation between the current static state and the previous static state is recorded as operating condition 1; the confidence level of the SOC of operating condition 1 is set to A1.
[0056] The situation where the OCV of the battery during rest is less than the third threshold value and the battery undergoes an over-discharge-to-charge operation between the current rest and the last rest is recorded as operating condition 2; the confidence level of the SOC of operating condition 2 is set to A2.
[0057] The situation where the OCV of the battery during the static state is less than the third threshold value and an over-discharge operation of the battery occurs between the current static state and the last static state is recorded as operating condition three; the confidence level of the SOC of operating condition three is set to B1.
[0058] The situation where the OCV of the battery during the static state is less than the third threshold value and an overcharging operation of the battery occurs between the current static state and the last static state is recorded as operating condition four; the confidence level of the SOC of operating condition four is set to B2.
[0059] The situation where the OCV of the battery is greater than or equal to the third threshold when at rest is recorded as operating condition five; the confidence level of the SOC of operating condition five is C.
[0060] If the OCV of the battery during rest is less than the third threshold value, and the battery has experienced other conditions except operating conditions one to four between the current rest and the last rest, it is recorded as operating condition six; the SOC confidence of operating condition six is set to D.
[0061] The relationship between the confidence levels of the above working conditions can be expressed as: C=B1>B2>A1>A2>D.
[0062] It should be noted that the operating conditions of the battery and the confidence of the SOC under each operating condition include but are not limited to the above-mentioned embodiments. Any embodiment of setting the confidence of the SOC under different operating conditions of the battery falls within the scope of protection of this application and will not be repeated here.
[0063] In the above embodiment, a variety of ways of dividing the battery operating conditions are provided. The battery operating conditions can be divided in detail based on operations such as battery charging and discharging and parameters such as the OCV of the battery when stationary, and the relevant SOC confidence can be set. This can accurately determine the confidence of the SOC under different operating conditions, avoiding inaccurate SOC calculation due to battery hysteresis and other reasons, thereby avoiding inaccurate battery capacity calculation.
[0064] In one embodiment, please continue to see Figure 1 , Figure 1 The step S103 in which the starting point and the ending point are selected based on the SOC and the confidence level may include: taking the moment when the confidence level is greater than a first threshold and the SOC value is the minimum SOC value within the preset time length as the starting point; and taking the moment when the confidence level is greater than a second threshold and the SOC value is the maximum SOC value within the preset time length as the ending point.
[0065] The first threshold and the second threshold may be preset confidence values, and specific values may be set as needed. The first threshold may be equal to the second threshold, or the first threshold may not be equal to the second threshold.
[0066] In a specific embodiment, the first threshold is equal to the second threshold, which can be set to B1 or B2, or to a value between B1 and B2, or to other values.
[0067] In another specific embodiment, each time the battery is at rest, the working state of the battery between the last rest and the current rest is obtained to determine the corresponding working condition, and the corresponding confidence (of SOC) under the working condition is obtained. In addition, the SOC of the battery is calculated based on the OCV of the battery when it is at rest. In summary, each time the battery is at rest, two parameters are obtained: confidence and SOC.
[0068] Within a preset time, the two parameters of the battery when it is at rest are obtained multiple times, and the starting point and the end point are selected from them.
[0069] In a specific example, the preset duration is 5 days, and the battery is left to rest 8 times in five days. The two parameters (confidence, SOC) obtained each time are recorded as: (B1, 0.5), (D, 0.3), (A1, 0.7), (A2, 0.8), (C, 0.1), (A2, 0.4), (B1, 0.9), (B2, 0.8), and the first threshold is set = the second threshold = B2. Therefore, the moment when the confidence is greater than B2 and the SOC is the minimum value is (C, 0.1), and this moment is taken as the starting point t1; the moment when the confidence is greater than B2 and the SOC is the maximum value is (B1, 0.9), and this moment is taken as the end point t2. The corresponding SOC change △SOC=0.9-0.1=0.8, from t1 to t2, the sum of the ampere-hours in all charging and discharging processes is obtained to obtain the cumulative ampere-hours ΔQ. Then the current capacity of the battery is obtained = ΔQ / △SOC.
[0070] Optionally, during the operation of the battery, it is necessary to record the battery's charging, discharging, confidence, SOC and other data for a long time. If the parameters at each rest are stored, a large amount of storage space will be required. Therefore, when data that does not meet the requirements are obtained, these data can be deleted in time to save storage space. For example, in the above example, the battery is rested 8 times in five days. After obtaining two parameters at each rest, if it is detected that the confidence does not meet the requirement of greater than B2, the parameters obtained at this rest and the data cached to obtain the parameters are directly deleted, and the parameters at the next rest are continued. Among the 8 parameters obtained, only (B1, 0.5), (C, 0.1) and (B1, 0.9) meet the requirement that the confidence is greater than B2. Therefore, after the other parameters are obtained and judged not to meet the requirements, the relevant data is directly deleted to avoid occupying a large amount of storage space.
[0071] In this embodiment, an effective method for selecting the starting point and the end point is provided, which can select the starting and ending SOCs with high SOC confidence to ensure the accuracy of the SOC change. In addition, the maximum and minimum SOC values are selected to calculate the SOC change, which can also ensure that sufficient SOC change data is obtained. The accuracy of the battery capacity calculated in this way is higher.
[0072] Optional, Figure 1 The selection of the starting point and the end point in step S103 may also be performed in other ways.
[0073] In another specific embodiment of step S103, the moment when the confidence is greater than the first threshold and the SOC value is less than the first SOC threshold is used as the starting point; the moment when the confidence is greater than the second threshold and the SOC value is greater than the second SOC threshold is used as the ending point.
[0074] It should be noted that Figure 1 The selection of the starting point and the ending point in step S103 includes but is not limited to the above embodiments, which will not be described in detail here.
[0075] In one embodiment, when the battery is at an abnormal temperature, the preset time length is set to a first time length; when the battery is at a normal operating temperature, the preset time length is set to a second time length; and the second time length is greater than the first time length.
[0076] The normal operating temperature of the battery is generally 0-40 degrees Celsius, and the temperature outside this temperature range is called abnormal temperature. Under abnormal temperature, the accuracy of collecting current, voltage and other signals may be affected, and the battery signal may not be accurate. Therefore, the preset time should be shortened to ensure the accuracy of the obtained battery capacity.
[0077] In one embodiment, according to Figure 1 After obtaining the current capacity of the battery in step S105, the method may further include: obtaining the state of health (SOH) of the battery according to the current capacity and the nominal capacity of the battery. That is, the current capacity obtained in the present application may be used to calculate the SOH of the battery.
[0078] Optionally, the battery SOH=the current capacity of the battery divided by the nominal capacity of the battery is used. Thus, a simple solution for calculating the battery SOH can be provided.
[0079] It should be noted that the method for determining the battery capacity provided in the present application can be performed by a battery or electric vehicle, aircraft or other new energy equipment. Further, the method for determining the battery capacity can be performed by a battery management system (Battery Management System, referred to as BMS), which can also be called a battery management unit (Battery Management Unit, referred to as BMU), which can be performed by a controller such as a micro-controller unit (Micro-Controller Unit, referred to as MCU).
[0080] In one embodiment, the judgment logic of the working condition, the first threshold, the second threshold, the third threshold and other data may be stored in a read-only memory (ROM) in the BMS. The BMS obtains relevant data and executes the battery capacity determination method of the present application.
[0081] See also Figure 2 , Figure 2 A schematic diagram of the structure of a battery capacity determination device 20 is provided. The battery capacity determination device 20 may include:
[0082] An SOC acquisition module 201 is used to acquire the SOC of the battery each time the battery is at rest;
[0083] A confidence determination module 202, used to identify the operating condition of the battery and obtain the confidence corresponding to the operating condition;
[0084] A start and end point selection module 203, configured to select a start point and an end point based on the SOC and the confidence within a preset time period;
[0085] A difference acquisition module 204 is used to acquire the change amount and accumulated ampere-hours of the SOC between the starting point and the end point;
[0086] The capacity calculation module 205 is used to obtain the current capacity of the battery according to the change amount and the accumulated ampere-hours.
[0087] In one embodiment, the start and end point selection module 203 may include: a starting point determination unit, used to take the moment when the confidence level is greater than a first threshold and the SOC value is the minimum SOC value within the preset time length as the starting point; an end point determination unit, used to take the moment when the confidence level is greater than a second threshold and the SOC value is the maximum SOC value within the preset time length as the end point.
[0088] Optionally, the operating condition is determined by the working state of the battery between two periods of rest.
[0089] Optionally, the operating condition is determined based on at least one of the following charging and discharging actions: charging to discharging, discharging to charging, discharging only, and charging only.
[0090] Optionally, the operating condition is determined based on the following factors: the open circuit voltage value when at rest is greater than or equal to a third threshold value, and the open circuit voltage value when at rest is less than the third threshold value.
[0091] In one embodiment, the battery capacity determination device 20 may further include a preset time setting module, which is used to set the preset time length to a first time length when the battery is at an abnormal temperature; when the battery is at a normal operating temperature, set the preset time length to a second time length; and the second time length is greater than the first time length.
[0092] In one embodiment, after the current capacity calculation module 205, the battery capacity determination device 20 may further include: a SOH calculation module, configured to obtain the SOH of the battery according to the current capacity and the nominal capacity of the battery.
[0093] It should be noted that Figure 2 The relevant definition of the battery capacity determination device 20 can be found in Figure 1 The description of the method for determining the battery capacity in the above description will not be elaborated here. The battery capacity determination device 20 can be arranged on a battery or an electric vehicle, an aircraft or other new energy equipment. Further, the battery capacity determination device 20 can be arranged in a BMS.
[0094] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0095] According to another embodiment of the present application, a computing device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and when the program is executed by the processor, the steps of the method for determining the battery capacity in any of the above embodiments can be implemented. The computing device may refer to a device such as a car or an aircraft, or may refer to a BMS or other controller, a server, etc.
[0096] The computing device may include a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computing device is used to provide computing and control capabilities. The memory of the computing device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computing device is used to exchange information between the processor and an external device. The communication interface of the computing device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for determining battery capacity is implemented. The display unit of the computing device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computing device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computing device shell, or an external keyboard, touchpad or mouse.
[0097] According to another embodiment of the present application, a storage medium is provided, which may be a computer-readable storage medium for storing a computer program, which, when executed by a computer or a processor, implements the steps of the method for determining the battery capacity in any of the above-mentioned embodiments.
[0098] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0099] Those skilled in the art will appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described herein may be implemented as electronic hardware, computer software, or a combination of both.
[0100] In order to show the interchangeability between hardware and software, various schematic components, modules, circuits and steps are generally described above according to their functionality. Such functionality is implemented in hardware form or software form depending on the specific application and the design restrictions imposed on the overall system. Those skilled in the art can implement the described functionality in a variable manner for specific specific applications, but such implementation decisions should not be understood as causing deviations from the scope of the present application.
[0101] Although only some of the specific embodiments of the present application are described, it should be understood by those skilled in the art that the present application can be implemented in many other forms without departing from its subject matter and scope. Therefore, the examples and embodiments shown are considered to be illustrative rather than restrictive, and the present application may include various modifications and substitutions without departing from the spirit and scope of the present application as defined in the appended claims.
[0102] The above is only a preferred embodiment of the present application and does not constitute any form of limitation to the present application. Although the present application has been disclosed as a preferred embodiment as above, it is not intended to limit the present application. Any technician familiar with the profession can make some changes or modifications to the equivalent embodiments of the above disclosed technical contents without departing from the scope of the technical solution of the present application. However, any simple modification, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A method for determining battery capacity, characterized in that: The method comprises: When the battery is at rest, obtaining the SOC of the battery; Identifying an operating condition of the battery and obtaining a confidence level corresponding to the operating condition; Within a preset time period, selecting a starting point and an ending point based on the SOC and the confidence level obtained when the battery is at rest for multiple times; Obtaining a change in the SOC between the starting point and the ending point and a cumulative ampere-hour; Obtaining the current capacity of the battery according to the change amount and the accumulated ampere-hours; The selecting of the starting point and the ending point based on the SOC and the confidence level when the battery is stationary for multiple times includes: When the SOC satisfies a first SOC condition and the confidence level satisfies a first confidence level condition, taking this moment as the starting point; When the SOC satisfies a second SOC condition and the confidence level satisfies a second confidence level condition, this moment is taken as the end point.
2. The method according to claim 1, characterized in that The selecting a starting point and an ending point based on the SOC and the confidence level comprises: The time when the confidence level is greater than a first threshold and the SOC value is the minimum value within the preset time period is used as the starting point; The moment when the confidence level is greater than the second threshold and the SOC value is the maximum value within the preset time period is taken as the end point.
3. The method according to claim 1, characterized in that The operating condition is determined by the operating state of the battery between two rest periods.
4. The method according to claim 3, characterized in that The operating condition is determined based on at least one of the following charging and discharging actions: charging to discharging, discharging to charging, discharging only, and charging only.
5. The method according to claim 3 or 4, characterized in that: The operating condition is determined based on the following factors: the open circuit voltage value when at rest is greater than or equal to a third threshold value, and the open circuit voltage value when at rest is less than the third threshold value.
6. The method according to claim 1, characterized in that The method also includes setting the preset time length to a first time length when the battery is at an abnormal temperature; setting the preset time length to a second time length when the battery is at a normal operating temperature; and the second time length is greater than the first time length.
7. The method according to claim 1, characterized in that After obtaining the current capacity of the battery, the method further includes: The SOH of the battery is obtained according to the current capacity and the nominal capacity of the battery.
8. A device for determining battery capacity, characterized in that: The device comprises: An SOC acquisition module, used for acquiring the SOC of the battery when the battery is at rest; A confidence determination module, used to identify the operating condition of the battery and obtain the confidence corresponding to the operating condition; A start and end point selection module, configured to select a start point and an end point within a preset time period based on the SOC and the confidence level obtained when the battery is stationary for multiple times; A difference acquisition module, used to acquire the change amount and accumulated ampere-hours of the SOC between the starting point and the end point; A capacity calculation module, used to obtain the current capacity of the battery according to the change amount and the accumulated ampere-hours; The selecting of the starting point and the ending point based on the SOC and the confidence level when the battery is stationary for multiple times includes: When the SOC satisfies a first SOC condition and the confidence level satisfies a first confidence level condition, taking this moment as the starting point; When the SOC satisfies a second SOC condition and the confidence level satisfies a second confidence level condition, this moment is taken as the end point.
9. A computing device comprising a memory and a processor, characterized in that: The memory stores a computer program, which, when executed by the processor, can implement the steps of the method for determining the battery capacity of any one of claims 1 to 7.
10. A storage medium for storing a computer program, characterized in that: When the program is executed by a computer or a processor, the program implements the steps of the method for determining the battery capacity according to any one of claims 1 to 7.
