CN116774092B - Battery detection method, circuit, device, chip and readable storage medium - Google Patents

Battery detection method, circuit, device, chip and readable storage medium Download PDF

Info

Publication number
CN116774092B
CN116774092B CN202311044199.3A CN202311044199A CN116774092B CN 116774092 B CN116774092 B CN 116774092B CN 202311044199 A CN202311044199 A CN 202311044199A CN 116774092 B CN116774092 B CN 116774092B
Authority
CN
China
Prior art keywords
battery
current
batteries
resistor
currents
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311044199.3A
Other languages
Chinese (zh)
Other versions
CN116774092A (en
Inventor
邓旭同
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311044199.3A priority Critical patent/CN116774092B/en
Publication of CN116774092A publication Critical patent/CN116774092A/en
Application granted granted Critical
Publication of CN116774092B publication Critical patent/CN116774092B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/396Acquisition or processing of data for testing or for monitoring individual cells or groups of cells within a battery
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/385Arrangements for measuring battery or accumulator variables

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Secondary Cells (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application relates to the technical field of battery detection and discloses a battery detection method, a circuit, equipment, a chip and a readable storage medium. The method is applied to an electronic device, the electronic device comprising a plurality of batteries, the method comprising: the electronic equipment detects a plurality of currents corresponding to the batteries respectively, if the currents are larger than a current threshold value, the batteries are determined to be in charge and discharge circuits of the batteries, namely the batteries can be charged and discharged normally, and the electronic equipment can be started. If the current of any one of the batteries is smaller than the current threshold, the battery is not in the charge-discharge circuit of the battery, and cannot be charged and discharged normally, and the battery is dead, so that the electronic equipment cannot be started. The method can improve the accuracy of the detection result of the battery, avoid the phenomena of blocking, screen display and the like of the electronic equipment caused by starting the electronic equipment under the condition that the electronic equipment contains dead batteries, and improve the use experience of users.

Description

Battery detection method, circuit, device, chip and readable storage medium
Technical Field
The present disclosure relates to the field of battery detection technologies, and in particular, to a battery detection method, a circuit, a device, a chip, and a readable storage medium.
Background
At present, along with the continuous development of electronic equipment such as mobile phones, a plurality of batteries can be contained in the electronic equipment, and the batteries are connected in parallel to supply power for the electronic equipment, so that the total capacity of the electronic equipment can be improved, and the service performance of the electronic equipment is improved.
Taking an example in which the electronic device includes two batteries arranged in parallel, the electronic device typically detects the voltages of the two batteries inside before the electronic device is turned on. If one battery becomes a dead battery, that is, it is impossible to charge and discharge, and in normal conditions, it is impossible to detect a voltage across the dead battery. However, there is an equalization circuit between two parallel batteries, which can make the voltage of another normal battery leak to two ends of dead battery through the equalization circuit, the electronic device can detect the voltage at two ends of dead battery, and misjudge the dead battery as normal battery according to the voltage, and then start up.
After the electronic equipment is started, only the normal battery can discharge, and the discharge current of the single battery is small, so that the energy consumption requirement of the electronic equipment cannot be supported, and abnormal phenomena such as blocking and screen display of the electronic equipment can be caused.
Disclosure of Invention
In order to solve the above problems, embodiments of the present application provide a battery detection method, a circuit, a device, a chip, and a readable storage medium. According to the method, under the condition that a plurality of currents respectively corresponding to the plurality of batteries included in the electronic equipment are larger than the current threshold value, the plurality of batteries can be normally charged and discharged, and the starting operation is carried out on the electronic equipment, so that the phenomena of blocking, screen display and the like of the electronic equipment caused by starting the electronic equipment under the condition that the electronic equipment contains dead batteries can be avoided, and the use experience of a user is improved.
In a first aspect, the present application provides a battery detection method, where the method is applied to an electronic device, and the electronic device includes a plurality of batteries, the method includes: detecting that the electronic equipment is in a trigger starting state; acquiring a plurality of first currents respectively corresponding to a plurality of batteries included in the electronic equipment; and determining that the plurality of batteries are in the charge-discharge circuits of the batteries corresponding to the plurality of first currents being larger than the current threshold value, and executing starting operation on the electronic equipment.
In the present application, the condition that the electronic device is in the triggered start state may be that a power key of the electronic device is in an on or pressed state, for example, if the electronic device detects that the power key of the electronic device is in the pressed state, and after the operation lasts for a certain period of time, it may be determined that the electronic device is in the triggered start state. Then, the electronic device acquires a plurality of first currents respectively corresponding to the plurality of batteries. The electronic device may acquire the plurality of first currents by acquiring the plurality of first currents based on an electricity meter.
If the first currents are larger than the current threshold, it can be determined that the batteries are in the charging and discharging circuits of the batteries, namely the batteries can be charged and discharged normally, and at the moment, the electronic equipment can be started normally.
According to the method, whether the batteries can be normally charged or discharged is determined by detecting the currents of the batteries contained in the electronic equipment, if so, the electronic equipment is started, so that the use smoothness of the electronic equipment can be ensured, the phenomena of blocking, screen display and the like of the electronic equipment caused by starting the electronic equipment under the condition that the electronic equipment contains the batteries (dead batteries) which cannot be normally charged or discharged are avoided, and the use experience of a user is improved.
In a possible implementation of the first aspect, the current threshold is determined based on a deviation value of the zero current, where the deviation value of the zero current is obtained by sampling the zero current multiple times.
The deviation value may be understood as an error value, and the current threshold may be the same as or slightly greater than the deviation value of the zero current. For example, if the deviation value of the current obtained after sampling the current multiple times is 10mA, the current threshold may be 10mA or slightly greater than 10mA, for example, 15 mA.
In one possible implementation manner of the first aspect, the manner of determining the first current corresponding to any one of the plurality of batteries includes, but is not limited to, the following three types:
mode one: sampling the current corresponding to any one of the batteries for multiple times according to a fixed time interval to obtain multiple second currents; and taking the average value of the plurality of second currents as the first current corresponding to any battery.
Mode two: sampling the current corresponding to any one of the batteries for multiple times according to a fixed time interval to obtain multiple second currents; and taking the plurality of second currents as the first currents corresponding to any battery.
Mode three: sampling the current corresponding to any one of the batteries for multiple times according to a fixed time interval to obtain multiple second currents; and taking the average value of the currents excluding the maximum value and the minimum value in the plurality of second currents as the first current corresponding to any battery.
The current corresponding to any one of the batteries may be sampled by acquiring a voltage of a resistor connected in series with any one of the batteries by the fuel gauge, and then determining the current of the resistor and the current of any one of the batteries based on the voltage and the resistance value of the resistor.
In one possible implementation manner of the first aspect, obtaining a plurality of first currents respectively corresponding to a plurality of batteries included in the electronic device includes: for any battery in the plurality of batteries, acquiring a first voltage of a resistor corresponding to the any battery, wherein the resistor corresponding to the any battery and the any battery are connected in series in a charge-discharge circuit of the any battery; determining a second current corresponding to the resistor corresponding to any battery based on the first voltage and the resistance value of the resistor corresponding to any battery; and determining the first current corresponding to any battery based on the second current.
It will be appreciated that the manner in which the electronic device draws the plurality of first currents may be to determine the current of the battery based on a current sensing resistor in series with the battery, as hereinafter illustrated in fig. 2A. Taking the battery 1 and the current detecting resistor 1 in fig. 2A as an example, the electronic device may obtain the first voltage of the current detecting resistor 1, and then determine the second current of the current detecting resistor 1 based on the first voltage and the resistance value of the current detecting resistor 1, because the battery 1 and the current detecting resistor 1 are connected in series, the currents of the battery 1 and the current detecting resistor 1 are the same, so that the magnitude of the first current corresponding to the battery 1 can be determined.
In a possible implementation of the first aspect, the method further includes: and determining that the battery corresponding to any one of the first currents is not in the charge-discharge circuit of the battery and not performing starting operation on the electronic equipment according to the fact that any one of the first currents is smaller than the current threshold.
If any one of the first currents is smaller than the current threshold, it is indicated that the battery corresponding to the any one of the first currents is not in the charge-discharge circuit of the battery, that is, the battery cannot perform normal charge-discharge operation, and is dead, and the electronic device cannot be started at this time, so that the phenomenon that after the electronic device is started, the rest of the batteries capable of being charged and discharged normally cannot support the electricity consumption of the electronic device, and the electronic device is blocked and the like is avoided.
In a possible implementation of the first aspect, the electronic device includes an equalization circuit, a detection module, a battery module, and a resistance module, the detection module includes a first fuel gauge and a second fuel gauge, the battery module includes a first battery and a second battery, and the resistance module includes a first resistance and a second resistance; the output end of the first battery is connected with one end of the equalization circuit, and the output end of the second battery is connected with the other end of the equalization circuit; the input end of the first battery is connected with one end of the first resistor, and the other end of the first resistor is grounded; the input end of the second battery is connected with one end of the second resistor, and the other end of the second resistor is grounded; the first fuel gauge comprises a first end, a second end, a third end and a fourth end, wherein the first end is connected with the output end of the first battery, the second end is connected with one end of the first resistor, and the third end and the fourth end are both connected with the other end of the first resistor; the second fuel gauge comprises a fifth end, a sixth end, a seventh end and an eighth end, wherein the fifth end is connected with the output end of the second battery, the sixth end is connected with one end of the second resistor, and the seventh end and the eighth end are both connected with the other end of the second resistor.
A schematic diagram of such a circuit structure may be referred to as fig. 2A mentioned later. It will be appreciated that the first battery refers to battery 1 hereinafter and the second battery refers to battery 2 hereinafter; the first resistance refers to the current sensing resistor 1 hereinafter, and the second resistance refers to the current sensing resistor 2 hereinafter.
In a second aspect, the present application provides a battery detection circuit, which includes a detection module, a battery module, a resistance module, and a control module, where the battery module includes a plurality of batteries, and the resistance module includes a plurality of resistors, and each resistor is connected to a corresponding battery; the detection module is used for detecting a plurality of voltages corresponding to a plurality of resistors in the resistor module respectively when the electronic equipment is in a trigger starting state; the control module is used for determining a first current of each battery connected in series with each resistor based on the voltage corresponding to each resistor and the resistance value of each resistor; and determining that each battery is in a charge-discharge circuit of each battery and executing starting operation on the electronic equipment according to the fact that the first current corresponding to each battery is larger than a current threshold value.
It will be appreciated that the detection module may comprise the first fuel gauge and the second fuel gauge mentioned in the first aspect above, i.e. the electronic device obtains a plurality of voltages corresponding to a plurality of resistors in the resistor module via the first fuel gauge and the second fuel gauge, respectively.
In a possible implementation manner of the second aspect, the control module is further configured to determine that any battery is not in the charge-discharge circuit of any battery, and not perform a power-on operation on the electronic device, where the first current of any battery in the first currents of the batteries is less than a current threshold.
In a third aspect, the present application provides an electronic device comprising the battery detection circuit mentioned above.
In a fourth aspect, the present application provides an electronic device, comprising: one or more processors; one or more memories; the one or more memories store one or more programs that, when executed by the one or more processors, cause the electronic device to perform the first aspect and any of the possible battery detection methods of the first aspect.
In a fifth aspect, the present application provides a chip for performing any one of the first aspect and the possible battery detection method of the first aspect.
In a sixth aspect, the present application further provides a computer readable storage medium having instructions stored thereon, which when executed on a computer, cause the computer to perform the first aspect and any one of the possible battery detection methods of the first aspect.
Drawings
FIG. 1A illustrates a schematic diagram of a battery internal structure, according to some embodiments of the present application;
FIG. 1B illustrates a schematic circuit configuration between two batteries included in an electronic device, according to some embodiments of the present application;
fig. 2A is a schematic structural diagram of a circuit corresponding to a battery detection method according to some embodiments of the present application;
FIG. 2B is a schematic diagram of a circuit corresponding to another battery detection method according to some embodiments of the present application;
fig. 2C shows a schematic circuit diagram representing an open state of the battery 1 according to some embodiments of the present application;
FIG. 2D illustrates a schematic diagram of a current sense resistor in various positions in a circuit, according to some embodiments of the present application;
FIG. 3 illustrates a flow diagram of a battery detection method, according to some embodiments of the present application;
FIG. 4 illustrates a decision flow chart of a battery detection method, according to some embodiments of the present application;
fig. 5 illustrates a schematic structural diagram of an electronic device, according to some embodiments of the present application.
Description of the embodiments
Illustrative embodiments of the present application include, but are not limited to, battery detection methods, circuits, devices, chips, and readable storage media.
The following explains proper nouns related to the embodiments of the present application.
A battery: typically consists of a battery protection plate and a battery cell, wherein the battery protection plate and the battery cell are connected by a Board-to-Board Connectors (BTB).
Dead battery: and when the electric quantity is lower than a certain threshold value, the battery cannot be charged or discharged continuously. For example, when the electric quantity of the battery in the electronic device reaches a certain threshold, the electronic device is automatically turned off, if the battery is not charged for a long time, the electric quantity of the battery is continuously reduced, and when the electric quantity is reduced to a certain threshold, the battery protection board in the battery can disconnect the battery core from the charging and discharging circuit, so that the performance degradation caused by the excessive discharging of the battery is avoided. At this time, the battery becomes a dead battery.
Electricity meter: the device for monitoring the electric quantity of the battery can obtain the electric quantity of the battery by measuring the voltage and the current of the battery and the like.
Metal oxide semiconductor field effect transistor (Metal Oxide Semiconductor Field Effect Transistor, MOS transistor): which may also be referred to as insulated gate field effect transistors, MOS transistors are commonly used in amplification circuits or switching circuits in general electronic circuits. The MOS tube comprises a source electrode S, a grid electrode G and a drain electrode D, and is divided into two main types: a P-channel enhanced MOS tube (PMOS tube) and an N-channel enhanced MOS tube (NMOS tube). In a protection circuit included in a battery protection board of a battery, an operation of turning off a charge-discharge circuit of the battery is generally performed by an NMOS transistor, that is, the battery is changed to a dead battery by turning off the NMOS transistor.
The following describes the background of the battery detection method provided in the embodiment of the present application.
Currently, a plurality of batteries can be disposed inside an electronic device, and compared with a single battery, the plurality of batteries can store more electric quantity. In the use process of the electronic equipment, a plurality of batteries are discharged simultaneously, the discharge capacity is larger than that of a single battery, and the consumption of high-power application in the electronic equipment can be supported, so that the display, the use and the like of the electronic equipment are smoother.
Taking the discharging process of the battery as an example, it is understood that the electric quantity (for example, expressed in voltage) of the battery gradually decreases during the discharging process. Taking the example that the upper limit voltage of the battery is V1 and the shutdown voltage is V2, the voltage of the battery is gradually reduced from V1 to V2 in the discharging process, and then the electronic equipment is automatically shut down, so that the phenomenon of overdischarge caused by continuous mass discharge of the battery is avoided. It will be appreciated that for an electronic device that contains multiple batteries, the electronic device will automatically shut down as long as the voltage of any battery reaches the shutdown voltage.
After the electronic device is automatically turned off, the electronic device also needs a small amount of electric quantity to maintain an alarm clock, a time system and the like of the electronic device, so that after the electronic device is turned off, the electric quantity of a battery of the electronic device still continues to be reduced, that is, the voltage of the battery continues to be reduced. When the voltage of the battery is reduced to a certain threshold value, in order to avoid the battery from continuously discharging and having great influence on the performance of the battery, the battery is thoroughly disconnected from the charging and discharging circuit and cannot be charged and discharged again, at this time, the battery becomes dead, and the battery is not increased in electric quantity even if the battery is charged, and the battery cannot be discharged to the outside for the system.
Wherein the operation of disconnecting the battery from the charge-discharge circuit is performed by a battery protection plate inside the battery. As shown in fig. 1A, the battery 100 generally includes a battery cell 101 and a battery protection plate 102, and the battery protection plate 102 and the battery cell 101 are connected by a Board-to-Board Connectors (BTB). The battery protection board 102 generally includes a protection circuit (Integrated Circuit, IC), a metal oxide semiconductor field effect transistor (Metal Oxide Semiconductor Field Effect Transistor, MOS transistor), a resistor, and the like.
The protection circuit in the battery protection board can monitor the charge and discharge state of the battery, for example, when the battery is discharged, the protection circuit can disconnect a discharge loop of the battery under the condition that the voltage of the battery core is too low so as to prevent damage to the battery caused by overdischarge. For another example, the protection circuit may detect the voltage of the battery cell when the battery is charged, and if the voltage of the battery cell reaches the full-charge voltage of the battery, the protection circuit may disconnect the charging circuit of the battery to prevent damage to the battery due to overcharge.
In this embodiment of the present application, after the electronic device is turned off, if the electronic device is not charged for a long time and the protection IC inside the battery detects that the voltage of the battery core decreases to a certain threshold, the protection IC will disconnect the charge and discharge circuit of the battery core, so that the battery cannot continue to charge and discharge, and becomes a dead battery that cannot be charged and discharged.
Taking an example in which the electronic device includes two batteries, fig. 1B shows a schematic diagram of a circuit structure between two batteries included in the electronic device. The circuit in fig. 1B includes a cell 1, a protection circuit (IC), a resistor R1, a resistor R2, a MOS1, a MOS2, and a battery 2.
The battery 1 is formed by the battery cell 1, the protection IC, the resistor R1, the MOS1 and the MOS2, and the battery 2 is connected in parallel with the battery 1. It can be understood that the battery 2 also includes a corresponding battery cell, a protection IC and a MOS transistor, and the battery 1 and the battery 2 are placed in parallel in the electronic device, and the application only uses the battery 1 as an example to describe the working principle of the protection circuit, so that the devices and the corresponding circuit structures included in the battery 2 are not shown in fig. 1B. It will be appreciated that the operation principle of the protection circuit inside the battery 2 is similar to that of the protection circuit inside the battery 1, and will not be described here again.
As shown in fig. 1B, for the battery 1, the protection IC is connected in series with the resistor 1, the MOS1 and the MOS2, and then connected in parallel with the battery cell 1, and the protection IC is connected to the gates of the MOS1 and the MOS2, one of the other two ends except the gate of the three ends of the MOS1 is connected to one end of the MOS2, and the other end is connected to the input end of the battery cell 1.
After the protection IC detects the voltage of the battery cell 1, that is, after the protection IC receives the input voltage Vin of the battery cell 1 after the voltage of the battery cell 1 is divided by the resistor R1, if the voltage of the battery cell 1 is lower than a certain threshold value, the protection IC controls the MOS1 and the MOS2 to be turned off by applying voltages to the gates of the MOS1 and the MOS2, so that the battery cell 1 is disconnected from the charging and discharging circuit, and the battery 1 cannot continue to be charged and discharged. The MOS1 and the MOS2 are MOS tubes which are reversely placed, for example, the source electrode of the MOS1 is connected with the source electrode of the MOS2, or the drain electrode of the MOS1 is connected with the drain electrode of the MOS2, and the placement mode can realize complete turn-off of the MOS tubes.
Illustratively, MOS1 and MOS2 are typically NMOS transistors, which operate as if the voltage Vgs between gate G and source S is greater than a voltage threshold, the NMOS transistors are turned on; when Vgs is smaller than the voltage threshold, the NMOS transistor turns off. Therefore, in the embodiment of the present application, if the voltage of the battery cell 1 is lower than a certain threshold, the protection IC may apply a voltage to the gates of the MOS1 and the MOS2, and the applied voltage needs to be smaller than the voltage threshold, so that both the MOS1 and the MOS2 are turned off.
According to the above, since the protection IC turns off the MOS1 and the MOS2, the battery 1 cannot continue charging and discharging, and then the battery 1 becomes a dead battery.
The battery detection method according to some embodiments is explained below.
For the above-mentioned situation, in some embodiments, after the electronic device detects that the electronic device is in the triggered start state, it may further determine whether the battery is dead by detecting the voltage of the battery, so as to further determine whether the electronic device can be started normally. The triggering and starting state of the electronic equipment can be realized by a user by pressing a power key of the electronic equipment and the like.
Taking an example in which the electronic device includes two batteries, battery 1 and battery 2, the electronic device will detect the voltages across battery 1 and battery 2, respectively. It will be appreciated that the dead battery voltage is typically 0V, i.e. there is no voltage across the dead battery. If the battery 1 is dead and the battery 2 is normal, the voltage across the battery 1 detected by the electronic device should be 0V under normal conditions. However, an equalization circuit is usually disposed between the battery 1 and the battery 2, and the equalization circuit can play a role in equalizing the voltages of the two batteries, so that the equalization circuit can cause the voltage of the output end of the battery 2 to leak to the output end of the battery 1, and because the input ends of the battery 1 and the battery 2 are grounded, the voltage of the battery 1 detected by the electronic device is the voltage difference between the voltage of the output end of the battery 2 and the voltage of the input end of the battery 1, that is, the detected voltage of the battery 1 is not 0V, and the electronic device misjudges the battery 1 as a normal battery and then performs the start-up operation.
After the electronic equipment is started, only the battery 2 discharges for each application in the electronic equipment. However, the discharging current of the single battery is small, which may not support the energy consumption requirement of the electronic device, and at this time, the electronic device may generate phenomena such as jamming and screen display, which affect the user experience.
In order to solve the above-mentioned problems, an embodiment of the present application provides a battery detection method, in which an electronic device detects a current of each of a plurality of batteries included in the electronic device in a trigger-and-start state. If the current of each battery is larger than the current threshold, it can be determined that the batteries are all in the charge-discharge circuit of each battery, that is, the batteries are all normal batteries, and the electronic device can be started. If the current of any one of the plurality of batteries is smaller than the current threshold, the battery is not in the charge-discharge circuit, that is, the battery is dead, and the start-up operation of the electronic device cannot be executed. It can be understood that the equalization circuit between the parallel batteries can influence the detection of the voltage of the batteries, but cannot influence the detection of the current of the batteries, so that the method determines whether the batteries are dead batteries or not by detecting the current of the batteries, further determines whether the starting operation of the electronic equipment can be executed or not, the accuracy of the detection result of the batteries is improved, the phenomena of blocking, screen pattern and the like of the electronic equipment caused by starting the electronic equipment under the condition that the electronic equipment contains the dead batteries are avoided, and the use experience of a user is improved.
The reason why the equalization circuit does not affect the current detection and the method of determining whether the battery is a dead battery based on the current are described in detail below in connection with the circuit configuration.
Fig. 2A is a schematic diagram illustrating a structure of a circuit to which the battery detection method according to the embodiment of the present application is applied. The circuit shown in fig. 2A includes a detection module, a battery module, a resistance module, and a control module. The battery module comprises a plurality of batteries, the resistor module comprises a plurality of resistors, and each resistor is connected with each corresponding battery in series.
The detection module is used for detecting a plurality of voltages corresponding to a plurality of resistors in the resistor module respectively when the electronic equipment is in a trigger starting state.
The control module is used for determining a first current of each battery connected in series with each resistor based on the voltage corresponding to each resistor and the resistance value of each resistor; and the first current corresponding to each battery is larger than the current threshold value, each battery is determined to be in the charge-discharge circuit of each battery, and the starting operation is performed on the electronic equipment.
Specifically, the circuit to which the battery detection method provided in the embodiment of the present application is applied may further include an equalization circuit, a system, and a power management integrated circuit (Power Management Integrated Circuit, PMIC).
Taking the example where the detection module includes the electricity meter 1 and the electricity meter 2, the battery module includes the battery 1 and the battery 2, and the resistance module includes the current detection resistance 1 and the current detection resistance 2, the circuit configuration shown in fig. 2A may be further represented as the circuit configuration shown in fig. 2B.
Among them, the PMIC is an integrated circuit chip for managing and controlling various aspects of a power supply system. The device can monitor, regulate and protect the voltage, current and power of the battery to ensure the normal operation of the electronic equipment, save energy and prolong the service life of the battery. The system in fig. 2B may refer to a system of electronic devices, which includes a plurality of power consumption modules, applications, etc., and it is understood that the discharge of the battery 1 and the battery 2 is managed and controlled by the PMIC for use by the system.
The equalization circuit is placed between the output terminals of the battery 1 and the battery 2, and plays a role in equalizing the voltages of the battery 1 and the battery 2. The battery 1 and the battery 2 are connected in parallel, the input end of the battery 1 is connected with one end of the current detection resistor 1, and the other end of the current detection resistor 1 is grounded; the input end of the battery 2 is connected with one end of the current detection resistor 2, and the other end of the current detection resistor 2 is grounded. In addition, the fuel gauge 1 is respectively connected with two ends of the current detection resistor 1, a point A at the output end of the battery 1 and a point B at the other end of the current detection resistor 1, and the fuel gauge 2 is respectively connected with two ends of the current detection resistor 2, a point C at the output end of the battery 2 and a point D at the other end of the current detection resistor 2.
Taking the electricity meter 1 as an example, the working principle of the electricity meter 1 is that the electricity meter 1 can obtain a first voltage of the current detection resistor 1 by being connected to two ends of the current detection resistor 1, and can obtain a second voltage which is the sum of voltages of the battery 1 and the current detection resistor 1 by detecting voltages of the point A and the point B. The difference between the second voltage and the first voltage is the voltage at two ends of the battery 1. Knowing the first voltage and the resistance of the current sensing resistor 1, the current of the current sensing resistor 1 can be obtained. Since the battery 1 and the current detecting resistor 1 are connected in series, the current of the battery 1 and the current of the current detecting resistor 1 are the same. At this time, the voltage across the battery 1 and the current of the battery 1 are both known, so the amount of electricity of the battery 1 can be further calculated based on the voltage and the current.
It will be appreciated that the principles of operation of electricity meter 2 and electricity meter 1 are similar and will not be described in detail herein.
Taking the battery 1 and the battery 2 as normal batteries as an example, after the electronic equipment is in a trigger starting state, an equalization circuit is conducted, and under the action of the equalization circuit, the circuit shown in fig. 2B is conducted, and current flows in the battery 1 and the battery 2. At this time, the electricity meter may detect the voltage and current of the battery 1 and the voltage and current of the battery 2 according to the above-described methods.
Taking the battery 1 as a dead battery and the battery 2 as a normal battery as an example, after the electronic equipment is in a trigger starting state, the equalization circuit is conducted. Since the battery 1 is dead, the battery 1 cannot be charged or discharged, and no voltage or current exists across the battery 1, which corresponds to the disconnection of the battery 1 from the circuit shown in fig. 2B. However, under the action of the equalizing circuit, the voltage at the output terminal of the battery 2 is output to the output terminal of the battery 1 through the equalizing circuit, resulting in a voltage at point a. Therefore, if it is confirmed whether the battery 1 is a dead battery by detecting only the voltage, the battery 1 is erroneously determined to be a normal battery based on the detected voltages at the two points a and B, and then the power-on operation of the electronic apparatus is performed.
However, when the battery 1 is dead, no current flows in the battery 1, that is, an open circuit is formed between the battery 1 and the current detection resistor 1 as shown in fig. 2C. In this case, when the electricity meter 1 detects that the voltage across the current detection resistor 1 is 0V, the current of the current detection resistor 1 is also 0 a, and it is determined that no current flows in the battery 1, and it is determined that the battery 1 is disconnected from the circuit, that is, the battery 1 is dead.
Therefore, as can be seen from the above description, in the circuit structures shown in fig. 2B and 2C, if it is determined whether the battery is dead by detecting the voltages at the two ends of the battery 1 and the battery 2, the dead battery is misjudged as a normal battery by the action of the equalization circuit, and then the electronic device is turned on. If the current of the battery 1 and the current of the battery 2 are detected to determine whether the battery is dead, the equalization circuit does not affect the accuracy of the judgment result. Therefore, the method for judging whether the battery is dead through the current of the battery can improve accuracy of detection results, and further improve use experience of the electronic equipment.
In fig. 2B and 2C, the current detection resistor 1 is connected to the input terminal of the battery 1, and the current detection resistor 2 is connected to the input terminal of the battery 2. In some embodiments, as shown in fig. 2D, the current detection resistors may also be respectively disposed at the output ends of the battery, that is, the current detection resistor 1 is connected to the output end of the battery 1, and the current detection resistor 2 is connected to the output end of the battery 2. No matter the position of the current detecting resistor, as long as the battery is a dead battery, no current flows in the current detecting resistor connected in series with the battery, so that whether the battery is a dead battery can still be determined according to the current of the current detecting resistor (namely, the current of the battery connected in series with the current detecting resistor) and the battery detection method provided by the embodiment of the application.
It should be appreciated that the battery detection method provided in the embodiments of the present application may be applied to any electronic device including a plurality of batteries, where the electronic device includes, but is not limited to, any electronic device such as a mobile phone, a tablet computer, a wearable device, an augmented reality (Augmented Reality, AR) device, and the like, and the embodiments of the present application do not limit the type and form of the electronic device.
The following describes in detail a battery detection method provided in an embodiment of the present application, which may be performed by an electronic device, where the electronic device includes a battery 1 and a battery 2, as shown in fig. 3, and may include the following steps:
301: the electronic device detects that the electronic device is in a trigger start state.
The embodiment of the application does not limit the condition that the electronic device is in the trigger start state, and by detecting that the power key of the electronic device is in the on or pressed state, the electronic device can determine that the electronic device is currently in the trigger start state. Taking the electronic device as an example of a mobile phone, in this case, it can be understood that the user presses a power key of the mobile phone, and after the operation lasts for a certain period of time, the electronic device is in a trigger start state. The electronic device then proceeds to subsequent steps 302 and 303 to determine whether to continue the power-on operation.
302: the electronic device obtains first currents respectively corresponding to the battery 1 and the battery 2.
The embodiment of the present application is not limited to the manner in which the electronic device obtains the first currents respectively corresponding to the battery 1 and the battery 2, and the electronic device may obtain the first currents respectively corresponding to the battery 1 and the battery 2 by using an electricity meter, for example. Specifically, the electricity meter 1 is configured to detect a first current corresponding to the battery 1, and the electricity meter 2 is configured to detect a first current corresponding to the battery 2. Taking the example that the electricity meter 1 detects the first current corresponding to the battery 1, the electricity meter 1 can obtain the current of the current detecting resistor by detecting the voltage at two ends of the current detecting resistor connected with the battery 1 in series, and the first current corresponding to the battery 1 is identical to the current of the current detecting resistor because the current detecting resistor is connected with the battery 1 in series. The manner of obtaining the first current corresponding to the battery 2 is similar to that of obtaining the first current corresponding to the battery 1, and will not be described here again.
303: if the first currents corresponding to the battery 1 and the battery 2 are larger than the current threshold, determining that the battery 1 and the battery 2 are not dead batteries, and executing the starting operation by the electronic equipment.
It will be appreciated that if the battery is dead, the battery cannot be charged or discharged, i.e., the current of the battery is a deviation value of 0 a. The deviation value is also understood to be an error value, which can be derived from a plurality of samples of the current.
In this embodiment of the present application, in the case where the first currents corresponding to the battery 1 and the battery 2 are both greater than the current threshold, the electronic device performs the startup operation, that is, it may be determined that neither the battery 1 nor the battery 2 is a dead battery at this time, and thus the startup operation may be performed. Thus, it is understood that the current threshold in the embodiments of the present application may be a deviation value of 0 current. For example, if the deviation value of the current obtained after sampling the current multiple times is 10mA, the current threshold may be 10mA. Taking the current threshold value as 10mA as an example, if the first currents corresponding to the battery 1 and the battery 2 are respectively greater than 10mA, the battery 1 and the battery 2 are not dead batteries, and the electronic device can execute the starting operation; if at least one of the first currents corresponding to the battery 1 and the battery 2 is smaller than 10mA, it may be determined that dead batteries exist in the battery 1 and the battery 2, and in this case, in order to avoid phenomena such as clamping of the electronic device caused by insufficient discharge of the battery to support consumption of the electronic device after the electronic device is powered on, the electronic device does not perform a power-on operation.
In this embodiment of the present application, the current threshold may be selected to be slightly greater than the deviation value of 0 current, in addition to being the same as the deviation value of 0 current. For example, if the deviation value of the current is 10mA, it may be determined that the current threshold value is 15mA. Under the condition, when the first currents corresponding to the battery 1 and the battery 2 are larger than the current threshold value 15mA, the electronic equipment executes the starting operation, and the mode that the current threshold value is selected to be slightly larger than the deviation value can enable the judging result of the dead battery to be more accurate.
Fig. 4 is a logic judgment diagram of a battery detection method according to an embodiment of the present application. In fig. 4, taking an electronic device as an example of a mobile phone, if the mobile phone is in a start-up state, that is, a trigger start-up state corresponding to the foregoing, the mobile phone needs to obtain currents detected by the fuel gauge 1 and the fuel gauge 2. Wherein, the fuel gauge 1 detects the first current corresponding to the battery 1, and the fuel gauge 2 detects the first current corresponding to the battery 2. Then judging whether the absolute values of the first currents respectively corresponding to the battery 1 and the battery 2 after the filtering operation are larger than a current threshold value (Ith), if so, indicating that the battery 1 and the battery 2 are not dead batteries, and enabling the mobile phone to be started normally; if not, it is indicated that at least one of the batteries 1 and 2 is dead, and the mobile phone does not execute the starting operation.
Taking the first current corresponding to the battery 1 as an example, the manner of comparing the first current corresponding to the battery 1 performing the filtering operation with Ith includes, but is not limited to, the following:
mode one: the current of the battery 1 is sampled once at fixed time intervals, a plurality of second currents corresponding to the battery 1 are obtained after the current of the battery 1 is sampled for a plurality of times, an average value is obtained for the plurality of second currents, and the average value is used as the first current corresponding to the battery 1 and is compared with Ith. If the first current corresponding to the battery 1 is greater than Ith, it is indicated that the battery 1 is not a dead battery. If the first current corresponding to the battery 1 is smaller than Ith, it is indicated that the battery 1 is a dead battery.
Mode two: the current of the battery 1 is sampled once at fixed time intervals, and after the current of the battery 1 is sampled for a plurality of times, a plurality of second currents corresponding to the battery 1 are obtained, and the second currents are compared with Ith respectively. If each of the second currents is greater than Ith, it is indicated that the battery 1 is not a dead battery. If at least one of the plurality of second currents is less than Ith, it is indicated that the battery 1 is a dead battery.
Mode three: the current of the battery 1 is sampled once at fixed time intervals, a plurality of second currents corresponding to the battery 1 are obtained after the current of the battery 1 is sampled for a plurality of times, the maximum value and the minimum value in the plurality of second currents are removed, then an average value is obtained, and the average value is used as the first current corresponding to the battery 1 and is compared with Ith. If the first current corresponding to the battery 1 is greater than Ith, it is indicated that the battery 1 is not a dead battery. If the first current corresponding to the battery 1 is smaller than Ith, it is indicated that the battery 1 is a dead battery.
The embodiment of the present application does not limit the sampling manner of the current of the battery 1, and may be, for example, such that the electricity meter acquires the voltage of the resistor connected in series with the battery 1 and then determines the current of the resistor and the current of the battery 1 based on the voltage and the resistance value of the resistor.
The above description is given by taking the battery 1 as an example, and the manner of comparing the first current corresponding to the battery 1 with the Ith is illustrated, and it is understood that the manner of comparing the first current corresponding to the battery 2 with the Ith is the same as the principle of the manner of comparing the first current corresponding to the battery 1 with the Ith, which is not repeated herein.
It will be appreciated that the above description of the battery detection method provided in the embodiments of the present application is given by taking an example in which the electronic device includes two batteries only, but this does not constitute all limitations of the embodiments of the present application. The method provided by the application can be applied to electronic equipment with a plurality of batteries. Under the condition, the electronic equipment needs to acquire currents corresponding to the batteries respectively, and can be started only under the condition that the currents are larger than Ith, otherwise, the electronic equipment cannot be started.
According to the method provided by the embodiment of the application, after the electronic equipment is in the trigger starting state, currents corresponding to a plurality of batteries of the electronic equipment are detected, whether the batteries are dead batteries or not is determined according to whether the currents exceed a current threshold value, and whether the starting operation of the electronic equipment is executed is further determined. The method improves the accuracy of dead battery detection, avoids the phenomena of blocking, screen display and the like after the electronic equipment is started up caused by misjudging the dead battery as a normal battery, and improves the use experience of users.
Further, the present embodiment provides an electronic device that may include the battery detection circuit mentioned in the above embodiment.
The application provides an electronic device, the electronic device includes: one or more processors; one or more memories; the one or more memories store one or more programs that, when executed by the one or more processors, cause the electronic device to perform the battery detection method mentioned in the above embodiments.
The present application provides a chip for performing the battery detection method mentioned in the above embodiments.
The present application also provides a computer-readable storage medium having instructions stored thereon, which when executed on a computer, cause the computer to perform the battery detection method mentioned in the above embodiments.
Fig. 5 shows a schematic structural diagram of an electronic device 500. The electronic device 500 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 500. In other embodiments of the present application, electronic device 500 may include more or fewer components than shown, or may combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The power management module 141 may contain circuitry involved in embodiments of the present application. The battery 142 may be a battery module including a plurality of batteries, and in the embodiment of the present application, the battery 142 may include the battery 1 and the battery 2 described above.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system. The processor may be used to perform the battery detection methods mentioned in this application.
The wireless communication function of the electronic device 500 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in electronic device 500 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 500.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied to the electronic device 500. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
It is to be appreciated that as used herein, the term module may refer to or include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and/or memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable hardware components that provide the described functionality.
It is to be appreciated that in various embodiments of the present application, the processor may be a microprocessor, a digital signal processor, a microcontroller, or the like, and/or any combination thereof. According to another aspect, the processor may be a single core processor, a multi-core processor, or the like, and/or any combination thereof.
Embodiments disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the present application may be implemented as a computer program or program code that is executed on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a Digital Signal Processor (DSP), microcontroller, application Specific Integrated Circuit (ASIC), or microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. Program code may also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in the present application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy diskettes, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random Access Memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) in an electrical, optical, acoustical or other form of propagated signal using the internet. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the present application, each unit/module is a logic unit/module, and in physical aspect, one logic unit/module may be one physical unit/module, or may be a part of one physical unit/module, or may be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logic unit/module itself is not the most important, and the combination of functions implemented by the logic unit/module is the key to solve the technical problem posed by the present application. Furthermore, to highlight the innovative part of the present application, the above-described device embodiments of the present application do not introduce units/modules that are less closely related to solving the technical problems presented by the present application, which does not indicate that the above-described device embodiments do not have other units/modules.
It should be noted that in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.

Claims (14)

1. A battery detection method applied to an electronic device, the electronic device comprising a plurality of batteries, the method comprising:
detecting that the electronic equipment is in a trigger starting state; under the condition that the electronic equipment comprises an equalization circuit, acquiring a plurality of first currents respectively corresponding to a plurality of batteries connected in parallel, wherein the equalization circuit is used for equalizing the voltages of the batteries, and the equalization circuit is positioned among the batteries;
and determining that the batteries are in the charge-discharge circuits of the batteries corresponding to the first currents being larger than the current threshold, and executing starting operation on the electronic equipment, wherein when the first currents are larger than the current threshold, the batteries are normally charged and discharged.
2. The method of claim 1, wherein the obtaining a plurality of first currents respectively corresponding to a plurality of batteries included in the electronic device comprises:
for any one of the plurality of batteries, acquiring a first voltage of a resistor corresponding to the any one battery, wherein the resistor corresponding to the any one battery and the any one battery are connected in series in a charge-discharge circuit of the any one battery;
Determining a second current corresponding to the resistor corresponding to any battery based on the first voltage and the resistance value of the resistor corresponding to any battery;
and determining the first current corresponding to any battery based on the second current.
3. The method according to claim 1, wherein the method further comprises:
and determining that a battery corresponding to any one of the first currents is not in a charge-discharge circuit of the battery, and not executing starting operation on the electronic equipment, wherein the battery corresponding to any one of the first currents is smaller than the current threshold.
4. The method of claim 1, wherein the current threshold is determined based on a deviation value of zero current, wherein the deviation value of zero current is derived from sampling the zero current a plurality of times.
5. The method of claim 2, wherein determining the manner in which the first current corresponds to any of the plurality of batteries comprises:
sampling the current corresponding to any one of the batteries for multiple times according to a fixed time interval to obtain multiple second currents;
and taking the average value of the second currents as the first current corresponding to any battery.
6. The method of claim 2, wherein determining the manner in which the first current corresponds to any of the plurality of batteries comprises:
sampling the current corresponding to any one of the batteries for multiple times according to a fixed time interval to obtain multiple second currents;
and taking the second currents as the first currents corresponding to any battery.
7. The method of claim 2, wherein determining the manner in which the first current corresponds to any of the plurality of batteries comprises:
sampling the current corresponding to any one of the batteries for multiple times according to a fixed time interval to obtain multiple second currents;
and taking the average value of the currents excluding the maximum value and the minimum value in the second currents as the first current corresponding to any battery.
8. The method of any of claims 1-4, the electronic device comprising the equalization circuit, a detection module, a battery module, and a resistance module, the detection module comprising a first fuel gauge and a second fuel gauge, the battery module comprising a first battery and a second battery, the resistance module comprising a first resistance and a second resistance;
The output end of the first battery is connected with one end of the equalizing circuit, and the output end of the second battery is connected with the other end of the equalizing circuit;
the input end of the first battery is connected with one end of the first resistor, and the other end of the first resistor is grounded;
the input end of the second battery is connected with one end of the second resistor, and the other end of the second resistor is grounded;
the first electricity meter comprises a first end, a second end, a third end and a fourth end, wherein the first end is connected with the output end of the first battery, the second end is connected with one end of the first resistor, and the third end and the fourth end are both connected with the other end of the first resistor;
the second electricity meter comprises a fifth end, a sixth end, a seventh end and an eighth end, wherein the fifth end is connected with the output end of the second battery, the sixth end is connected with one end of the second resistor, and the seventh end and the eighth end are both connected with the other end of the second resistor.
9. The battery detection circuit is characterized by being applied to electronic equipment, and comprises a detection module, a battery module, a resistance module and a control module, wherein the battery module comprises a plurality of batteries connected in parallel, the resistance module comprises a plurality of resistors, and each resistor is respectively connected with each corresponding battery;
The detection module is used for detecting a plurality of voltages corresponding to a plurality of resistors in the resistor module respectively when the electronic equipment is in a trigger starting state;
the control module is used for determining a first current of each battery connected in series with each resistor based on the voltage corresponding to each resistor and the resistance value of each resistor when the electronic equipment comprises an equalization circuit, wherein the equalization circuit is used for equalizing the voltage of each battery and is positioned between the batteries;
and determining that each battery is in a charging and discharging circuit of each battery according to the fact that the first current of each battery is larger than a current threshold value, and executing starting operation on the electronic equipment, wherein when the first current of each battery is larger than the current threshold value, each battery is charged and discharged normally.
10. The circuit of claim 9, wherein the circuit further comprises a logic circuit,
the control module is further configured to determine that any battery is not in the charge-discharge circuit of any battery, and not perform a startup operation on the electronic device, where the first current of any battery in the first currents of the batteries is smaller than the current threshold.
11. An electronic device comprising the battery detection circuit of claim 9 or 10.
12. An electronic device, comprising: one or more processors; one or more memories; the one or more memories stores one or more programs that, when executed by the one or more processors, cause the electronic device to perform the battery detection method of any of claims 1-8.
13. A chip for performing the battery detection method according to any one of claims 1 to 8.
14. A computer readable storage medium having stored thereon instructions that, when executed on a computer, cause the computer to perform the battery detection method of any one of claims 1 to 8.
CN202311044199.3A 2023-08-18 2023-08-18 Battery detection method, circuit, device, chip and readable storage medium Active CN116774092B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311044199.3A CN116774092B (en) 2023-08-18 2023-08-18 Battery detection method, circuit, device, chip and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311044199.3A CN116774092B (en) 2023-08-18 2023-08-18 Battery detection method, circuit, device, chip and readable storage medium

Publications (2)

Publication Number Publication Date
CN116774092A CN116774092A (en) 2023-09-19
CN116774092B true CN116774092B (en) 2024-04-09

Family

ID=87991599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311044199.3A Active CN116774092B (en) 2023-08-18 2023-08-18 Battery detection method, circuit, device, chip and readable storage medium

Country Status (1)

Country Link
CN (1) CN116774092B (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929188A (en) * 2005-09-06 2007-03-14 富士通株式会社 Anomaly detection method of battery pack, battery pack and electronic apparatus
CN101086516A (en) * 2006-06-07 2007-12-12 华为技术有限公司 Battery in-position detection system when charging of electronic apparatus
JP2009025032A (en) * 2007-07-17 2009-02-05 Toyota Motor Corp Battery state detection device and method, and output control device and method
CN101421883A (en) * 2006-04-13 2009-04-29 松下电器产业株式会社 Battery pack and method for detecting disconnection of same
CN102760917A (en) * 2012-06-28 2012-10-31 华为技术有限公司 Hybrid battery and charge-discharge control method thereof
CN103311965A (en) * 2012-03-06 2013-09-18 北京联动天翼科技有限公司 Intelligent management device and method of charging and discharging of parallel-connected battery group
CN103490389A (en) * 2013-09-25 2014-01-01 无锡中星微电子有限公司 Battery protecting circuit and system
CN104009512A (en) * 2013-02-25 2014-08-27 波音公司 Battery module system
CN104270530A (en) * 2014-10-17 2015-01-07 深圳市中兴移动通信有限公司 Method and device for preventing starting abnormity and mobile terminal
CN104777432A (en) * 2015-04-30 2015-07-15 无锡中星微电子有限公司 Safety detection method and safety detection circuit for rechargeable battery and charger
CN204666703U (en) * 2015-04-14 2015-09-23 东莞市德尔能新能源股份有限公司 The current detection circuit of quick charging battery fender
CN106340923A (en) * 2016-09-29 2017-01-18 杰华特微电子(张家港)有限公司 Battery equalization circuit, control method and battery system
JP2017163749A (en) * 2016-03-10 2017-09-14 ニシム電子工業株式会社 Secondary battery system
CN108461834A (en) * 2018-02-12 2018-08-28 维沃移动通信有限公司 A kind of battery pack structure, mobile terminal and charge/discharge control method
CN208000981U (en) * 2018-02-05 2018-10-23 北京拓盛智联技术有限公司 A kind of rechargeable battery
CN109239609A (en) * 2018-11-02 2019-01-18 西安航远数字技术有限公司 A kind of in-place detection system of unmanned plane more batteries in parallel
CN109870660A (en) * 2019-03-25 2019-06-11 广西电网有限责任公司钦州供电局 A kind of the open circuit detection system and method for battery pack
CN110221226A (en) * 2019-04-30 2019-09-10 蜂巢能源科技有限公司 The test method and test macro of battery pack Capacity uniformity
CN210347876U (en) * 2019-06-03 2020-04-17 长沙优力电驱动系统有限公司 Battery cell charging and discharging information detection device
CN111537793A (en) * 2020-05-26 2020-08-14 惠州Tcl移动通信有限公司 Power consumption testing method and system of mobile terminal
CN113541256A (en) * 2021-07-21 2021-10-22 研祥智慧物联科技有限公司 Discharge method and discharge system

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929188A (en) * 2005-09-06 2007-03-14 富士通株式会社 Anomaly detection method of battery pack, battery pack and electronic apparatus
CN101421883A (en) * 2006-04-13 2009-04-29 松下电器产业株式会社 Battery pack and method for detecting disconnection of same
CN101086516A (en) * 2006-06-07 2007-12-12 华为技术有限公司 Battery in-position detection system when charging of electronic apparatus
JP2009025032A (en) * 2007-07-17 2009-02-05 Toyota Motor Corp Battery state detection device and method, and output control device and method
CN103311965A (en) * 2012-03-06 2013-09-18 北京联动天翼科技有限公司 Intelligent management device and method of charging and discharging of parallel-connected battery group
CN102760917A (en) * 2012-06-28 2012-10-31 华为技术有限公司 Hybrid battery and charge-discharge control method thereof
CN104009512A (en) * 2013-02-25 2014-08-27 波音公司 Battery module system
CN103490389A (en) * 2013-09-25 2014-01-01 无锡中星微电子有限公司 Battery protecting circuit and system
CN104270530A (en) * 2014-10-17 2015-01-07 深圳市中兴移动通信有限公司 Method and device for preventing starting abnormity and mobile terminal
CN204666703U (en) * 2015-04-14 2015-09-23 东莞市德尔能新能源股份有限公司 The current detection circuit of quick charging battery fender
CN104777432A (en) * 2015-04-30 2015-07-15 无锡中星微电子有限公司 Safety detection method and safety detection circuit for rechargeable battery and charger
JP2017163749A (en) * 2016-03-10 2017-09-14 ニシム電子工業株式会社 Secondary battery system
CN106340923A (en) * 2016-09-29 2017-01-18 杰华特微电子(张家港)有限公司 Battery equalization circuit, control method and battery system
CN208000981U (en) * 2018-02-05 2018-10-23 北京拓盛智联技术有限公司 A kind of rechargeable battery
CN108461834A (en) * 2018-02-12 2018-08-28 维沃移动通信有限公司 A kind of battery pack structure, mobile terminal and charge/discharge control method
CN109239609A (en) * 2018-11-02 2019-01-18 西安航远数字技术有限公司 A kind of in-place detection system of unmanned plane more batteries in parallel
CN109870660A (en) * 2019-03-25 2019-06-11 广西电网有限责任公司钦州供电局 A kind of the open circuit detection system and method for battery pack
CN110221226A (en) * 2019-04-30 2019-09-10 蜂巢能源科技有限公司 The test method and test macro of battery pack Capacity uniformity
CN210347876U (en) * 2019-06-03 2020-04-17 长沙优力电驱动系统有限公司 Battery cell charging and discharging information detection device
CN111537793A (en) * 2020-05-26 2020-08-14 惠州Tcl移动通信有限公司 Power consumption testing method and system of mobile terminal
CN113541256A (en) * 2021-07-21 2021-10-22 研祥智慧物联科技有限公司 Discharge method and discharge system

Also Published As

Publication number Publication date
CN116774092A (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN108899952B (en) Multi-battery charging and discharging device and mobile terminal
US9979220B2 (en) Electronic device and method for controlling charging of the same
EP3813221B1 (en) Battery charging method, battery charging apparatus and storage medium
US20080074084A1 (en) Electronic device and method for controlling charging current
KR20130105891A (en) Portable electronic device and method for recovering power to a rechargeable battery used therein
CN114859258B (en) Electricity meter and electronic equipment applied to multiple batteries
CN108091808B (en) Battery, equipment, charging control method and device
CN109450009B (en) Charging control method and device and computer storage medium
CN114844182B (en) Charging circuit, charging method and electronic equipment
EP4002545A1 (en) Charging/discharging protection circuit, terminal device, and battery discharging control method
CN114865755B (en) Multi-battery power supply, charging and discharging method and electronic equipment
CN116707097A (en) Charging and discharging method, device, chip and readable storage medium
CN116365079B (en) Electronic device, method for determining whether battery is old or new, and computer-readable storage medium
KR102254716B1 (en) Mobile terminal for cell reselection in cellular mobile communication system and methods therefor
CN116774092B (en) Battery detection method, circuit, device, chip and readable storage medium
CN112531803A (en) Method for operating an electronic device comprising at least two batteries and electronic device
CN113660149B (en) Equipment control method and device, storage medium and electronic equipment
CN111384754B (en) Charging method, charging device, storage medium and mobile terminal
CN112448448A (en) Charging control method and device, earphone, electronic equipment and readable storage medium
CN114503390A (en) Method for controlling charging of battery of electronic device and electronic device thereof
US7774031B2 (en) Portable electronic device with operation mode determined in accordance with power consumption and method thereof
CN117388728B (en) Battery detection circuit, method and electronic equipment
CN113133098B (en) Positioning circuit, positioning method and terminal
CN116031966B (en) Temperature compensation method and electronic equipment
CN111864857B (en) Battery charging method, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant