Method, apparatus, storage medium and processor for determining battery power ratio

By calculating the battery's remaining charge and cumulative charge value at the previous moment, rounding down the effective charge, and combining this with the battery capacity to calculate the charge ratio, the problem of low accuracy in battery charge ratio is solved, achieving higher accuracy and lower storage requirements.

CN116087803BActive Publication Date: 2025-12-09ZOOMLION ENVIRONMENTAL IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211687327.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2025-12-09
Estimated Expiration
2042-12-27

AI Technical Summary

Technical Problem

Existing technologies suffer from low accuracy when determining battery capacity ratios, especially when there is a large difference between the battery SOC value and the real-time change in capacity. The use of floating-point or integer numbers results in high storage requirements and low accuracy.

Method used

By determining the battery's remaining charge and cumulative charge value at the previous moment, the effective charge is rounded down, and the charge ratio is calculated in conjunction with the battery capacity, thus avoiding precision errors caused by floating-point numbers.

Benefits of technology

It improves the accuracy of battery charge ratio, reduces storage requirements, and minimizes accuracy errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116087803B_ABST
    Figure CN116087803B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method, device, processor and storage medium for determining a battery power ratio. The method comprises: determining a first residual power of a battery at a previous time; determining a power accumulation integral value of the battery from the previous time to a current time; in a case where the power accumulation integral value is greater than a preset value, determining an effective power of the battery at the current time according to the power accumulation integral value and the preset value; and determining the power ratio of the battery at the current time according to the first residual power and the effective power. Through the above technical solution, the power accumulation integral value of the battery from the previous time to the current time is determined, and when the power accumulation integral value reaches the preset value, the power ratio of the battery at the current time is determined together with the first residual power at the previous time. The power accumulation integral value is used as an intermediate variable, which not only reduces the magnitude of the battery storage, but also avoids the precision error caused by the floating point number, so that the battery power ratio is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of computers, in particular to a method and device for determining a battery power ratio, a storage medium and a processor. BACKGROUND

[0002] At present, the estimation of the SOC of a pure electric vehicle generally uses an open circuit voltage to correct the initial value of the SOC, and then uses the ampere-hour method to update the real-time value and stores the power at power-off, and then uses the open circuit voltage correction value to filter the initial value at power-on. However, in the process of data processing, the current SOC value is directly added or subtracted by the real-time change in power. However, due to the large difference in magnitude between the battery SOC value and the real-time change in power, the maximum value of the SOC in a commercial vehicle can reach 500 Ah, and the real-time change in power, assuming that the current is counted every 0.01 seconds, the minimum accuracy of the current is 0.1 A, and it can also be as low as 0.001 As. Therefore, the battery SOC value and the real-time change in power differ by 12 orders of magnitude. If the current accuracy is improved, the difference between the two orders of magnitude is greater. Therefore, if the battery SOC value and the real-time change in power are directly subtracted to calculate, the requirement for data storage is high, the use of floating-point numbers will lose accuracy, and the use of integer numbers requires 64-bit integers, which occupies a lot of memory, and the accuracy of the determined power ratio is also low. SUMMARY

[0003] The purpose of the embodiments of the present application is to provide a method and device for determining a battery power ratio, a storage medium and a processor.

[0004] To achieve the above-mentioned purpose, the first aspect of the present application provides a method for determining a battery power ratio, comprising:

[0005] determining a first remaining power of the battery at a previous time;

[0006] determining a cumulative integral value of the power of the battery from the previous time to the current time;

[0007] in the case where the cumulative integral value of the power is greater than a preset value, determining an effective power of the battery at the current time according to the cumulative integral value of the power and the preset value;

[0008] determining a power ratio of the battery at the current time according to the first remaining power and the effective power.

[0009] In the embodiments of the present application, the determining the accumulated power integral value of the battery from the last time to the current time comprises: obtaining a historical power integral value of the battery at the last time; obtaining the current of the battery every preset time interval since the last time; determining an actual power integral value of the battery according to the current of the battery in each preset time interval and the total use time between the last time and the current time; and determining the sum of the historical power integral value and the actual power integral value as the accumulated power integral value.

