Voltage balancing method, terminal equipment and storage medium

By monitoring and updating the battery voltage difference and current in real time, and dynamically selecting the voltage equalization mode, the problem of incomplete discharge of the battery cell is solved, and the battery capacity utilization rate and terminal equipment intelligence are improved.

CN119030057APending Publication Date: 2024-11-26GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310588438.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-23
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The existing battery equalization strategy uses PMOS for battery drainage when the pressure difference is small, which may cause the battery cell to be shut down before it is completely discharged, reducing the usage rate of battery capacity.

Method used

By obtaining the voltage difference parameters and current between batteries in real time during discharge, updating the current record array, determining the current mean and equalizing reference voltage, dynamically selecting a combination of load switches and equalizing chips to achieve adaptive voltage equalization.

Benefits of technology

It improves the utilization rate of the remaining capacity of the battery cell, improves the intelligence of terminal equipment and the charging and discharging efficiency of the battery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030057A_ABST
    Figure CN119030057A_ABST
Patent Text Reader

Abstract

The invention discloses a voltage balancing method, which is used for carrying out voltage balancing between a first battery and a second battery, and comprises the following steps of: when the first battery and the second battery are discharged by adopting a first balancing mode, acquiring a first voltage difference parameter and a first real-time current of the first battery and the second battery at the current moment; updating the current recording array according to the first real-time current; wherein the first balancing mode represents that voltage balancing is carried out only through a load switch; the current recording array is used for recording at least one current value in a period of time; under the condition that the first voltage difference parameter meets a first synchronous equalization condition, determining a current mean value according to the current record array, and determining an equalization reference voltage corresponding to the current mean value; under the condition of determining that a second synchronous equalization condition is met based on the equalization reference voltage, discharging the first battery and the second battery by adopting a second equalization mode; wherein the second balancing mode represents that voltage balancing is carried out through the load switch and the balancing chip at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery technology, and in particular to a voltage balancing method, a terminal device and a storage medium. Background Art

[0002] At present, the common voltage balancing strategy during discharge is to use the balancing chip for voltage balancing when the voltage difference between battery 1 and battery 2 is relatively large, and to turn on the PMOS for battery discharge when the voltage difference between the two is relatively small, so as to take into account the speed of dynamic voltage difference balancing and capacity loss. You can also choose to turn on balancing and PMOS at the same time when the voltage of any battery is lower than 3.6V and the voltage difference between the two batteries exceeds 60mv.

[0003] However, setting certain conditions to control the balancing and PMOS to be turned on at the same time is not reasonable and has certain defects. It may cause one of the two cells to shut down due to insufficient discharge, thereby reducing the utilization rate of the battery capacity. Summary of the invention

[0004] The embodiments of the present application provide a voltage balancing method, a terminal device, and a storage medium, which can improve the utilization rate of the remaining capacity of the battery cell and further improve the intelligence of the terminal device.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a voltage balancing method, the method comprising:

[0007] When the first balancing mode is adopted to discharge the first battery and the second battery, a first voltage difference parameter and a first real-time current between the first battery and the second battery at a current moment are obtained, and a current recording array is updated according to the first real-time current; wherein the first balancing mode represents that voltage balancing is performed only through a load switch; and the current recording array is used to record at least one current value in a period of time;

[0008] In the case where the first voltage difference parameter satisfies a first synchronous balancing condition, determining a current mean value according to the current recording array, and determining a balancing reference voltage corresponding to the current mean value;

[0009] When it is determined based on the equalization reference voltage that the second synchronous equalization condition is met, the first battery and the second battery are discharged in a second equalization mode; wherein the second equalization mode represents voltage equalization through a load switch and a equalization chip at the same time.

[0010] In a second aspect, an embodiment of the present application provides a terminal device, the terminal device comprising an acquisition unit, an update unit, a determination unit, and a discharge unit;

[0011] The acquisition unit is used to acquire a first voltage difference parameter and a first real-time current between the first battery and the second battery at a current moment when the first balancing mode is adopted to discharge the first battery and the second battery; wherein the first balancing mode represents voltage balancing only through the load switch; and the current recording array is used to record at least one current value in a period of time;

[0012] The updating unit is used to update the current recording array according to the first real-time current;

[0013] The determining unit is configured to determine a current mean value according to the current recording array and determine a balanced reference voltage corresponding to the current mean value when the first voltage difference parameter satisfies a first synchronous balancing condition;

[0014] The discharging unit is used for discharging the first battery and the second battery in a second balancing mode when it is determined based on the balancing reference voltage that a second synchronous balancing condition is satisfied; wherein the second balancing mode represents voltage balancing through a load switch and a balancing chip at the same time.

[0015] In a third aspect, an embodiment of the present application provides a terminal device, which includes a processor and a memory storing instructions executable by the processor. When the instructions are executed by the processor, the method described in the first aspect above is implemented.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, the method described in the first aspect above is implemented.

[0017] The embodiment of the present application provides a voltage balancing method, a terminal device and a storage medium, wherein the method is used to perform voltage balancing between a first battery and a second battery. When the first balancing mode is adopted to discharge the first battery and the second battery, a first voltage difference parameter and a first real-time current between the first battery and the second battery at the current moment are obtained, and a current recording array is updated according to the first real-time current; wherein the first balancing mode represents that voltage balancing is performed only through a load switch; the current recording array is used to record at least one current value in a period of time; when the first voltage difference parameter satisfies a first synchronous balancing condition, a current mean is determined according to the current recording array, and a balancing reference voltage corresponding to the current mean is determined; when it is determined based on the balancing reference voltage that a second synchronous balancing condition is met, the first battery and the second battery are discharged using a second balancing mode; wherein the second balancing mode represents that voltage balancing is performed through both the load switch and the balancing chip. That is to say, in the present application, during discharge, the terminal device can, in the first balancing mode in which only the load switch is turned on, obtain and monitor the voltage difference parameter between the first battery and the second battery in real time to preliminarily determine whether the first synchronous balancing condition is met. If it is met, the real-time current corresponding to the first battery and the second battery can be further used to further determine the current mean value representing the system power consumption, and then the dynamic equilibrium voltage point adapted to the system power consumption can be determined, that is, the equilibrium reference voltage, so that after further determining that the second synchronous balancing condition is met by using the equilibrium reference voltage, the second balancing mode of simultaneously turning on the load switch and the balancing chip for voltage balancing can be selected. It can be seen from this that after turning on the load switch PMOS, the adaptive voltage of the load switch and the balancing chip can be dynamically selected to be turned on simultaneously based on the power consumption factor by determining the dynamic equilibrium voltage point corresponding to the system power consumption, thereby improving the utilization rate of the remaining capacity of the battery cell and further improving the intelligence of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The hardware block diagram of the non-equal capacity series active equalization solution;

[0019] Figure 2 Schematic diagram of the implementation process of the voltage balancing method Figure 1 ;

[0020] Figure 3 Schematic diagram of the implementation process of the voltage balancing method Figure 2 ;

[0021] Figure 4 Schematic diagram of the implementation process of the voltage balancing method Figure 3 ;

[0022] Figure 5 Schematic diagram of the implementation process of the voltage balancing method Figure 4 ;

[0023] Figure 6 Schematic diagram of the structure of the terminal device proposed in the embodiment of the present application Figure 1 ;

[0024] Figure 7 Schematic diagram of the structure of the terminal device proposed in the embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the drawings.

[0026] With the continuous development of terminal technology, the terminal's form and shape are becoming more and more diverse, and foldable mobile phones based on flexible screens are gradually being used by more and more users. Among them, for foldable terminal devices such as foldable mobile phones, most of them currently adopt the parallel charging solution of large and small batteries, the series charging solution of equal-capacity batteries, and the series active balancing solution of non-equal-capacity batteries.

[0027] For example, Figure 1 The hardware block diagram of the non-equal capacitance series active equalization solution is shown in Figure 2. Figure 1 As shown in the figure, for cells of different capacities, they can be discharged in the following two ways: one is to use the path marked by VBAT1 to supply power to the system through the 2:1 mode of the constant power (CP) chip with the voltages of battery 1 and battery 2; the other is to discharge the battery directly through the load PMOS switch without passing through CP. In this case, it can be understood that the battery with higher voltage is charging the battery with relatively lower voltage while supplying power to the system.

[0028] In the above Figure 1 In the embodiment, the function of the balancing chip in the sub-board is to realize current transfer, that is, to realize the current transfer function between battery 1 and battery 2, so as to control the relative battery voltage difference between battery 1 and battery 2.

[0029] It can be understood that since battery 1 and battery 2 are connected in series, ideally the current ibat1 of battery 1 and the current ibat2 of battery 2 should be equal. Assuming that the capacity of battery 1 is small, the voltage of battery 1 rises quickly during the charging process. At this time, in order to maintain a fixed voltage difference between battery 1 and battery 2, the balancing function needs to be turned on, that is, a balancing chip needs to be used to transfer part of the current of battery 1 to battery 2.

[0030] It should be noted that compared with the charging process, there are two main methods for maintaining the voltage difference between the two cells during the discharge process: one is to use a balancing chip to actively balance the battery current; the other is to use a load switch PMOS for battery discharge. Among them, when using a balancing chip to control the voltage difference between the two batteries, there will be efficiency problems because the balancing chip consumes power and losses during operation and conversion; and the method of using PMOS for battery discharge cannot flexibly control the time for the voltage difference between the two batteries to reach equilibrium due to the problem of uncontrollable current.

[0031] At present, during discharge, a common voltage balancing strategy is to use a balancing chip for voltage balancing when the voltage difference between battery 1 and battery 2 is relatively large, and to turn on PMOS for battery discharge when the voltage difference between the two is relatively small, so as to take into account the speed and capacity loss of dynamic voltage difference balancing.

[0032] However, if the voltage difference is large, balancing is turned on, and if the voltage difference is small, PMOS is turned on. When the system power consumption continues to be large, if only PMOS is turned on, the voltage difference between battery 1 and battery 2 will become larger and larger. If the mobile phone is always turned on, then balancing will definitely be turned on when the voltage difference is widened to the voltage state where balancing is turned on, but the mobile phone system will shut down when the voltage of any battery is lower than 3.3v. In order to reduce this effect, you can choose to turn on balancing and PMOS at the same time when the voltage of any battery is lower than 3.6v and the voltage difference between the two batteries exceeds 60mv.

[0033] Furthermore, there are certain defects in setting certain conditions to control the balancing solution of turning on the balancing and PMOS at the same time. Specifically, under normal circumstances, when only PMOS is turned on, the voltage difference between the small cell and the large cell will be dynamically balanced, that is, the voltage difference will maintain a fixed value, but the actual situation is that when the system power consumption fluctuates, the impedance from the system load point to the battery end is different, so the current supplied to the system will fluctuate. When PMOS is turned on for balancing, if the system load continues to be large, the voltage difference between the small cell and the large cell will continue to increase (while each is outputting), and it is possible that the voltage difference between the two batteries is still less than 60mv until the power is turned off, that is, one of the cells may not be fully discharged.

[0034] It can be seen from this that the common equalization scheme of setting the conditions of turning on PMOS and equalization at the same time to any battery voltage lower than 3.6V is not reasonable. There may be a situation where one of the two cells is not fully discharged and shuts down, reducing the utilization rate of the battery capacity.

[0035] Therefore, an embodiment of the present application proposes a voltage balancing method for dynamically selecting an adaptive voltage according to a voltage difference change between two batteries and the current average power consumption of the batteries.

[0036] That is to say, in order to solve the above problems, in an embodiment of the present application, when the first balancing mode is adopted to discharge the first battery and the second battery, the first voltage difference parameter and the first real-time current of the first battery and the second battery at the current moment are obtained, and the current recording array is updated according to the first real-time current; wherein, the first balancing mode represents that voltage balancing is performed only through the load switch; the current recording array is used to record at least one current value in a period of time; when the first voltage difference parameter satisfies the first synchronous balancing condition, the current mean is determined according to the current recording array, and the balancing reference voltage corresponding to the current mean is determined; when it is determined based on the balancing reference voltage that the second synchronous balancing condition is met, the second balancing mode is adopted to discharge the first battery and the second battery; wherein, the second balancing mode represents that voltage balancing is performed through the load switch and the balancing chip at the same time. That is to say, in the present application, during discharge, the terminal device can, in the first balancing mode in which only the load switch is turned on, obtain and monitor the voltage difference parameter between the first battery and the second battery in real time to preliminarily determine whether the first synchronous balancing condition is met. If it is met, the real-time current corresponding to the first battery and the second battery can be further used to further determine the current mean value representing the system power consumption, and then the dynamic equilibrium voltage point adapted to the system power consumption can be determined, that is, the equilibrium reference voltage, so that after further determining that the second synchronous balancing condition is met by using the equilibrium reference voltage, the second balancing mode of simultaneously turning on the load switch and the balancing chip for voltage balancing can be selected. It can be seen from this that after turning on the load switch PMOS, the adaptive voltage of the load switch and the balancing chip can be dynamically selected to be turned on simultaneously based on the power consumption factor by determining the dynamic equilibrium voltage point corresponding to the system power consumption, thereby improving the utilization rate of the remaining capacity of the battery cell and further improving the intelligence of the terminal device.

[0037] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0038] An embodiment of the present application provides a voltage balancing method, which is applied to a terminal device, wherein the terminal device can be configured with any number of batteries for charging and discharging. Accordingly, the voltage balancing method proposed in the embodiment of the present application can be used to balance the voltages of different batteries.

[0039] Exemplarily, in some embodiments, it is assumed that the terminal device is configured with two batteries, such as a first battery and a second battery. Accordingly, the voltage balancing method proposed in the embodiments of the present application can be used to perform voltage balancing between the first battery and the second battery.

[0040] Furthermore, in the embodiments of the present application, Figure 2 Schematic diagram of the implementation process of the voltage balancing method Figure 1 ,like Figure 2 As shown, the method for performing voltage balancing on a terminal device may include the following steps:

[0041] Step 101, when the first balancing mode is adopted to discharge the first battery and the second battery, a first voltage difference parameter and a first real-time current between the first battery and the second battery at the current moment are obtained, and a current recording array is updated according to the first real-time current; wherein the first balancing mode represents voltage balancing only through the load switch; and the current recording array is used to record at least one current value in a period of time.

[0042] In an embodiment of the present application, when the first balancing mode is adopted to discharge the first battery and the second battery, the first voltage difference parameter of the first battery and the second battery at the current moment can be obtained, and the first real-time current of the first battery and the second battery at the current moment can be obtained, and the current recording array can be updated according to the first real-time current.

[0043] It should be noted that, in the embodiment of the present application, the first balancing mode represents voltage balancing only through the load switch. In the process of discharging, in order to ensure that the voltage difference between the first battery and the second battery is maintained within a fixed value range, the voltage between the first battery and the second battery can be balanced.

[0044] It can be understood that in the embodiments of the present application, there are three main methods for controlling the voltage difference between two batteries during the discharge process: one is to use a balancing chip to actively balance the battery current; another is to use a load switch PMOS for battery discharge; and the other is to simultaneously turn on the balancing chip and the load switch PMOS for voltage balancing.

[0045] Correspondingly, in the embodiments of the present application, the balancing method of only turning on the load switch PMOS for voltage balancing can be understood as the first balancing mode, the balancing method of simultaneously turning on the load switch PMOS and the balancing chip for voltage balancing can be understood as the second balancing mode, and the balancing method of only turning on the balancing chip for voltage balancing can be understood as the third balancing mode.

[0046] It can be seen that in the embodiments of the present application, the terminal device applying the voltage balancing method can be configured with any number of batteries, and in the process of balancing the voltages of different batteries, the corresponding hardware circuit needs to be provided with a load-enabling switch PMOS and a balancing chip at the same time.

[0047] Further, in an embodiment of the present application, when it is determined that the terminal device uses the first balancing mode to discharge the first battery and the second battery, the first voltage difference parameter between the first battery and the second battery at the current moment can be obtained first. When obtaining the first voltage difference parameter between the first battery and the second battery at the current moment, the first real-time voltage of the first battery at the current moment can be obtained first, and the second real-time voltage of the second battery at the current moment can be obtained at the same time; then, the first voltage difference parameter corresponding to the current moment can be determined based on the first real-time voltage and the second real-time voltage.

