Battery capacity percentage calculation method, device, equipment and storage medium
By determining the charging method based on the battery voltage and calculating the actual full voltage, the problem of capacity percentage calculation deviation caused by temperature and voltage in the prior art is solved, and more accurate battery capacity percentage calculation and real-time management are achieved.
Patent Information
- Application Number
- CN202311309483.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-11
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-10-11
AI Technical Summary
When calculating the percentage of battery capacity, the calculation results are deviated due to different temperatures and voltages, which cannot accurately reflect the remaining capacity of the battery.
By determining the charging method (strong charging or floating charging) based on the current battery voltage, obtaining the corresponding temperature compensation coefficient and ambient temperature, and calculating the actual full voltage, thereby accurately calculating the capacity percentage of the battery.
Improve the accuracy of the calculation results, consider the charging methods and charging voltages at different temperatures and voltages, ensuring real-time and flexibility of capacity percentages, and providing more accurate battery management and maintenance data.
Smart Images

Figure CN117517983B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of battery capacity calculation, and in particular to a method, device, equipment and storage medium for calculating the capacity percentage of a battery. Background Art
[0002] The capacity percentage of a battery refers to the ratio between the current remaining capacity of the battery and the full capacity. Calculating the capacity percentage of a battery can help you understand the remaining capacity of the battery, thereby determining the battery usage and remaining available time.
[0003] The usual method for calculating the battery capacity percentage is to estimate the remaining capacity of the battery by monitoring the changes in the battery voltage and current. Since batteries have different charging methods and charging voltages at different temperatures and voltages, if the above method is used to calculate the battery capacity percentage, the calculation result will be biased. Summary of the invention
[0004] The present application provides a method, device, equipment and storage medium for calculating the capacity percentage of a battery, which are used to accurately calculate the capacity percentage of a battery.
[0005] In a first aspect, the present application provides a method for calculating the capacity percentage of a battery, which is applied to a computer device, and the method includes: determining a charging mode of the battery according to a current battery voltage, the charging mode including a forced charging mode and a floating charging mode; if the charging mode is determined to be the forced charging mode, obtaining a first temperature compensation coefficient corresponding to the forced charging mode and a current ambient temperature; calculating a first actual full charge voltage in combination with the first temperature compensation coefficient and the current ambient temperature, and calculating a first capacity percentage of the battery based on the first actual full charge voltage; if the charging mode is determined to be the floating charging mode, obtaining a second temperature compensation coefficient corresponding to the floating charging mode and the current ambient temperature; calculating a second actual full charge voltage in combination with the second temperature compensation coefficient and the current ambient temperature, and calculating a second capacity percentage of the battery based on the second actual full charge voltage.
[0006] By adopting the above technical solution, the corresponding temperature compensation coefficient and the current ambient temperature are obtained according to the selected charging method, which fully considers that the battery has different charging methods and charging voltages at different temperatures and voltages, and more accurately considers the influence of temperature on the battery charging process, making the final calculation result more accurate.
[0007] Optionally, determining the charging mode of the battery based on the current battery voltage includes: obtaining the current battery voltage; judging whether the current battery voltage is within a preset range; if the current battery voltage is within the preset range, determining that the charging mode of the battery is the forced charging mode; if the current battery voltage is not within the preset range, determining that the charging mode of the battery is the floating charging mode.
[0008] By adopting the above technical solution, the charging mode of the battery can be quickly determined by obtaining the current battery voltage and judging whether it is within the preset range. By judging the charging mode according to the current battery voltage, the most suitable charging mode can be determined in real time according to the actual situation of the battery. The method of determining the charging mode according to the current battery voltage has simple and fast judgment, real-time and flexibility.
[0009] Optionally, the first actual full charge voltage is calculated in combination with the first temperature compensation coefficient and the current ambient temperature, including: calculating the first actual full charge voltage according to a first formula, the first formula is U1=U2+(T-T1)*K1, wherein U1 is the first actual full charge voltage, U2 is the theoretical full charge voltage value of the battery under the forced charging mode, T is normal temperature, T1 is the current ambient temperature, and K1 is the first temperature compensation coefficient.
[0010] By adopting the above technical solution, the method of calculating the first actual full charge voltage in combination with the first temperature compensation coefficient and the current ambient temperature has the accuracy of temperature compensation, precise full charge voltage calculation, improved charging efficiency and charging safety, and accurate calculation of the battery capacity percentage.
[0011] Optionally, calculating the first capacity percentage of the battery according to the first actual full voltage includes: calculating the first capacity percentage of the battery according to the second formula, where the second formula is: Among them, U3 is the first capacity percentage of the battery, U4 is the current battery voltage, U is the low voltage protection point voltage, and U1 is the first actual full charge voltage.
[0012] By adopting the above technical solution and calculating according to the second formula, the first capacity percentage of the battery can be obtained. This calculation method combines the current battery voltage, the low voltage protection point voltage and the first actual full voltage, and can more accurately calculate the capacity percentage of the battery. By calculating the capacity percentage of the battery in real time and dynamically adjusting it according to the actual situation of the battery. In summary, the capacity percentage of the battery can be accurately calculated according to the first actual full voltage, with real-time and flexibility, and the calculation result is more accurate.
[0013] Optionally, the second actual full charge voltage is calculated in combination with the second temperature compensation coefficient and the current ambient temperature, including: calculating the second actual full charge voltage according to a third formula, the third formula is u1=u2+(T-T1)*K2, wherein u1 is the first actual full charge voltage, u2 is the theoretical full charge voltage value of the battery under floating charge mode, T is normal temperature, T1 is the current ambient temperature, and K2 is the second temperature compensation coefficient.
[0014] By adopting the above technical solution, combined with the second temperature compensation coefficient and the current ambient temperature for calculation, the effect of temperature on the charging voltage can be considered more accurately. Temperature compensation can adjust the charging voltage according to different temperatures to improve charging efficiency and charging safety. According to the third formula, the second actual full voltage can be obtained. This calculation method combines the theoretical full charge voltage value of the battery under floating charge mode, the current ambient temperature and the second temperature compensation coefficient, and can more accurately calculate the actual full voltage. According to the second actual full voltage, the capacity percentage of the battery can be further and accurately calculated.
[0015] Optionally, calculating the second capacity percentage of the battery according to the second actual full voltage includes: calculating the second capacity percentage of the battery according to the third formula, where the third formula is:
[0016] Among them, u3 is the second capacity percentage of the battery, U4 is the current battery voltage, U is the low voltage protection point voltage, and u1 is the second actual full charge voltage.
[0017] By adopting the above technical solution, the second capacity percentage of the battery can be obtained by calculating according to the third formula. This calculation method combines the current battery voltage, the low voltage protection point voltage and the second actual full voltage, and can more accurately calculate the capacity percentage of the battery.
[0018] Optionally, the method further includes: monitoring the capacity percentage of the battery in real time to obtain monitoring data; and sending the monitoring data to a host computer or a human-machine interface so that a user can manage and maintain the battery according to the monitoring data.
[0019] By adopting the above technical solution, the capacity percentage of the battery is monitored in real time and the monitoring data is sent to the host computer or human-machine interface, so that the user can manage and maintain the battery according to the monitoring data. The method has the effect of timely understanding the battery status, providing real-time monitoring data, supporting remote management and maintenance, and improving battery management efficiency.
[0020] In a second aspect, the present application provides a device for calculating the capacity percentage of a battery, the device comprising: a determination module, a first acquisition module, a first calculation module, a second acquisition module and a second calculation module; wherein the determination module is used to determine the charging mode of the battery according to the current battery voltage, and the charging mode includes a forced charging mode and a floating charging mode; the first acquisition module is used to obtain a first temperature compensation coefficient and a current ambient temperature corresponding to the forced charging mode if the charging mode is determined to be the forced charging mode; the first calculation module is used to calculate a first actual full charge voltage in combination with the first temperature compensation coefficient and the current ambient temperature, and calculate the first capacity percentage of the battery based on the first actual full charge voltage; the second acquisition module is used to obtain a second temperature compensation coefficient and the current ambient temperature corresponding to the floating charging mode if the charging mode is determined to be the floating charging mode; the second calculation module is used to calculate a second actual full charge voltage in combination with the second temperature compensation coefficient and the current ambient temperature, and calculate the second capacity percentage of the battery based on the second actual full charge voltage.
[0021] By adopting the above technical solution, the corresponding temperature compensation coefficient and the current ambient temperature are obtained according to the selected charging method, which fully considers that the battery has different charging methods and charging voltages at different temperatures and voltages, and more accurately considers the influence of temperature on the battery charging process, making the final calculation result more accurate.
[0022] In a third aspect, the present application provides an electronic device, which adopts the following technical solution: it includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes a computer program such as any of the above-mentioned battery capacity percentage calculation methods.
[0023] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: storing a computer program that can be loaded by a processor and execute any of the above-mentioned battery capacity percentage calculation methods.
[0024] In summary, the present application includes at least one of the following beneficial technical effects:
[0025] 1. Obtain the corresponding temperature compensation coefficient and current ambient temperature according to the selected charging method, fully considering that the battery has different charging methods and charging voltages at different temperatures and voltages, and more accurately considering the impact of temperature on the battery charging process, making the final calculation result more accurate;
[0026] 2. The method of monitoring the capacity percentage of the battery in real time and sending the monitoring data to the host computer or human-machine interface so that the user can manage and maintain the battery according to the monitoring data has the effect of timely understanding the battery status, providing real-time monitoring data, supporting remote management and maintenance, and improving battery management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of a method for calculating the capacity percentage of a battery provided in an embodiment of the present application;
[0028] Figure 2 It is a structural schematic diagram of a battery capacity percentage calculation device provided in an embodiment of the present application;
[0029] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0030] Explanation of the accompanying drawings: 1. determination module; 2. first acquisition module; 3. first calculation module; 4. second acquisition module; 5. second calculation module; 1000. electronic device; 1001. processor; 1002. communication bus; 1003. user interface; 1004. network interface; 1005. memory. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0032] In the description of the embodiments of the present application, words such as "illustrative", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "illustrative", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "illustrative", "for example" or "for example" is intended to present related concepts in a concrete way.
[0033] The application field of this application is in solar photovoltaic charging and discharging systems. The solar charging and discharging controller must always monitor the battery capacity percentage to protect the battery and avoid overcharging or over-discharging of the battery. At the same time, real-time data can be fed back to the host computer or human-machine interface, so that users can understand the current battery power consumption at any time.
[0034] The capacity percentage of a battery is the ratio between the battery's current energy storage and its initial rated capacity. It represents the percentage of capacity that is actually available to the battery, taking into account the battery's aging and usage. The actual capacity percentage of a battery can be determined by measuring the battery's open circuit voltage, discharge curve, or testing with specific instruments. Typically, the actual capacity percentage of a battery will gradually decrease as it is used, due to changes in the battery's internal chemical reactions and material aging.
[0035] The measurement of actual capacity percentage can help users understand the battery usage status and remaining power. When the actual capacity percentage of the battery is low, it means that the available power of the battery is low and it needs to be charged or replaced in time. It should be noted that the actual capacity percentage of the battery is also affected by factors such as ambient temperature, charge and discharge rate, and charge and discharge depth. Therefore, when using the battery, the use conditions should be reasonably selected according to the specifications and requirements of the battery to maximize the battery life and performance.
[0036] Figure 1 is a flow chart of a method for calculating the capacity percentage of a battery provided in an embodiment of the present application. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows; unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps may be executed in other orders; and Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0037] The present application discloses a method for calculating the capacity percentage of a battery, such as Figure 1 As shown, the method includes S101-S105.
[0038] S101, determining a charging mode of the battery according to the current battery voltage, wherein the charging mode includes a forced charging mode and a floating charging mode.
[0039] In one example, in order to solve the above problem, it is proposed that the battery needs to have different charging methods at different voltages, including bulk charging and floating charging. BULK CHARGE means charging with a higher current when the battery voltage is low to quickly fill the battery. In the bulk charging stage, the charger will provide the maximum charging current until the battery voltage reaches the set charging termination voltage.
[0040] Float charge means that after the battery voltage reaches the set charge termination voltage, the battery is charged at a lower current. During the float charge stage, the charger provides a smaller current to make up for the loss of natural discharge of the battery and avoid overcharging.
[0041] In this application, the forced charging method is to charge the battery at a constant voltage (14.5V) for a fixed time (2 hours) at room temperature; and the floating charging method is to charge the battery at a floating charging voltage (13.7V) and a set current at room temperature to balance the battery's internal losses. The set current is generally very small and depends on the actual situation of the battery.
[0042] In this application, the current battery charging mode is determined by obtaining the current voltage and judging whether the current battery voltage is within the preset range. According to the current battery voltage, it is determined whether the battery charging mode is a forced charging mode or a floating charging mode. The preset range in this application can be set according to the actual situation. Here it can be 13.7V. If the current voltage is greater than 13.7V, it is determined that the battery charging mode is a forced charging mode. If the current voltage is not greater than 13.7V, it is determined that the battery charging mode is a floating charging mode.
[0043] S102: If it is determined that the charging mode is the forced charging mode, a first temperature compensation coefficient corresponding to the forced charging mode and the current ambient temperature are obtained.
[0044] In one example, colloidal batteries are widely used in solar energy systems, and colloidal batteries have negative temperature characteristics. For common lead-acid and colloidal batteries at room temperature (25 degrees Celsius), the voltage difference of each 2V battery reaches 0.002-0.003V for every 1 degree Celsius drop or rise in ambient temperature; in winter and summer, the outdoor ambient temperature in some areas can reach as low as minus 20 degrees Celsius and as high as 60 degrees Celsius. At this time, it is necessary to give corresponding voltage compensation to the temperature change of the battery, which is called "temperature compensation". It is necessary to perform temperature compensation on the battery. If temperature compensation is not performed, the charging capacity of the battery in winter may only reach 80% of that at room temperature, or even lower, which ultimately leads to the battery failing to meet the use standard when discharged.
[0045] If it is determined that the current battery charging mode is a forced charging mode, then the first temperature compensation coefficient corresponding to the forced charging mode is obtained. The first temperature compensation coefficient here can be obtained by combining the above-mentioned temperature compensation and by training the battery multiple times. Here it can be 0.025V / ℃; because the ambient temperature also affects the capacity percentage of the battery, when calculating the current capacity percentage of the battery, it is also necessary to obtain the current ambient temperature through a thermometer or other method.
[0046] S103, calculating a first actual full charge voltage in combination with a first temperature compensation coefficient and a current ambient temperature, and calculating a first capacity percentage of the battery according to the first actual full charge voltage.
[0047] In one example, the current battery capacity percentage is usually calculated based on the voltage, that is, (current battery voltage - low voltage protection point voltage) / (battery full voltage - low voltage protection point voltage). For example, taking a 12V gel battery as an example, assuming that the current voltage is 12V, the low voltage protection point voltage is 10.8V, and the battery full voltage is 14.5V, then the current battery capacity percentage is (12-10.8) / (14.5-10.8) = 32.43%. However, this calculation method has the same capacity percentage at the same voltage in different charging states and different temperature stages. Due to temperature compensation and different charging stages, the actual full charge voltage is different, so this calculation method has a large error.
[0048] The present application combines the first temperature compensation coefficient and the current ambient temperature to preferentially calculate the first actual full voltage, and the calculation method is U1=U2+(T-T1)*K1, wherein U1 is the first actual full voltage, U2 is the theoretical full voltage value of the battery under the forced charging mode, T is room temperature, T1 is the current ambient temperature, and K1 is the first temperature compensation coefficient. According to the above formula, the actual full voltage of the current battery is first calculated, and then the first capacity percentage of the battery is calculated based on the actual full voltage. The method for calculating the first capacity percentage is generally based on the second formula to calculate the first capacity percentage of the battery. The second formula is
[0049] Among them, U3 is the first capacity percentage of the battery, U4 is the current battery voltage,
[0050] U is the low voltage protection point voltage, and U1 is the first actual full charge voltage.
[0051] Take the colloidal battery as an example, assuming that the current voltage is 12V, the low voltage protection point voltage is 10.8V, and in the strong charging mode, the theoretical full charge voltage of the battery is 14.5V, the theoretical full charge voltage is the full charge voltage at room temperature, and the temperature compensation coefficient is 0.025V / ℃. The battery capacity percentage under strong charging mode and different temperatures is calculated with the above parameters, as shown in the following table:
[0052]
[0053] From the above table, it can be found that the capacity percentage is different at different temperature stages for the same voltage. By using the above method, the battery capacity percentage at different temperatures and charging states can be calculated more accurately.
[0054] S104: If it is determined that the charging mode is the floating charging mode, a second temperature compensation coefficient corresponding to the floating charging mode and the current ambient temperature are obtained.
[0055] In one example, for common lead-acid and gel batteries at room temperature (25 degrees Celsius), the voltage difference for each 2V battery reaches 0.002-0.003V for every 1 degree Celsius drop or rise in ambient temperature; in winter and summer, the outdoor ambient temperature in some areas can reach as low as minus 20 degrees Celsius and as high as 60 degrees Celsius. At this time, it is necessary to give corresponding voltage compensation to the temperature change of the battery, which is called "temperature compensation". It is necessary to perform temperature compensation on the battery. If temperature compensation is not performed, the charging capacity of the battery in winter may only reach 80% of that at room temperature, or even lower, which ultimately causes the battery to fail to meet the use standard when discharged.
[0056] If it is determined that the current battery charging mode is a floating charge mode, then the second temperature compensation coefficient corresponding to the forced charge mode is obtained. The temperature compensation coefficient under the floating charge mode is different from the temperature compensation coefficient under the forced charge mode. The second temperature compensation coefficient here can be obtained by combining the above-mentioned temperature compensation and training the battery multiple times. Here it can be 0.02V / ℃; since the ambient temperature also affects the capacity percentage of the battery, when calculating the current capacity percentage of the battery, it is also necessary to obtain the current ambient temperature through a thermometer or other method.
[0057] S105, calculating a second actual full charge voltage in combination with a second temperature compensation coefficient and a current ambient temperature, and calculating a second capacity percentage of the battery according to the second actual full charge voltage.
[0058] In one example, the current battery capacity percentage is usually calculated based on voltage, i.e. (current battery voltage - low voltage protection point voltage) / (battery full voltage - low voltage protection point voltage). For example, assuming the current voltage is 13.2V, the low voltage protection point voltage is 10.8V, and the battery full voltage is 14.5V, then the current battery capacity percentage is (13.2-10.8) / (14.5-10.8) = 64.86%. However, this calculation method has the same capacity percentage at the same voltage in different charging states and different temperature stages. Due to temperature compensation and different charging stages, the actual full charge voltage is different, so this calculation method has a large error.
[0059] The present application combines the first temperature compensation coefficient and the current ambient temperature to preferentially calculate the first actual full voltage. The calculation method calculates the second actual full voltage according to the third formula. The third formula is u1=u2+(T-T1)*K2, where u1 is the first actual full voltage, u2 is the theoretical full charge voltage value of the battery under floating charge mode, T is room temperature, T1 is the current ambient temperature, and K2 is the second temperature compensation coefficient. According to the above formula, the actual full voltage of the current battery is first calculated, and then the second capacity percentage of the battery is calculated based on the actual full voltage. The method for calculating the second capacity percentage generally calculates the second capacity percentage of the battery according to the third formula. The third formula is Among them, u3 is the second capacity percentage of the battery, U4 is the current battery voltage, U is the low voltage protection point voltage, and u1 is the second actual full charge voltage.
[0060] Take the colloidal battery as an example, assuming that the current voltage is 12V, the current low-voltage protection point voltage is 10.8V, and in the floating charge mode, the theoretical full charge voltage of the battery is 13.7V, the theoretical full charge voltage is the full charge voltage at room temperature, and the temperature compensation coefficient is 0.02V / ℃. The battery capacity percentage under floating charge mode and different temperatures is calculated with the above parameters, as shown in the following table:
[0061]
[0062] From the above table, it can be found that the capacity percentage is different at different temperature stages for the same voltage. By using the above method, the battery capacity percentage at different temperatures and charging states can be calculated more accurately.
[0063] Monitor the capacity percentage of the battery in real time to obtain monitoring data; send the monitoring data to the host computer or human-machine interface so that the user can manage and maintain the battery according to the monitoring data.
[0064] In one example, real-time monitoring of the battery capacity percentage is achieved by using sensors or monitoring systems. Sensors can measure parameters such as the battery voltage, current, and temperature. The monitoring data can be sent to a host computer or a human-machine interface via wireless communication or wired connection. The host computer can be a dedicated monitoring system or a software application on a computer or mobile device, and the human-machine interface can be a display screen, a control panel, or an application on a mobile device.
[0065] Users can view the battery capacity percentage data in real time through the host computer or human-machine interface. Based on the monitoring data, users can determine whether the remaining battery power is sufficient and whether charging or replacement of the battery is required.
[0066] In addition, the monitoring system can also provide an alarm function. When the battery capacity percentage is lower than the set threshold, the system will automatically send an alarm to notify the user. The user can take timely measures to avoid problems caused by insufficient battery power. By real-time monitoring and management of the battery capacity percentage, the user can better understand the battery usage and perform maintenance and management in a timely manner to extend the battery life and improve the reliability and performance of the battery.
[0067] Based on the above method, the present application also discloses a battery capacity percentage calculation device, such as Figure 2 As shown, Figure 2 It is a structural schematic diagram of a battery capacity percentage calculation device provided in an embodiment of the present application.
[0068] A device for calculating the capacity percentage of a battery comprises: a determination module 1, a first acquisition module 2, a first calculation module 3, a second acquisition module 4 and a second calculation module 5; wherein the determination module 1 is used to determine the charging mode of the battery according to the current battery voltage, and the charging modes include a forced charging mode and a floating charging mode; the first acquisition module 2 is used to obtain a first temperature compensation coefficient and a current ambient temperature corresponding to the forced charging mode if the charging mode is determined to be the forced charging mode; the first calculation module 3 is used to calculate a first actual full charge voltage in combination with the first temperature compensation coefficient and the current ambient temperature, and calculate a first capacity percentage of the battery according to the first actual full charge voltage; the second acquisition module 4 is used to obtain a second temperature compensation coefficient and the current ambient temperature corresponding to the floating charging mode if the charging mode is determined to be the floating charging mode; the second calculation module 5 is used to calculate a second actual full charge voltage in combination with the second temperature compensation coefficient and the current ambient temperature, and calculate a second capacity percentage of the battery according to the second actual full charge voltage.
[0069] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0070] See also Figure 3 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 3 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .
[0071] The communication bus 1002 is used to realize the connection and communication between these components.
[0072] The user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
[0073] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0074] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or more combinations of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.
[0075] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Figure 3 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a method for calculating the capacity percentage of a battery. Figure 3 application.
[0076] exist Figure 3In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 1001 can be used to call a battery capacity percentage calculation method stored in the memory 1005 Figure 3 The application, when executed by one or more processors, enables the electronic device to execute one or more of the methods described in the above embodiments.
[0077] An electronic device readable storage medium stores instructions, which, when executed by one or more processors, enable the electronic device to execute one or more of the methods described in the above embodiments.
[0078] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0079] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0080] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which 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 service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0081] 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.
[0082] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0083] 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 memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0084] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for calculating the capacity percentage of a battery, characterized in that: The method comprises: Determine the charging mode of the battery according to the current battery voltage, the charging mode including a forced charging mode and a floating charging mode; if it is determined that the charging mode is the forced charging mode, obtain a first temperature compensation coefficient corresponding to the forced charging mode and the current ambient temperature; Calculating a first actual full voltage in combination with the first temperature compensation coefficient and the current ambient temperature, and calculating a first capacity percentage of the battery according to the first actual full voltage; The calculating a first actual full charge voltage by combining the first temperature compensation coefficient and the current ambient temperature includes: Calculate the first actual full charge voltage according to the first formula, the first formula is U1=U2+(T-T1)*K1, wherein U1 is the first actual full charge voltage, U2 is the theoretical full charge voltage value of the battery under the forced charge mode, T is the normal temperature, T1 is the current ambient temperature, and K1 is the first temperature compensation coefficient; The calculating, according to the first actual full voltage, a first capacity percentage of the battery comprises: The first capacity percentage of the battery is calculated according to a second formula, wherein the second formula is: Among them, U3 is the first capacity percentage of the battery, U4 is the current battery voltage, U is the low voltage protection point voltage, U1 is the first actual full voltage; If it is determined that the charging mode is the floating charging mode, obtaining a second temperature compensation coefficient corresponding to the floating charging mode and the current ambient temperature; Calculating a second actual full voltage in combination with the second temperature compensation coefficient and the current ambient temperature, and calculating a second capacity percentage of the battery according to the second actual full voltage; The calculating the second actual full charge voltage by combining the second temperature compensation coefficient and the current ambient temperature includes: calculating the second actual full charge voltage according to a third formula, the third formula is u1=u2+(T-T1)*K2, wherein u1 is the second actual full charge voltage, u2 is the theoretical full charge voltage value of the battery under the floating charge mode, T is the normal temperature, T1 is the current ambient temperature, and K2 is the second temperature compensation coefficient; The calculating, according to the second actual full voltage, a second capacity percentage of the battery comprises: The second capacity percentage of the battery is calculated according to a fourth formula, wherein the fourth formula is: Among them, u3 is the second capacity percentage of the battery, U4 is the current battery voltage, U is the low voltage protection point voltage, and u1 is the second actual full voltage.
2. The method for calculating the capacity percentage of a battery according to claim 1, characterized in that: Determining the charging mode of the battery according to the current battery voltage includes: Get the current battery voltage; Determining whether the current battery voltage is within a preset range; If the current battery voltage is within the preset range, it is determined that the battery is charged in the forced charging mode; if the current battery voltage is not within the preset range, it is determined that the battery is charged in the floating charging mode.
3. The method for calculating the capacity percentage of a battery according to claim 1, characterized in that: The method further comprises: monitoring the capacity percentage of the battery in real time to obtain monitoring data; The monitoring data is sent to a host computer or a human-machine interface, so that a user can manage and maintain the battery according to the monitoring data.
4. A device for calculating the capacity percentage of a battery, characterized in that: The device comprises: a determination module (1), a first acquisition module (2), a first calculation module (3), a second acquisition module (4) and a second calculation module (5); wherein: The determination module (1) is used to determine the charging mode of the battery according to the current battery voltage, and the charging mode includes a forced charging mode and a floating charging mode; The first acquisition module (2) is used to acquire a first temperature compensation coefficient corresponding to the strong charging mode and the current ambient temperature if it is determined that the charging mode is the strong charging mode; The first calculation module (3) is used to calculate a first actual full voltage in combination with the first temperature compensation coefficient and the current ambient temperature, and calculate a first capacity percentage of the battery based on the first actual full voltage; The calculating a first actual full charge voltage by combining the first temperature compensation coefficient and the current ambient temperature includes: Calculate the first actual full charge voltage according to the first formula, the first formula is U1=U2+(T-T1)*K1, wherein U1 is the first actual full charge voltage, U2 is the theoretical full charge voltage value of the battery under the forced charge mode, T is the normal temperature, T1 is the current ambient temperature, and K1 is the first temperature compensation coefficient; The calculating, according to the first actual full voltage, a first capacity percentage of the battery comprises: The first capacity percentage of the battery is calculated according to a second formula, wherein the second formula is: Among them, U3 is the first capacity percentage of the battery, U4 is the current battery voltage, U is the low voltage protection point voltage, U1 is the first actual full voltage; The second acquisition module (4) is used to acquire a second temperature compensation coefficient corresponding to the floating charging mode and the current ambient temperature if it is determined that the charging mode is the floating charging mode; The second calculation module (5) is used to calculate a second actual full voltage in combination with the second temperature compensation coefficient and the current ambient temperature, and calculate a second capacity percentage of the battery according to the second actual full voltage; The calculating the second actual full charge voltage by combining the second temperature compensation coefficient and the current ambient temperature includes: calculating the second actual full charge voltage according to a third formula, the third formula is u1=u2+(T-T1)*K2, wherein u1 is the second actual full charge voltage, u2 is the theoretical full charge voltage value of the battery under the floating charge mode, T is the normal temperature, T1 is the current ambient temperature, and K2 is the second temperature compensation coefficient; The calculating, according to the second actual full voltage, a second capacity percentage of the battery comprises: The second capacity percentage of the battery is calculated according to a fourth formula, wherein the fourth formula is: Among them, u3 is the second capacity percentage of the battery, U4 is the current battery voltage, U is the low voltage protection point voltage, and u1 is the second actual full charge voltage.
5. An electronic device, characterized in that: The electronic device comprises a processor (1001), a memory (1005), a user interface (1003) and a network interface (1004), wherein the memory (1005) is used to store instructions, the user interface (1003) and the network interface (1004) are used to communicate with other devices, and the processor (1001) is used to execute the instructions stored in the memory so that the electronic device executes the method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 3.