[0010] In the embodiments of the present application, in the case that the accumulated power integral value is greater than the preset value, the determining the effective power of the battery at the current time according to the accumulated power integral value and the preset value comprises: determining a first ratio between the accumulated power integral value and the preset value in the case that the accumulated power integral value is greater than the preset value; rounding the first ratio, and determining the rounded first ratio as the effective power.

[0011] In the embodiments of the present application, the determining the power ratio of the battery at the current time according to the first remaining power and the effective power comprises: determining a second remaining power at the current time according to the first remaining power and the effective power; and determining a second ratio between the second remaining power and the battery capacity of the battery as the power ratio.

[0012] In the embodiments of the present application, the determining the second remaining power at the current time according to the first remaining power and the effective power comprises: in the case that the battery is in the charging state from the last time to the current time, determining the sum of the first remaining power and the effective power as the second remaining power; and in the case that the battery is in the discharging state from the last time to the current time, determining the difference between the first remaining power and the effective power as the second remaining power.

[0013] In the embodiments of the present application, the method further comprises: determining a power integral difference between the accumulated power integral value and the product of the preset value and the effective power; and in the case that the battery is in the sleep state, recording the power integral difference, and determining the power integral difference as the historical power integral value at the next time.

[0014] In the embodiments of the present application, the determining the first remaining power of the battery at the last time comprises: obtaining the battery capacity of the battery and the power ratio at the last time; and determining the product between the battery capacity and the power ratio at the last time as the first remaining power.

[0015] The second aspect of the present application provides a machine readable storage medium, which stores instructions, and the instructions, when executed by a processor, cause the processor to be configured to perform the above-mentioned method for determining the power ratio of the battery.

[0016] The third aspect of the present application provides a processor configured to perform the above-mentioned method for determining the power ratio of the battery.

[0017] The fourth aspect of the present application provides a device for determining a battery power ratio, comprising the processor described above.

[0018] By the above technical solution, the cumulative integral value of the battery power from the last time to the current time is determined, and when the cumulative integral value reaches a preset value, the first remaining power at the last time is used to determine the battery power ratio at the current time. The cumulative integral value is used as an intermediate variable, which not only reduces the magnitude of the battery storage, but also avoids the precision error caused by the floating point number, so that the battery power ratio is more accurate.

[0019] Other features and advantages of the embodiments of the present application will be described in detail in the following specific implementation part. BRIEF DESCRIPTION OF DRAWINGS

[0020] The accompanying drawings are included to provide a further understanding of the embodiments of the present application, and constitute a part of the specification, and are used together with the following specific implementation to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the drawings:

[0021] Figure 1 The flowchart of the method for determining the battery power ratio according to the embodiments of the present application is schematically shown;

[0022] Figure 2 The flowchart of the method for determining the battery power ratio according to another embodiment of the present application is schematically shown;

[0023] Figure 3 The internal structure diagram of the computer device according to the embodiments of the present application is schematically shown. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical scheme and advantages of the embodiments of the present application more clear, the technical scheme in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiments of the present application, and is not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.

[0025] Figure 1 The flowchart of the method for determining the battery power ratio according to the embodiments of the present application is schematically shown. As shown in Figure 1 In an embodiment of the present application, a method for determining a battery power ratio is provided, comprising the following steps:

[0026] Step 101, determining the first remaining power of the battery at the last time.

[0027] In step 102, a cumulative integral value of the battery from a previous time to a current time is determined.

[0028] In step 103, in a case where the cumulative integral value is greater than a preset value, an effective capacity of the battery at the current time is determined according to the cumulative integral value and the preset value.

[0029] In step 104, a capacity ratio of the battery at the current time is determined according to the first remaining capacity and the effective capacity.

[0030] The battery can refer to a battery in a pure electric vehicle. In determining the capacity ratio of the battery, the processor can first determine a first remaining capacity of the battery at a previous time. The first remaining capacity is in units of mAh. Then, the processor can determine a cumulative integral value of the battery from the previous time to the current time. The cumulative integral value is in units of mAs. In a case where the cumulative integral value is greater than a preset value, the processor can determine an effective capacity of the battery at the current time according to the cumulative integral value and the preset value. The preset value can be customized according to actual conditions. For example, the preset value can be 3600. The effective capacity is in units of mAh. In determining the first remaining capacity of the battery at the previous time and the effective capacity at the current time, the processor can determine a capacity ratio of the battery at the current time according to the first remaining capacity and the effective capacity.