[0048] That is to say, in the embodiment of the present application, the first voltage difference parameter can be used to determine the voltage difference between the first battery and the second battery at the current moment.

[0049] Exemplarily, in some embodiments, when determining the first pressure difference parameter corresponding to the current moment based on the first real-time voltage and the second real-time voltage, you can choose to directly determine the difference between the first real-time voltage and the second real-time voltage as the first pressure difference parameter, or you can choose to determine the difference between the second real-time voltage and the first real-time voltage as the first pressure difference parameter, or you can choose to determine the absolute value of the difference between the first real-time voltage and the second real-time voltage as the first pressure difference parameter.

[0050] For example, assuming that the first real-time voltage of the first battery at the current moment is b1_volt, the second real-time voltage of the second battery at the current moment is b2_volt, and the first voltage difference parameter between the first battery and the second battery at the current moment is curr_volt_detal, then the value of |b1_volt-b2_volt| can be determined as curr_volt_detal.

[0051] Further, in an embodiment of the present application, when it is determined that the terminal device uses the first balancing mode to discharge the first battery and the second battery, the first real-time current of the first battery and the second battery at the current moment can also be obtained simultaneously. The first real-time current can be the real-time current of the battery with a smaller voltage at the current moment.

[0052] It should be noted that, in an embodiment of the present application, when obtaining the first real-time current of the first battery and the second battery at the current moment, the first current of the first battery at the current moment and the second current of the second battery at the current moment can be obtained first; then, when the first real-time voltage is greater than or equal to the second real-time voltage, the second current can be determined as the first real-time current; or when the first real-time voltage is less than the second real-time voltage, the second current can be determined as the first real-time current.

[0053] That is to say, in the embodiment of the present application, the terminal device can first simultaneously obtain the current and voltage of the first battery and the second battery at the current moment, and then determine the current of the battery with the smaller voltage as the first real-time current. Specifically, if the real-time voltage of the first battery at the current moment is smaller, the first current corresponding to the first battery is determined as the first real-time current, and if the real-time voltage of the second battery at the current moment is smaller, the second current corresponding to the second battery is determined as the first real-time current.

[0054] Furthermore, in an embodiment of the present application, after obtaining the first real-time current of the first battery and the second battery at the current moment, the current recording array may be further updated according to the first real-time current.

[0055] It should be noted that, in the embodiment of the present application, the current recording array can be used to record at least one current value in a period of time, that is, the current recording array can record and store current data in a period of time. Among them, the current recording array can store any amount of current data.

[0056] It can be understood that, in the embodiment of the present application, when the current recording array is updated using the first real-time current, the first real-time current can be selected to be added to the current recording array.

[0057] For example, in some embodiments, assuming that the first real-time current is current and the current record array is arrary, then you can choose to slide the current window to the left by one, and fill the empty space with current, that is, arrary[i]=arrary[i+1]; arrary[i+1]=currnet; i=i+1.

[0058] It should be noted that, in the embodiment of the present application, before performing the equalization process, the current recording array may be initialized first, for example, the current value in the current recording array may be initialized to 0.

[0059] Further, in an embodiment of the present application, after obtaining the first pressure difference parameter between the first battery and the second battery at the current moment, it is possible to judge whether the first pressure difference parameter satisfies the first synchronous balancing condition. In the process of judging whether the first pressure difference parameter satisfies the first synchronous balancing condition, the use of the balancing count parameter can be combined, that is, the first pressure difference parameter can be judged according to the balancing count parameter whether it satisfies the first synchronous balancing condition.

[0060] It should be noted that, in the embodiment of the present application, the first synchronous balancing condition can be used to determine whether voltage balancing is performed by the balancing chip and the load switch at the same time, that is, the first synchronous balancing condition can be used to determine whether to use the second balancing mode for voltage balancing.

[0061] It should be noted that, in the embodiment of the present application, the equalization count parameter can be used to determine the number of times the pressure difference increase determination result occurs during the equalization process.

[0062] For example, in some embodiments, the equalization count parameter for counting the determination results of the pressure difference increase can be represented by count. For example, if the value of count is 3, it can be determined that the number of determination results of the pressure difference increase in the equalization process is 3.

[0063] It should be noted that, in the embodiment of the present application, before performing the balancing process, the balancing count parameter may be initialized first, for example, the balancing count parameter may be initialized to 0.

[0064] It should be noted that, in the embodiment of the present application, the first synchronous balancing condition can be understood as determining whether the voltage difference between the first battery and the second battery continues to increase through the balancing count parameter. If so, it can be considered that the first synchronous balancing condition is met.

[0065] Furthermore, in an embodiment of the present application, when judging whether the first pressure difference parameter satisfies the first synchronous balancing condition, the balancing count parameter can be updated first according to the first pressure difference parameter and the initial pressure difference parameter between the first battery and the second battery; after completing the update process of the balancing count parameter, the balancing count parameter is compared with a preset count threshold, and when the balancing count parameter is greater than the preset count threshold, it can be determined that the first pressure difference parameter satisfies the first synchronous balancing condition.

[0066] It should be noted that, in the embodiment of the present application, the preset counting threshold can be used to limit the number of determination results of the pressure difference increase during the equalization process, that is, the preset counting threshold can be an upper limit value of the number of determination results of the pressure difference increase. The preset counting threshold can be any value greater than 0.

[0067] Exemplarily, in some embodiments, assuming that the preset count threshold is 5 and the balancing count parameter count is 6, that is, the balancing count parameter is greater than the preset count threshold, then it can be determined that the number of judgment results of the voltage difference increase during the balancing process has exceeded the upper limit threshold, and it can be considered that the effect of voltage balancing only through the load switch is not ideal, and then it can be considered that the first voltage difference parameter satisfies the first synchronous balancing condition, so that it can be further determined whether it is necessary to turn on the load switch and the balancing chip at the same time to perform balancing processing.

[0068] It is understandable that, in the embodiment of the present application, the initial pressure difference parameter between the first battery and the second battery may be a pressure difference parameter between the first battery and the second battery at any time before the current time, may be a pre-set pressure difference parameter, or may be a pressure difference parameter between the first battery and the second battery at the start time of the equalization process. This application does not make any specific limitation.

[0069] For example, in some embodiments, when starting the balancing process, the voltage difference between the first battery and the second battery may be obtained first, and then the initial voltage difference parameter may be set according to the voltage difference.

[0070] Furthermore, in an embodiment of the present application, when updating the balancing count parameter based on the first pressure difference parameter and the initial pressure difference parameter between the first battery and the second battery, the first pressure difference parameter and the initial pressure difference parameter can be compared first. When the first pressure difference parameter is greater than the initial pressure difference parameter, the balancing count parameter can be added by one; when the first pressure difference parameter is less than or equal to the initial pressure difference parameter, the balancing count parameter can be reset to zero.

[0071] It can be understood that in the embodiment of the present application, when comparing the first pressure difference parameter and the initial pressure difference parameter, if the first pressure difference parameter is greater than the initial pressure difference parameter, then it can be considered that the voltage difference between the first battery and the second battery has increased. At this time, it can be selected to add one to the balancing count parameter, that is, the number of recorded pressure difference increase judgment results is increased by one.

[0072] Correspondingly, in an embodiment of the present application, if the first pressure difference parameter is less than or equal to the initial pressure difference parameter, it can be considered that the voltage difference between the first battery and the second battery has not increased, that is, it can be determined that the voltage difference between the first battery and the second battery has not continued to increase, so it can be selected to reset the balancing count parameter to zero, that is, the number of recorded pressure difference increase judgment results is cleared.

[0073] Exemplarily, in some embodiments, assuming that the first voltage difference parameter is curr_volt_detal, the initial voltage difference parameter is pre_volt_detal, and the balance count parameter is count, if curr_volt_detal is greater than pre_volt_detal, count+1 can be executed; if curr_volt_detal is less than or equal to pre_volt_detal, count can be cleared.

[0074] Further, in an embodiment of the present application, after updating the balancing count parameter according to the first pressure difference parameter and the initial pressure difference parameter between the first battery and the second battery, the first pressure difference parameter may be selected to be set as the initial pressure difference parameter.

