CN109473736B - Battery resistance detection method, charge and discharge control method and device and electronic equipment - Google Patents

Battery resistance detection method, charge and discharge control method and device and electronic equipment Download PDF

Info

Publication number
CN109473736B
CN109473736B CN201710807036.4A CN201710807036A CN109473736B CN 109473736 B CN109473736 B CN 109473736B CN 201710807036 A CN201710807036 A CN 201710807036A CN 109473736 B CN109473736 B CN 109473736B
Authority
CN
China
Prior art keywords
battery
thermistor
resistor
resistance value
value
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
CN201710807036.4A
Other languages
Chinese (zh)
Other versions
CN109473736A (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.)
Shanghai BYD Co Ltd
Original Assignee
Shanghai BYD 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 Shanghai BYD Co Ltd filed Critical Shanghai BYD Co Ltd
Priority to CN201710807036.4A priority Critical patent/CN109473736B/en
Publication of CN109473736A publication Critical patent/CN109473736A/en
Application granted granted Critical
Publication of CN109473736B publication Critical patent/CN109473736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/4285Testing apparatus
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0077
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • H01M10/4257Smart batteries, e.g. electronic circuits inside the housing of the cells or batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The disclosure relates to a battery resistance detection method, a charge and discharge control method, a device and an electronic device, wherein the battery resistance detection method comprises the following steps: when detecting the resistance of the battery, controlling the battery to stop charging and discharging operations or performing the charging and discharging operations at a current value smaller than a threshold value; and acquiring the resistance value of the identification resistor of the battery and/or the resistance value of the thermistor. According to the scheme, the extra voltage generated by the loop impedance of the shared circuit is reduced, so that the resistance value of the identity recognition resistor and the resistance value of the thermistor are more accurate, and the accuracy rate of recognizing the identity and the temperature of the battery is improved.

Description