[0031] Through the above technical solution, the cumulative integral value of the battery from the previous time to the current time is determined, and when the cumulative integral value reaches the preset value, the capacity ratio of the battery at the current time is determined together with the first remaining capacity at the previous time. The cumulative integral value is used as an intermediate variable, which not only reduces the magnitude of the battery storage, but also avoids the precision error caused by the floating point number, so that the capacity ratio of the battery is more accurate.

[0032] In one embodiment, determining the cumulative integral value of the battery from the previous time to the current time includes: obtaining a historical integral value of the capacity of the battery at the previous time; obtaining the current of the battery every preset time interval starting from the previous time; determining an actual integral value of the capacity of the battery according to the current of the battery in each preset time interval and the total usage time between the previous time and the current time; and determining the sum of the historical integral value and the actual integral value as the cumulative integral value.

[0033] In a case where the battery is not discharging or charging, the vehicle controller of the pure electric vehicle can store the power history integral value at this time. In a case where the battery is discharging or charging, the processor can obtain the power history integral value of the battery at the last time, and can obtain the current of the battery every preset time interval from the last time. The current of the battery can be detected by a current sensor. The current sensor can be installed in the pure electric vehicle. The current sensor can detect the current of the battery at a preset interval. For example, the preset interval can be 0.01s. After the current sensor detects the current of the battery at the preset interval, the current can be sent to the processor, and the processor can obtain the current of the battery every preset time interval. The preset time interval can be 0.01s.

[0034] The processor can determine the actual power integral value of the battery according to the current of the battery in each preset time interval and the total use time between the last time and the current time. Specifically, the processor can integrate each preset time interval and the current of the battery in each preset time interval to obtain the integral value of the battery in each preset time interval. For example, each preset time interval Δt and the current of the battery I in each preset time interval can be multiplied to determine the integral value of the battery in each preset time interval IΔt. Then, the processor can add the integral value of the battery corresponding to each preset time interval included in the total use time to obtain the actual power integral value of the battery. After determining the actual power integral value of the battery corresponding to the last time and the current time, the processor can determine the sum of the power history integral value and the actual power integral value, and can determine the power cumulative integral value of the battery from the last time to the current time.

[0035] In one embodiment, in a case where the power cumulative integral value is greater than the preset value, determining the effective power of the battery at the current time according to the power cumulative integral value and the preset value includes: in a case where the power cumulative integral value is greater than the preset value, determining a first ratio between the power cumulative integral value and the preset value; rounding the first ratio, and determining the rounded first ratio as the effective power.

[0036] In a case where the power cumulative integral value is greater than the preset value, the processor can determine a first ratio between the power cumulative integral value and the preset value. Then, the processor can round the first ratio, and can determine the rounded first ratio as the effective power of the battery at the current time. For example, if the power cumulative integral value is 7800mAs and the preset value is 3600, the first ratio is 2.17mAh. At this time, rounding the first ratio can obtain an effective power of 2mAh.

[0037] In one embodiment, determining the ratio of the battery's power at the current time according to the first residual power and the effective power comprises: determining a second residual power at the current time according to the first residual power and the effective power; determining a second ratio between the second residual power and the battery capacity of the battery as the ratio of the battery's power at the current time.

[0038] After determining the first residual power of the battery at the previous time and the effective power at the current time, the second residual power at the current time can be determined according to the first residual power and the effective power. Then, the processor can further acquire the battery capacity of the battery, and can determine a second ratio between the second residual power and the battery capacity of the battery. The processor can further determine the second ratio as the ratio of the battery's power at the current time.

[0039] In one embodiment, determining the second residual power at the current time according to the first residual power and the effective power comprises: in the case that the battery is in the charging state from the previous time to the current time, determining the sum of the first residual power and the effective power as the second residual power; in the case that the battery is in the discharging state from the previous time to the current time, determining the difference between the first residual power and the effective power as the second residual power.