[0075] It should be noted that in an embodiment of the present application, after the balancing count parameter is updated through the comparison result of the first pressure difference parameter and the initial pressure difference parameter, the first pressure difference parameter corresponding to the current moment can be set as the initial pressure difference parameter, so that when the balancing process is performed at the next moment, the updated initial pressure difference parameter can be used, that is, the first pressure difference parameter at the current moment is compared with the pressure difference parameter corresponding to the next moment, so as to more accurately judge whether the voltage difference between the first battery and the second battery increases.

[0076] Further, in an embodiment of the present application, after updating the balancing count parameter according to the first pressure difference parameter and the initial pressure difference parameter between the first battery and the second battery, when the balancing count parameter is less than or equal to the preset count threshold, the pressure difference parameter between the first battery and the second battery at the next moment can continue to be obtained.

[0077] It should be noted that, in an embodiment of the present application, after the balancing count parameter is updated through the comparison result of the first pressure difference parameter and the initial pressure difference parameter, if the balancing count parameter is less than or equal to the preset count threshold, the balancing process can be continued to obtain the pressure difference parameter corresponding to the first battery and the second battery at the next moment, so as to further determine whether the voltage difference between the first battery and the second battery increases.

[0078] It can be understood that in an embodiment of the present application, for the next moment, the pressure difference parameter obtained between the first battery and the second battery can be compared with the updated initial pressure difference parameter (that is, the first pressure difference parameter corresponding to the current moment), so as to more accurately determine whether the voltage difference between the first battery and the second battery continues to increase.

[0079] Further, in an embodiment of the present application, after comparing the balancing count parameter with the preset count threshold, if the balancing count parameter is greater than the preset count threshold, the balancing count parameter may be further reset to zero.

[0080] It can be understood that in the embodiments of the present application, while determining that the first pressure difference parameter satisfies the first synchronous balancing condition and then continuing to make a subsequent judgment on whether it is necessary to turn on the load switch and the balancing chip at the same time to perform balancing processing, the balancing count parameter can be cleared, so that the real-time pressure difference parameter can be obtained and compared next time, and after determining whether the voltage difference between the first battery and the second battery increases, the cleared balancing count parameter can be further used to record the number of times the pressure difference is increased.

[0081] Step 102: when the first voltage difference parameter satisfies the first synchronous balancing condition, determine the current mean value according to the current recording array, and determine the balancing reference voltage corresponding to the current mean value.

[0082] In an embodiment of the present application, when the first balancing mode is adopted to discharge the first battery and the second battery, after obtaining the first voltage difference parameter and the first real-time current of the first battery and the second battery at the current moment, and updating the current recording array according to the first real-time current, the current mean can be determined according to the current recording array when the first voltage difference parameter satisfies the first synchronous balancing condition, and the balancing reference voltage corresponding to the current mean can be further determined.

[0083] It should be noted that, in the embodiment of the present application, after determining that the first pressure difference parameter satisfies the first synchronous balance condition, the updated current record array may be used to determine the current mean.

[0084] It can be understood that in the embodiment of the present application, after determining that the voltage difference between the first battery and the second battery continues to increase based on the first synchronous balancing condition, it is possible to select to determine the current average value of a period of time based on the current value of the period of time recorded in the current recording array, that is, to determine the current average value.

[0085] Exemplarily, in some embodiments, when determining the current mean value according to the current recording array, the current mean value may be determined according to the current values ​​recorded in the current recording array. The current values ​​recorded in the current recording array may be summed and averaged to obtain the current mean value; or the current values ​​recorded in the current recording array may be weighted averaged to obtain the current mean value. The embodiments of the present application are not specifically limited.

[0086] Furthermore, in an embodiment of the present application, after the current average is determined using the current recording array, a balanced reference voltage corresponding to the current average may be determined.

[0087] It should be noted that, in the embodiment of the present application, the balanced reference voltage may be an optimal voltage value corresponding to the system power consumption of the terminal device. The balanced reference voltage is determined based on the current mean value, and the current mean value can reflect the system power consumption of the terminal device to a certain extent. Therefore, the balanced reference voltage corresponding to the current mean value may be a voltage value adapted to the system power consumption of the terminal device and used to determine whether to turn on the load switch and the balancing chip at the same time for voltage balancing.

[0088] That is to say, in the embodiment of the present application, corresponding to the current mean value, the final determined balanced reference voltage can be the best adaptive voltage point selected according to the current power consumption. If the system power consumption is large, the usable time of the corresponding terminal device is relatively short, so the adaptive point (balanced reference voltage) should be increased; on the contrary, if the system power consumption is small, the usable time of the corresponding terminal device will be correspondingly longer, so the adaptive point (balanced reference voltage) can be lowered.

[0089] It can be understood that in the embodiment of the present application, when determining the balanced reference voltage corresponding to the current mean, the balanced reference voltage can be determined based on the preset current and voltage mapping relationship table and the current mean. The preset current and voltage mapping relationship table can be used to determine the adaptive point corresponding to the current mean, that is, to determine the corresponding balanced reference voltage.

[0090] Exemplarily, in some embodiments, the mapping relationship table of preset current and voltage can be shown in Table 1, wherein for each current average value, there is a voltage value corresponding thereto. For example, when the current average value is 5ma, the corresponding adaptive voltage point (balanced reference voltage) v_thd is 3.5v; when the current average value is 6ma, the corresponding adaptive voltage point (balanced reference voltage) v_thd is 3.7v.

[0091] Table 1

[0092]

[0093]

[0094] Exemplarily, in some embodiments, the mapping relationship table of preset current and voltage can be shown in Table 2, wherein for any current mean value within a size range, there is a voltage value corresponding to the size range. For example, when the current mean value is less than 5ma, the corresponding adaptive voltage point (balanced reference voltage) v_thd is 3.6v; when the current mean value is greater than 20ma, the corresponding adaptive voltage point (balanced reference voltage) v_thd is 4v; when the current mean value is greater than or equal to 5ma and less than or equal to 20ma, the corresponding adaptive voltage point (balanced reference voltage) v_thd is 3.8v.

[0095] Table 2

[0096] Current Voltage <5ma 3.6v ≥5ma and ≤20ma 3.8v >20ma 4v

[0097] Further, in an embodiment of the present application, after determining the equalization reference voltage corresponding to the current mean value, it can be determined based on the equalization reference voltage whether the second synchronous equalization condition is met.

[0098] It should be noted that, in the embodiment of the present application, the second synchronous balancing condition can be used to determine whether voltage balancing is performed by the balancing chip and the load switch at the same time, that is, the second synchronous balancing condition can be used to determine whether to use the second balancing mode for voltage balancing.

[0099] Further, in an embodiment of the present application, when judging whether the second synchronous equalization condition is met based on the equalization reference voltage, when the first voltage difference parameter is greater than the first voltage difference threshold and the first real-time voltage and / or the second real-time voltage is less than the equalization reference voltage, it can be determined that the second synchronous equalization condition is met.

[0100] It should be noted that, in the embodiment of the present application, the first voltage difference threshold may be a preset reference value of the voltage difference between different batteries. The first voltage difference threshold may be any value greater than 0.

[0101] Exemplarily, in some embodiments, assuming that the first voltage difference threshold is 20mv, the balancing reference voltage is 3.5v, the first voltage difference parameter is 25mv, the first real-time voltage corresponding to the first battery is 3.4v, and the second real-time voltage corresponding to the second battery is 3.6v, at this time, the first voltage difference parameter is greater than the first voltage difference threshold, and at the same time, the first real-time voltage corresponding to the first battery is less than the balancing reference voltage, so it can be determined that the second synchronous balancing condition is met.

[0102] It should be noted that in the embodiment of the present application, it can also be determined that the second synchronous balancing condition is met when the first voltage difference parameter is greater than the first voltage difference threshold, or the first real-time voltage and / or the second real-time voltage is less than the balancing reference voltage.

[0103] Exemplarily, in some embodiments, assuming that the first voltage difference threshold is 20mv, the balancing reference voltage is 3.5v, the first voltage difference parameter is 25mv, the first real-time voltage corresponding to the first battery is 3.7v, and the second real-time voltage corresponding to the second battery is 3.6v. At this time, the first voltage difference parameter is greater than the first voltage difference threshold. Even if the first real-time voltage corresponding to the first battery and the second real-time voltage corresponding to the second battery are both greater than the balancing reference voltage, it can be determined that the second synchronous balancing condition is met.