Battery resistance detection method, charge and discharge control method and device and electronic equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a battery resistance detection method, a battery charge/discharge control apparatus, and an electronic device.
Background
With the development of communication, mobile phones have become an indispensable part of daily life of many people, and in order to ensure the safety of mobile phone batteries in the using process, a battery detection circuit is required to detect whether the batteries are batteries meeting requirements. In the related art, the battery detection circuit includes an Identification (ID) resistor and a Negative Temperature Coefficient (NTC) resistor, wherein the ID resistor is used for identifying the identification information of the battery, and the NTC resistor is used for detecting the Temperature information of the battery. In the battery detection circuit, because the circuit for detecting the ID resistance and the circuit for detecting the NTC resistance have a shared circuit, and the shared circuit has a certain loop impedance, in the process of charging and discharging the battery, the charging current or the discharging current can generate extra voltage rise or voltage drop on the shared circuit, so that extra voltage is added in the detection loop in the process of charging and discharging, further, errors occur in the detection process of the ID resistance and the NTC resistance, and the detection accuracy of the ID resistance and the NTC resistance is influenced.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for detecting a resistance of a battery, and a method and an apparatus for controlling charging and discharging of a battery.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for detecting a resistance of a battery, including:
when detecting the resistance of the battery, controlling the battery to stop charging and discharging operations or performing the charging and discharging operations at a current value smaller than a threshold value;
and acquiring the resistance value of the identification resistor of the battery and/or the resistance value of the thermistor.
Optionally, after obtaining the resistance value of the identification resistor and/or the resistance value of the thermistor of the battery, the method further comprises:
when the resistance value of the identity recognition resistor meets a first preset range and the resistance value of the thermistor meets a second preset range, recovering the charge and discharge operation of the battery;
or
After obtaining the resistance value of the identification resistor or the resistance value of the thermistor of the battery, the method further comprises:
and when the resistance value of the identity recognition resistor meets a first preset range or the resistance value of the thermistor meets a second preset range, the charging and discharging operation of the battery is recovered.
Optionally, after the obtaining of the resistance value of the identification resistor and/or the resistance value of the thermistor of the battery, the method further includes:
and when the resistance value of the identity recognition resistor does not meet the first preset range or the resistance value of the thermistor does not meet the second preset range, controlling the battery to stop charging and discharging operations.
According to a second aspect of the embodiments of the present disclosure, there is provided a battery charge and discharge control method including:
controlling a battery to perform a charging and discharging operation during a charging and discharging period of a unit cycle, the unit cycle including the charging and discharging period and a detection period;
controlling the battery to stop charging and discharging operations in the detection time period, or performing charging and discharging operations at a current value smaller than a threshold value, and acquiring the resistance value of the identity recognition resistor and/or the resistance value of the thermistor of the battery;
determining the identity of the battery according to the resistance value of the identity recognition resistor, and/or determining the temperature of the battery according to the resistance value of the thermistor;
and when the identity of the battery is legal and/or the temperature of the battery is normal temperature, recovering the charging and discharging operation of the battery after the detection time period is ended.
Optionally, the determining the identity of the battery according to the resistance value of the identity recognition resistor, and/or determining the temperature of the battery according to the resistance value of the thermistor includes:
when the resistance value of the identity recognition resistor meets a first preset range, determining the identity of the battery as a legal identity; and/or
And when the resistance value of the thermistor meets a second preset range, determining that the temperature of the battery is a normal temperature.
Optionally, the method further comprises:
and when the resistance value of the identification resistor does not meet the first preset range or the resistance value of the thermistor does not meet the second preset range, controlling the battery to stop charging and discharging operations.
Optionally, after the detection period is ended and the charge and discharge operation of the battery is resumed, the method further includes:
controlling the battery to stop the charge and discharge operation or to perform the charge and discharge operation at a current value smaller than the threshold value within a detection period of a next unit cycle, and detecting a resistance value of the thermistor;
and determining the temperature of the battery according to the resistance value of the thermistor.
Optionally, when the charging and discharging operations are performed at a current value smaller than a threshold value in the detection period, the obtaining the resistance value of the identification resistor and/or the resistance value of the thermistor of the battery includes:
determining a charging and discharging compensation voltage value of the identity recognition resistor according to the charging and discharging current and the first loop impedance corresponding to the identity recognition resistor;
determining the resistance value of the identity recognition resistor according to the charge-discharge compensation voltage value of the identity recognition resistor; and/or
Determining a charging and discharging compensation voltage value of the thermistor according to the charging and discharging current and a second loop impedance corresponding to the thermistor;
and determining the resistance value of the thermistor according to the charge-discharge compensation voltage value of the thermistor.
According to a third aspect of the embodiments of the present disclosure, there is provided a resistance detection method of a battery, including:
acquiring a voltage value of the identity recognition resistor and/or a voltage value of the thermistor;
acquiring a compensation voltage value of the identity recognition resistor and/or a compensation voltage value of the thermistor;
determining a target voltage value of the identity recognition resistor according to the voltage value of the identity recognition resistor and the compensation voltage value of the identity recognition resistor, and/or determining a target voltage value of the thermistor according to the thermistor and the compensation voltage value of the thermistor;
and determining the resistance value of the identification resistor according to the target voltage value of the identification resistor, and/or determining the resistance value of the thermistor according to the target voltage value of the thermistor.
Optionally, the acquiring a compensation voltage value of the identification resistor and/or a compensation voltage value of the thermistor includes:
acquiring a compensation voltage value of the identity recognition resistor according to the charging and discharging current and the first loop impedance corresponding to the identity recognition resistor; and/or
And acquiring a compensation voltage value of the thermistor according to the charging and discharging current and a second loop impedance corresponding to the thermistor.
Optionally, after determining the resistance value of the identification resistor according to the target voltage value of the identification resistor and/or determining the resistance value of the thermistor according to the target voltage value of the thermistor, the method further comprises:
when the resistance value of the identity recognition resistor does not meet a first preset range or the resistance value of the thermistor does not meet a second preset range, controlling the battery to stop charging and discharging operations;
and when the battery stops charging and discharging operations, acquiring the resistance value of the identification resistor and/or the resistance value of the thermistor.
Optionally, before the obtaining the voltage value of the identification resistor and the voltage value of the thermistor, the method further includes:
the battery is controlled to stop the charging and discharging operation or to perform the charging and discharging operation at a current value less than a threshold value.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a resistance detection apparatus of a battery, including:
a control module configured to control the battery to stop a charge and discharge operation or to perform the charge and discharge operation at a current value less than a threshold value when detecting a resistance of the battery;
a processing module configured to obtain a resistance value of an identification resistor and/or a resistance value of a thermistor of the battery.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a battery charge and discharge control device including:
a charge-discharge module configured to control a battery to perform a charge-discharge operation during a charge-discharge period of a unit cycle, the unit cycle including the charge-discharge period and a detection period;
a first processing module configured to control the battery to stop charging and discharging operations or perform charging and discharging operations at a current value smaller than a threshold value in the detection period, and obtain a resistance value of an identification resistor and/or a resistance value of a thermistor of the battery;
a second processing module configured to determine an identity of the battery according to a resistance value of the identification resistor and/or determine a temperature of the battery according to a resistance value of the thermistor;
and the third processing module is configured to recover the charging and discharging operation of the battery after the detection time period is ended when the identity of the battery is legal and/or the temperature of the battery is normal.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a battery detection apparatus including:
the first acquisition module is configured to acquire a voltage value of the identification resistor and/or a voltage value of the thermistor;
the second acquisition module is configured to acquire a compensation voltage value of the identification resistor and/or a compensation voltage value of the thermistor;
a first processing module configured to determine a target voltage value of the identification resistor according to the voltage value of the identification resistor, the compensation voltage value of the identification resistor, and/or determine a target voltage value of the thermistor according to the compensation voltage value of the thermistor;
a second processing module configured to determine a resistance value of the identification resistor according to a target voltage value of the identification resistor and/or determine a resistance value of the thermistor according to a target voltage value of the thermistor.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when detecting the resistance of the battery, controlling the battery to stop charging and discharging operations or performing the charging and discharging operations at a current value smaller than a threshold value;
and acquiring the resistance value of the identification resistor of the battery and/or the resistance value of the thermistor.
According to an eighth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
controlling a battery to perform a charging and discharging operation during a charging and discharging period of a unit cycle, the unit cycle including the charging and discharging period and a detection period;
controlling the battery to stop charging and discharging operations in the detection time period, or performing charging and discharging operations at a current value smaller than a threshold value, and acquiring the resistance value of the identity recognition resistor and/or the resistance value of the thermistor of the battery;
determining the identity of the battery according to the resistance value of the identity recognition resistor, and/or determining the temperature of the battery according to the resistance value of the thermistor;
and when the identity of the battery is legal and/or the temperature of the battery is normal temperature, recovering the charging and discharging operation of the battery after the detection time period is ended.
According to a ninth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a voltage value of the identity recognition resistor and/or a voltage value of the thermistor;
acquiring a compensation voltage value of the identity recognition resistor and/or a compensation voltage value of the thermistor;
determining a target voltage value of the identity recognition resistor according to the voltage value of the identity recognition resistor and the compensation voltage value of the identity recognition resistor, and/or determining a target voltage value of the thermistor according to the thermistor and the compensation voltage value of the thermistor;
and determining the resistance value of the identification resistor according to the target voltage value of the identification resistor, and/or determining the resistance value of the thermistor according to the target voltage value of the thermistor.
According to a tenth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the resistance detection method of the battery provided by the first aspect of the present disclosure.
According to an eleventh aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the battery charge and discharge control method provided by the second aspect of the present disclosure.
According to a twelfth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the resistance detection method of the battery provided by the third aspect of the present disclosure.
In the method, when the resistance of the battery is detected, the battery is controlled to stop charging and discharging operations, or the charging and discharging operations are performed at the current value smaller than a threshold value, so that extra voltage generated by loop impedance of a shared circuit is reduced, the resistance value of the identity recognition resistor and the resistance value of the thermistor are more accurate, and the accuracy of recognizing the identity and the temperature of the battery is improved.
According to the battery identity and temperature identification method and device, the battery is controlled to stop charging and discharging operation in the detection time interval of the unit cycle, or the charging and discharging operation is carried out at the current value smaller than a threshold value, extra voltage generated by loop impedance of a shared circuit is reduced in the process of detecting the resistor, the resistance value of the identity identification resistor and the resistance value of the thermistor are more accurate, and therefore the accuracy of identifying the identity and the temperature of the battery is improved. In addition, the resistance condition can be detected at regular time by periodically detecting the resistance of the battery, and the safety of the battery is ensured.
In addition, according to the battery identity and temperature identification method and device, the compensation voltage of the identity identification resistor and/or the compensation voltage of the thermistor are/is obtained, the voltage of the identity identification resistor and/or the voltage of the thermistor are/is compensated, the influence of extra voltage caused by loop impedance of a shared circuit on a detection result is reduced, the obtained resistance value of the identity identification resistor and the obtained resistance value of the thermistor are more accurate, and the accuracy rate of identifying the battery identity and the temperature is improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a schematic diagram of a battery protection circuit shown in accordance with an example embodiment.
Fig. 2 is a schematic diagram of a battery detection circuit for detecting an ID resistance and an NTC resistance according to a constant voltage method shown in an exemplary embodiment.
Fig. 3 is a schematic diagram of a battery detection circuit for detecting an ID resistance and an NTC resistance according to a constant current method shown in an exemplary embodiment.
Fig. 4 is a flow chart illustrating a method of detecting resistance of a battery according to an exemplary embodiment.
Fig. 5 is a flow chart illustrating a battery charge and discharge control method according to an exemplary embodiment.
Fig. 6 is a flowchart illustrating a method of periodic detection of an NTC resistance according to an exemplary embodiment.
Fig. 7 is a flowchart illustrating a resistance detection method of a battery according to another exemplary embodiment.
Fig. 8 is a schematic diagram illustrating a resistance detection apparatus of a battery according to an exemplary embodiment.
Fig. 9 is a schematic diagram illustrating a battery charge and discharge control apparatus according to an exemplary embodiment.
Fig. 10 is a schematic diagram illustrating a resistance detection apparatus of a battery according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In an embodiment of the present disclosure, the electronic device includes a chargeable and dischargeable battery (e.g., a lithium battery) for providing electric energy. Because the battery can not be overcharged, overdischarged, overcurrent, short-circuited and high-temperature charged and discharged in the using process, the battery is generally protected by a protection circuit. Referring to fig. 1, a battery protection circuit according to an embodiment of the present disclosure includes: the device comprises an identity recognition resistor, a thermistor, a control module and a switch module.
The positive electrode of the battery is connected with the positive electrode input port P +, and the negative electrode of the battery is connected with the negative electrode input port P < - > through the switch module; the switch module is connected with the control module; one end of the identity recognition resistor is respectively connected with the P-and one end of the thermistor, and the other end of the identity recognition resistor is connected with the ID output end; one end of the thermistor is connected with the P-and the other end is connected with the NTC output end.
When the battery is used for supplying power to the electronic equipment, the P + end and the P-end are connected with the load of the electronic equipment, so that power supply to the load of the electronic equipment is realized. The load here may be a processor, a camera, a display screen, etc. When the battery is charged, the P + end and the P-end are connected with a charging interface of the electronic equipment, so that the battery is charged.
In one embodiment, referring to fig. 2 and 3, the control module includes a control chip IC, the control chip IC includes a positive power input terminal VDD, a negative power input terminal VSS, a discharging protection execution terminal DO, a charging protection execution terminal CO, an overcurrent detection execution terminal VM, and the switch module includes two fets connected in series.
The control chip IC is used for realizing the connection and disconnection of the charging loop and the discharging loop by respectively controlling the connection and the disconnection of the two field effect transistors, and the overcurrent detection execution end VM of the control chip IC is connected with the P & lt- & gt through a resistor.
In the embodiment of the disclosure, during the use of the battery, the identity and the temperature of the battery can be detected by detecting the resistance value of the identity recognition resistor and the resistance value of the thermistor.
In the case of detecting an identification resistor (ID resistor) and a thermistor (NTC resistor), detection can be performed by two methods, one is a constant voltage method and the other is a constant current method. As shown in fig. 2, a schematic diagram of a battery test circuit for testing an ID resistance and an NTC resistance for a constant voltage method. The battery detection circuit is characterized in that load resistors R are arranged at an ID output end and a P-end1And a constant power supply E constituting a detection circuit for detecting the ID resistance. By arranging load resistors R at the NTC output end and the P-end2And a constant power supply E constituting a detection loop for detecting the NTC resistance. In the process of executing resistance detection, load resistance R is detected1Determining the voltage across the ID resistor by measuring the voltage across the resistor, and by measuring the load resistance R2The voltage across the NTC resistor is determined. Since the P-to-ID output terminal and the P-to-NTC output terminal are shared by the detection loop of the ID resistor and the detection loop of the NTC resistor, the shared circuit generates additional voltage rise or voltage drop during the charging and discharging operations of the battery, resulting in the load resistor R in the detection loop1And R2The voltage values at the two ends are changed, and the voltage values at the two ends of the ID resistor and the NTC resistor are further influenced. During the discharge process of the batteryThe additional voltage is required to be subtracted, and the additional voltage is added in the battery charging process, so that the NTC resistance and the ID resistance detection are inaccurate when the battery is charged or discharged in the conventional scheme.
For example, the constant voltage source is E, and the ID resistor has a resistance value of RIDThe resistance value of the NTC resistor is RNTCThe loop impedance (i.e., P-resistance to the ID output) of the common circuit in the ID detection loop is RID-P-The loop impedance (i.e. the resistance of P-to the NTC output) of the common circuit in the NTC detection loop is RNTC-P-The charging current when the battery is in a charging state is ICharging of electricityThe discharge current when the battery is in a discharge state is IDischarge of electricity
The load resistance R in the ID resistance detection circuit when the battery is in a state of neither being charged nor discharged1The voltages at both ends are:
Figure BDA0001402951740000111
when the battery is in a discharge state, the load resistor R1The voltages at both ends are:
Figure BDA0001402951740000112
when the battery is in a charging state, the load resistor R1The voltages at both ends are:
Figure BDA0001402951740000113
load resistance R in NTC resistance detection circuit when battery is in non-charging and non-discharging state2The voltages at both ends are:
Figure BDA0001402951740000114
when the battery is in a discharge state, the load resistor R2Two endsThe voltage of (a) is:
Figure BDA0001402951740000115
when the battery is in a charging state, the load resistor R2The voltages at both ends are:
Figure BDA0001402951740000116
respectively taking E as 0.4V, IDischarge of electricityIs 3A, RNTC-P-Is 0.02 omega, R1Is 1K omega, R2Is 1K omega, RID-P-Is 0.02 omega, RIDIs 4.7 K.OMEGA.RNTCAt 10K Ω, substituting the above equation, one can obtain:
when the battery is not charged or discharged, the load resistance R1The voltage of (a) is: v ═ 0.0702V;
when the battery is in a discharge state, the load resistor R1The voltage of (a) is: v is 0.0596V;
when the battery is in a charging state, the load resistor R1The voltage of (a) is: V-0.0807V;
according to the formula of the error rate during discharge:
discharge error rate (R when not discharged) of 100% × (R when not discharged)1Detection voltage of-discharge time R1Detection voltage of)/not discharged time R1The detection voltage of (1);
r at discharge can be obtained1The detection error of the voltage of (2) is 15.1%;
according to the formula of the error rate during charging:
charge error rate (R when not charged) 100% × (R when not charged)1Detection voltage of-discharging charging time R1Detected voltage)/not charged time R1The detection voltage of (1);
can obtain R during charging1The detection error of the voltage of (2) is 15%.
Similarly, when the battery is not charged or discharged, the load resistance R is2The voltage of (a) is: V-0.0364V;
when the battery is in a discharge state, the load resistor R2The voltage of (a) is: V-0.0309V;
when the battery is in a charging state, the load resistor R2The voltage of (a) is: v is 0.0418V;
during discharge R2The detection error of the voltage of (2) is 15.1%;
during charging R2The detection error of the voltage of (2) is 14.8%.
As shown in fig. 3, a schematic diagram of a battery test circuit for testing an ID resistance and an NTC resistance for a constant current method. The battery detection circuit is characterized in that a constant current source I is arranged at an ID output end and a P-endSA detection circuit for detecting the ID resistance is formed. By arranging a constant current source I at the NTC output terminal and the P-terminalSAnd forming a detection loop for detecting the NTC resistance. In performing the resistance detection, a voltage across the ID resistance and a voltage across the NTC resistance are detected. Since the P-to-ID output and the P-to-NTC output are shared by the detection loop of the ID resistor and the detection loop of the NTC resistor, the shared circuit generates an additional voltage rise or drop during the charging and discharging operations of the battery, which affects the voltage values applied to the ID resistor and the NTC resistor. The extra voltage is required to be subtracted during the discharging process of the battery and added during the charging process of the battery, thereby causing the inaccuracy of the detection of the NTC resistance and the ID resistance in the conventional scheme during the charging or discharging process of the battery.
For example, when the battery is in an uncharged or undischarged state, the voltage across the ID resistor is:
V=IS×(RID+RID-P-);
when the battery is in a discharge state, the voltage across the ID resistor is:
V=IS×RID-Idischarge of electricity×RID-P-
When the battery is in a charged state, the voltage across the ID resistor is:
V=IS×RID+Icharging of electricity×RID-P-
When the battery is in a state of not being charged and not being discharged, the voltage across the NTC resistor is:
V=IS×(RNTC+RNTC-P-);
when the battery is in a discharging state, the voltage across the NTC resistor is:
V=IS×RNTC-Idischarge of electricity×RNTC-P-
When the battery is in a charging state, the voltage across the NTC resistor is:
V=IS×RNTC+Icharging of electricity×RNTC-P-
Respectively take ISIs 0.04mA, IDischarge of electricityIs 3A, RNTC-P-Is 0.02 omega, R1Is 1K omega, R2Is 1K omega, RID-P-Is 0.02 omega, RIDIs 4.7 K.OMEGA.RNTCAt 10K Ω, substituting the above equation, one can obtain:
when the battery is not charged or discharged, the voltage of the ID resistor is: V-0.1880V;
when the battery is in a discharge state, the voltage of the ID resistor is as follows: v ═ 0.128V;
when the battery is in a charging state, the voltage of the ID resistor is as follows: v ═ 0.24V.
When the battery is in a discharge state, the ID detection error rate is as follows: 31.9 percent
When the battery is in a charging state, the ID detection error rate is as follows: 27.7 percent
When the battery is not charged or discharged, the voltage of the NTC resistor is: v is 0.400V;
when the battery is in a discharging state, the voltage of the NTC resistor is as follows: v ═ 0.34V;
when the battery is in a charging state, the voltage of the NTC resistor is as follows: v is 0.46V.
When the battery is in a discharging state, the NTC detection error rate is as follows: 15 percent;
when the battery is in a charging state, the NTC detection error rate is as follows: 15 percent.
According to the calculation and analysis, when the ID resistor and the NTC resistor are detected when the battery is in a charging state or a discharging state, the error rate of the detection is 14.8% -31.9%, and the error increases along with the increase of the charging and discharging current, so that the judgment of the electronic equipment on the battery state is seriously influenced.
In order to improve the detection accuracy of the ID resistance and the NTC resistance, the present disclosure provides a resistance detection method of a battery, as shown in fig. 4, the method including:
in step S41, when detecting the resistance of the battery, controlling the battery to stop the charge and discharge operation or to perform the charge and discharge operation at a current value less than a threshold value;
in step S42, the resistance value of the battery identification resistor and/or the resistance value of the thermistor is acquired.
In the present disclosure, when the resistance of the battery is detected, in order to avoid the charge and discharge current from generating an extra voltage on the common circuit, the charge and discharge operation of the battery is stopped or performed at a current value less than a threshold value. For example, when the electronic device using the battery is a mobile phone, the charging and discharging module of the mobile phone performs a charging operation on the battery, and when the resistance of the battery needs to be detected, the processor of the mobile phone may send a control instruction to the charging and discharging module to control the charging and discharging module to stop charging or to perform charging with a small current. The threshold of the low current charging and discharging may be set according to actual needs, for example, the threshold is a minimum current value for ensuring normal operation of the electronic device, or the threshold is a current value when the electronic device is in a standby state, and the like, which is not limited in this application.
The resistance of the battery is detected, and only the identity recognition resistance can be detected, only the thermistor can be detected, and the identity recognition resistance and the thermistor can be detected. When only the identity recognition resistor is detected, the resistance value of the identity recognition resistor is obtained, and therefore identity information of the battery is verified. When only the thermistor is detected, the resistance value of the thermistor is acquired, thereby monitoring the temperature of the battery. When the identity recognition resistor and the thermistor are both detected, the identity and the temperature of the battery can be detected according to the resistance values of the two resistors respectively.
In the present disclosure, whether the identity of the battery is legal is determined by the resistance value of the ID resistor, and whether the temperature of the battery is normal is determined by the resistance value of the NTC resistor. That is, the method of the present disclosure further includes: when the resistance value of the identity recognition resistor meets a first preset range and the resistance value of the thermistor meets a second preset range, recovering the charge and discharge operation of the battery; or when the resistance value of the identity recognition resistor meets a first preset range or the resistance value of the thermistor meets a second preset range, the charging and discharging operation of the battery is recovered.
When the resistance value of the ID resistor meets a first preset range, the identity of the battery is legal, and when the resistance value of the NTC resistor meets a second preset range, the temperature of the battery is normal. In one embodiment, the comparison of the resistance value with the preset range may be implemented by a comparator, for example, taking the obtained resistance value of the ID resistor and a first preset range as inputs of the comparator, and determining whether the resistance value of the ID resistor satisfies the first preset range according to the output result of the comparator, where the first preset range may be set according to a legal ID resistor. In addition, since the battery has a safe operating temperature range, for example, the safe operating temperature range of the battery is-20 ℃ to 60 ℃, the detected temperature of the battery is within the safe operating temperature range, which indicates that the temperature of the battery is a normal temperature. In the present disclosure, the temperature range is converted into the resistance value range, and it is determined whether the temperature of the battery is a normal temperature by determining whether the resistance value of the NTC resistor is within a second preset range. When the resistance value of the ID resistor meets a first preset range and/or the resistance value of the NTC resistor meets a second preset range, the battery is in a safe state, and the charging and discharging operations of the battery can be recovered.
In the disclosure, the battery is controlled to stop the charging and discharging operations when the resistance value of the identification resistor does not satisfy the first preset range or the resistance value of the thermistor does not satisfy the second preset range.
When the resistance value of the ID resistor does not meet the first preset range, the identity of the battery is an illegal identity, if the illegal battery is charged and discharged, potential safety hazards exist, and at the moment, the battery is controlled to stop charging and discharging operation in order to ensure safety. When the voltage value of the NTC resistor does not satisfy the second preset range, it indicates that the temperature of the battery exceeds the normal operating temperature range, and if the battery continues to be used, the battery may be damaged or other safety problems may occur, so that it is necessary to control the battery to stop the charging and discharging operations.
In the present disclosure, when the battery is controlled to perform the charging and discharging operations at a current value less than a threshold value, a more accurate resistance value may be obtained by performing voltage compensation on the identification resistor and/or the thermistor, and the voltage compensation during the charging process and the discharging process will be described below, respectively.
First, a method for determining a resistance value of an ID resistor according to a charge compensation voltage when charging is performed at a current value less than a threshold value, includes the steps of:
determining a first charging compensation voltage value according to the charging current and the first loop impedance corresponding to the identity recognition resistor;
and determining the resistance value of the identification resistor according to the first charging compensation voltage value.
Also, a method of determining a resistance value of an NTC resistor according to a charge compensation voltage, comprising the steps of:
determining a second charging compensation voltage value according to the charging current and a second loop impedance corresponding to the thermistor;
and determining the resistance value of the thermistor according to the second charging compensation voltage.
In the above steps, the battery is charged with a small current, and although the additional voltage generated by the common circuit is greatly reduced by the small current charging, in order to make the detection result more accurate, the voltage of the ID resistor and/or the voltage of the NTC resistor may be compensated in a compensation manner, and the resistance value of the ID resistor and/or the NTC resistor may be determined according to the compensated voltage value.
In one embodiment, the first loop impedance corresponds to a loop impedance R of the shared circuitry in the ID detection loopID-P-The second loop impedance corresponds to the loop impedance R of the common circuit in the NTC detection loopNTC-P-. R is preliminarilyID-P-,RNTC-P-The charging current value of the battery charged with a small current is written in a memory of an electronic device using the battery, and when detecting the ID resistor and the NTC resistor, the current voltage value of the ID resistor and the current voltage value of the NTC resistor are obtained, and the current voltage value of the ID resistor and the current voltage value of the NTC resistor are obtained according to RID-P-And a charging current for calculating a first charge compensation voltage value of the ID resistor according to RNTC-P-And charging current, calculating a second charging compensation voltage value of the NTC resistor, subtracting the first charging compensation voltage value on the basis of the current voltage value of the ID resistor, subtracting the second charging compensation voltage value on the basis of the current voltage value of the NTC resistor to obtain the real voltage of the ID resistor and the real voltage of the NTC resistor, determining the resistance value of the ID resistor according to the real voltage of the ID resistor, and determining the resistance value of the NTC resistor according to the real voltage of the NTC resistor.
In addition, the method for determining the resistance value of the ID resistor according to the charge compensation voltage when discharging at a current value smaller than a threshold value includes the steps of:
determining a first discharge compensation voltage value according to the discharge current and the first loop impedance corresponding to the identity recognition resistor;
and determining the resistance value of the identity recognition resistor according to the first discharge compensation voltage value.
Also, a method of determining a resistance value of an NTC resistor according to a discharge compensation voltage, comprising the steps of:
determining a second discharge compensation voltage value according to the discharge current and a second loop impedance corresponding to the thermistor;
and determining the resistance value of the thermistor according to the second discharge compensation voltage value.
Determining the voltage of the ID resistor and the NTC resistor according to the discharge compensation voltage during low-current discharge and the charge compensation voltage during low-current chargeThe voltage principle for determining the ID resistance and the NTC resistance is the same, i.e. R can be determinedID-P-,RNTC-P-The battery is pre-written into a memory of the electronic device using the battery according to a discharge current value of the battery discharged by a small current, a first discharge compensation voltage value is added on the basis of a current voltage value of the ID resistor to obtain a voltage value of the real ID resistor, a second discharge compensation voltage is added on the basis of a current voltage value of the NTC resistor to obtain a voltage value of the real NTC resistor, a resistance value of the ID resistor is determined according to the voltage value of the real ID resistor, and a resistance value of the NTC resistor is determined according to the voltage value of the real NTC resistor.
In the present disclosure, an electronic device using the battery may have a compensation parameter library stored therein, and the compensation parameter library includes RID-P-,RNTC-P-Charging current, discharging current. When the compensation voltage needs to be calculated, the required data can be directly read from the compensation parameter library for compensation calculation, and of course, the compensation parameter library can also be stored on a storage medium of the battery or at other locations, which is not limited in this disclosure.
Referring to fig. 5, a flowchart of a battery charging and discharging control method according to an embodiment of the disclosure is shown, where the method includes:
in step S51, controlling the battery to perform a charge and discharge operation during a charge and discharge period of a unit cycle, the unit cycle including the charge and discharge period and a detection period;
in step S52, the battery is controlled to stop the charging and discharging operation in the detection period, or the charging and discharging operation is performed at a current value smaller than a threshold value, and the resistance value of the identification resistor and/or the resistance value of the thermistor of the battery are/is obtained;
in step S53, determining the identity of the battery according to the resistance value of the identity recognition resistor, and/or determining the temperature of the battery according to the resistance value of the thermistor;
in step S54, when the identity of the battery is legal and/or the temperature of the battery is normal temperature, after the detection period ends, the charging and discharging operations of the battery are resumed.
In the present disclosure, the ID resistance and the NTC resistance of the battery may be periodically detected, and in one unit cycle, the ID resistance and the NTC resistance may include a charge and discharge period in which the battery performs a normal charge and discharge operation, and a detection period in which the charge and discharge operation of the battery is stopped during the detection period or the battery performs the charge and discharge operation with a small current in order to avoid an additional voltage generated on a common circuit by a charge and discharge current.
The unit cycle may be set according to actual conditions, and in one embodiment, the unit cycle includes a charge and discharge period having a duration of 5s, and a detection period having a duration of 20 ms. For example, when the electronic device using the battery is a mobile phone, and the charging module of the mobile phone needs to detect the voltages of the ID resistor and the NTC resistor after the charging lasts for 5 seconds, at this time, the processor of the mobile phone may send an instruction to the charging module to control the charging module to stop charging or to perform charging with a small current. In another embodiment, when the battery supplies power to the load module of the mobile phone, the battery enters a detection period after discharging normally for 5s, and at this time, the mobile phone may send an instruction to the load module to stop working or work with a small current, so as to control the battery to stop discharging operation or perform discharging operation with a small current.
When the battery enters the detection period, the battery is in a state of stopping charging and discharging or low-current charging and discharging, and the acquired voltages of the ID resistor and the NTC resistor avoid errors caused by extra voltage generated on a common circuit. The battery identification resistor can be detected separately in the detection period, the battery thermistor can be detected separately, and the two resistors can be detected simultaneously, which will be described below.
And when the ID resistor is detected independently, the resistance value of the ID resistor is obtained, so that the identity of the battery is determined, and when the identity of the battery is legal, the charging and discharging operation of the battery is recovered after the detection period is finished.
When the NTC resistance is separately detected, the resistance value of the NTC resistance is acquired to determine the temperature of the battery, and when the temperature of the battery is a normal temperature, the charging operation of the battery is resumed after the end of the detection period.
When the two resistors are detected simultaneously, the resistance value of the ID resistor and the resistance value of the NTC resistor are obtained, so that the identity and the temperature of the battery are determined, and when the identity of the battery is legal and the temperature of the battery is normal, the charging and discharging operation of the battery is recovered after the detection period is finished. Or acquiring the resistance value of the ID resistor and the resistance value of the NTC resistor, and determining the identity of the battery according to the resistance value of the ID resistor. Alternatively, the resistance value of the ID resistor and the resistance value of the NTC resistor are acquired, and the temperature of the battery is determined based on the resistance value of the NTC resistor. The detection mode can be selected according to actual needs, and the disclosure is not limited.
In the present disclosure, when the battery is controlled to perform the charging and discharging operations at a current value less than a threshold value, the selection of the threshold value may be set according to actual conditions, for example, the threshold value is a minimum current value for ensuring the normal operation of the electronic device, or the threshold value is a current value when the electronic device is in a standby state, and the like.
In order to ensure the safety of the battery in the using process, after the resistance values of the ID resistor and the NTC resistor are obtained in the detection period, the identity information of the battery is determined according to the resistance value of the ID resistor, and the current temperature of the battery is detected according to the resistance value of the NTC resistor. When the identity information of the battery and/or the temperature of the battery meet the requirements, the current state of the battery is confirmed to be a safe state, and the normal charging and discharging operation of the battery can be recovered.
Optionally, determining the identity of the battery according to the resistance value of the identity recognition resistor, and/or determining the temperature of the battery according to the resistance value of the thermistor includes: when the resistance value of the identity recognition resistor meets a first preset range, determining the identity of the battery as a legal identity; and/or when the resistance value of the thermistor meets a second preset range, determining the temperature of the battery to be a normal temperature.
When the resistance value of the ID resistor meets a first preset range, the identity of the battery is legal, and when the resistance value of the NTC resistor meets a second preset range, the temperature of the battery is normal. In one embodiment, the comparison of the resistance value with the preset range may be implemented by a comparator, for example, taking the obtained resistance value of the ID resistor and a first preset range as inputs of the comparator, and determining whether the resistance value of the ID resistor satisfies the first preset range according to the output result of the comparator, where the first preset range may be set according to a legal ID resistor.
In addition, since the battery has a safe operating temperature range, for example, the safe operating temperature range of the battery is-20 ℃ to 60 ℃, the detected temperature of the battery is within the safe operating temperature range, which indicates that the temperature of the battery is a normal temperature. In the present disclosure, the temperature range is converted into the resistance value range, and it is determined whether the temperature of the battery is a normal temperature by determining whether the resistance value of the NTC resistor is within a second preset range.
Optionally, when the resistance value of the identification resistor does not satisfy the first preset range, or when the resistance value of the thermistor does not satisfy the second preset range, the battery is controlled to stop the charging and discharging operation.
When the resistance value of the ID resistor does not meet the first preset range, the identity of the battery is an illegal identity, if the illegal battery is charged and discharged, potential safety hazards exist, and at the moment, the battery is controlled to stop charging and discharging operation in order to ensure safety. When the resistance value of the NTC resistor does not satisfy the second preset range, it indicates that the temperature of the battery exceeds the normal operating temperature range, and if the battery continues to be used, the battery may be damaged or other safety problems may occur, so that it is necessary to control the battery to stop the charging and discharging operations.
Referring to fig. 6, which is a flowchart illustrating a method for periodically detecting an NTC resistor according to an exemplary embodiment of the present disclosure, since the identification resistor is a resistor with a fixed resistance value, and a change in the resistance value does not occur, when it is detected that the resistance value of the ID resistor satisfies a first preset range, the identity of the battery may be determined to be a legal identity, and in order to reduce power consumption, the identity of the battery may be determined to be legal without periodically detecting the ID resistor, and only the temperature of the battery needs to be periodically detected. That is, the method in the present disclosure further includes:
in step S61, the battery is controlled to stop the charge and discharge operation or to perform the charge and discharge operation at a current value less than a threshold value in the detection period of the next unit cycle, and the resistance value of the thermistor is detected;
in step S62, the temperature of the battery is determined based on the voltage value of the thermistor.
After the detection period is finished, if the detection result shows that the identity of the battery is legal and the temperature of the battery is in a normal temperature range, the battery is in a safe state, and the charging and discharging operation of the battery can be continuously executed. Since the identity of the battery is determined to be legal in the detection period and the temperature of the battery changes in the charging and discharging processes of the battery, the temperature of the battery can be detected according to the resistance value of the NTC resistor only by detecting the resistance value of the NTC resistor in the detection period of the next unit cycle. Of course, the resistance values of the ID resistor and the NTC resistor may still be detected at the same time in the next unit period, and the disclosure is not limited thereto. In addition, the time length of the previous unit period may be the same as or different from the time length of the next unit period. For example, the charge and discharge period of the previous unit cycle is 5s, the detection period is 20ms, the charge and discharge period of the next unit cycle is 10s, and the detection period is 10 ms. For another example, the charge and discharge period per unit cycle is 5s, and the detection period is 20 ms. The unit period can be set according to actual needs, and the disclosure is not limited.
Optionally, when the charging and discharging operations are performed at a current value smaller than a threshold value in the detection period, the obtaining the resistance value of the identification resistor and/or the resistance value of the thermistor of the battery includes: determining a charging and discharging compensation voltage value of the identity recognition resistor according to the charging and discharging current and the first loop impedance corresponding to the identity recognition resistor; determining the resistance value of the identity recognition resistor according to the charge-discharge compensation voltage value of the identity recognition resistor; and/or determining a charge-discharge compensation voltage value of the thermistor according to the charge-discharge current and a second loop impedance corresponding to the thermistor; and determining the resistance value of the thermistor according to the charge-discharge compensation voltage value of the thermistor.
In the case where the battery is charged and discharged with a small current, although the additional voltage generated by the common circuit has been greatly reduced by the charging and discharging of the small current, the ID resistance and the NTC resistance may be voltage-compensated in order to make the detection result more accurate.
In one embodiment, the first loop impedance corresponds to a loop impedance R of the shared circuit in the ID detection loopID-P-The second loop impedance corresponds to the loop impedance R of the common circuit in the NTC detection loopNTC-P-. R is preliminarilyID-P-,RNTC-P-The charging and discharging current value of the battery charged by small current is written into a memory of the electronic equipment using the battery, when the ID resistance and the NTC resistance are detected in the detection time period, the current voltage value of the ID resistance and the current voltage value of the NTC resistance are obtained, and the current voltage value of the ID resistance and the current voltage value of the NTC resistance are obtained according to RID-P-And charging current (or discharging current), calculating the compensation voltage value of the ID resistor, and calculating the compensation voltage value according to RNTC-P-And a charging current (or a discharging current) for calculating a compensation voltage value of the NTC resistor. During charging, the compensation voltage value of the ID resistor is subtracted on the basis of the current voltage value of the ID resistor, and the compensation voltage value of the NTC resistor is subtracted on the basis of the current voltage value of the NTC resistor, so that the real voltage value of the ID resistor and the real voltage value of the NTC resistor are obtained. And during discharging, adding the compensation voltage value of the ID resistor on the basis of the current voltage value of the ID resistor, and adding the compensation voltage value of the NTC resistor on the basis of the current voltage value of the NTC resistor to obtain the real voltage value of the ID resistor and the real voltage value of the NTC resistor. And then determining the resistance value of the ID resistor according to the voltage value of the real ID resistor, and determining the resistance value of the NTC resistor according to the voltage value of the real NTC resistor.
As shown in fig. 7, a battery inspection method according to an exemplary embodiment of the present disclosure includes:
in step S71, acquiring a voltage value of the identification resistor and/or a voltage value of the thermistor;
in step S72, obtaining a compensation voltage value of the identification resistor and/or a compensation voltage value of the thermistor;
in step S73, determining a target voltage value of the identification resistor according to the voltage value of the identification resistor, the compensation voltage value of the identification resistor, and/or determining a target voltage value of the thermistor according to the compensation voltage value of the thermistor;
in step S74, a resistance value of the identification resistor is determined according to the target voltage value of the identification resistor, and/or a resistance value of the thermistor is determined according to the target voltage value of the thermistor.
In the present disclosure, in order to ensure the accuracy of the voltage of the ID resistor and the voltage of the NTC resistor, the acquired voltage value is corrected in a compensation manner. For example, when the battery is in a normal charging and discharging state, the ID resistor and/or the NTC resistor need to be detected to obtain a voltage value of the ID resistor and/or a voltage value of the NTC resistor, where the voltage value may be measured by a voltmeter or a multimeter, or may be calculated by a stored formula. Obtaining the compensation voltage value of the ID resistor and/or the compensation voltage value of the NTC resistor, wherein the compensation voltage value of the ID resistor is used for compensating the loop impedance R of the shared circuit in the ID detection loopID-P-The generated voltage, the compensation voltage value of the NTC resistor is used for compensating the loop impedance R of the common circuit in the NTC detection loopNTC-P-The resulting voltage. Compensating the voltage value of the ID resistor according to the compensation voltage value of the ID resistor, compensating the voltage value of the NTC resistor according to the compensation voltage value of the NTC resistor, subtracting the corresponding compensation voltage value when the battery is in a charging operation, and adding the corresponding compensation voltage value when the battery is in a discharging operation to obtain an accurate target voltage value of the identification resistor and an accurate target voltage value of the thermistor. And finally, determining the resistance value of the ID resistor according to the target voltage value of the identity recognition resistor, and/or determining the resistance value of the thermistor according to the target voltage value of the thermistor.
Optionally, the obtaining a compensation voltage value of the identification resistor and/or a compensation voltage value of the thermistor includes: acquiring a compensation voltage value of the identity recognition resistor according to the charging and discharging current and the first loop impedance corresponding to the identity recognition resistor; and/or acquiring a compensation voltage value of the thermistor according to the charging and discharging current and a second loop impedance corresponding to the thermistor.
In one embodiment, the first loop impedance corresponds to a loop impedance R of the shared circuit in the ID detection loopID-P-The second loop impedance corresponds to the loop impedance R of the common circuit in the NTC detection loopNTC-P-. R is preliminarilyID-P-,RNTC-P-The charging and discharging current value of the battery charged by small current is written into a memory of the electronic equipment using the battery, when the ID resistance and the NTC resistance are detected in the detection time period, the current voltage value of the ID resistance and the current voltage value of the NTC resistance are obtained, and the current voltage value of the ID resistance and the current voltage value of the NTC resistance are obtained according to RID-P-And charging current (or discharging current), calculating the compensation voltage value of the ID resistor, and calculating the compensation voltage value according to RNTC-P-And a charging current (or a discharging current) for calculating a compensation voltage value of the NTC resistor. During charging, the compensation voltage value of the ID resistor is subtracted on the basis of the current voltage value of the ID resistor, and the compensation voltage value of the NTC resistor is subtracted on the basis of the current voltage value of the NTC resistor, so that the real voltage value of the ID resistor and the real voltage value of the NTC resistor are obtained. And during discharging, adding the compensation voltage value of the ID resistor on the basis of the current voltage value of the ID resistor, and adding the compensation voltage value of the NTC resistor on the basis of the current voltage value of the NTC resistor to obtain the real voltage value of the ID resistor and the real voltage value of the NTC resistor. And then determining the resistance value of the ID resistor according to the voltage value of the real ID resistor, and determining the resistance value of the NTC resistor according to the voltage value of the real NTC resistor.
In the present disclosure, an electronic device using the battery may have a compensation parameter library stored therein, and the compensation parameter library includes RID-P-,RNTC-P-Charging current, discharging current, calculation formula of compensation voltage, etc. When the compensation voltage needs to be calculated, the compensation voltage can be directly stored in a compensation parameter libraryThe compensation parameter library may also be stored on a storage medium of the battery, or stored in another location, which is not limited in this disclosure.
In the following, in order to better understand the battery detection method in the present disclosure, the ID resistance and the NTC resistance are detected by a constant voltage method and a constant current method, respectively, and the voltage compensation is further described.
In the constant voltage method, the load resistance R in the loop is detected by ID1The voltage across the ID resistor is determined by the voltage across the NTC sense loop2The voltage across the NTC resistor is determined.
According to R when the battery is in a discharge stateID-P-Discharge current IDischarge of electricityDetermining a first discharge compensation voltage:
Vfirst discharge compensation=IDischarge of electricity×RID-P-
According to the first discharge compensation voltage, a load resistor R1The compensated voltages at both ends are:
Figure BDA0001402951740000251
according to RNTC-P-Discharge current IDischarge of electricityDetermining a second discharge compensation voltage:
Vsecond discharge compensation=IDischarge of electricity×RNTC-P-
According to the second discharge compensation voltage, the load resistor R2The compensated voltages at both ends are:
Figure BDA0001402951740000252
according to R when the battery is in a charged stateID-P-Charging current ICharging of electricityDetermining a first charge compensation voltage:
Vfirst charge compensation=ICharging of electricity×RID-P-
According to the first charge compensation voltage, a load resistor R1The compensated voltages at both ends are:
Figure BDA0001402951740000253
according to RNTC-P-Charging current ICharging of electricityDetermining a second charge compensation voltage:
Vsecond charge compensation=ICharging of electricity×RNTC-P-
According to the second charge compensation voltage, the load resistor R2The compensated voltages at both ends are:
Figure BDA0001402951740000254
therefore, after the voltage of the load resistor is corrected according to the compensation voltage, the influence of extra voltage generated by the shared circuit is basically eliminated, and the detection result is more accurate.
In the constant current method, by providing a constant current source I in an ID detection loop and an NTC detection loopSThe voltage across the ID resistor and the voltage across the NTC resistor are detected.
According to R when the battery is in a discharge stateID-P-Discharge current IDischarge of electricityDetermining a first discharge compensation voltage:
Vfirst discharge compensation=IDischarge of electricity×RID-P-
According to the first discharge compensation voltage, the target voltage value of the ID resistor is as follows:
V=IS×RID-Idischarge of electricity×RID-P-+VFirst discharge compensation
According to RNTC-P-Discharge current IDischarge of electricityDetermining a second discharge compensation voltage:
Vsecond discharge compensation=IDischarge of electricity×RNTC-P-
According to the second discharge compensation voltage, the target voltage value of the NTC resistor is as follows:
V=IS×RNTC-Idischarge of electricity×RNTC-P-+VSecond discharge compensation
According to R when the battery is in a charged stateID-P-Charging current ICharging of electricityDetermining a first charge compensation voltage:
Vfirst charge compensation=ICharging of electricity×RID-P-
According to the first charging compensation voltage, the target voltage value of the ID resistor is as follows:
V=IS×RID+Icharging of electricity×RID-P--VFirst charge compensation
According to RNTC-P-Charging current ICharging of electricityDetermining a second charge compensation voltage:
Vsecond charge compensation=ICharging of electricity×RNTC-P-
According to the second charging compensation voltage, the target voltage value of the NTC resistor is as follows:
V=IS×RNTC+Icharging of electricity×RNTC-P--VSecond charge compensation
Therefore, after the voltage of the ID resistor and the voltage of the NTC resistor are corrected according to the compensation voltage, the influence of extra voltage generated by the shared circuit is eliminated, and the detection result is more accurate.
In order to identify the identity information of the battery and detect the temperature of the battery, when the resistance value of the identity identification resistor meets a first preset range, determining the identity of the battery as a legal identity; and when the resistance value of the thermistor meets a second preset range, determining that the temperature of the battery is a normal temperature.
Since the identity recognition resistor is usually a resistor with a fixed resistance value, the change of the resistance value cannot occur, and then when the resistance value of the ID resistor is detected to meet a first preset range, the identity of the battery can be determined to be a legal identity. Since the temperature of the battery may vary with the charging and discharging operations, after it is determined that the identity of the battery is legal and the temperature of the battery is within the normal temperature range, the NTC resistor may be detected at a predetermined detection frequency, for example, at a frequency of 5s once, to achieve real-time detection of the temperature of the battery.
In the present disclosure, if the identity of the battery is determined to be illegal according to the resistance value of the identity recognition resistor, or if the temperature of the battery is determined not to be within the normal temperature range according to the resistance value of the thermistor, there are two reasons for such a result. One is that the battery itself is not satisfactory, and in this case, the charging and discharging operations of the battery may be stopped for safety. Alternatively, there may be an error in the target voltage value of the ID resistor or the target voltage value of the NTC resistor determined by the compensation voltage method. At this time, the following two measures may be taken:
the first measure is as follows:
when the resistance value of the identity recognition resistor does not meet a first preset range or the resistance value of the thermistor does not meet a second preset range, controlling the battery to stop charging and discharging operations;
and when the battery stops charging and discharging operations, acquiring the resistance value of the identification resistor and/or the resistance value of the thermistor.
In this measure, the resistance value of the ID resistor and/or the NTC resistor is obtained in the case of stopping the charging and discharging of the battery, and the obtained resistance value of the ID resistor and/or the NTC resistor is more accurate due to the absence of the extra voltage generated on the common circuit by the charging and discharging current, thereby determining the identity and the temperature of the battery more accurately.
The second measure is as follows:
when the resistance value of the identity recognition resistor does not meet the first preset range or the resistance value of the thermistor does not meet the second preset range, performing charging and discharging operation at a current value smaller than a threshold value;
when the battery is charged and discharged at a current value smaller than a threshold value, acquiring a compensation voltage value of the identity recognition resistor and/or a compensation voltage value of the thermistor;
and determining the resistance value of the identity recognition resistor according to the compensation voltage value of the identity recognition resistor, and/or determining the resistance value of the thermistor according to the compensation voltage value of the thermistor.
In the measure, the compensation voltage value of the ID resistor is determined according to the current value of the small current charge and discharge and the first loop impedance of the public circuit in the ID detection loop by controlling the battery to charge and discharge with small current, the compensation voltage value of the NTC resistor is determined according to the current value of the small current charge and discharge and the second loop impedance of the public circuit in the NTC detection loop, the resistance value of the ID resistor is determined according to the compensation voltage value of the ID resistor, and the resistance value of the NTC resistor is determined according to the compensation voltage value of the NTC resistor. Because the voltage division of the common circuit is small under the condition that the battery is charged and discharged by small current, the voltage of the ID resistor and the voltage of the NTC resistor are corrected by compensating the voltage, so that the detection result is more accurate.
If the detection result of any one of the measures shows that the identity of the battery is legal and the temperature of the battery conforms to the normal temperature range, the normal charging and discharging operation of the battery can be recovered. If the detection result of the two measures is that the identity of the battery is still illegal, or the temperature of the battery is not in the normal temperature range, the battery is judged to be unqualified, potential safety hazards exist, and at the moment, the charging and discharging of the battery are stopped.
In this disclosure, before the obtaining the voltage value of the identification resistor and the voltage value of the thermistor, the method further includes: and controlling the battery to stop the charging and discharging operation or to perform the charging and discharging operation at a current value smaller than a threshold value. The method comprises the steps of detecting an ID resistor and an NTC resistor when a battery stops charging and discharging or is charged and discharged by small current, wherein when the battery stops charging and discharging operation, a compensation voltage value of the ID resistor and a compensation voltage value of the NTC resistor are both zero, and when the battery performs charging and discharging operation by a current value smaller than a threshold value, the compensation voltage value of the ID resistor and the compensation voltage value of the NTC resistor are determined according to the current value of the small current charging and discharging.
As shown in fig. 8, a resistance detection device for a battery according to an embodiment of the present disclosure includes:
a first control module 81 configured to control the battery to stop a charge and discharge operation or to perform the charge and discharge operation at a current value less than a threshold value when detecting a resistance of the battery;
a processing module 82 configured to obtain a resistance value of the identification resistor of the battery and/or a resistance value of the thermistor.
Optionally, the apparatus further comprises:
the charging and discharging module is configured to recover the charging and discharging operation of the battery when the resistance value of the identity recognition resistor meets a first preset range and the resistance value of the thermistor meets a second preset range; or when the resistance value of the identity recognition resistor meets a first preset range or the resistance value of the thermistor meets a second preset range, the charging and discharging operation of the battery is recovered.
Optionally, the apparatus further comprises:
and the second control module is configured to control the battery to stop charging and discharging operations when the resistance value of the identification resistor does not meet the first preset range or the resistance value of the thermistor does not meet the second preset range.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
As shown in fig. 9, a battery charge and discharge control apparatus according to an embodiment of the present disclosure includes:
a charge and discharge module 91 configured to control a battery to perform a charge and discharge operation during a charge and discharge period of a unit cycle including the charge and discharge period and a detection period;
a first processing module 92 configured to control the battery to stop the charging and discharging operations or perform the charging and discharging operations at a current value smaller than a threshold value in the detection period, and obtain a resistance value of the identification resistor and/or a resistance value of the thermistor of the battery;
a second processing module 93 configured to determine the identity of the battery according to the resistance value of the identification resistor and/or determine the temperature of the battery according to the resistance value of the thermistor;
a third processing module 94, configured to, when the identity of the battery is a legal identity and/or the temperature of the battery is a normal temperature, resume the charging and discharging operations of the battery after the detection period ends.
Optionally, the second processing module 93 includes:
the first processing submodule is configured to determine that the identity of the battery is a legal identity when the resistance value of the identity recognition resistor meets a first preset range; and/or
A second processing submodule configured to determine that the temperature of the battery is a normal temperature when the resistance value of the thermistor satisfies a second preset range.
Optionally, the apparatus further comprises:
the control module is configured to control the battery to stop charging and discharging operations when the resistance value of the identification resistor does not meet the first preset range or when the resistance value of the thermistor does not meet the second preset range.
Optionally, the apparatus further comprises:
a detection module configured to control the battery to stop a charge and discharge operation or perform the charge and discharge operation at a current value less than a threshold value within a detection period of a next unit cycle, and detect a resistance value of the thermistor;
a determination module configured to determine a temperature of the battery according to a resistance value of the thermistor.
Optionally, the detection module includes:
the first determining submodule is configured to determine a charging and discharging compensation voltage value of the identity recognition resistor according to the charging and discharging current and a first loop impedance corresponding to the identity recognition resistor;
the second determining submodule is configured to determine a resistance value of the identification resistor according to the charging and discharging compensation voltage value of the identification resistor; and/or
A third determining submodule configured to determine a charging and discharging compensation voltage value of the thermistor according to the charging and discharging current and a second loop impedance corresponding to the thermistor;
a fourth determination submodule configured to determine a resistance value of the thermistor according to a charge-discharge compensation voltage value of the thermistor.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
As shown in fig. 10, a resistance detection device for a battery according to an embodiment of the present disclosure includes:
a first obtaining module 101 configured to obtain a voltage value of the identification resistor and/or a voltage value of the thermistor;
a second obtaining module 102 configured to obtain a compensation voltage value of the identification resistor and/or a compensation voltage value of the thermistor;
a first processing module 103 configured to determine a target voltage value of the identification resistor according to the voltage value of the identification resistor, the compensation voltage value of the identification resistor, and/or determine a target voltage value of the thermistor according to the compensation voltage value of the thermistor;
a second processing module 104 configured to determine a resistance value of the identification resistor according to the target voltage value of the identification resistor and/or determine a resistance value of the thermistor according to the target voltage value of the thermistor.
Optionally, the second obtaining module 102 includes:
the obtaining submodule is configured to obtain a compensation voltage value of the identity recognition resistor according to the charging and discharging current and the first loop impedance corresponding to the identity recognition resistor; and/or acquiring a compensation voltage value of the thermistor according to the charging and discharging current and a second loop impedance corresponding to the thermistor.
Optionally, the apparatus further comprises:
a first control module configured to control the battery to stop a charging and discharging operation when the resistance value of the identification resistor does not satisfy a first preset range or when the resistance value of the thermistor does not satisfy a second preset range;
a third obtaining module configured to obtain the resistance value of the identification resistor and/or the resistance value of the thermistor when the battery stops charging and discharging operations.
Optionally, the apparatus further comprises:
a second control module configured to control the battery to stop a charge and discharge operation or to perform the charge and discharge operation at a current value less than a threshold value.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the disclosed resistance detection method of the battery in fig. 4.
Accordingly, the present disclosure also provides an electronic device comprising the above computer-readable storage medium and one or more processors for executing the program in the computer-readable storage medium.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the battery charge and discharge control method of fig. 5 of the present disclosure.
Accordingly, the present disclosure also provides an electronic device comprising the above computer-readable storage medium and one or more processors for executing the program in the computer-readable storage medium.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the disclosed resistance detection method of the battery in fig. 7.
Accordingly, the present disclosure also provides an electronic device comprising the above computer-readable storage medium and one or more processors for executing the program in the computer-readable storage medium.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (17)

1. A method for detecting a resistance of a battery, the method comprising:
when detecting the resistance of the battery, controlling the battery to stop charging and discharging operations or performing charging and discharging operations at a current value smaller than a threshold value, wherein the resistance of the battery comprises an identity recognition resistor and/or a thermistor of the battery, the battery protection circuit comprises the identity recognition resistor, the thermistor, a control module and a switch module, the anode of the battery is connected with an anode input port P +, the cathode of the battery is connected with a cathode input port P-through the switch module, the switch module is connected with the control module, one end of the identity recognition resistor is respectively connected with one end of the P-and one end of the thermistor, the other end of the identity recognition resistor is connected with an ID output end, one end of the thermistor is connected with the P-, and the other end of the thermistor is connected with an NTC output end;
and acquiring the resistance value of the identification resistor of the battery and/or the resistance value of the thermistor.
2. The method of claim 1, wherein after obtaining the resistance value of the identification resistor and/or the resistance value of the thermistor of the battery, the method further comprises:
when the resistance value of the identity recognition resistor meets a first preset range and the resistance value of the thermistor meets a second preset range, recovering the charge and discharge operation of the battery;
or
After obtaining the resistance value of the identification resistor or the resistance value of the thermistor of the battery, the method further comprises:
and when the resistance value of the identity recognition resistor meets a first preset range or the resistance value of the thermistor meets a second preset range, the charging and discharging operation of the battery is recovered.
3. The method of claim 2, wherein after the obtaining the resistance value of the identification resistor and/or the resistance value of the thermistor of the battery, the method further comprises:
and when the resistance value of the identity recognition resistor does not meet the first preset range or the resistance value of the thermistor does not meet the second preset range, controlling the battery to stop charging and discharging operations.
4. A battery charge-discharge control method, comprising:
controlling a battery to perform charging and discharging operations in a charging and discharging period of a unit cycle, wherein the unit cycle comprises the charging and discharging period and a detection period, the resistance of the battery comprises an identification resistor and/or a thermistor of the battery, a battery protection circuit comprises the identification resistor, the thermistor, a control module and a switch module, the anode of the battery is connected with an anode input port P +, the cathode of the battery is connected with a cathode input port P-through the switch module, the switch module is connected with the control module, one end of the identification resistor is respectively connected with one end of the P-and one end of the thermistor, the other end of the identification resistor is connected with an ID output end, one end of the thermistor is connected with the P-, and the other end of the thermistor is connected with an NTC output end;
controlling the battery to stop charging and discharging operations in the detection time period, or performing charging and discharging operations at a current value smaller than a threshold value, and acquiring the resistance value of the identity recognition resistor and/or the resistance value of the thermistor of the battery;
determining the identity of the battery according to the resistance value of the identity recognition resistor, and/or determining the temperature of the battery according to the resistance value of the thermistor;
and when the identity of the battery is legal and/or the temperature of the battery is normal temperature, recovering the charging and discharging operation of the battery after the detection time period is ended.
5. The method of claim 4, wherein determining the identity of the battery based on the resistance value of the identification resistor and/or the temperature of the battery based on the resistance value of the thermistor comprises:
when the resistance value of the identity recognition resistor meets a first preset range, determining the identity of the battery as a legal identity; and/or
And when the resistance value of the thermistor meets a second preset range, determining that the temperature of the battery is a normal temperature.
6. The method of claim 5, further comprising:
and when the resistance value of the identification resistor does not meet the first preset range or the resistance value of the thermistor does not meet the second preset range, controlling the battery to stop charging and discharging operations.
7. The method according to claim 4, wherein after resuming the charge and discharge operations of the battery after the detection period ends, the method further comprises:
controlling the battery to stop the charge and discharge operation or to perform the charge and discharge operation at a current value smaller than the threshold value within a detection period of a next unit cycle, and detecting a resistance value of the thermistor;
and determining the temperature of the battery according to the resistance value of the thermistor.
8. The method according to claim 4, wherein the obtaining the resistance value of the identification resistor and/or the resistance value of the thermistor of the battery when the detection period performs the charging and discharging operation at the current value smaller than a threshold value comprises:
determining a charging and discharging compensation voltage value of the identity recognition resistor according to the charging and discharging current and the first loop impedance corresponding to the identity recognition resistor;
determining the resistance value of the identity recognition resistor according to the charge-discharge compensation voltage value of the identity recognition resistor; and/or
Determining a charging and discharging compensation voltage value of the thermistor according to the charging and discharging current and a second loop impedance corresponding to the thermistor;
and determining the resistance value of the thermistor according to the charge-discharge compensation voltage value of the thermistor.
9. A method for detecting a resistance of a battery, the method comprising:
the method comprises the steps that the voltage value of an identity recognition resistor and/or the voltage value of a thermistor are/is obtained, wherein the resistor of the battery comprises the identity recognition resistor and/or the thermistor of the battery, a battery protection circuit comprises the identity recognition resistor, the thermistor, a control module and a switch module, the anode of the battery is connected with an anode input port P +, the cathode of the battery is connected with a cathode input port P-through the switch module, the switch module is connected with the control module, one end of the identity recognition resistor is respectively connected with the P-and one end of the thermistor, the other end of the identity recognition resistor is connected with an ID output end, one end of the thermistor is connected with the P-, and the other end of the thermistor is connected with an NTC output end;
acquiring a compensation voltage value of the identity recognition resistor and/or a compensation voltage value of the thermistor;
determining a target voltage value of the identity recognition resistor according to the voltage value of the identity recognition resistor and the compensation voltage value of the identity recognition resistor, and/or determining a target voltage value of the thermistor according to the voltage value of the thermistor and the compensation voltage value of the thermistor;
determining the resistance value of the identity recognition resistor according to the target voltage value of the identity recognition resistor, and/or determining the resistance value of the thermistor according to the target voltage value of the thermistor;
before the obtaining the voltage value of the identification resistor and the voltage value of the thermistor, the method further comprises:
the battery is controlled to stop the charging and discharging operation or to perform the charging and discharging operation at a current value less than a threshold value.
10. The method of claim 9, wherein the obtaining the compensation voltage value of the identification resistor and/or the compensation voltage value of the thermistor comprises:
acquiring a compensation voltage value of the identity recognition resistor according to the charging and discharging current and the first loop impedance corresponding to the identity recognition resistor; and/or
And acquiring a compensation voltage value of the thermistor according to the charging and discharging current and a second loop impedance corresponding to the thermistor.
11. The method of claim 9, wherein after determining the resistance value of the identification resistor based on the target voltage value of the identification resistor and/or determining the resistance value of the thermistor based on the target voltage value of the thermistor, the method further comprises:
when the resistance value of the identity recognition resistor does not meet a first preset range or the resistance value of the thermistor does not meet a second preset range, controlling the battery to stop charging and discharging operations;
and when the battery stops charging and discharging operations, acquiring the resistance value of the identification resistor and/or the resistance value of the thermistor.
12. An apparatus for detecting resistance of a battery, the apparatus comprising:
the battery protection circuit comprises an identity recognition resistor, a thermistor, a control module and a switch module, wherein the positive electrode of the battery is connected with a positive electrode input port P +, the negative electrode of the battery is connected with a negative electrode input port P-through the switch module, the switch module is connected with the control module, one end of the identity recognition resistor is respectively connected with one end of the P-and one end of the thermistor, the other end of the identity recognition resistor is connected with an ID output end, one end of the thermistor is connected with the P-and the other end of the thermistor is connected with an NTC output end;
a processing module configured to obtain a resistance value of an identification resistor and/or a resistance value of a thermistor of the battery.
13. A battery charge and discharge control apparatus, the apparatus comprising:
the battery protection circuit comprises an identity recognition resistor, a thermistor, a control module and a switch module, wherein the positive electrode of the battery is connected with a positive electrode input port P +, the negative electrode of the battery is connected with a negative electrode input end P-through the switch module, the switch module is connected with the control module, one end of the identity recognition resistor is respectively connected with one end of the P-and the thermistor, the other end of the identity recognition resistor is connected with an ID output end, one end of the thermistor is connected with the P-, and the other end of the thermistor is connected with an NTC output end;
a first processing module configured to control the battery to stop charging and discharging operations or perform charging and discharging operations at a current value smaller than a threshold value in the detection period, and obtain a resistance value of an identification resistor and/or a resistance value of a thermistor of the battery;
a second processing module configured to determine an identity of the battery according to a resistance value of the identification resistor and/or determine a temperature of the battery according to a resistance value of the thermistor;
and the third processing module is configured to recover the charging and discharging operation of the battery after the detection time period is ended when the identity of the battery is legal and/or the temperature of the battery is normal.
14. An apparatus for detecting resistance of a battery, the apparatus comprising:
the battery protection circuit comprises an identity recognition resistor, a thermistor, a control module and a switch module, wherein the positive pole of the battery is connected with a positive pole input port P +, the negative pole of the battery is connected with a negative pole input port P-through the switch module, the switch module is connected with the control module, one end of the identity recognition resistor is connected with one ends of the P-and the thermistor respectively, the other end of the identity recognition resistor is connected with an ID output end, one end of the thermistor is connected with the P-, and the other end of the thermistor is connected with an NTC output end;
the second acquisition module is configured to acquire a compensation voltage value of the identification resistor and/or a compensation voltage value of the thermistor;
a first processing module configured to determine a target voltage value of the identification resistor according to the voltage value of the identification resistor, the compensation voltage value of the identification resistor, and/or determine a target voltage value of the thermistor according to the compensation voltage value of the thermistor;
a second processing module configured to determine a resistance value of the identification resistor according to a target voltage value of the identification resistor and/or determine a resistance value of the thermistor according to a target voltage value of the thermistor;
the device further comprises:
a second control module configured to control the battery to stop a charge and discharge operation or to perform the charge and discharge operation at a current value less than a threshold value.
15. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when detecting the resistance of the battery, controlling the battery to stop charging and discharging operations or performing charging and discharging operations at a current value smaller than a threshold value, wherein the resistance of the battery comprises an identity recognition resistor and/or a thermistor of the battery, the battery protection circuit comprises the identity recognition resistor, the thermistor, a control module and a switch module, the anode of the battery is connected with an anode input port P +, the cathode of the battery is connected with a cathode input port P-through the switch module, the switch module is connected with the control module, one end of the identity recognition resistor is respectively connected with one end of the P-and one end of the thermistor, the other end of the identity recognition resistor is connected with an ID output end, one end of the thermistor is connected with the P-, and the other end of the thermistor is connected with an NTC output end;
and acquiring the resistance value of the identification resistor of the battery and/or the resistance value of the thermistor.
16. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
controlling a battery to perform charging and discharging operations in a charging and discharging period of a unit cycle, wherein the unit cycle comprises the charging and discharging period and a detection period, the resistance of the battery comprises an identification resistor and/or a thermistor of the battery, a battery protection circuit comprises the identification resistor, the thermistor, a control module and a switch module, the anode of the battery is connected with an anode input port P +, the cathode of the battery is connected with a cathode input port P-through the switch module, the switch module is connected with the control module, one end of the identification resistor is respectively connected with one end of the P-and one end of the thermistor, the other end of the identification resistor is connected with an ID output end, one end of the thermistor is connected with the P-, and the other end of the thermistor is connected with an NTC output end;
controlling the battery to stop charging and discharging operations in the detection time period, or performing charging and discharging operations at a current value smaller than a threshold value, and acquiring the resistance value of the identity recognition resistor and/or the resistance value of the thermistor of the battery;
determining the identity of the battery according to the resistance value of the identity recognition resistor, and/or determining the temperature of the battery according to the resistance value of the thermistor;
and when the identity of the battery is legal and/or the temperature of the battery is normal temperature, recovering the charging and discharging operation of the battery after the detection time period is ended.
17. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
controlling the battery to stop charging and discharging operations or to perform the charging and discharging operations at a current value smaller than a threshold value;
the method comprises the steps that the voltage value of an identity recognition resistor and/or the voltage value of a thermistor are/is obtained, wherein the resistor of the battery comprises the identity recognition resistor and/or the thermistor of the battery, a battery protection circuit comprises the identity recognition resistor, the thermistor, a control module and a switch module, the anode of the battery is connected with an anode input port P +, the cathode of the battery is connected with a cathode input port P-through the switch module, the switch module is connected with the control module, one end of the identity recognition resistor is respectively connected with the P-and one end of the thermistor, the other end of the identity recognition resistor is connected with an ID output end, one end of the thermistor is connected with the P-, and the other end of the thermistor is connected with an NTC output end;
acquiring a compensation voltage value of the identity recognition resistor and/or a compensation voltage value of the thermistor;
determining a target voltage value of the identity recognition resistor according to the voltage value of the identity recognition resistor and the compensation voltage value of the identity recognition resistor, and/or determining a target voltage value of the thermistor according to the voltage value of the thermistor and the compensation voltage value of the thermistor;
and determining the resistance value of the identification resistor according to the target voltage value of the identification resistor, and/or determining the resistance value of the thermistor according to the target voltage value of the thermistor.
CN201710807036.4A 2017-09-08 2017-09-08 Battery resistance detection method, charge and discharge control method and device and electronic equipment Active CN109473736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710807036.4A CN109473736B (en) 2017-09-08 2017-09-08 Battery resistance detection method, charge and discharge control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710807036.4A CN109473736B (en) 2017-09-08 2017-09-08 Battery resistance detection method, charge and discharge control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109473736A CN109473736A (en) 2019-03-15
CN109473736B true CN109473736B (en) 2021-12-03