[0040] The battery can be in the discharging state or the charging state from the previous time. In the case that the battery is in the charging state from the previous time to the current time, the processor can determine the sum of the first residual power and the effective power, and can determine the sum of the power as the second residual power of the battery at the current time. In the case that the battery is in the discharging state from the previous time to the current time, the processor can determine the difference between the first residual power and the effective power, and can determine the difference between the power as the second residual power of the battery at the current time.

[0041] In one embodiment, the method further comprises: determining a power integration difference value between the power cumulative integration value and the product of the preset value and the effective power; recording the power integration difference value in the case that the battery is in the sleep state, and determining the power integration difference value as the power history integration value at the next time.

[0042] After determining the effective power of the battery at the current time, the processor can first determine the product between the effective power and the preset value, and then can further determine the power integration difference value between the power cumulative integration value and the product. After determining the power integration difference value, the processor can further determine whether the battery is in the sleep state. The sleep state can refer to a state in which the battery is not discharged or charged. If the battery is in the sleep state, the power integration difference value can be recorded, and the power integration difference value can be determined as the power history integration value at the next time. That is, when the battery is discharged or charged again, the power history integration value at the next time can be obtained to further determine the power ratio of the battery at the next time. For example, if the power cumulative integration value is 7800mAs, the preset value is 3600, and the effective power is 2mAh, the product between the preset value and the effective power can be first determined as 7200mAs, and then 7800mAs can be subtracted from 7200mAs to determine the power integration difference value as 600mAs.

[0043] In one embodiment, determining the first residual power of the battery at the previous time includes: obtaining the battery capacity of the battery and the power ratio of the battery at the previous time; and determining the product between the battery capacity and the power ratio at the previous time as the first residual power.

[0044] In determining the power ratio of the battery, the processor can first obtain the battery capacity of the battery and the power ratio of the battery at the previous time. Then, the processor can determine the product between the battery capacity and the power ratio at the previous time, and can determine the product as the power ratio of the battery at the previous time.

[0045] In one embodiment, as shown in FIG. 8, another flowchart of a method for determining the power ratio of the battery is provided. Figure 2

[0046] ​Here, VCU can refer to the vehicle controller, and the vehicle can refer to a pure electric vehicle. When determining the battery's charge ratio, the processor first obtains the integrated quantity Qx (the battery's historical integrated charge value at the previous moment) stored in the VCU. When the battery is charging or discharging, the processor acquires the sensor current at current acquisition time intervals Δt, i.e., it acquires the battery current every preset time interval. Here, Δt is the preset time interval, which can be 0.01s. The processor integrates the current over the time interval Δt to determine the real-time change in battery charge, thus determining the actual integrated charge value. The processor adds the stored integrated quantity Qx to the real-time change in battery charge. If the sum (integrated quantity Qx) is greater than 3600, then n can be obtained by rounding Qx to Q1. Here, Q1 is a preset value, which can be 3600, and n is the effective charge. Based on this, the processor determines the historical integrated charge value for the next moment as: integrated quantity Qx - 3600 × n.

[0047] Next, the processor can obtain the initial SOC value (the battery's charge percentage at the previous moment) and battery capacity (the battery's capacity in Ah) corrected using the open-circuit voltage method. The processor can multiply the initial SOC value and battery capacity by 1000 to obtain the current charge Q (the first remaining charge at the previous moment, in mAh). Further, the processor can subtract the current charge Q from n and divide by the total battery capacity Q0 (the battery's capacity in Ah) to obtain the current SOC (the battery's charge percentage at the current moment).

[0048] The above technical solution determines the cumulative integral value of the battery's charge from the previous moment to the current moment. When the cumulative integral value reaches a preset value, it is compared with the first remaining charge at the previous moment to determine the battery's charge ratio at the current moment. Using the cumulative integral value as an intermediate variable not only reduces the amount of battery storage but also avoids the precision error caused by floating-point numbers, making the battery charge ratio more accurate.

[0049] Figure 1 This is a flowchart illustrating a method for determining a battery capacity ratio in one embodiment. It should be understood that, although... Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1At least one of the steps in the method can comprise a plurality of sub-steps or a plurality of stages, which are not necessarily performed at the same time, but can be performed at different times, and the order of the sub-steps or stages is not necessarily sequential, but can be performed alternately or in rotation with other steps or sub-steps or stages of other steps.

