Battery equalization control method and device, electronic equipment and storage medium
By collecting working data in electronic devices, we can determine the abnormal state of the battery module and the balance module, avoid balancing operations in abnormal states, solve the problem of damage to the balance chip and improve the reliability and safety of the equipment.
Patent Information
- Application Number
- CN202411161844.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-29
AI Technical Summary
When an abnormality of the battery and/or the equalization chip in existing electronic devices is detected, it is easy to switch back and forth between automatically stopping the equalization operation and restarting the equalization operation, resulting in chip damage and reducing the reliability and safety of the device. .
When the battery module and/or the equalization module are in an abnormal state, it is determined whether the abnormal state is released by regularly collecting working data, avoiding equalization operations in an abnormal state, and ensuring that the equalization module only performs equalization operations when the state is normal.
It effectively reduces the damage risk of the balance module, improves the reliability and safety of electronic equipment, and avoids damage problems caused by frequent switching.
Smart Images

Figure CN119051202A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging technology, and in particular to a battery balancing control method, device, electronic device and storage medium. Background Art
[0002] In order to meet the needs of users, the battery module of electronic devices (such as smart phones, etc.) usually includes multiple batteries to improve the charging efficiency of the battery module and provide users with a longer battery life experience.
[0003] In order to improve the battery life and life of the battery module, a balancing chip can be set in the electronic device to keep the voltage of multiple batteries in the battery module balanced. However, it has been found in practice that the balancing chip of the electronic device is easily damaged, and the reliability and safety of the electronic device are poor. Summary of the invention
[0004] The embodiments of the present application disclose a battery balancing control method, device, electronic device and storage medium, which can reduce the risk of damaging a balancing module and improve the reliability and safety of the electronic device.
[0005] The present application discloses a control method for battery balancing, which is applied to an electronic device, wherein the electronic device includes a battery module and a balancing module, wherein the battery module includes at least two batteries; the balancing module is used to perform a balancing operation on the at least two batteries so that the battery voltages of the at least two batteries tend to be the same; the method includes:
[0006] When it is determined that the battery module and / or the balancing module is in an abnormal state, the working data of the monitoring object corresponding to the abnormal state is obtained according to the target acquisition cycle; when the battery module and / or the balancing module is in an abnormal state, the balancing module does not perform a balancing operation on the battery module; the monitoring object is the battery module and / or the balancing module in the abnormal state;
[0007] According to the working data, determining whether the monitored object has released the abnormal state;
[0008] If it is determined that the monitored object has resolved the abnormal state, the balancing module is controlled to perform a balancing operation on the battery module.
[0009] The present application discloses a control device for battery balancing, which is applied to an electronic device. The electronic device includes a battery module and a balancing module. The battery module includes at least two batteries. The balancing module is used to perform a balancing operation on the at least two batteries so that the battery voltages of the at least two batteries tend to be the same. The device includes:
[0010] an acquisition module, configured to, when determining that the battery module and / or the balancing module is in an abnormal state, acquire working data of a monitoring object corresponding to the abnormal state according to a target acquisition period; when the battery module and / or the balancing module is in an abnormal state, the balancing module does not perform a balancing operation on the battery module; the monitoring object is a battery module and / or a balancing module in the abnormal state;
[0011] A judgment module, used for judging whether the monitored object has released the abnormal state according to the working data;
[0012] The control module is used to control the balancing module to perform a balancing operation on the battery module if it is determined that the monitored object has released the abnormal state.
[0013] The present application discloses an electronic device, including:
[0014] A battery module, wherein the battery module comprises at least two batteries;
[0015] A balancing module, used for performing a balancing operation on the at least two batteries so that the battery voltages of the at least two batteries tend to be the same;
[0016] A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements any one of the battery balancing control methods disclosed in the embodiments of the present application.
[0017] An embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, any one of the battery balancing control methods disclosed in the embodiment of the present application is implemented.
[0018] Compared with the related art, the embodiments of the present application have the following beneficial effects:
[0019] The embodiment of the present application provides a control method, device, electronic device and storage medium for battery balancing, wherein the electronic device includes a battery module and a balancing module, the battery module includes at least two batteries, the balancing module is used to perform balancing operation on the at least two batteries so that the battery voltages of the at least two batteries tend to be the same, and the balancing module does not perform balancing operation on the battery module when the battery module and / or the balancing module is in an abnormal state. When the electronic device determines that the battery module and / or the balancing module is in an abnormal state, according to the target acquisition cycle, the working data corresponding to the abnormal state of the monitoring object is obtained, and whether the abnormal state of the monitoring object is removed according to the working data is determined. When the abnormal state of the monitoring object is removed, the balancing module is controlled to perform balancing operation on the battery module, which can avoid controlling the balancing module to perform balancing operation on the battery module when the battery module and / or the balancing module is still in an abnormal state, but the balancing module automatically stops performing balancing operation because the battery module and / or the balancing module is still in an abnormal state, resulting in the balancing module switching back and forth between performing balancing operation and stopping balancing operation, which is prone to damage to the balancing module, reducing the risk of damage to the balancing module, and improving the reliability and safety of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 It is a circuit diagram of a power supply circuit in the related art;
[0022] Figure 2 It is a flowchart of a battery balancing control method disclosed in an embodiment of the present application;
[0023] Figure 3 It is a flowchart of a voltage equalization process disclosed in an embodiment of the present application;
[0024] Figure 4 It is a flowchart of another voltage equalization process disclosed in an embodiment of the present application;
[0025] Figure 5 It is a flowchart of another battery balancing control method disclosed in an embodiment of the present application;
[0026] Figure 6 This is a schematic diagram of updating a flag bit in a first register disclosed in an embodiment of the present application;
[0027] Figure 7It is a flowchart of another battery balancing control method disclosed in an embodiment of the present application;
[0028] Figure 8 It is a flowchart of another battery balancing control method disclosed in an embodiment of the present application;
[0029] Fig. 9 It is a flowchart of another voltage balancing process disclosed in an embodiment of the present application;
[0030] Fig.10 It is a structural schematic diagram of a battery balancing control device disclosed in an embodiment of the present application;
[0031] Fig.11 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0032] 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. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0034] The electronic device includes a battery, and the battery can provide electrical energy for the load of the electronic device. In order to speed up the charging speed of the electronic device and solve the difficulty of stacking the foldable electronic device, at least two batteries can be set in the electronic device, and the at least two batteries can be connected in series. In some products, the models and battery capacities of the at least two batteries are different. Therefore, it is easy to have an unbalanced battery voltage of the at least two batteries. For example, when the electronic device is in charging mode, the charging current flowing through the two batteries is equal, then the battery with a smaller capacity will be fully charged first and stop charging, and the large battery with a larger capacity is not fully charged at this time, which affects both the endurance capability and the battery life.
[0035] In order to ensure that the battery voltages of at least two batteries are balanced, a balancing chip is generally provided in the electronic device, and the balancing chip can be used to perform a balancing operation on the at least two batteries so that the battery voltages of the at least two batteries tend to be the same, thereby achieving battery voltage balance of the at least two batteries.
[0036] For example, Figure 1 Schematic diagram of a power supply circuit in the related art. The battery balancing control method disclosed in the embodiment of the present application can be applied to electronic devices. The electronic devices may include but are not limited to smart phones, wearable devices, tablet computers, laptop computers, etc. Figure 1 As shown, the electronic device may include a power supply circuit 100, and the power supply circuit 100 may include a battery module 110 and a balancing module 120. The battery module 110 may include at least two batteries, and the at least two batteries may be connected in series. Optionally, the battery capacities of at least some of the at least two batteries are not equal. The balancing module 120 may be used to perform a balancing operation on the at least two batteries so that the battery voltages of the at least two batteries tend to be the same, that is, the difference between the battery voltages of different batteries in the battery module 110 is less than the voltage threshold. The balancing operation performed by the balancing module 120 may refer to realizing the transfer of electric energy between different batteries in the battery module 110 so that the battery voltages of different batteries in the battery module 110 tend to be the same. Optionally, the balancing module 120 may include a balancing chip.
[0037] Please continue to refer to Figure 1 Taking the battery module 110 including the first battery B1 and the second battery B2 as an example, the balancing operation performed by the balancing module 120 may refer to the balancing module 120 transferring the electric energy of the first battery B1 to the second battery B2, or transferring the electric energy of the second battery B2 to the first battery B1, so as to balance the battery voltages of the first battery B1 and the second battery B2.
[0038] Optionally, please continue to refer to Figure 1 The power supply circuit 100 may also include a charging interface 130 and a charging and discharging channel 140. The charging interface 130 is used to receive electric energy provided by a power supply device connected to the charging interface 130. The electric energy charges the battery module 110 through the charging and discharging channel 140. The battery module 110 may also release electric energy, and the released electric energy is provided to the load of the power supply circuit 100 through the charging and discharging channel 140.
[0039] Optionally, the charging interface 130 may include but is not limited to a USB (Universal Serial Bus) interface, a Lightning interface, etc.
[0040] Optionally, the charge and discharge channel 140 may include a first charging path and a second charging path, the first charging path may include an OVP (Over Voltage Protection) circuit 141, a PMIC (Power Management IC) 142, and a bidirectional voltage regulation module 143, the second charging path may include a direct charging switch 144, and the charge and discharge channel 140 may also include a discharge switch 145. In the normal charging mode, the charging voltage received from the charging interface 130 is stepped down by the PMIC 142 of the first charging path, and is provided to the battery module 110 for charging after being boosted by the bidirectional voltage regulation module 143. Exemplarily, the bidirectional voltage regulation module 143 can boost the voltage input to the bidirectional voltage regulation module 143 to twice. In the fast charging mode, the charging voltage received from the charging interface 130 charges the battery module 110 through the direct charging switch 144 of the second charging path. In the discharge mode, the voltage released by the battery module 110 can be provided to the PMIC 142 through the bidirectional voltage regulator module 143 and the discharge switch 145, and then provided to the load of the power supply circuit 100. Exemplarily, in the discharge mode, the bidirectional voltage regulator module 143 is used to step down the voltage input to the bidirectional voltage regulator module 143. It can be understood that the charging mode may include a normal charging mode and a fast charging mode, and the charging speed of the normal charging mode is lower than the charging speed of the fast charging mode.
[0041] Optionally, please continue to refer to Figure 1 The power supply circuit 100 may also include a capacitor C1, and the batteries of the battery module 110 may be isolated from each other through the capacitor C1, and the batteries may transfer electric energy through the capacitor C1. Optionally, the power supply circuit 100 may also include an inductor corresponding to each battery, and the inductor is connected in series with the corresponding battery. The setting of the inductor can significantly reduce the pulsation of the current. Optionally, the power supply circuit 100 may also include a resistor corresponding to each battery, and the resistor is connected in series with the corresponding battery to reduce the charging current of the battery and protect the battery.
[0042] For example, please continue to refer to Figure 1, the battery module 110 includes a first battery B1 and a second battery B2 connected in series, wherein the negative electrode of the first battery B1 is connected to the positive electrode of the second battery B2. The electronic device may further include a capacitor C1, a first inductor L1, a second inductor L2, a first resistor R1, and a second resistor R2. The positive electrode of the first battery B1 is connected to the first end of the first resistor R1, the second end of the first resistor R1 is connected to the first end of the first inductor L1, the second end of the first inductor L1 is connected to the first end of the equalizing module 120 and the first end of the capacitor C1, the negative electrode of the second battery B2 is connected to the first end of the second resistor R2, the second end of the second resistor R2 is connected to the first end of the second inductor L2, the second end of the second inductor L2 is connected to the second end of the equalizing module 120 and the second end of the capacitor C1, and the third end of the equalizing module 120 is connected to the negative electrode of the first battery B1 and the positive electrode of the second battery B2.
[0043] In the related art, when the balancing chip is performing a balancing operation, if an abnormality is detected in the battery and / or the balancing chip, the balancing module will automatically stop the balancing operation, that is, stop controlling one battery to transfer current to another battery. The balancing chip will report an abnormal interrupt to the SoC (System on Chip) of the electronic device. The SoC can determine what abnormality has occurred by reading the register, such as OVP (Over Voltage Protection), OTP (Over Temperature Protection), etc. The electronic device can currently only report the abnormality to the service, but cannot handle the abnormality. The SoC will re-control the balancing chip to perform the balancing operation according to the preset control cycle (such as 500ms), but will not handle the abnormality. Therefore, if the battery and / or the balancing chip still has an abnormality, the balancing chip will stop the balancing operation again, causing the balancing chip to switch back and forth between performing the balancing operation and stopping the balancing operation, which is very likely to cause damage to the balancing chip, and the reliability and safety of the electronic device are low.
[0044] In addition, the current balancing chip requires the switch tube state to switch when performing reverse balancing. The reverse balancing refers to the change in the direction of power transfer between batteries, which can easily burn out the balancing chip and also lead to lower charging safety.
[0045] The embodiments of the present application disclose a battery balancing control method, device, electronic device and storage medium, which can reduce the risk of damaging a balancing module and improve the reliability and safety of the electronic device.
[0046] In the embodiment of the present application, when the balancing module 120 detects that the battery module 110 and / or the balancing module 120 is abnormal, the balancing module 120 may stop the battery module 110 from performing a balancing operation. When the electronic device determines that the battery module 110 and / or the balancing module 120 is in an abnormal state, it may obtain the working data corresponding to the abnormal state of the monitoring object according to the target acquisition cycle, and the monitoring object is the battery module 110 and / or the balancing module 120 in the abnormal state. The electronic device may determine whether the monitoring object is relieved of the abnormal state according to the working data. If it is determined that the monitoring object is relieved of the abnormal state, the balancing module 120 is controlled to perform a balancing operation on the battery module 110, which can avoid controlling the balancing module to perform a balancing operation on the battery module when the battery module and / or the balancing module is still in an abnormal state. However, the balancing module automatically stops performing a balancing operation because the battery module and / or the balancing module is still in an abnormal state, resulting in the balancing module switching back and forth between performing a balancing operation and stopping a balancing operation, which may easily cause the balancing module to be damaged, thereby reducing the risk of damage to the balancing module and improving the reliability and safety of the electronic device.
[0047] Exemplarily, PMIC142 can also be used to detect the working data of the battery of the battery module 110, such as the battery voltage, battery current, and battery temperature. The power supply circuit 100 may also include a temperature sensor, which can be used to detect the temperature of the balancing module 120. Optionally, the balancing module 120 can obtain the working data of the battery collected by PMIC142 and / or the temperature of the balancing module 120 collected by the temperature sensor to determine whether the battery module 110 and / or the balancing module 120 are abnormal. Optionally, the SoC can obtain the working data of the battery collected by PMIC142 and / or the temperature of the balancing module 120 collected by the temperature sensor to determine whether the battery module 110 and / or the balancing module 120 are free from abnormal conditions.
[0048] Please refer to Figure 2 , which shows a flow chart of a battery balancing control method disclosed in an embodiment of the present application, and the battery balancing control method can be applied to electronic devices. Figure 2 As shown, the battery balancing control method may include steps 202 to 208 .
[0049] Step 202: determine whether the battery module and / or the balancing module is in an abnormal state.
[0050] The balancing module is used to perform a balancing operation on at least two batteries in the battery module so that the battery voltages of the at least two batteries tend to be the same. Exemplarily, the electronic device can determine whether the battery module and / or the balancing module is in an abnormal state.
[0051] Step 204, according to the target collection period, obtain the working data corresponding to the monitored object and the abnormal state.
[0052] Among them, the monitoring object is the battery module and / or the balancing module in an abnormal state. When it is determined that the battery module and / or the balancing module is in an abnormal state, the electronic device can obtain the working data corresponding to the monitoring object and the abnormal state according to the target acquisition cycle. It can be understood that when the battery module is in an abnormal state, the battery module is the monitoring object; when the balancing module is in an abnormal state, the balancing module is the monitoring object; when both the battery module and the balancing module are in an abnormal state, the balancing module and the battery module are both monitoring objects.
[0053] When the battery module and / or the balancing module is in an abnormal state, the balancing module may not perform a balancing operation on the battery module.
[0054] In some embodiments, the battery module being in an abnormal state may include, but is not limited to, an OTP abnormality in the battery module (i.e., the temperature of the battery module is greater than the first preset temperature), an overcurrent abnormality in the battery module (i.e., the current of the battery module is greater than the first preset current), and an OVP abnormality in the battery module (i.e., the voltage of the battery module is greater than the first preset voltage). The balancing module being in an abnormal state may include, but is not limited to, an OTP abnormality in the balancing module (i.e., the temperature of the balancing module is greater than the second preset temperature), an overcurrent abnormality in the balancing module (i.e., the charging current of the balancing module is greater than the second preset current), and an OVP abnormality in the balancing module (i.e., the voltage of the balancing module is greater than the second preset voltage). Optionally, the first preset temperature, the first preset current, the first preset voltage, the second preset temperature, the second preset current, and the second preset voltage may be set according to actual needs, and this embodiment does not limit this.
[0055] The target acquisition period is used to indicate the time period during which the electronic device acquires the working data corresponding to the monitored object and the abnormal state. The first duration corresponding to the target acquisition period can be determined, and the first duration is the interval between two consecutive acquisitions of the working data corresponding to the monitored object and the abnormal state. Exemplarily, the target acquisition period ranges from 400 milliseconds (ms) to 600ms. Optionally, the first duration can be 400ms, 500ms, or 600ms, etc.
[0056] It should be noted that the working data corresponding to the abnormal state of the monitored object may refer to the working data corresponding to the monitored object that is highly correlated with the abnormal state, that is, the working data that will change significantly when the monitored object is in the abnormal state and when the monitored object is released from the abnormal state. There are many kinds of working data of the monitored object, some of which are highly correlated with the abnormal state of the monitored object, such as the current, voltage and temperature of the monitored object, but some of which are less correlated with the abnormal state of the monitored object, such as the remaining power and capacity of the battery module, the environmental parameters of the balancing module and the duration of the balancing operation. In this embodiment, the electronic device can obtain the working data with a high correlation between the monitored object and the abnormal state, and judge whether the monitored object is released from the abnormal state based on the working data, thereby reducing the amount of collection and calculation of the electronic device.
[0057] Optionally, the balancing module can perform a balancing operation on the battery module when the battery module is in a charging mode. The electronic device can determine whether a power supply device is connected to the charging interface. When it is determined that a power supply device is connected to the charging interface, it determines whether the battery module and / or the balancing module is in an abnormal state, thereby reducing the loss of the electronic device. The power supply device may include but is not limited to a charger.
[0058] Step 206 , judging whether the monitored object is no longer in the abnormal state according to the working data, if so, executing step 208 , if not, returning to executing step 204 .
[0059] As an implementation mode, the electronic device obtains the working data corresponding to the monitored object and the abnormal state according to the target collection cycle, and can judge whether the monitored object has been freed from the abnormal state based on the working data obtained once or multiple times each time new working data is obtained.
[0060] As another implementation, the electronic device may also determine whether the monitored object has resolved the abnormal state based on the acquired working data for a preset number of times when the number of acquired working data reaches a preset number of times.
[0061] It should be noted that if the electronic device determines that the monitored object has not been released from the abnormal state based on the currently acquired working data, it can obtain the working data corresponding to the abnormal state of the monitored object again according to the target acquisition period, and judge whether the monitored object has been released from the abnormal state based on the working data obtained again, until it is determined that the monitored object has been released from the abnormal state, and then control the balancing module to perform balancing operations on the battery module. As an embodiment, the electronic device can determine whether the monitored object has been released from the abnormal state based on the working data corresponding to the abnormal state obtained again. As another embodiment, the electronic device can also determine whether the monitored object has been released from the abnormal state based on the previously acquired working data corresponding to the abnormal state of the monitored object and the working data corresponding to the abnormal state obtained again.
[0062] Optionally, the electronic device can determine whether the difference between two adjacent working data is less than a preset difference. If the difference between two adjacent working data is less than the preset difference, it is determined that the monitored object has been released from the abnormal state. For example: if the balancing module has an OTP abnormality, when the balancing module stops balancing the battery module, the temperature of the balancing module will gradually approach the ambient temperature. When the difference between two adjacent temperatures of the balancing module is small, that is, the change in the temperature of the balancing module is very small, it can be considered that the temperature of the balancing temperature has approached the ambient temperature, and it is determined that the balancing module has been released from the abnormal state.
[0063] Optionally, the electronic device may determine whether the latest collected working data belongs to a preset normal range. If the latest collected working data belongs to the preset normal range, it is determined that the monitored object has been released from the abnormal state. It should be noted that the preset normal range may be pre-stored in the electronic device. The preset normal range may be the range corresponding to the working data when the monitored object is not in an abnormal state. When the monitored object is released from the abnormal state, the acquired working data should belong to the preset normal range, and when the monitored object is in an abnormal state, the acquired working data should not belong to the preset normal range. Therefore, it is possible to determine whether the monitored object has been released from the abnormal state by judging whether the latest collected working data belongs to the preset normal range.
[0064] Step 208: Control the balancing module to perform a balancing operation on the battery module.
[0065] It should be noted that if it is determined that all monitored objects in an abnormal state have been freed from abnormality, the electronic device may control the balancing module to perform a balancing operation on the battery module. The monitoring object being freed from abnormality may mean that the monitoring object is free from abnormality. The balancing module performing a balancing operation on the battery module may mean that the balancing module may transfer electric energy according to the battery voltages of at least two batteries, so that a battery with a higher battery voltage transfers current to a battery with a lower battery voltage, so that the battery voltages of at least two batteries tend to be the same.
[0066] The electronic device controls the balancing module to perform balancing operations on the battery module only when it is determined that the monitored object has resolved the abnormal state. If the monitored object has not resolved the abnormal state, the electronic device will not control the balancing module to perform balancing operations on the battery module. This can avoid the situation where the electronic device controls the balancing module to perform balancing operations when the monitored object is in an abnormal state, and the balancing module stops the balancing operation when it detects that the monitored object is still in an abnormal state, causing the balancing module to repeatedly switch between performing and stopping the balancing operation. This reduces the switching frequency of the balancing module, thereby reducing the risk of damage to the balancing module and improving the reliability and safety of the electronic device.
[0067] Exemplarily, the electronic device may control the balancing direction and / or balancing current of the balancing module. The balancing direction may refer to the direction of power transfer between batteries, such as power flowing from the first battery to the second battery, or power flowing from the second battery to the first battery. The balancing current indicates the speed of power transfer. The balancing current may refer to the current value flowing through the balancing module, or in other words, the current value transferred from one battery to another battery in the battery module. As an implementation, in the process of the balancing module performing a balancing operation on the battery module, the electronic device obtains the current battery voltages corresponding to at least two batteries respectively when the balancing module performs a balancing operation on the battery module, and determines the target balancing direction according to the current battery voltages corresponding to at least two batteries respectively, and the electronic device controls the balancing module to perform a balancing operation on the battery module according to the target balancing direction. It should be noted that, in the case of determining that the monitored object is released from an abnormal state, the electronic device may control the balancing module to control the switching state of each switch tube in the balancing module (the switching mode of the on state and the off state of each switch tube) so that the power transfer direction between batteries is consistent with the target balancing direction, so that the battery voltages of different batteries in the battery module tend to be the same. .
[0068] As another embodiment, in the process of the balancing module performing a balancing operation on the battery module, the electronic device obtains the current battery voltages corresponding to at least two batteries respectively when the balancing module performs a balancing operation on the battery module, and determines a first balancing current value according to the current battery voltages corresponding to at least two batteries respectively, and the electronic device controls the balancing module to perform a balancing operation on the battery module according to the first balancing current value. It should be noted that, in the case of determining that the monitored object is released from an abnormal state, the electronic device can control the duty cycle of the driving signal of the switch tube provided to the balancing module so that the current flowing through the balancing module is the same as the first balancing current value, so that the battery voltages of different batteries in the battery module tend to be the same.
[0069] As another embodiment, in the process of the balancing module performing a balancing operation on the battery module, the electronic device obtains the current battery voltages corresponding to at least two batteries respectively when the balancing module performs a balancing operation on the battery module, and determines the target balancing direction and the first balancing current value according to the current battery voltages corresponding to the at least two batteries respectively, and the electronic device controls the balancing module to perform a balancing operation on the battery module according to the target balancing direction and the first balancing current value. In this embodiment, the electronic device determines the target balancing direction and the first balancing current value according to the current battery voltages corresponding to the batteries included in the battery module only when it is determined that the monitored object is freed from an abnormal state, and controls the balancing module to perform a balancing operation on the battery module, so as to transfer the electric energy of the battery with a high battery voltage to the battery with a low battery voltage, so that the battery voltages of different batteries in the battery module tend to be the same.
[0070] In the embodiment of the present application, when the electronic device determines that the battery module and / or the balancing module is in an abnormal state, the electronic device obtains the working data corresponding to the abnormal state of the monitored object according to the target acquisition cycle, determines whether the abnormal state of the monitored object is released according to the working data, and controls the balancing module to perform balancing operation on the battery module when it is determined that the monitored object is released from the abnormal state, so as to avoid the situation where the electronic device controls the balancing module to perform balancing operation on the battery module when the monitored object is in an abnormal state, and then the balancing module stops performing balancing operation because the monitored object is in an abnormal state, that is, avoids the situation where the balancing module switches back and forth between performing balancing operation and stopping balancing operation, reduces the risk of damage to the balancing module, and improves the reliability of the electronic device. At the same time, when the electronic device determines that the monitored object is released from the abnormal state, it can automatically restore the balancing module to perform balancing operation on the battery module to ensure the charging efficiency and endurance performance of the battery module.
[0071] Please refer to Figure 3 , which shows a schematic diagram of a voltage balancing process disclosed in an embodiment of the present application, and the balancing operation process can be applied to electronic devices. Figure 3 As shown, the battery balancing control method may include steps 302 to 312 .
[0072] Step 302 : when the balancing module performs a balancing operation on the battery module, obtain current battery voltages respectively corresponding to at least two batteries of the battery module.
[0073] It should be noted that when the electronic device determines that there is no abnormality in the battery module and the balancing module, if the electronic device determines that the monitored object is no longer in an abnormal state, it controls the balancing module to perform a balancing operation on the battery module. In this case, it can be considered that the balancing module performs a balancing operation on the battery module.
[0074] Step 304: determine a target balancing direction according to current battery voltages corresponding to at least two batteries.
[0075] It should be noted that the target balancing direction may refer to the direction of electric energy transfer of the battery module in order to achieve the battery voltages of at least two batteries tending to be the same. In order to make the battery voltages of each battery in the battery module tend to be the same, the electronic device may obtain the current battery voltages corresponding to at least two batteries of the battery module, and determine the target balancing direction based on the current battery voltages corresponding to at least two batteries. Exemplarily, the balancing direction generally points from the battery with a high battery voltage to the direction of the battery with a low battery voltage. Taking the battery module including a first battery and a second battery as an example, if the current battery voltage of the first battery is greater than the current battery voltage of the second battery, the target balancing direction is determined to be the first battery pointing to the second battery; if the current battery voltage of the second battery is greater than the current battery voltage of the first battery, the target balancing direction is determined to be the second battery pointing to the first battery.
[0076] Step 306: Obtain the current equalization direction of the equalization module.
[0077] It should be noted that the current balancing direction may refer to the current power transfer direction of the battery module.
[0078] Exemplarily, the balancing module may include a second register, the balancing module may receive the balancing direction sent by the electronic device, and write the balancing direction into the second register, and the balancing module adjusts the switching state of the switch tube in the balancing module according to the balancing direction written into the second register to adjust the current direction of the balancing module so that the power transmission direction of the battery module is consistent with the balancing direction in the second register. The electronic device may read the balancing direction in the second register, and the balancing direction obtained by reading is the current balancing direction of the balancing module.
[0079] Step 308 , determining whether the target balancing direction is the same as the current balancing direction, if not, executing step 310 , if yes, executing step 312 .
[0080] It should be noted that when the balancing module needs to achieve a reverse balancing direction, the instantaneous change in the current flowing through the balancing module will be large, causing damage to the balancing module. For example, at the previous moment, the current flowing from the first battery to the second battery is A1, and at the current moment, the current that needs to flow from the second battery to the first battery is A2, then the current flowing through the balancing module is A1+A2, which may damage the balancing module. At the same time, since the balancing directions to be achieved are different, it is necessary to change the state of the switch in the balancing module. If the state of the switch is changed directly, it is also easy to damage the balancing module. The electronic device performs different operations according to whether the target balancing direction is the same as the current balancing direction to avoid damage to the balancing module, and at the same time, ensure the efficiency of the balancing module in performing balancing operations on the battery module.
[0081] Step 310: Control the balancing module to stop the balancing operation.
[0082] Optionally, after the balancing module is controlled to stop the balancing operation, the electronic device controls the balancing module to perform a balancing operation on the battery module according to the target balancing direction and the first balancing current value. It should be noted that when the target balancing direction is different from the current balancing direction, the electronic device controls the balancing module to stop the balancing operation so that the balancing current transmitted by the balancing module is 0, so that when the balancing module is controlled to perform a balancing operation on the battery module according to the target balancing direction, the current flowing through the balancing module is A2, which can reduce the current flowing through the balancing module compared to not controlling the balancing module to stop the balancing operation, thereby reducing the phenomenon of damage to the balancing module caused by excessive changes in the current flowing through the balancing module. At the same time, when the balancing module is stopped, the switch tubes of the balancing module are all in the disconnected state. At this time, the switching of the switch tubes is controlled according to the target balancing direction, which can greatly reduce the risk of damage to the balancing module.
[0083] Exemplarily, the balancing module may further include an enable register, and the electronic device controlling the balancing module to stop the balancing operation may include the electronic device controlling the balancing module to write shutdown data to the enable register. Exemplarily, the electronic device controlling the balancing module to write shutdown data to the enable register may include the electronic device sending the shutdown data to the balancing module, and then writing the shutdown data to the enable register corresponding to the balancing module through the balancing module. When the shutdown data is written to the enable register, each switch tube of the balancing module is in a disconnected state, and the balancing module stops performing the balancing operation.
[0084] In an optional embodiment, when the electronic device determines that the enable register of the balancing module has successfully written the shutdown data, the electronic device controls the balancing module to perform a balancing operation on the battery module in accordance with the target balancing direction. It should be noted that in the process of the electronic device controlling the balancing module to write the shutdown data to the enable register, the communication between the electronic device and the balancing module may be unsuccessful, resulting in the balancing module not receiving the shutdown data, resulting in the inability to write the shutdown data to the enable register. It is also possible that the balancing module can receive the shutdown data, but due to an error in the balancing module, the balancing module cannot successfully write the shutdown data to the enable register. After the electronic device sends the shutdown data to the balancing module, the electronic device will also determine whether the enable register of the balancing module has successfully written the shutdown data, and when it is determined that the enable register of the balancing module has successfully written the shutdown data, that is, when it is determined that the balancing module has successfully turned off the balancing function, the electronic device controls the balancing module to perform a balancing operation on the battery module in accordance with the target balancing direction.
[0085] Exemplarily, the electronic device can determine whether the communication between the SoC and the balancing module is successful, and read the data of the enable register of the balancing module. If the communication between the SoC and the balancing module is successful, and the data of the enable register of the balancing module read is consistent with the shutdown data, the electronic device determines that the enable register of the balancing module is successfully written with the shutdown data, that is, the balancing module stops performing the balancing operation on the battery module. After the balancing module stops performing the balancing operation on the battery module, the electronic device can control the balancing module to perform the balancing operation on the battery module according to the target balancing direction.
[0086] Exemplarily, if the communication between the SoC and the balancing module fails, or the data read from the enable register of the balancing module is inconsistent with the shutdown data, the electronic device determines that the enable register of the balancing module has not successfully written the shutdown data, that is, the balancing module may not have successfully stopped the balancing operation on the battery module. In this case, the electronic device does not control the balancing module to perform a balancing operation on the battery module in accordance with the target balancing direction to avoid damage to the balancing module. Optionally, when the electronic device determines that the enable register of the balancing module has not successfully written the shutdown data, it does not control the balancing module to perform a balancing operation on the battery module in accordance with the target balancing direction, so that the balancing module maintains the current balancing direction to perform a balancing operation on the battery module.
[0087] Exemplarily, the SoC communicates with the balancing module via I2C (Inter-Integrated Circuit, integrated circuit bus), and the electronic device can determine whether the I2C communication is successful.
[0088] Exemplarily, the shutdown data is 0. If the data of the enable register of the balancing module read is 0, it can be considered that the balancing module successfully writes the shutdown data into the enable register, and the balancing module stops performing the balancing operation.
[0089] In this embodiment, after sending the shutdown data to the balancing module, the electronic device will also determine whether the shutdown data is successfully written into the enable register of the balancing module. If it is determined that the shutdown data is successfully written, the electronic device will control the balancing module to perform a balancing operation on the battery module according to the target balancing direction, that is, to achieve balancing direction switching, which can avoid damage to the balancing module (such as the switch tube) and has high reliability.
[0090] Step 312: Control the balancing module to perform balancing operation on the battery module according to the target balancing direction.
[0091] It should be noted that after the electronic device controls the balancing module to stop the balancing operation, or when it is determined that the target balancing direction is the same as the current balancing direction, the electronic device may control the balancing module to perform a balancing operation on the battery module according to the target balancing direction. Exemplarily, the electronic device controlling the balancing module to perform a balancing operation on the battery module according to the target balancing direction may include the electronic device controlling the balancing module to write the target balancing direction in the second register so that the switching state of the switch tube is consistent with the switching state corresponding to the target balancing direction.
[0092] In an optional embodiment, controlling the balancing module to perform a balancing operation on the battery module according to the target balancing direction may include: the electronic device directly adjusts the current of the balancing module to a first balancing current value during the process of controlling the balancing module to perform a balancing operation on the battery module according to the target balancing direction. For the description of the first balancing current value, please refer to the above embodiment, which will not be repeated here. Exemplarily, the electronic device may directly write the target balancing direction and the first balancing current value into the second register.
[0093] In this embodiment, when there is no abnormality in the balancing module and the battery module, the electronic device determines whether the target balancing direction is the same as the current balancing direction. When it is determined that the target balancing direction is different from the current balancing direction, the balancing module is first controlled to stop the balancing operation to avoid the balancing module directly performing reverse balancing, thereby reducing the risk of damage to the balancing module and improving the charging safety of the electronic device.
[0094] Please refer to Figure 4 , which shows a schematic diagram of another voltage balancing process provided by an embodiment of the present application, and the balancing operation process can be applied to electronic devices. Figure 4 As shown, the battery balancing control method may include steps 402 to 414 .
[0095] Step 402 : when the balancing module performs a balancing operation on the battery module, obtain current battery voltages respectively corresponding to at least two batteries of the battery module.
[0096] Step 404: determine a target balancing direction according to current battery voltages corresponding to at least two batteries.
[0097] Step 406, obtaining the current equalization direction of the equalization module.
[0098] Step 408 , determining whether the target balancing direction is the same as the current balancing direction, if so, executing step 410 ; if not, executing steps 412 to 414 .
[0099] Step 410 , controlling the balancing current of the balancing module to gradually adjust from the current balancing current value to the first balancing current value.
[0100] It should be noted that when the electronic device determines that the target balancing direction is the same as the current balancing direction, the balancing module is controlled to perform balancing operations on the battery module according to the target balancing direction, that is, the balancing direction of the balancing module does not need to be changed. The current balancing current value may refer to the current power transfer speed of the balancing module, or the current currently flowing through the balancing module. In the case where the difference between the current balancing current value and the first balancing current value is large, if the balancing current of the balancing module is adjusted from the current balancing current value to the first balancing current value in one step, the flow may fail to respond due to the "sluggish" reaction of the balancing module. In this embodiment, the electronic device controls the balancing current of the balancing module and gradually adjusts it from the current balancing current value to the first balancing current value, thereby avoiding excessive instantaneous changes in the current flowing through the balancing module, reducing the risk of damage to the balancing module, and improving the reliability of balancing.
[0101] Optionally, the current step length for gradually adjusting from the current balancing current value to the first balancing current value may be the same, may gradually increase, may gradually decrease, may first increase and then decrease, etc., which is not specifically limited in this embodiment.
[0102] Exemplarily, the electronic device may store a preset current step, and the electronic device may compare the current balanced current value and the first balanced value. Stepwise adjustment from the current balanced current value to the first balanced current value may include, if the current balanced current value is less than the first balanced current value, the electronic device increases the current balanced current value by the preset current step to obtain the next current balanced current value, controls the balanced current of the balanced module to be the next current balanced current value, and then uses the next current balanced current value as the new current balanced current value, and re-executes the step of increasing the current balanced current value by the preset current step to obtain the next current balanced current value, until the balanced current of the balanced module is adjusted to the first balanced current value. Exemplarily, if the current balanced current value is greater than the first balanced current value, the current balanced current value is reduced by the preset current step to obtain the next current balanced current value, controls the balanced current of the balanced module to be the next current balanced current value, and then uses the next current balanced current value as the new current balanced current value, and re-executes the step of reducing the current balanced current value by the preset current step to obtain the next current balanced current value, until the balanced current of the balanced module is adjusted to the first balanced current value. The gradual adjustment method provided in this embodiment can slowly adjust the balancing current from the current balancing current value to the first balancing current value, thereby avoiding damage to the balancing module and improving the reliability and safety of the electronic device.
[0103] Exemplarily, the electronic device may also determine the absolute value of the difference between the current balancing current value and the first balancing current value. If the absolute value of the difference is less than or equal to the preset current step, the balancing current of the balancing module is controlled to be adjusted from the current balancing current value to the first balancing current value. If the absolute value of the difference is greater than the preset current step, and the first balancing current value is greater than the current balancing current value, the balancing current of the balancing module is controlled to be adjusted from the current balancing current value to the sum of the current balancing current value and the preset current step. If the absolute value of the difference is greater than the preset current step, and the first balancing current value is less than the current balancing current value, the balancing current of the balancing module is controlled to be adjusted from the current balancing current value to the difference between the current balancing current value and the preset current step.
[0104] Step 412: Control the balancing module to stop the balancing operation.
[0105] For the description of step 412, please refer to step 310, which will not be repeated here.
[0106] Step 414, controlling the balancing module to perform a balancing operation on the battery module according to the target balancing direction, and controlling the balancing current of the balancing module to gradually increase from a preset initial current to a first balancing current value during the balancing operation of the battery module by the balancing module.
[0107] It should be noted that after the electronic device controls the balancing module to stop the balancing operation, the balancing direction of the balancing module is controlled to be the target balancing direction, and the balancing current of the balancing module is controlled to gradually increase from the preset initial current to the first balancing current value. Exemplarily, after the balancing module is controlled to stop the balancing operation, the electronic device may write the target balancing direction and the preset initial current in the second register, and adjust the current balancing current using the preset current compensation until the first balancing current value is obtained. For the method of gradually increasing from the preset initial current to the first balancing current value, reference may be made to the method of gradually adjusting from the current balancing current value to the first balancing current value, which will not be described in detail here.
[0108] Exemplarily, the electronic device may store a preset initial current, which may be smaller than the initial current threshold, so as to avoid excessive instantaneous changes in the current flowing through the balancing module and reduce the risk of damage to the balancing module.
[0109] In this embodiment, when the electronic device determines that the target balancing direction is different from the current balancing direction, the balancing module is first controlled to stop the balancing operation. When the balancing module stops the balancing operation, the current flowing through the balancing module is 0, and the switches of the balancing module are all in the off state. After the balancing module stops the balancing operation, the balancing direction of the balancing module is controlled to be the target balancing direction, and the balancing current is gradually increased from the preset initial current to the first balancing current value, which can avoid the instantaneous change of the current flowing through the balancing module being too large, and the phenomenon of the direct change of the switching state of the balancing module, thereby greatly improving the safety and reliability of the balancing operation of the balancing module.
[0110] Please refer to Figure 5 , which shows a flow chart of another battery balancing control method provided by an embodiment of the present application, and the battery balancing control method can be applied to electronic devices. Figure 5 As shown, the battery balancing control method may include steps 502 to 512 .
[0111] Step 502: When it is determined that the battery module and / or the balancing module is in an abnormal state, determine a target abnormality type corresponding to the abnormal state of the monitored object.
[0112] It should be noted that the target abnormality type is the abnormality type corresponding to the abnormal state of the monitored object. The target abnormality type may include one or more abnormality types. The battery module and the balancing module may have abnormalities corresponding to different abnormality types at the same time, that is, the battery module can be in abnormal states corresponding to multiple abnormality types at the same time, and the balancing module can be in abnormal states corresponding to multiple abnormality types at the same time. For abnormal states corresponding to different abnormality types, the data type of the working data to be detected is different. The electronic device can determine the target abnormality type corresponding to the abnormal state of the monitored object, and obtain the working data corresponding to the target abnormality type in the monitored object according to the target acquisition period to determine whether the abnormal state corresponding to the target abnormality type of the monitored object is resolved.
[0113] In an optional embodiment, the electronic device may receive an abnormal interrupt signal reported by the balancing module, and determine that the battery module and / or the balancing module is in an abnormal state according to the abnormal interrupt signal. It should be noted that the balancing module can determine whether the battery module and / or the balancing module is in an abnormal state, and send an abnormal interrupt signal to the electronic device when it is determined that the battery module and / or the balancing module is in an abnormal state. When the electronic device receives the abnormal interrupt signal, it can be determined that the battery module and / or the balancing module is in an abnormal state. Optionally, when the balancing module determines that there is an abnormality in the battery module and / or the balancing module, the balancing module will map the status flag register (EFLAGS Register) of the balancing module to the abnormality, such as mapping to the OVP abnormality and mapping to the OTP abnormality. In this embodiment, the balancing module is used to determine whether there is an abnormality in the battery module and / or the balancing module. When the balancing module determines that there is an abnormality in the battery module and / or the balancing module, it will send an abnormal interrupt signal to the electronic device, so that the electronic device can determine whether the battery module and / or the balancing module is in an abnormal state and the target type corresponding to the abnormal state according to the data of the status flag register. At the same time, there is no need for the electronic device (such as SoC) to monitor whether there is an abnormality in the battery module and / or the balancing module, thereby reducing the amount of calculation of the electronic device.
[0114] Step 504: Update the flag bit corresponding to the target exception type in the first register to the first flag.
[0115] Among them, the electronic device may also include a first register, which stores flag bits corresponding to a plurality of abnormal types. It should be noted that when the electronic device determines the target abnormal type corresponding to the abnormal state of the monitored object, the flag bit corresponding to the target abnormal type in the first register may be updated to the first flag. Each flag bit may be written to the first flag or the second flag, wherein the second flag is different from the first flag. If the flag bit corresponding to the abnormal type is the first flag, it can be considered that the electronic device has an abnormality corresponding to the abnormal type. If the flag bit corresponding to the abnormal type is the second flag, it can be considered that the electronic device does not have an abnormality corresponding to the abnormal type. Each flag bit carries 1 bit of information. Exemplarily, the first flag may be 1 and the second flag may be 0. In another example, the first flag may be 0 and the second flag may be 1. The electronic device may access the status flag register in response to the abnormal interrupt signal to determine the target abnormal type corresponding to the abnormal state.
[0116] It should be noted that the balancing module can determine in real time whether there is an abnormality in the battery module and / or the balancing module, and when it is determined that there is an abnormality in the battery module and / or the balancing module, the status flag register is mapped to the currently detected abnormality, and the electronic device determines the abnormality of the monitored object and the abnormality type corresponding to the abnormality based on the data of the status flag register, that is, determines the target abnormality type corresponding to the abnormal state of the monitored object, and updates the flag bit corresponding to the target abnormality type in the first register to the first flag. Based on the data of the first register, the electronic device can clearly identify the number of abnormalities existing in the battery module and the balancing module and the abnormality type corresponding to the abnormality. Exemplarily, when the electronic device determines that the target abnormality type corresponding to the abnormal state of the monitored object is the first abnormality type, the electronic device may update the flag bit corresponding to the first abnormality type of the monitored object in the first register to the first flag. If, in the process of obtaining the working data corresponding to the first abnormality type in the monitored object, the electronic device receives the abnormal interrupt signal reported by the balancing module again, the electronic device may access the status flag register based on the abnormal interrupt signal received again, and determine the target abnormality type corresponding to the abnormality corresponding to the abnormality that triggers the abnormal interrupt signal received again. If the target abnormality type is the second abnormality type, the electronic device may update the flag bit corresponding to the second abnormality type in the first register to the first flag.
[0117] For example, please refer to Figure 6 When the electronic device determines that the target abnormality type corresponding to the abnormal state of the monitored object is the first abnormality type, wherein the flag bit corresponding to the first abnormality type is the fifth bit, the electronic device may update the flag bit of the third bit from the second flag to the first flag. If the abnormal state corresponding to the first abnormality type has not been resolved, and the electronic device determines that the target abnormality type corresponding to the abnormal state of the monitored object is the second abnormality type, wherein the flag bit corresponding to the second abnormality type is the seventh bit, the electronic device may update the flag bit of the seventh bit from the second flag to the first flag.
[0118] Step 506: Acquire the working data corresponding to the target abnormal type in the monitored object according to the target collection period.
[0119] Exemplarily, the electronic device may be preset with a first correspondence, which is used to represent the correspondence between the abnormality type and the data type of the working data. When the electronic device determines the target abnormality type corresponding to the abnormal state of the monitored object, it may determine the data type of the working data corresponding to the target abnormality type according to the target abnormality type and the first correspondence, thereby reducing the amount of working data that the electronic device needs to collect.
[0120] Exemplarily, for an OTP anomaly whose target anomaly type is a monitored object, the operating data corresponding to the target anomaly type may be the temperature of the monitored object. For an OVP anomaly whose target anomaly type is a monitored object, the operating data corresponding to the target anomaly type may be the current flowing through the monitored object. When a battery module is charged with a large current, the battery voltage may have a floating pressure phenomenon, that is, the battery voltage will be higher than its actual steady-state voltage in a short period of time. If there is no OVP anomaly, the battery voltage may still be very high. Since the change in current can reflect the change in voltage, when an OVP anomaly exists in the monitored object, the current flowing through the monitored object can be obtained, and based on the current, it can be determined whether the monitored object has released the abnormal state corresponding to the OVP anomaly. This can reduce the misjudgment rate of judging whether the monitored object has released the abnormal state corresponding to the OVP anomaly caused by floating pressure, and improve the accuracy and timeliness of judging whether the monitored object has released the abnormal state corresponding to the target anomaly type.
[0121] In this embodiment, the electronic device can determine the target abnormality type corresponding to the abnormal state of the monitored object, and obtain the working data corresponding to the target abnormality type in the monitored object according to the target collection period, while ensuring that it can accurately determine whether the monitored object has been released from the abnormal state, and at the same time, ensure that the electronic device needs to obtain as little working data as possible, thereby reducing the workload of the electronic device.
[0122] Optionally, the electronic device controls the balancing module to stop performing balancing operations on the battery module before executing step 506. It should be noted that the balancing module stops performing balancing operations on the battery module when determining that the battery module and / or the balancing module is abnormal. When the electronic device determines that the flag bits corresponding to the plurality of abnormal types in the first register have a first flag, the electronic device also controls the balancing module to stop performing balancing operations on the battery module, so as to ensure that the balancing module reliably turns off the balancing function, that is, does not perform balancing operations, thereby improving the safety of the electronic device.
[0123] Step 508, judging whether the monitored object has released the abnormal state corresponding to the target abnormal type according to the working data corresponding to the target abnormal type in the monitored object, if so, executing step 510; if not, re-executing step 506.
[0124] It should be noted that the description of step 508 may refer to the description of step 206 and will not be repeated here.
[0125] Step 510: Update the flag bit corresponding to the target exception type to a second flag.
[0126] It should be noted that when the electronic device determines that the monitored object has released the abnormal state corresponding to the target abnormal type, it can update the flag bit corresponding to the target abnormal type in the first register to the second flag, that is, eliminate the first flag in the flag bit corresponding to the target abnormal type in the first register, so as to ensure that the data in the first register can accurately reflect the abnormal conditions of the battery module and the balancing module.
[0127] Step 512: If the flag bits corresponding to the plurality of abnormal types in the first register are all second flags, the balancing module is controlled to perform a balancing operation on the battery module.
[0128] Exemplarily, when the electronic device updates the flag bit corresponding to the target abnormal type to the second flag, it can determine whether the flag bits corresponding to the multiple abnormal types in the first register still have the first flag. If the flag bits corresponding to the multiple abnormal types in the first register are all the second flags, it can be considered that there is no abnormality in the battery module and the balancing module. At this time, the electronic device controls the balancing module to perform a balancing operation on the battery module, which can avoid the balancing module from frequently switching between performing a balancing operation and stopping a balancing operation, thereby avoiding damage to the balancing module.
[0129] It should be noted that, since multiple abnormalities may occur in the battery module and the balancing module, the generation time of each abnormality and the release time of the abnormal state corresponding to the abnormality may also be different. A first register is set in the electronic device. When the electronic device determines the target abnormality type corresponding to the abnormal state of the monitored object, the flag bit corresponding to the target abnormality type in the first register is updated to the first flag. When it is determined that the monitored object releases the abnormal state corresponding to the target abnormality type, the flag bit corresponding to the target abnormality type is updated to the second flag, so that the electronic device can determine whether the battery module and the balancing module are still in an abnormal state according to the flag stored in the first register. The electronic device can determine whether the battery module and the balancing module are in an abnormal state based on the first register, so that the electronic device controls the balancing module to perform balancing operations on the battery module only after determining that the monitored object has released all abnormal states corresponding to the target abnormality types, which greatly reduces the risk of damage to the balancing module.
[0130] In an optional embodiment, the electronic device determines whether the flag bits corresponding to the multiple abnormal types in the first register are all the second flags. If the flag bits corresponding to the multiple abnormal types in the first register are all the second flags, it is determined whether the electronic device receives the abnormal interrupt signal reported by the balancing module. After determining that the electronic device receives the abnormal interrupt signal reported by the balancing module, it determines the target abnormal type corresponding to the abnormal state of the monitored object, and updates the flag bit corresponding to the target abnormal type in the first register to the first flag. Optionally, if the flag bits corresponding to the multiple abnormal types in the first register are all the second flags, and the electronic device does not receive the abnormal interrupt signal reported by the balancing module, it can be determined that there is no abnormality in the battery module and the balancing module, and the battery module and the balancing module are not in an abnormal state. At this time, the electronic device can control the balancing module to perform a balancing operation on the battery module.
[0131] In another optional embodiment, if the flag bits corresponding to the multiple exception types in the first register have a first flag, the electronic device can execute steps 506 to 512, and after executing step 512, re-execute the step of determining whether the flag bits corresponding to the multiple exception types in the first register are all second flags, until the flag bits corresponding to the multiple exception types in the first register are all second flags, and the electronic device does not receive the abnormal interrupt signal reported by the balancing module. At this time, it can be considered that the battery module and the balancing module are not in an abnormal state, and the balancing module can be controlled to perform balancing operations on the battery module.
[0132] In this embodiment, the electronic device sets a first register, and the first register stores flag bits corresponding to multiple abnormal types. When there are multiple abnormalities in the balancing module and the battery module at the same time, the electronic device can also accurately determine whether the abnormal states corresponding to all abnormal types are released, thereby ensuring the accuracy of the electronic device in determining whether the monitored object has released the abnormal state corresponding to the target abnormal type.
[0133] Please refer to Figure 7 , which shows a flow chart of another method for controlling battery balancing provided by an embodiment of the present application, and the method for controlling battery balancing can be applied to electronic devices. Figure 7 As shown, the battery balancing control method may include steps 702 to 708 .
[0134] Step 702: when an abnormal interruption signal is received, first working data corresponding to the abnormal state of the monitored object is obtained.
[0135] The first working data may refer to the working data corresponding to the monitored object and the abnormal state obtained by the electronic device when receiving the abnormal interrupt signal. It should be noted that the abnormal interrupt signal is an interrupt signal reported to the electronic device by the balancing module when the battery module and / or the balancing module is detected to be abnormal. For example, the balancing module may report the abnormal interrupt signal to the SoC of the electronic device, and the electronic device will obtain the first working data corresponding to the monitored object and the abnormal state under the triggering of the abnormal interrupt signal.
[0136] Step 704: Obtain second working data corresponding to the abnormal state in the monitored object at intervals of a first time length.
[0137] Step 707, compare the currently acquired second working data with the first working data, and determine whether the monitored object has been freed from the abnormal state based on the comparison result. If so, execute step 708; if not, return to execute step 704.
[0138] Among them, the first duration is determined according to the target acquisition cycle. For the description of the first duration, please refer to the above embodiment, which will not be repeated here. It should be noted that when the balancing module stops working, the abnormal state of the monitored object may be released over time. For example, for the OTP abnormality of the balancing module, when the balancing module stops performing the balancing operation, the temperature of the balancing module will gradually decrease. When the temperature of the balancing module is less than the second preset temperature, the abnormal state corresponding to the OTP abnormality of the balancing module is released. The electronic device obtains the second working data corresponding to the abnormal state in the monitored object at intervals of the first duration, and compares the currently obtained second working data with the first working data to determine whether the monitored object has released the abnormal state. The electronic device obtains the working data of the monitored object in real time, and when the monitored object releases the abnormal state, it promptly controls the balancing module to perform balancing operations on the battery module to balance the battery voltages of each battery in the battery module.
[0139] Optionally, comparing the currently acquired second working data with the first working data may include, the electronic device calculating the absolute value of the difference between the second working data and the first working data. The electronic device may determine whether the monitored object has been released from the abnormal state based on the absolute value of the difference. It should be noted that if the absolute value of the difference between the second working data and the first working data is large, such as greater than a preset working threshold, it can be considered that the current state of the monitored object has changed significantly from the state when the electronic device acquired the first working data, and it can be considered that the monitored object has been released from the abnormal state, that is, when the electronic device determines that the absolute value of the difference between the second working data and the first working data is greater than the preset working threshold, it can be determined that the monitored object has been released from the abnormal state.
[0140] Since the working data acquired by the electronic device deviates from the normal range when the monitored object is in an abnormal state, such as the working data is greater than the maximum value of the normal range or the working data is less than the minimum value of the normal range, it is possible to determine whether the monitored object is released from the abnormal state in combination with the change of the working data to improve the judgment accuracy. For example, if the monitored object is in an abnormal state corresponding to the OTP abnormality, which is caused by the excessive temperature of the monitored object, the electronic device can determine whether the temperature of the monitored object currently acquired is greater than the temperature of the monitored object acquired when the electronic device receives the abnormal interrupt signal, and assist in determining whether to release the abnormal state corresponding to the OTP abnormality. It is understandable that when the temperature of the monitored object currently acquired is less than the temperature of the monitored object acquired when the electronic device receives the abnormal interrupt signal, and the absolute value of the difference between the two is greater than the preset working threshold, it can be determined that the monitored object releases the abnormal state corresponding to the OTP abnormality. If the temperature of the monitored object currently acquired is greater than the temperature of the monitored object acquired when the electronic device receives the abnormal interrupt signal, it can be considered that the OTP abnormality has deteriorated. At this time, the electronic device can output a prompt message and provide timely feedback to the user to avoid further damage to the electronic device.
[0141] Exemplarily, for the target abnormality type including the OVP abnormality of the battery module, the first working data is the first current corresponding to the battery module obtained when the abnormal interrupt signal is received, and the second working data may be the second current corresponding to the currently collected battery module. If the comparison result is that the difference between the first current and the second current is greater than the third preset current, it can be determined that the battery module has released the abnormal state corresponding to the OVP abnormality. Optionally, the range of the third preset current may include 0.8A (A) to 1.2A. Optionally, the third preset current may be 0.8A, 0.9A, 1A, 1.1A or 1.2A.
[0142] Exemplarily, for the target abnormality type including the OTP abnormality of the balancing module, the first working data is the first temperature corresponding to the balancing module obtained when the abnormal interrupt signal is received, and the second working data may be the second temperature corresponding to the currently collected balancing module. If the comparison result is that the difference between the first temperature and the second temperature is greater than the third preset temperature, and the first temperature is greater than the second temperature, it can be determined that the balancing module releases the abnormal state corresponding to the OTP abnormality. Optionally, the range of the third preset temperature may include 8 degrees Celsius (℃) to 12℃. Optionally, the third preset temperature is 8℃, 9℃, 10℃, 11℃ or 12℃.
[0143] Step 708: Control the balancing module to perform a balancing operation on the battery module.
[0144] It should be noted that for the description of step 708, please refer to the description of step 208 above, which will not be repeated here.
[0145] In this embodiment, the electronic device obtains the first working data corresponding to the abnormal state of the monitored object when receiving the abnormal interrupt signal, obtains the second working data at a first time interval, and compares the currently obtained second working data with the first working data. According to the comparison result, it can be judged whether the abnormal state of the monitored object is lifted. The electronic device does not need to store all the collected second working data, thereby reducing the storage capacity of the electronic device. At the same time, the judgment method is simple, which reduces the computational complexity of the electronic device.
[0146] Please refer to Figure 8 , which shows a flow chart of another method for controlling battery balancing provided by an embodiment of the present application, such as Figure 8 As shown, the battery balancing control method may include steps 802 to 826 .
[0147] Step 802 , determine whether a charger is connected, if not, execute step 804 ; if yes, execute step 806 .
[0148] It should be noted that the balancing module is required to perform balancing operation on the battery modules only when the electronic device is in charging mode, so the electronic device can first determine whether to connect to the charger.
[0149] Step 804, executing the discharge unbalanced module logic.
[0150] It should be noted that if it is determined that there is no charger connected, the electronic device can execute the non-balancing module logic, that is, the balancing module is not controlled to perform balancing operations on the battery module. The electronic device can discharge the battery module through a discharge switch (such as a P-type MOS) to power the load of the electronic device.
[0151] Step 806, determine whether the data stored in the first register is non-zero, if not, execute step 808; if yes, execute steps 820 to 822.
[0152] It should be noted that in this embodiment, the first flag is 1 and the second flag is 0. The electronic device can determine whether the data stored in the first register of the balancing module is equal to 0, that is, whether the data stored in the first register is all 0. If the data is not equal to 0, it means that there is at least one abnormality in the battery module and / or the balancing module. If the data stored in the first register is equal to 0, it means that there is no abnormality in the battery module and the balancing module. Among them, the storage capacity of the first register can be set according to the number of abnormal types. If the data stored in the first register is a 32-bit data, if there is an abnormality in the battery module and / or the balancing module, a flag bit (a bit) in the first register will be set to 1.
[0153] Step 808, determining whether an abnormal interrupt signal sent by the balancing module is received, if not, executing step 810, and if so, executing steps 812 to 814.
[0154] It should be noted that if the data stored in the first register is equal to 0, it is determined whether the balancing module has an abnormal interrupt signal reported to the SoC of the electronic device. If the abnormal interrupt signal sent by the balancing module is not received, it can be determined that there is no abnormality in the battery module and the balancing module. At this time, the electronic device can control the balancing module to perform a balancing operation on the battery module. If the abnormal interrupt signal sent by the balancing module is received, it is determined that there is an abnormality in the battery module and / or the balancing module.
[0155] Step 810: Control the balancing module to perform a balancing operation on the battery module.
[0156] Step 812, read the data of the status flag register of the equalization module.
[0157] Step 814: Determine the third abnormality type corresponding to the abnormal state of the monitored object according to the data of the state flag register.
[0158] Step 816, modify the flag bit corresponding to the third exception type in the first register to 1, and read the first working data corresponding to the third exception type in the monitored object.
[0159] Among them, the third abnormal type is the abnormal type corresponding to the abnormal state of the monitored object. It should be noted that the data stored in the first register is equal to 0, but the electronic device receives the abnormal interrupt signal sent by the balancing module, and it can be considered that the battery module and / or the balancing module has an abnormality. The electronic device reads the status mark register corresponding to the balancing module to determine the abnormality that triggers the balancing module to send the abnormal interrupt signal, and determines the abnormality type corresponding to the abnormality. It is understandable that the balancing module can write corresponding data to the status mark register to map the status mark register to a specific abnormality, such as OTP, OVP. When the electronic device determines that the balancing module has an OTP abnormality, it can set the flag bit corresponding to the OTP abnormality of the balancing module in the first register to 1. If the electronic device determines that the battery module has an OVP abnormality, the flag bit corresponding to the OVP abnormality of the battery module in the first register is set to 1. When the abnormality is triggered, the balancing module will actively turn off the current balancing function.
[0160] Exemplarily, when the electronic device determines that the balancing module and / or the battery module is in an abnormal state corresponding to the third abnormal type, the electronic device may modify the flag bit corresponding to the third abnormal type in the first register to 1, read the first working data corresponding to the third abnormal type in the monitored object, and record the first working data as a basis for determining whether the monitored object has released the abnormal state corresponding to the third abnormal type.
[0161] Step 818, turning off the equalization function of the equalization module.
[0162] It should be noted that if the data in the first register is not 0, it means that the balancing module has detected an abnormality before, and the logic layer of the SoC needs to determine whether the abnormality is recovered. In order to ensure that the balancing function is turned off, the logic layer of the SoC will actively turn off the balancing function of the balancing module.
[0163] Step 820: Determine the fourth exception type whose corresponding flag bit in the first register is 1.
[0164] The fourth exception type is any one of the exception types respectively corresponding to the multiple flags in the first register.
[0165] Step 822, reading the second working data corresponding to the fourth abnormal type, and comparing the first working data corresponding to the fourth abnormal type with the second working data.
[0166] Step 824 , determining whether the comparison result satisfies a preset clearing condition corresponding to the fourth abnormality type, if so, executing step 826 , if not, returning to executing step 802 .
[0167] It should be noted that if the comparison result corresponding to the fourth abnormality type meets the preset clearing condition corresponding to the fourth abnormality type, it can be considered that the monitored object has released the abnormal state corresponding to the fourth abnormality type. Exemplarily, if the fourth abnormality type is the OTP abnormality of the balancing module, the internal temperature T1 of the balancing module is read and compared with the temperature T2 when the OTP abnormality is just triggered. If the temperature T1 drops by 10° relative to the temperature T2, it is considered that the comparison result meets the preset clearing condition corresponding to the OTP abnormality of the balancing module, and the flag bit corresponding to the OTP abnormality of the balancing module in the first register is modified to 0, and then the execution of step 802 is returned. If the fourth abnormality type is the OVP abnormality of the battery module, the current current C of the battery module is recorded and compared with the current B of the battery module when the OVP abnormality of the battery module is just triggered. It is determined whether the absolute value of the difference between the current B and the current C is greater than 1A. If so, it is considered that the comparison result meets the preset clearing condition corresponding to the OVP abnormality of the battery module, and the flag bit corresponding to the OVP abnormality of the battery module in the first register is modified to 0.
[0168] Step 826: modify the flag bit corresponding to the fourth exception type in the first register to 0, and return to execute step 802.
[0169] Please refer to Fig. 9 , which shows a flow chart of another voltage balancing process provided by an embodiment of the present application, such as Fig. 9As shown, the battery balancing control method may further include steps 902 to 918 .
[0170] Step 902: When the balancing module performs a balancing operation on the battery module, the driver layer of the SoC obtains the target balancing direction D set by the SoC logic layer, and reads the current balancing direction E stored in the register of the balancing module.
[0171] Step 904, determine whether the equalization direction D is consistent with the equalization direction E, if so, execute steps 906 to 908, if not, execute steps 914 to 916.
[0172] Step 906: The driver layer obtains the first balancing current value F set by the logic layer, and reads the current balancing current value G of the second register.
[0173] Step 908 , determining whether the first balancing current value F is greater than the current balancing current value G. If so, executing step 910 , if not, executing step 912 .
[0174] Step 910, based on the current balancing current value G, 100ma is added in sequence, and the increased balancing current value is set in the second register until the increased current value is greater than the first balancing current value F, and the first balancing current value F is set in the second register to complete a balancing current setting operation.
[0175] Step 912, based on the current balancing current value G, reduce it by 100ma in sequence, and set the reduced balancing current value to the balancing current register, until the reduced current balancing current value is less than the first balancing current value F, then set the value of the first balancing current value F to the second register, and complete a balancing current setting operation.
[0176] It should be noted that, when the first balancing current value is greater than the current balancing current value, the SoC gradually increases the balancing current of the balancing module until the first balancing current value is reached. When the first balancing current value is less than the current balancing current value, the balancing current of the balancing module is gradually reduced until the first balancing current value is reached, which can avoid excessive instantaneous changes in the current of the balancing module and avoid damage to the balancing module.
[0177] Step 914, setting the enable register of the equalization module to 0.
[0178] It should be noted that when the enable register of the balancing module is equal to 0, the balancing function of the balancing module is successfully turned off.
[0179] Step 916, determine whether the read-back data of the enable register of the equalization module is equal to 0, and whether the I2C communication is normal, if so, execute step 918. If not, execute steps 906 to 908.
[0180] It should be noted that I2C communication refers to the communication between the SoC and the balancing module.
[0181] Step 918: Do not switch the balancing direction.
[0182] It should be noted that if the communication between the SoC and the balancing module fails, or the data of the enable register of the balancing module read is not 0, it is considered that the balancing module has not successfully stopped the balancing operation. In this case, the SoC does not control the balancing module to perform the balancing operation, and the balancing module maintains the current balancing direction to perform the balancing operation on the battery module to avoid damage to the balancing module caused by reverse balancing, and returns to execute step 802.
[0183] Please refer to Fig.10 , which shows a schematic diagram of the structure of a battery balancing control device provided in an embodiment of the present application. The device can be applied to electronic equipment. Fig.10 As shown, the control device 1000 for battery balancing may include an acquisition module 1010, a judgment module 1020 and a control module 1030. Among them, the acquisition module 1010 is used to obtain the working data corresponding to the abnormal state of the monitoring object according to the target acquisition cycle when it is determined that the battery module and / or the balancing module is in an abnormal state; when the battery module and / or the balancing module is in an abnormal state, the balancing module does not perform a balancing operation on the battery module; the monitoring object is a battery module and / or a balancing module in an abnormal state. The judgment module 1020 is used to determine whether the monitoring object is free from the abnormal state based on the working data. The control module 1030 is used to control the balancing module to perform a balancing operation on the battery module if it is determined that the monitoring object is free from the abnormal state.
[0184] In an optional embodiment, the control device 1000 for battery balancing may further include a receiving module and a first determining module. The receiving module is used to receive an abnormal interrupt signal reported by the balancing module before obtaining the working data corresponding to the abnormal state of the monitoring object according to the target acquisition cycle when determining that the battery module and / or the balancing module is in an abnormal state. The first determining module is used to determine that the battery module and / or the balancing module is in an abnormal state according to the abnormal interrupt signal.
[0185] In an optional embodiment, the acquisition module 1010 includes a first acquisition unit and a second acquisition unit. The first acquisition unit is used to acquire the first working data corresponding to the abnormal state of the monitored object when receiving the abnormal interrupt signal. The second acquisition unit is used to acquire the second working data corresponding to the abnormal state in the monitored object at intervals of a first time length, and the first time length is determined according to the target acquisition cycle. The judgment module 1020 is also used to compare the currently acquired second working data with the first working data, and judge whether the monitored object has released the abnormal state according to the comparison result.
[0186] In an optional embodiment, the control device 1000 for battery balancing may further include a second determination module. The second determination module is used to determine the target abnormality type corresponding to the abnormal state of the monitored object before acquiring the working data corresponding to the abnormal state of the monitored object according to the target acquisition cycle. The acquisition module 1010 is also used to acquire the working data corresponding to the target abnormality type in the monitored object according to the target acquisition cycle.
[0187] In an optional embodiment, the electronic device also includes a first register, and the first register stores flag bits corresponding to a plurality of abnormal types. The control device 1000 for battery balancing may also include an update module, and the control module 1030 may include an update unit and a control unit. Among them, the update module is used to update the flag bit corresponding to the target abnormal type in the first register to a first flag. The update unit is used to update the flag bit corresponding to the target abnormal type to a second flag if it is determined that the monitored object has released the abnormal state corresponding to the target abnormal type, and the second flag is different from the first flag. The control unit is used to control the balancing module to perform balancing operations on the battery module if the flag bits corresponding to the plurality of abnormal types in the first register are all the second flags.
[0188] In an optional embodiment, the control device 1000 for battery balancing may further include a voltage acquisition module, a third determination module, a direction acquisition module, and a stop balancing module. The voltage acquisition module is used to acquire the current battery voltages corresponding to at least two batteries when the balancing module performs a balancing operation on the battery module. The third determination module is used to determine the target balancing direction according to the current battery voltages corresponding to at least two batteries. The direction acquisition module is used to acquire the current balancing direction of the balancing module. The stop balancing module is used to control the balancing module to stop the balancing operation if the target balancing direction is different from the current balancing direction.
[0189] In an optional embodiment, the battery balancing control device 1000 may further include a fourth determination module and a first balancing control module. The fourth determination module is used to determine the first balancing current value according to the current battery voltages corresponding to at least two batteries. The first balancing control module is used to control the balancing module to perform balancing operation on the battery module according to the target balancing direction, and in the process of the balancing module performing balancing operation on the battery module, control the balancing current of the balancing module to gradually increase from a preset initial current to the first balancing current value.
[0190] In an optional embodiment, the battery balancing control device 1000 may further include a fifth determination module and a second balancing control module. The fifth determination module is used to determine the first balancing current value according to the current battery voltages corresponding to at least two batteries. The second balancing control module is used to control the balancing current of the balancing module when the target balancing direction is the same as the current balancing direction, and gradually adjust from the current balancing current value to the first balancing current value.
[0191] In an optional embodiment, the balancing module includes an enable register. The stop balancing module is also used to control the balancing module to write shutdown data to the enable register. The battery balancing control device 1000 may also include a sixth determination module. The sixth determination module is used to control the balancing module to perform a balancing operation on the battery module according to the target balancing direction after the balancing module is controlled to stop the balancing operation and, if it is determined that the shutdown data is successfully written to the enable register.
[0192] See also Fig.11 , Fig.11 Schematic diagram of the structure of an electronic device disclosed in the embodiment of the present application. Fig.11 As shown, the electronic device 1100 may include:
[0193] A battery module 1110, the battery module includes at least two batteries;
[0194] A balancing module 1120, configured to perform a balancing operation on at least two batteries so that the battery voltages of the at least two batteries tend to be the same;
[0195] A memory 1130 storing executable program codes;
[0196] a processor 1140 coupled to the memory 1130;
[0197] The processor 1140 calls the executable program code stored in the memory 1130 to execute any one of the battery balancing control methods disclosed in the embodiments of the present application.
[0198] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by the processor, the processor implements any one of the battery balancing control methods disclosed in the embodiment of the present application.
[0199] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0200] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0201] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0202] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0203] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.
[0204] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0205] The above is a detailed introduction to a control method, device, electronic device and storage medium for battery balancing disclosed in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. At the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A method for controlling battery balancing, characterized in that: Applied to electronic equipment, the electronic equipment includes a battery module and a balancing module, the battery module includes at least two batteries; the balancing module is used to perform a balancing operation on the at least two batteries so that the battery voltages of the at least two batteries tend to be the same; the method includes: When it is determined that the battery module and / or the balancing module is in an abnormal state, the working data of the monitoring object corresponding to the abnormal state is obtained according to the target acquisition cycle; when the battery module and / or the balancing module is in an abnormal state, the balancing module does not perform a balancing operation on the battery module; the monitoring object is the battery module and / or the balancing module in the abnormal state; According to the working data, determining whether the monitored object has released the abnormal state; If it is determined that the monitored object has resolved the abnormal state, the balancing module is controlled to perform a balancing operation on the battery module.
2. The method according to claim 1, characterized in that In the case where it is determined that the battery module and / or the balancing module is in an abnormal state, before acquiring the working data of the monitored object corresponding to the abnormal state according to the target acquisition cycle, the method further includes: Receiving an abnormal interruption signal reported by the balancing module; It is determined that the battery module and / or the balancing module is in an abnormal state according to the abnormal interrupt signal.
3. The method according to claim 2, characterized in that The acquiring, according to the target acquisition cycle, working data corresponding to the abnormal state in the battery module and / or the balancing module includes: When the abnormal interrupt signal is received, obtaining first working data of the monitored object corresponding to the abnormal state; acquiring second working data corresponding to the abnormal state in the monitored object at intervals of a first time length, wherein the first time length is determined according to the target collection period; The step of judging whether the monitored object has released the abnormal state according to the working data includes: The currently acquired second working data is compared with the first working data, and it is determined whether the monitored object has released the abnormal state according to the comparison result.
4. The method according to claim 1, characterized in that Before obtaining the working data of the monitored object corresponding to the abnormal state according to the target collection cycle, the method further includes: Determine a target abnormality type corresponding to the abnormal state of the monitored object; The step of acquiring the working data of the monitored object corresponding to the abnormal state according to the target collection cycle includes: According to the target collection period, the working data corresponding to the target abnormality type in the monitored object is obtained.
5. The method according to claim 4, characterized in that The electronic device further includes a first register, wherein the first register stores flag bits corresponding to a plurality of abnormality types respectively; After determining the target abnormality type corresponding to the abnormal state, the method further includes: Update the flag bit corresponding to the target exception type in the first register to a first flag; If it is determined that the monitored object has released the abnormal state, controlling the balancing module to perform a balancing operation on the battery module includes: If it is determined that the monitored object releases the abnormal state corresponding to the target abnormal type, then the flag bit corresponding to the target abnormal type is updated to a second flag, where the second flag is different from the first flag; If the flag bits in the first register corresponding to the plurality of abnormal types are all the second flags, the balancing module is controlled to perform a balancing operation on the battery module.
6. The method according to claim 1, characterized in that The method further comprises: When the balancing module performs a balancing operation on the battery module, obtaining current battery voltages corresponding to the at least two batteries respectively; Determining a target balancing direction according to current battery voltages respectively corresponding to the at least two batteries; Obtaining the current equalization direction of the equalization module; If the target balancing direction is different from the current balancing direction, the balancing module is controlled to stop the balancing operation.
7. The method according to claim 6, characterized in that The method further comprises: Determine a first balancing current value according to current battery voltages respectively corresponding to the at least two batteries; After controlling the balancing module to stop the balancing operation, the method further includes: The balancing module is controlled to perform a balancing operation on the battery module according to the target balancing direction, and during the balancing operation of the battery module by the balancing module, the balancing current of the balancing module is controlled to gradually increase from a preset initial current to the first balancing current value.
8. The method according to claim 6, characterized in that The method further comprises: Determine a first balancing current value according to current battery voltages respectively corresponding to the at least two batteries; In a case where the target balancing direction is the same as the current balancing direction, the balancing current of the balancing module is controlled to be gradually adjusted from the current balancing current value to the first balancing current value.
9. The method according to claim 6, characterized in that The balancing module includes an enable register; and controlling the balancing module to stop the balancing operation includes: Controlling the balancing module to write shutdown data to the enable register; After controlling the balancing module to stop the balancing operation, the method further includes: When it is determined that the shutdown data is successfully written into the enable register, the balancing module is controlled to perform a balancing operation on the battery module according to the target balancing direction.
10. A battery balancing control device, characterized in that: Applied to electronic equipment, the electronic equipment includes a battery module and a balancing module, the battery module includes at least two batteries; the balancing module is used to perform a balancing operation on the at least two batteries so that the battery voltages of the at least two batteries tend to be the same; the device includes: an acquisition module, configured to, when determining that the battery module and / or the balancing module is in an abnormal state, acquire working data of a monitoring object corresponding to the abnormal state according to a target acquisition period; when the battery module and / or the balancing module is in an abnormal state, the balancing module does not perform a balancing operation on the battery module; the monitoring object is a battery module and / or a balancing module in the abnormal state; A judgment module, used for judging whether the monitored object has released the abnormal state according to the working data; The control module is used to control the balancing module to perform a balancing operation on the battery module if it is determined that the monitored object has released the abnormal state.
11. An electronic device, characterized in that: include: A battery module, wherein the battery module comprises at least two batteries; A balancing module, used for performing a balancing operation on the at least two batteries so that the battery voltages of the at least two batteries tend to be the same; A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Cited By
Active equalization circuit, battery management system, and active equalization control method
WO2026137847A1