Family

ID=65658168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710807036.4A Active CN109473736B (en) 2017-09-08 2017-09-08 Battery resistance detection method, charge and discharge control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109473736B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1630130A (en) * 2003-12-17 2005-06-22 三洋电机株式会社 Battery pack
CN1689341A (en) * 2002-08-16 2005-10-26 汤姆森特许公司 Simplified offset current reducing circuit for auto kine bias (akb)
CN1963553A (en) * 2005-11-09 2007-05-16 比亚迪股份有限公司 System and method for testing battery
CN102183315A (en) * 2011-02-28 2011-09-14 惠州Tcl移动通信有限公司 Circuit and method for detecting identity (ID) and temperature of battery by using common detection pin
CN202068200U (en) * 2011-03-08 2011-12-07 深圳市博驰信电子有限责任公司 Battery charger and charging control circuit thereof
CN102957182A (en) * 2011-08-23 2013-03-06 凹凸电子(武汉)有限公司 Battery charging system and battery discharging system
CN106026034A (en) * 2016-06-30 2016-10-12 联想(北京)有限公司 Over-current protection method of battery cell and over-current protection circuit of cell of battery

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003004822A (en) * 2001-06-15 2003-01-08 Matsushita Electric Ind Co Ltd Battery power source device
JP2008259293A (en) * 2007-04-04 2008-10-23 Yamaha Motor Co Ltd Charging device of secondary battery
US8269641B2 (en) * 2010-06-07 2012-09-18 Lear Corporation Vehicle power management system
CN103268965B (en) * 2013-04-18 2015-07-01 深圳市金立通信设备有限公司 Battery detection circuit, battery and mobile terminal
CN105676145A (en) * 2016-04-01 2016-06-15 福建联迪商用设备有限公司 Method and device for detecting temperature and ID of battery

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1689341A (en) * 2002-08-16 2005-10-26 汤姆森特许公司 Simplified offset current reducing circuit for auto kine bias (akb)
CN1630130A (en) * 2003-12-17 2005-06-22 三洋电机株式会社 Battery pack
CN1963553A (en) * 2005-11-09 2007-05-16 比亚迪股份有限公司 System and method for testing battery
CN102183315A (en) * 2011-02-28 2011-09-14 惠州Tcl移动通信有限公司 Circuit and method for detecting identity (ID) and temperature of battery by using common detection pin
CN202068200U (en) * 2011-03-08 2011-12-07 深圳市博驰信电子有限责任公司 Battery charger and charging control circuit thereof
CN102957182A (en) * 2011-08-23 2013-03-06 凹凸电子(武汉)有限公司 Battery charging system and battery discharging system
CN106026034A (en) * 2016-06-30 2016-10-12 联想(北京)有限公司 Over-current protection method of battery cell and over-current protection circuit of cell of battery

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"传感器技术及在智能手机中的应用";李宏年;《中国新通信》;20151220;第17卷(第24期);第82-83页 *
"Thermal behavior of nickel-metal hydride battery during rapid charge and discharge cycles";Nakayama, M.; Fukuda, K.; Araki, T.;et al.;《Transactions of the Institute of Electrical Engineers of Japan, Part B》;20061231;第125-B卷(第2期);第213-220页 *