[0050] In one embodiment, a storage medium is provided, and the storage medium has stored thereon a program, and the program is executed by a processor to implement the method for determining the battery power ratio.

[0051] In one embodiment, a processor is provided, and the processor is configured to execute a program, and the program is executed to implement the method for determining the battery power ratio.

[0052] In one embodiment, an apparatus for determining the battery power ratio is provided, and the apparatus comprises the processor.

[0053] In one embodiment, a computer device is provided, and the computer device can be a server, and an internal structure diagram of the computer device can be as shown in Figure 3 The computer device comprises a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected through a system bus. The processor A01 of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is configured to store data such as the battery power ratio. The network interface A02 of the computer device is configured to communicate with an external terminal through a network connection. The computer program B02 is executed by the processor A01 to implement a method for determining the battery power ratio.

[0054] Those skilled in the art can understand that Figure 3 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can comprise more or fewer components than those shown in the figure, or some components can be combined, or have a different arrangement of components.

[0055] The embodiment of the present application provides a device, which comprises a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: determining a first residual power of a battery at a previous time; determining a power cumulative integral value of the battery from the previous time to a current time; determining valid power of the battery at the current time according to the power cumulative integral value and a preset value in a case that the power cumulative integral value is greater than the preset value; and determining a power ratio of the battery at the current time according to the first residual power and the valid power.

[0056] In one embodiment, the determining of the power cumulative integral value of the battery from the previous time to the current time comprises: obtaining a power historical integral value of the battery at the previous time; obtaining a current of the battery every preset time length from the previous time; determining a power actual integral value of the battery according to the current of the battery in each preset time length and a total use time between the previous time and the current time; and determining a sum of the power historical integral value and the power actual integral value as the power cumulative integral value.

[0057] In one embodiment, the determining of the valid power of the battery at the current time according to the power cumulative integral value and the preset value in a case that the power cumulative integral value is greater than the preset value comprises: determining a first ratio between the power cumulative integral value and the preset value in a case that the power cumulative integral value is greater than the preset value; rounding the first ratio, and determining the rounded first ratio as the valid power.

[0058] In one embodiment, the determining of the power ratio of the battery at the current time according to the first residual power and the valid power comprises: determining a second residual power at the current time according to the first residual power and the valid power; and determining a second ratio between the second residual power and a battery capacity of the battery as the power ratio.

[0059] In one embodiment, the determining of the second residual power at the current time according to the first residual power and the valid power comprises: determining a sum of the first residual power and the valid power as the second residual power in a case that the battery is in a charging state from the previous time to the current time; and determining a difference between the first residual power and the valid power as the second residual power in a case that the battery is in a discharging state from the previous time to the current time.

[0060] In one embodiment, the method further comprises: determining a power integral difference value between the power cumulative integral value and a product of the preset value and the valid power; recording the power integral difference value in a case that the battery is in a sleep state, and determining the power integral difference value as a power historical integral value at a next time.

[0061] In one embodiment, determining the first residual capacity of the battery at the previous time comprises: obtaining a battery capacity of the battery and a capacity ratio of the battery at the previous time; and determining a product of the battery capacity and the capacity ratio at the previous time as the first residual capacity.

[0062] The present application also provides a computer program product adapted to perform the steps of the method for determining a battery capacity ratio when executed on a data processing device.

[0063] Those skilled in the art will appreciate that embodiments of the present application can be supplied as methods, systems, or computer program products. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code.

[0064] The present application is described in reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present application. It will be understood that each block of the flowchart and / or block diagrams, and combinations of blocks in the flowchart and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart and / or block diagram block or blocks. Figure 1 The flowchart and / or block diagrams can also be implemented by one or more of the following: Figure 1 Means for performing the function specified by one or more of the flowchart or block diagrams blocks.

[0065] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart and / or block diagram block or blocks. Figure 1 The flowchart and / or block diagrams can also be implemented by one or more of the following: Figure 1 Means for performing the function specified by one or more of the flowchart or block diagrams blocks.