[0104] That is to say, in the embodiment of the present application, in the process of determining whether the second synchronous balancing condition is met, a restriction condition that the first pressure difference parameter is greater than the first pressure difference threshold value can be set, a restriction condition that the first real-time voltage and / or the second real-time voltage is less than the balancing reference voltage can be set, and a restriction condition that the first pressure difference parameter is greater than the first pressure difference threshold value and the first real-time voltage and / or the second real-time voltage is less than the balancing reference voltage can be set. This application does not make specific limitations.

[0105] It can be understood that in the embodiments of the present application, when judging whether the second synchronous equalization condition is met based on the equalization reference voltage, you can choose to use the first real-time voltage corresponding to the first battery, the second real-time voltage corresponding to the second battery, and the first voltage difference parameter between the first battery and the second battery obtained at the current moment, or you can choose to re-acquire the voltages of the first battery and the second battery again to obtain the corresponding voltage values ​​and voltage differences, and then use the re-acquired voltage values ​​and voltage differences to compare with the first voltage threshold and the equalization reference voltage, respectively.

[0106] It should be noted that, in the embodiment of the present application, the second synchronous balancing condition can be understood as determining whether it is necessary to simultaneously control the voltage difference between the first battery and the second battery through the load switch and the balancing chip through the balancing reference voltage. If so, it can be considered that the second synchronous balancing condition is met.

[0107] Further, in an embodiment of the present application, after determining whether the second synchronous equalization condition is met based on the equalization reference voltage, if it is determined based on the equalization reference voltage that the second synchronous equalization condition is not met, the voltage difference parameter between the first battery and the second battery at the next moment can be continuously obtained.

[0108] It should be noted that, in an embodiment of the present application, when the first pressure difference parameter is less than or equal to the first pressure difference threshold, or when the first real-time voltage and the second real-time voltage are both greater than the balancing reference voltage, it can be determined that the second synchronous balancing condition is not met, and the balancing processing flow can be continued to obtain the pressure difference parameters corresponding to the first battery and the second battery at the next moment, so as to further determine whether the voltage difference between the first battery and the second battery increases.

[0109] Step 103 : when it is determined based on the equalization reference voltage that the second synchronous equalization condition is met, the first battery and the second battery are discharged in a second equalization mode; wherein the second equalization mode indicates that voltage equalization is performed through the load switch and the equalization chip at the same time.

[0110] In an embodiment of the present application, when the first voltage difference parameter satisfies the first synchronous balancing condition, after determining the current mean according to the current recording array and determining the balancing reference voltage corresponding to the current mean, the first battery and the second battery can be discharged in a second balancing mode when it is further determined based on the balancing reference voltage that the second synchronous balancing condition is met; wherein the second balancing mode represents voltage balancing through the load switch and the balancing chip at the same time.

[0111] It should be noted that, in the embodiment of the present application, the second balancing mode represents voltage balancing through the load switch and the balancing chip at the same time, that is, during discharge, the balancing chip and the load switch PMOS are turned on at the same time to balance the voltage.

[0112] It is understandable that in the embodiment of the present application, after determining that the second synchronous balancing condition is met, the first balancing mode can be switched to the second balancing mode, that is, the voltage balancing can be switched from only turning on the load switch to turning on the load switch and the balancing chip at the same time. It can be seen that at this time, the terminal device needs to turn on the balancing chip to achieve the balancing function through the balancing chip.

[0113] Further, in an embodiment of the present application, when the second balancing mode is adopted to discharge the first battery and the second battery, when the voltage difference parameter between the first battery and the second battery is less than the second voltage difference threshold, the balancing chip is turned off to discharge the first battery and the second battery in the first balancing mode.

[0114] It should be noted that in the embodiments of the present application, when the second balancing mode is adopted to discharge the first battery and the second battery, it is still necessary to obtain and monitor the voltage difference between the first battery and the second battery, that is, the pressure difference parameter, and then determine whether to end the second balancing mode based on the pressure difference parameter between the two batteries and the second pressure difference threshold.

[0115] It should be noted that, in the embodiment of the present application, the second voltage difference threshold may be a preset reference value of the voltage difference between different batteries, wherein the second voltage difference threshold may be any value greater than 0.

[0116] It can be understood that in the embodiments of the present application, when subsequently determining whether to end the second balancing mode, the voltage difference parameter between the two batteries and the second voltage difference threshold can be compared. If the voltage difference parameter between the two batteries is less than the second voltage difference threshold, then it can be considered that the voltage difference between the two batteries is already within a small range, and voltage balancing can be performed through the load switch. Therefore, the balancing chip can be turned off, and the second balancing mode can be switched to the first balancing mode, and voltage balancing can be performed only through the load switch.

[0117] For example, in some embodiments, assuming that the second voltage difference threshold is 5mv, and the voltage difference parameter between the two batteries is 4mv, at this time, the voltage difference parameter is less than the second voltage difference threshold, so the first balancing mode can be selected to turn off the balancing chip and only turn on the load switch. In other words, when the PMOS and balancing are turned on, when the voltage difference between the two cells is within 5mv again, only the PMOS will be turned on again and the balancing will be turned off.

[0118] For example, in some embodiments, the discharge balancing logic thread runs once every 5 seconds, that is, it checks the current voltage difference range of the two batteries every 5 seconds to determine the subsequent actions. If only the balancing function of the balancing chip is enabled currently, then the original non-charging processing logic with only balancing enabled is entered.

[0119] In summary, through the voltage balancing method proposed in the above steps 101 to 103, during discharge, the terminal device can, in the first balancing mode in which only the load switch is turned on, obtain and monitor the voltage difference parameters between the first battery and the second battery in real time to preliminarily determine whether the first synchronous balancing condition is met. If it is met, the real-time current corresponding to the first battery and the second battery can be further used to further determine the current mean value characterizing the system power consumption, and then the dynamic equilibrium voltage point corresponding to the system power consumption can be determined, that is, the equilibrium reference voltage. Therefore, after further determining that the second synchronous balancing condition is met by using the equilibrium reference voltage, the second balancing mode in which the load switch and the balancing chip are simultaneously turned on for voltage balancing can be selected.

[0120] It can be understood that the voltage balancing method proposed in the embodiment of the present application can determine the dynamic balance voltage point corresponding to the system power consumption after turning on the load switch PMOS, so that when it is necessary to turn on the load switch and the balancing chip at the same time, the adaptive voltage of the load switch and the balancing chip can be dynamically selected based on the power consumption factor, thereby improving the utilization rate of the remaining capacity of the battery cell and further improving the intelligence of the terminal device.

[0121] It should be noted that the voltage balancing method proposed in the embodiment of the present application is a discharge state adaptive active balancing optimization software design scheme. The software control scheme can significantly improve the utilization rate of the remaining capacity of the parallel cells by judging the dynamic equilibrium voltage point after turning on the PMOS and dynamically selecting the adaptive voltage for turning on the PMOS and balancing based on power consumption factors. Compared with the common balancing mechanism, it can generally increase the terminal discharge capacity by about 30mv.

[0122] An embodiment of the present application provides a voltage balancing method, which is used to perform voltage balancing between a first battery and a second battery. When the first balancing mode is used to discharge the first battery and the second battery, a first voltage difference parameter and a first real-time current between the first battery and the second battery at a current moment are obtained, and a current recording array is updated according to the first real-time current; wherein the first balancing mode represents that voltage balancing is performed only through a load switch; the current recording array is used to record at least one current value in a period of time; when the first voltage difference parameter satisfies a first synchronous balancing condition, a current mean is determined according to the current recording array, and a balancing reference voltage corresponding to the current mean is determined; when it is determined based on the balancing reference voltage that a second synchronous balancing condition is met, the first battery and the second battery are discharged using a second balancing mode; wherein the second balancing mode represents that voltage balancing is performed through both the load switch and the balancing chip. That is to say, in the present application, during discharge, the terminal device can, in the first balancing mode in which only the load switch is turned on, obtain and monitor the voltage difference parameter between the first battery and the second battery in real time to preliminarily determine whether the first synchronous balancing condition is met. If it is met, the real-time current corresponding to the first battery and the second battery can be further used to further determine the current mean value representing the system power consumption, and then the dynamic equilibrium voltage point adapted to the system power consumption can be determined, that is, the equilibrium reference voltage, so that after further determining that the second synchronous balancing condition is met by using the equilibrium reference voltage, the second balancing mode of simultaneously turning on the load switch and the balancing chip for voltage balancing can be selected. It can be seen from this that after turning on the load switch PMOS, the adaptive voltage of the load switch and the balancing chip can be dynamically selected to be turned on simultaneously based on the power consumption factor by determining the dynamic equilibrium voltage point corresponding to the system power consumption, thereby improving the utilization rate of the remaining capacity of the battery cell and further improving the intelligence of the terminal device.