Also Published As

Publication number Publication date
CN109473736A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN106324508B (en) Battery health state detection device and method
US20150032394A1 (en) Power management system
CN110764015A (en) Battery control apparatus and method for detecting internal short circuit of battery
US20130093430A1 (en) Battery state measuring method and apparatus
KR101146404B1 (en) Battery management system and battery pack comprising the same
JP2008253129A (en) Method for quick charging lithium-based secondary battery and electronic equipment using same
US10302706B2 (en) Apparatus for calculating state of charge of storage battery
CN110873849B (en) Battery control apparatus and method for detecting internal short circuit of battery
US10298033B2 (en) Information processing method, smart battery, terminal and computer storage medium
CN108808759A (en) Battery device and battery protection method
JP2019504451A (en) Effective battery cell balancing method and system using duty control
CN104502854A (en) Remaining electricity quantity display method and remaining electricity quantity display device for terminal
US20120229288A1 (en) Battery management system and battery pack comprising the same
US9759782B2 (en) Impedance-based battery state estimation method
KR100781792B1 (en) The intergrated circuit to measure the remaining capacity
JP5473277B2 (en) Charger
US20160146894A1 (en) Method for measuring electric capacity of cell module
US11456610B2 (en) Internal short sensing battery control apparatus and battery control method
JP2013140565A (en) Detection circuit for battery
CN109473736B (en) Battery resistance detection method, charge and discharge control method and device and electronic equipment
CN209994141U (en) Chargeable electronic equipment and charging interface detection circuit structure
KR100844040B1 (en) Charging battery capacity verification method
US20220085636A1 (en) Electronic device, battery pack, and control method
CN113169385B (en) Battery pack, circuit system for measuring battery current and equipment for measuring battery current
US11368032B2 (en) Test system and test method for charging device

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