[0066] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the function specified in the flowchart and / or block diagram block or blocks. Figure 1 The flowchart and / or block diagrams can also be implemented by one or more of the following: Figure 1 Means for performing the function specified by one or more of the flowchart or block diagrams blocks.

[0067] In one typical arrangement, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0068] Memory can include non-persistent memory and / or volatile memory, such as a random access memory (RAM) including a cache area for the temporary storage of data. A memory can also include non-volatile memory, such as a read only memory (ROM), EPROM, EEPROM, or flash memory. Memory can further include a data storage 112, which can include a disk drive, an optical memory, a solid-state memory, or other storage media. Memory can store computer readable instructions that, when processed by a processor, cause a computing device to perform operations.

[0069] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for the storage of information. Information can be computer readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile discs (DVDs) or other optical storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.

[0070] It should also be noted that the terms "comprising," "including," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements in the list, but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without limitation, an element preceded by "comprises a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0071] The above merely provides an embodiment of the present application and is not intended to limit the present application. The present application can have various modifications and changes for those skilled in the art. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of claims of the present application.

Claims

1. A method for determining the battery capacity ratio, characterized in that, The method includes: Determine the first remaining charge of the battery at the previous moment; Determine the cumulative integral value of the battery charge from the previous moment to the current moment; If the cumulative energy consumption value is greater than a preset value, the effective energy consumption of the battery at the current moment is determined based on the cumulative energy consumption value and the preset value. The battery's charge ratio at the current moment is determined based on the first remaining charge and the effective charge. Determining the cumulative integral value of the battery's charge from the previous moment to the current moment includes: Obtain the battery's historical integrated charge value at the previous moment; Starting from the previous moment, the current of the battery is acquired once every preset time interval; The actual integral value of the battery's charge is determined based on the battery's current within each preset time period and the total usage time from the previous moment to the current moment; The sum of the historical energy consumption points and the actual energy consumption points is determined as the cumulative energy consumption points. When the accumulated power consumption value is greater than a preset value, determining the effective power consumption of the battery at the current moment based on the accumulated power consumption value and the preset value includes: If the accumulated power consumption value is greater than a preset value, a first ratio between the accumulated power consumption value and the preset value is determined. The first ratio is rounded down, and the rounded first ratio is determined as the effective power. The method further includes: Determine the difference in energy integral between the cumulative energy integral value and the product of the preset value and the effective energy; When the battery is in a dormant state, the power consumption difference is recorded, and the power consumption difference is determined as the power consumption history value for the next moment.

2. The method for determining the battery capacity ratio according to claim 1, characterized in that, Determining the battery's charge ratio at the current moment based on the first remaining charge and the effective charge includes: The second remaining power at the current moment is determined based on the first remaining power and the effective power. The second ratio between the second remaining charge and the battery capacity is determined as the charge ratio.

3. The method for determining the battery capacity ratio according to claim 2, characterized in that, Determining the second remaining power at the current moment based on the first remaining power and the effective power includes: If the battery is in a charging state from the previous moment to the current moment, the sum of the first remaining charge and the effective charge is determined as the second remaining charge; If the battery is in a discharging state from the previous moment to the current moment, the difference between the first remaining charge and the effective charge is determined as the second remaining charge.

4. The method for determining the battery capacity ratio according to claim 1, characterized in that, Determining the first remaining charge of the battery at the previous moment includes: Obtain the battery capacity and the ratio of the battery's charge level at the previous moment; The product of the battery capacity and the ratio of the battery charge at the previous moment is determined as the first remaining charge.

5. A machine-readable storage medium storing instructions thereon, characterized in that, When executed by a processor, this instruction causes the processor to be configured to perform the method for determining a battery charge ratio according to any one of claims 1 to 4.

6. A processor, characterized in that, It is configured to perform the method for determining the battery charge ratio as described in any one of claims 1 to 4.

7. An apparatus for determining the battery charge ratio, characterized in that, The device includes the processor according to claim 6.

Citation Information

Patent Citations

  • Electric quantity display method and system, intelligent watch and storage medium

    CN110133986A

  • Method for increasing the accuracy of control in the case of arithmetically caused control deviations

    DE102015210733A1