[0123] Based on the above embodiments, the embodiments of the present application provide a voltage balancing method, which is applied to a terminal device, wherein the terminal device can be configured with any number of batteries for charging and discharging, and in the process of balancing the voltages of different batteries, a load start switch PMOS and a balancing chip need to be provided in the corresponding hardware circuit at the same time. Accordingly, the voltage balancing method proposed in the embodiments of the present application can be used to balance the voltages of different batteries.

[0124] It should be noted that in the embodiment of the present application, the judgment standard of the battery voltage of the PMOS (load switch) and the balancing chip being turned on at the same time in the common balancing solution is not very reasonable, and there may be a situation where one of the two cells (the first battery and the second battery) is not fully discharged and shuts down. Furthermore, the voltage balancing method proposed in the embodiment of the present application needs to dynamically select an adaptive point based on the voltage difference change between the two batteries and the current average power consumption of the battery, that is, select a dynamic equilibrium voltage point (balance reference voltage) that is compatible with the system power consumption.

[0125] Taking the first battery and the second battery as an example, assuming that the first battery is a battery cell with a smaller capacity and the second battery is a battery cell with a larger capacity, the voltage balancing method proposed in the embodiment of the present application is exemplarily described below.

[0126] Figure 3 Schematic diagram of the implementation process of the voltage balancing method Figure 2 ,like Figure 3 As shown, when the terminal device is performing voltage balancing, the terminal device (such as a mobile phone) system will determine whether it is currently in a charging state (step 201) during operation. If it is in a charging state, it will enter the voltage difference balancing work logic of the two batteries in the charging state (step 202). If it is in an uncharged state, that is, in the discharge logic, it will enter the control logic of the discharge balancing voltage of the two batteries, that is, first obtain the voltage (initial voltage) of the current small battery cell b1_volt and the large battery cell b2_volt, and calculate the absolute value of the difference pre_volt_detal (initial voltage difference parameter). At the same time, relevant parameters can be initialized, such as clearing the count (balance count parameter) of the count, and clearing the current value in the array arrary for calculating the average current, for example, clearing the 5 values ​​in arrary (step 203).

[0127] Next, the control logic for discharging and balancing the voltages of the two batteries can be entered, that is, the equalization process of the discharge state can be started. It is assumed that the discharge equalization logic thread runs once every 5s, that is, the range of the current voltage difference between the two batteries is checked every 5s to determine the subsequent actions. It can be determined first whether only the balancing chip is turned on (step 204, corresponding to the third balancing mode). If only the balancing function of the balancing chip is enabled, then the original non-charging processing logic with only balancing turned on is entered (step 205), and the next thread processing is executed. Otherwise, continue to determine whether only PMOS is turned on (step 206, corresponding to the first balancing mode).

[0128] Correspondingly, after determining that only the PMOS is not turned on, it can be continuously determined whether to turn off the balancing chip according to the voltage difference parameter between the two batteries and the second voltage difference threshold (step 218).

[0129] If only PMOS is currently turned on (i.e., the first balancing mode is determined to be adopted), then it is necessary to obtain the absolute value curr_volt_detal of the voltage difference between the current two battery cell voltages b1_volt and b2_volt (the first real-time voltage and the second real-time voltage), that is, to determine the first voltage difference parameter. At the same time, it is necessary to obtain the battery current current (the first real-time current) with a smaller battery voltage, and update the current recording array arrary according to the first real-time current (step 207).

[0130] For example, you can choose to slide the current window to the left by one, and fill the empty space with current, that is, arrary[i]=arrary[i+1]; arrary[i+1]=currnet; i=i+1.

[0131] Next, further determine whether the first synchronization balance condition is met, specifically, the difference between the current curr_volt_detal and pre_volt_detal can be compared (step 208). If curr_volt_detal is greater than the value of pre_volt_detal at the start time, then execute count+1 (step 209), otherwise count is reset to zero (step 210).

[0132] Next, pre_volt_detal may be updated to the value of curr_volt_detal, that is, the first voltage difference parameter is determined as the initial voltage difference parameter (step 211 ).

[0133] For example, assuming that the cycle of the balancing thread is 5, it can then be determined whether count>5 is established (step 212). This is because the balancing thread is executed once every 5 seconds, so it is determined within 25 seconds whether the battery voltage difference continues to increase when only the PMOS is turned on.

[0134] It is understandable that under normal circumstances, the voltage difference between the two cells will become smaller and smaller in the PMOS state. This is because the large cell voltage charges the small cell while powering the system, so the voltage difference must decrease. When the PMOS equilibrium state is reached, the voltage difference theoretically no longer changes (when the load does not fluctuate).

[0135] It should be noted that the continuous counting for 25 seconds is to eliminate the situation of data counting jitter, and the present application does not specifically limit the specific value of the equalization period.

[0136] Exemplarily, in the case of count>5, count may be set equal to 0 (step 213). If count>5 is not true, the next thread processing may be executed.

[0137] Next, it can be further determined whether the terminal device needs to turn on PMOS and chip balancing at the same time under the current power consumption. The current values ​​in the previous arrary array can be averaged, that is, the current mean value can be determined (step 214), and then the table (preset current and voltage mapping relationship table) can be looked up to obtain the battery voltage adaptive point that needs to be adjusted under the current power consumption (corresponding to the current mean value), that is, the balancing reference voltage can be determined (step 215).

[0138] Exemplarily, when the corresponding adaptive voltage point v_thd (balanced reference voltage) is selected according to the average current determined and characterized by the system power consumption in Table 2 above, if the current average is below 5ma, the corresponding balanced reference voltage is 3.6v; if the current average is within 5ma-20ma, the corresponding balanced reference voltage is 3.8v; if the current average is above 20ma, the corresponding balanced reference voltage is 4v.

[0139] Next, it is possible to further determine whether the second synchronous balancing condition is met. For example, assuming that the first voltage difference threshold is 10mv, it is determined whether the voltage difference between the two batteries is greater than 10mv, and whether the voltage of one of the two cells is less than v_thd (step 216). If the voltage difference between the two batteries is greater than 10mv, and the voltage of one of the two cells is less than v_thd, it can be determined that the second synchronous balancing condition is met, so that the PMOS and the balancing chip can be further turned on at the same time, that is, the second balancing mode is used to discharge the first battery and the second battery (step 217), and the next thread processing is continued.

[0140] Correspondingly, if it is determined that the second synchronization balance condition is not met, the next thread processing may be selected for execution.

[0141] It can be understood that when the PMOS and the balancing chip are turned on at the same time, it is possible to continuously judge whether to turn off the balancing chip based on the voltage difference parameter between the two batteries and the second voltage difference threshold (step 218), wherein, if it is determined that the balancing chip needs to be turned off, for example, when the voltage difference value of the two battery cells is within the second voltage difference threshold (such as 5mv) again, only the PMOS can be turned on again and the balancing chip can be turned off, then it is possible to switch to the first balancing mode to discharge the first battery and the second battery, that is, only the PMOS is turned on (step 219), and the next thread processing is executed.

[0142] Correspondingly, if it is determined that the balancing chip does not need to be turned off, then it may be selected to continue to use the second balancing mode to discharge the first battery and the second battery, and execute the next thread processing.

[0143] Figure 4 Schematic diagram of the implementation process of the voltage balancing method Figure 3 ,like Figure 4 As shown, after determining the equalization reference voltage v_thd (step 215), the terminal device can further determine whether the second synchronous equalization condition is met according to the equalization reference voltage v_thd. Specifically, the equalization reference voltage v_thd can be selected to be compared with the real-time voltage of the first battery (such as the first real-time voltage) and the real-time voltage of the second battery (such as the second real-time voltage), and the first pressure difference parameter can be compared with the first pressure difference threshold (step 216a). If the first real-time voltage and / or the second real-time voltage is less than the equalization reference voltage v_thd, and the first pressure difference parameter is less than the first pressure difference threshold, it can be determined that the second synchronous equalization condition is met.

[0144] Correspondingly, if the first real-time voltage and the second real-time voltage are both greater than or equal to the equalization reference voltage v_thd, or the first voltage difference parameter is greater than or equal to the first voltage difference threshold, it can be determined that the second synchronous equalization condition is not met.

[0145] Figure 5 Schematic diagram of the implementation process of the voltage balancing method Figure 4 ,like Figure 5 As shown, after determining the balanced reference voltage v_thd (step 215), the terminal device can further determine whether the second synchronous balanced condition is met according to the balanced reference voltage v_thd. Specifically, the balanced reference voltage v_thd can be compared with the real-time voltage of the first battery (such as the first real-time voltage) and the real-time voltage of the second battery (such as the second real-time voltage) respectively (step 216b). If the first real-time voltage and / or the second real-time voltage is less than the balanced reference voltage v_thd, it can be determined that the second synchronous balanced condition is met. Otherwise, it is necessary to continue to compare the first pressure difference parameter with the first pressure difference threshold (step 216c). If the first pressure difference parameter is less than the first pressure difference threshold, it can be determined that the second synchronous balanced condition is met.

[0146] Correspondingly, if the first real-time voltage and the second real-time voltage are both greater than or equal to the equalization reference voltage v_thd, and the first voltage difference parameter is greater than or equal to the first voltage difference threshold, it can be determined that the second synchronous equalization condition is not met.

[0147] In summary, through the voltage balancing method proposed in the above steps 201 to 219, during discharge, the terminal device can, in the first balancing mode in which only the load switch is turned on, obtain and monitor the voltage difference parameters between the first battery and the second battery in real time to preliminarily determine whether the first synchronous balancing condition is met. If it is met, the real-time current corresponding to the first battery and the second battery can be further used to further determine the current mean value characterizing the system power consumption, and then the dynamic equilibrium voltage point corresponding to the system power consumption can be determined, that is, the equilibrium reference voltage. Therefore, after further determining that the second synchronous balancing condition is met by using the equilibrium reference voltage, the second balancing mode in which the load switch and the balancing chip are simultaneously turned on for voltage balancing can be selected.

[0148] It can be understood that the voltage balancing method proposed in the embodiment of the present application can determine the dynamic balance voltage point corresponding to the system power consumption after turning on the load switch PMOS, so that when it is necessary to turn on the load switch and the balancing chip at the same time, the adaptive voltage of the load switch and the balancing chip can be dynamically selected based on the power consumption factor, thereby improving the utilization rate of the remaining capacity of the battery cell and further improving the intelligence of the terminal device.

[0149] It should be noted that the voltage balancing method proposed in the embodiment of the present application is a discharge state adaptive active balancing optimization software design scheme. The software control scheme can significantly improve the utilization rate of the remaining capacity of the parallel cells by judging the dynamic equilibrium voltage point after turning on the PMOS and dynamically selecting the adaptive voltage for turning on the PMOS and balancing based on power consumption factors. Compared with the common balancing mechanism, it can generally increase the terminal discharge capacity by about 30mv.

[0150] It can be understood that the voltage balancing method proposed in the embodiment of the present application is based on a balancing processing solution in a scenario where the PMOS and the balancing chip need to be turned on at the same time. Among them, turning on the balancing will cause energy loss, so it is possible to choose to further improve the conversion efficiency of the balancing chip in order to further improve the battery life.

[0151] An embodiment of the present application provides a voltage balancing method, which is used to perform voltage balancing between a first battery and a second battery. When the first balancing mode is used to discharge the first battery and the second battery, a first voltage difference parameter and a first real-time current between the first battery and the second battery at a current moment are obtained, and a current recording array is updated according to the first real-time current; wherein the first balancing mode represents that voltage balancing is performed only through a load switch; the current recording array is used to record at least one current value in a period of time; when the first voltage difference parameter satisfies a first synchronous balancing condition, a current mean is determined according to the current recording array, and a balancing reference voltage corresponding to the current mean is determined; when it is determined based on the balancing reference voltage that a second synchronous balancing condition is met, the first battery and the second battery are discharged using a second balancing mode; wherein the second balancing mode represents that voltage balancing is performed through both the load switch and the balancing chip. That is to say, in the present application, during discharge, the terminal device can, in the first balancing mode in which only the load switch is turned on, obtain and monitor the voltage difference parameter between the first battery and the second battery in real time to preliminarily determine whether the first synchronous balancing condition is met. If it is met, the real-time current corresponding to the first battery and the second battery can be further used to further determine the current mean value representing the system power consumption, and then the dynamic equilibrium voltage point adapted to the system power consumption can be determined, that is, the equilibrium reference voltage, so that after further determining that the second synchronous balancing condition is met by using the equilibrium reference voltage, the second balancing mode of simultaneously turning on the load switch and the balancing chip for voltage balancing can be selected. It can be seen from this that after turning on the load switch PMOS, the adaptive voltage of the load switch and the balancing chip can be dynamically selected to be turned on simultaneously based on the power consumption factor by determining the dynamic equilibrium voltage point corresponding to the system power consumption, thereby improving the utilization rate of the remaining capacity of the battery cell and further improving the intelligence of the terminal device.

[0152] Based on the above embodiment, in another embodiment of the present application, Figure 6 Schematic diagram of the structure of the terminal device proposed in the embodiment of the present application Figure 1 ,like Figure 6 As shown, the terminal device 10 proposed in the embodiment of the present application may include an acquisition unit 11, an update unit 12, a determination unit 13, and a discharge unit 14;

[0153] The acquisition unit 11 is used to acquire a first voltage difference parameter and a first real-time current between the first battery and the second battery at a current moment when the first balancing mode is adopted to discharge the first battery and the second battery; wherein the first balancing mode represents voltage balancing only through the load switch; and the current recording array is used to record at least one current value in a period of time;

[0154] The updating unit 12 is used to update the current recording array according to the first real-time current;

[0155] The determining unit 13 is configured to determine a current mean value according to the current recording array and determine a balanced reference voltage corresponding to the current mean value when the first voltage difference parameter satisfies a first synchronous balancing condition;

[0156] The discharging unit 14 is used for discharging the first battery and the second battery in a second balancing mode when it is determined based on the balancing reference voltage that a second synchronous balancing condition is met; wherein the second balancing mode represents voltage balancing through a load switch and a balancing chip at the same time.

[0157] In the embodiments of the present application, further, Figure 7 Schematic diagram of the structure of the terminal device proposed in the embodiment of the present application Figure 2 ,like Figure 7 As shown, the terminal device 10 proposed in the embodiment of the present application may also include a processor 15 and a memory 16 storing executable instructions of the processor 15. Further, the terminal device 10 may also include a communication interface 17 and a bus 18 for connecting the processor 15, the memory 16 and the communication interface 17.

[0158] In the embodiment of the present application, the processor 15 can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the function of the processor can also be other, and the embodiment of the present application is not specifically limited. The terminal device 10 can also include a memory 16, which can be connected to the processor 15, wherein the memory 16 is used to store executable program code, the program code includes computer operation instructions, and the memory 16 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.

[0159] In the embodiment of the present application, the bus 18 is used to connect the communication interface 17, the processor 15 and the memory 16, and the mutual communication between these devices.

[0160] In the embodiment of the present application, the memory 16 is used to store instructions and data.

[0161] Furthermore, in an embodiment of the present application, the processor 15 is configured to:

[0162] When the first balancing mode is adopted to discharge the first battery and the second battery, a first voltage difference parameter and a first real-time current between the first battery and the second battery at a current moment are obtained, and a current recording array is updated according to the first real-time current; wherein the first balancing mode represents that voltage balancing is performed only through a load switch; and the current recording array is used to record at least one current value in a period of time;

[0163] In the case where the first voltage difference parameter satisfies a first synchronous balancing condition, determining a current mean value according to the current recording array, and determining a balancing reference voltage corresponding to the current mean value;

[0164] When it is determined based on the equalization reference voltage that the second synchronous equalization condition is met, the first battery and the second battery are discharged in a second equalization mode; wherein the second equalization mode represents voltage equalization through a load switch and a equalization chip at the same time.

[0165] In practical applications, the memory 16 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 15.

[0166] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.

[0167] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk, etc., which can store program code.

[0168] An embodiment of the present application provides a terminal device, which, when a first balancing mode is adopted to discharge a first battery and a second battery, obtains a first voltage difference parameter and a first real-time current between the first battery and the second battery at a current moment, and updates a current recording array according to the first real-time current; wherein, the first balancing mode represents that voltage balancing is performed only through a load switch; the current recording array is used to record at least one current value in a period of time; when the first voltage difference parameter satisfies a first synchronous balancing condition, a current mean is determined according to the current recording array, and a balancing reference voltage corresponding to the current mean is determined; when it is determined based on the balancing reference voltage that a second synchronous balancing condition is met, a second balancing mode is adopted to discharge the first battery and the second battery; wherein, the second balancing mode represents that voltage balancing is performed through both the load switch and the balancing chip. That is to say, in the present application, during discharge, the terminal device can, in the first balancing mode in which only the load switch is turned on, obtain and monitor the voltage difference parameter between the first battery and the second battery in real time to preliminarily determine whether the first synchronous balancing condition is met. If it is met, the real-time current corresponding to the first battery and the second battery can be further used to further determine the current mean value representing the system power consumption, and then the dynamic equilibrium voltage point adapted to the system power consumption can be determined, that is, the equilibrium reference voltage, so that after further determining that the second synchronous balancing condition is met by using the equilibrium reference voltage, the second balancing mode of simultaneously turning on the load switch and the balancing chip for voltage balancing can be selected. It can be seen from this that after turning on the load switch PMOS, the adaptive voltage of the load switch and the balancing chip can be dynamically selected to be turned on simultaneously based on the power consumption factor by determining the dynamic equilibrium voltage point corresponding to the system power consumption, thereby improving the utilization rate of the remaining capacity of the battery cell and further improving the intelligence of the terminal device.

[0169] An embodiment of the present application provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the voltage balancing method as described above is implemented.

[0170] Specifically, a program instruction corresponding to a voltage balancing method in this embodiment may be stored in a storage medium such as a CD, a hard disk, or a USB flash drive. When the program instruction corresponding to a voltage balancing method in the storage medium is read or executed by an electronic device, the following steps are included:

[0171] When the first balancing mode is adopted to discharge the first battery and the second battery, a first voltage difference parameter and a first real-time current of the first battery and the second battery at the current moment are obtained, and a current recording array is updated according to the first real-time current; wherein the first balancing mode represents that voltage balancing is performed only through a load switch; and the current recording array is used to record at least one current value in a period of time;

[0172] In the case where the first voltage difference parameter satisfies a first synchronous balancing condition, determining a current mean value according to the current recording array, and determining a balancing reference voltage corresponding to the current mean value;

[0173] When it is determined based on the balancing reference voltage that the second synchronous balancing condition is met, the first battery and the second battery are discharged in a second balancing mode; wherein the second balancing mode represents voltage balancing through a load switch and a balancing chip at the same time.

[0174] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0175] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.

[0176] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0177] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0178] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A voltage balancing method, characterized in that: The method is used to perform voltage balancing between a first battery and a second battery, and the method comprises: When the first balancing mode is adopted to discharge the first battery and the second battery, a first voltage difference parameter and a first real-time current of the first battery and the second battery at the current moment are obtained, and a current recording array is updated according to the first real-time current; wherein the first balancing mode represents that voltage balancing is performed only through a load switch; and the current recording array is used to record at least one current value in a period of time; In the case where the first voltage difference parameter satisfies a first synchronous balancing condition, determining a current mean value according to the current recording array, and determining a balancing reference voltage corresponding to the current mean value; When it is determined based on the equalization reference voltage that the second synchronous equalization condition is met, the first battery and the second battery are discharged in a second equalization mode; wherein the second equalization mode represents voltage equalization through a load switch and a equalization chip at the same time.

2. The method according to claim 1, characterized in that: The obtaining of a first pressure difference parameter between the first battery and the second battery at a current moment includes: Acquire a first real-time voltage of the first battery at the current moment, and a second real-time voltage of the second battery at the current moment; The first pressure difference parameter corresponding to the current moment is determined according to the first real-time voltage and the second real-time voltage.

3. The method according to claim 2, characterized in that The method further comprises: updating a balancing count parameter according to the first pressure difference parameter and an initial pressure difference parameter between the first battery and the second battery; When the balancing count parameter is greater than a preset count threshold, it is determined that the first pressure difference parameter satisfies the first synchronous balancing condition.

4. The method according to claim 3, characterized in that The updating of the balancing count parameter according to the first pressure difference parameter and the initial pressure difference parameter between the first battery and the second battery includes: When the first pressure difference parameter is greater than the initial pressure difference parameter, adding one to the balance count parameter; When the first pressure difference parameter is less than or equal to the initial pressure difference parameter, the equalization count parameter is reset to zero.

5. The method according to claim 3, characterized in that: After updating the balancing count parameter according to the first pressure difference parameter and the initial pressure difference parameter between the first battery and the second battery, the method further includes: The first pressure difference parameter is set as the initial pressure difference parameter.

6. The method according to claim 3, characterized in that The method further comprises: When the balancing count parameter is less than or equal to the preset count threshold, the voltage difference parameter between the first battery and the second battery at the next moment continues to be acquired.

7. The method according to claim 3, characterized in that The method further comprises: When the balance count parameter is greater than the preset count threshold, the balance count parameter is reset to zero.

8. The method according to claim 2, characterized in that: The obtaining of a first real-time current of the first battery and the second battery at a current moment includes: Acquire a first current of the first battery at the current moment, and a second current of the second battery at the current moment; When the first real-time voltage is greater than or equal to the second real-time voltage, determining the second current as the first real-time current; When the first real-time voltage is less than the second real-time voltage, the second current is determined as the first real-time current.

9. The method according to claim 1, characterized in that: The determining of the current mean value according to the current record array comprises: The current average is determined according to the current values ​​recorded in the current recording array.

10. The method according to claim 1, characterized in that The determining of the balanced reference voltage corresponding to the current mean value includes: The balanced reference voltage is determined based on a preset current-voltage mapping relationship table and the current average value.

11. The method according to claim 2, characterized in that The method further comprises: When the first voltage difference parameter is greater than a first voltage difference threshold, and the first real-time voltage and / or the second real-time voltage is less than the balancing reference voltage, it is determined that the second synchronous balancing condition is met.

12. The method according to claim 11, characterized in that The method further comprises: When it is determined based on the equalization reference voltage that the second synchronous equalization condition is not satisfied, the voltage difference parameter between the first battery and the second battery at the next moment continues to be acquired.

13. The method according to claim 1, characterized in that The method further comprises: When the second balancing mode is adopted for discharging, when the voltage difference parameter between the first battery and the second battery is less than a second voltage difference threshold, the balancing chip is turned off to discharge the first battery and the second battery in the first balancing mode.

14. The method according to claim 3, characterized in that The method further comprises: Initialize the balancing count parameter and the current recording array.

15. A terminal device, characterized in that: The terminal device includes an acquisition unit, an update unit, a determination unit, and a discharge unit; The acquisition unit is used to acquire a first voltage difference parameter and a first real-time current between the first battery and the second battery at a current moment when the first balancing mode is adopted to discharge the first battery and the second battery; wherein the first balancing mode represents voltage balancing only through the load switch; and the current recording array is used to record at least one current value in a period of time; The updating unit is used to update the current recording array according to the first real-time current; The determining unit is configured to determine a current mean value according to the current recording array and determine a balanced reference voltage corresponding to the current mean value when the first voltage difference parameter satisfies a first synchronous balancing condition; The discharging unit is used for discharging the first battery and the second battery in a second balancing mode when it is determined based on the balancing reference voltage that a second synchronous balancing condition is satisfied; wherein the second balancing mode represents voltage balancing through a load switch and a balancing chip at the same time.

16. A terminal device, characterized in that: The terminal device includes a processor and a memory storing instructions executable by the processor. When the instructions are executed by the processor, the method according to any one of claims 1 to 14 is implemented.

17. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.