CN117491888A - Resistance value calibration method, calibration circuit, terminal device, and storage medium - Google Patents

Resistance value calibration method, calibration circuit, terminal device, and storage medium Download PDF

Info

Publication number
CN117491888A
CN117491888A CN202210880118.2A CN202210880118A CN117491888A CN 117491888 A CN117491888 A CN 117491888A CN 202210880118 A CN202210880118 A CN 202210880118A CN 117491888 A CN117491888 A CN 117491888A
Authority
CN
China
Prior art keywords
resistance value
preset
battery
current
preset wire
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.)
Pending
Application number
CN202210880118.2A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202210880118.2A priority Critical patent/CN117491888A/en
Priority to PCT/CN2023/092762 priority patent/WO2024021752A1/en
Publication of CN117491888A publication Critical patent/CN117491888A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • G01R31/3842Arrangements for monitoring battery or accumulator variables, e.g. SoC combining voltage and current measurements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/385Arrangements for measuring battery or accumulator variables
    • G01R31/387Determining ampere-hour charge capacity or SoC
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/389Measuring internal impedance, internal conductance or related variables

Landscapes

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

Abstract

The embodiment of the invention provides a resistance value calibration method, a calibration circuit, terminal equipment and a storage medium, and belongs to the technical field of electronics. The method comprises the following steps: acquiring a current value of a preset wire and a voltage value of the preset wire, wherein the preset wire is connected with a battery; determining a target resistance value of a preset wire according to the current value and the voltage value; and calibrating the resistance value of the preset wire based on the target resistance value, wherein the resistance value of the preset wire is used for measuring and calculating the electric quantity change of the battery. The technical scheme of the embodiment of the invention can improve the detection precision of the battery electric quantity change.

Description

Resistance value calibration method, calibration circuit, terminal device, and storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a resistance value calibration method, a calibration circuit, a terminal device, and a storage medium.
Background
With the development of battery charging and discharging technology, it is necessary to use a high-precision sampling resistor to detect the change of the electric quantity of the battery during the charging or discharging process. To meet the high current passing requirement, high precision sampling resistors generally require smaller resistance, higher precision and larger packaging, such as 5 milliohms for sampling resistors, 1% and 1206 packaging, etc. The sampling resistor of great encapsulation can occupy great area on the circuit board, and produces higher heat when passing through the heavy current easily, if the heat can not derive in time, can influence the sampling accuracy of charge-discharge power and sampling resistor to influence the detection accuracy of battery electric quantity variation.
Disclosure of Invention
The embodiment of the invention provides a resistance value calibration method, a calibration circuit, terminal equipment and a storage medium, which aim to take a preset wire as a sampling resistor of a battery, so that the occupied area of the sampling resistor can be reduced, the heat dissipation performance of the sampling resistor can be improved, and the detection precision of the electric quantity change of the battery can be improved.
In a first aspect, an embodiment of the present invention provides a method for calibrating a resistance value, including: acquiring a current value of a preset wire and a voltage value of the preset wire, wherein the preset wire is connected to a battery; determining a target resistance value of the preset wire according to the current value and the voltage value; and calibrating the resistance value of the preset wire based on the target resistance value, wherein the resistance value of the preset wire is used for measuring and calculating the electric quantity change of the battery.
In a second aspect, an embodiment of the present invention further provides a calibration circuit, where the calibration circuit includes a preset wire and a processor; the preset lead is used for connecting a battery, and the resistance value of the preset lead is used for measuring and calculating the electric quantity change of the battery; the processor is used for executing any resistance value calibration method provided by the embodiment of the invention.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a battery and a calibration circuit as provided in the embodiment of the present invention, where the battery is connected to a preset wire in the calibration circuit.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, for storing a computer readable storage, where the storage medium stores one or more programs, where the one or more programs are executable by one or more processors to implement any one of the resistance value calibration methods provided in the embodiment of the present invention.
The embodiment of the invention provides a resistance value calibration method, a calibration circuit, terminal equipment and a storage medium; determining a target resistance value of a preset wire according to the current value and the voltage value; and calibrating the resistance value of the preset wire based on the target resistance value, wherein the resistance value of the preset wire is used for measuring and calculating the electric quantity change of the battery. According to the embodiment of the invention, the preset wire is used as the sampling resistor of the battery, so that the occupied area is small, the heat dissipation performance is good, and the influence on the sampling precision is small. Meanwhile, the resistance value of the preset wire is calibrated through the target resistance value, so that the detection precision of the battery electric quantity change can be greatly improved.
Drawings
FIG. 1 is a schematic flow chart of steps of a method for calibrating a resistance value according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating the sub-steps of the resistance calibration method of FIG. 1;
FIG. 3 is a schematic circuit diagram of a resistance calibration method according to an embodiment of the invention;
FIG. 4 is another schematic circuit diagram of a resistance calibration method according to an embodiment of the present invention;
FIG. 5 is another schematic circuit diagram of a resistance calibration method according to an embodiment of the present invention;
FIG. 6 is another schematic circuit diagram of a resistance calibration method according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a calibration circuit according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In order to accurately detect the electric quantity change of the terminal equipment in the charging or discharging process, a sampling resistor is often required to be added for detection, and the sampling resistor generally needs to be smaller in resistance value, higher in precision and larger in packaging so as to meet the requirement of passing larger current. Such as 5 milliohms, 10 milliohms, 1% accuracy, 0805 packages and 1206 packages, etc. These larger packages occupy a larger area on the circuit board, which is detrimental to the simplified design of the circuit board, and also increases cost, and can generate higher heat when passing large currents, such as 0.5W when passing 10A current through a 5 milliohm sampling resistor. If the heat can not be timely led out, the terminal equipment can be caused to generate heat, the charging power is influenced, various resistors have thermal effects, the precision of the resistor can be changed along with the increase of the heat, the sampling precision is influenced, and the electric quantity detection of the terminal equipment is further influenced.
Based on the above, the inventor thinks that when designing a PCB (Printed Circuit Board ), the impedance characteristics of the preset wires in the PCB can be effectively utilized, for example, the impedance of the copper sheet in the PCB is used as a sampling resistor, the impedance is generally only a few milliohms, the requirement of the sampling resistor for detecting the electric quantity can be met, the cost is reduced, the heating of the sampling resistor is reduced, and the design is more flexible.
However, when a preset wire such as copper sheet is used as the sampling resistor, the processing accuracy of the preset wire is difficult to control. In the process, the actual impedance or resistance value of the preset wire in each PCB cannot be measured. The higher the impedance machining precision of the preset wire is, the higher the reject ratio of the PCB is. For example, if the impedance processing precision of the preset wire in the PCB is required to be controlled to 1%, the defect rate of 24% will be generated. For a sampling resistance of 5 milliohms, theoretically, each error of 0.01 milliohms has a great influence on the user when charging with a large current, if the current is 10A, the influence is 100mAh in 1 hour, i.e. the corresponding electric quantity is 2%. In the case of high-power charging, since the current flowing through the sampling resistor is larger than 10A, the resistance value of the sampling resistor is required to be smaller, and some of the sampling resistor is required to reduce heat generation even by 1 milliohm. Therefore, how to reduce the processing precision requirement of the PCB, reduce the reject ratio, and improve the sampling precision of the preset wire becomes a problem to be solved.
The embodiment of the invention provides a resistance value calibration method, a calibration circuit, terminal equipment and a storage medium. The resistance value calibration method can be applied to terminal equipment provided with a battery, and the terminal equipment can be electronic equipment such as mobile phones, tablet computers, notebook computers, desktop computers, personal digital assistants, wearable equipment and the like.
Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of steps of a resistance calibration method according to an embodiment of the invention.
As shown in fig. 1, the resistance value calibration method includes steps S101 to S103.
Step S101, obtaining a current value of a preset wire and obtaining a voltage value of the preset wire.
The preset lead is connected to the battery, and the resistance value of the preset lead is smaller, for example, 5 milliohms, so that the accurate detection of the electric quantity change of the battery in the charging or discharging process can be realized. The resistance value of the preset wire is used for measuring and calculating the electric quantity change of the battery, for example, the charging current or the discharging current of the battery is calculated through the resistance value of the preset wire and the voltage value of the preset wire, so that the electric quantity change of the battery in the charging or discharging process can be detected through the charging current or the discharging current of the battery.
In one embodiment, the predetermined conductors include circuit conductors on a PCB (Printed Circuit Board ), such as copper, although other conductors made of metal or conductive material are possible. In the production process of the PCB board, the length, width, thickness, material, shape, position, etc. of the preset wire may be set according to actual situations, for example, determined according to a reference resistance value of the sampling resistor, which is not specifically limited in this embodiment.
The battery includes a lithium battery, an alkaline zinc-manganese battery, a cadmium-nickel battery, a hydrogen-nickel battery, and the like, and the battery may be a single battery or may be a battery module composed of a plurality of batteries. The connection relation between the preset lead and the battery can be set according to actual conditions, the preset lead can be connected to the negative electrode or the negative electrode of the battery, and other devices or circuits can be connected to the preset lead. For example, the first end of the preset wire is connected to the negative electrode of the battery, and when the second end of the preset wire is grounded, a voltmeter can be further connected between the first end and the second end of the preset wire, and the voltmeter is used for detecting the voltage values of the two ends of the preset wire.
According to the embodiment of the application, the preset lead is used as the sampling resistor of the battery, and compared with the conventional sampling resistor, the occupied area of the preset lead on the PCB is small, the heat dissipation performance is good, and therefore the influence on the sampling precision of the battery electric quantity change is small. Meanwhile, the simplified design of the PCB is facilitated, a special sampling resistor element is saved, and the circuit cost can be reduced. Meanwhile, the processing precision requirement of the PCB circuit can be reduced, the reject ratio is reduced, and the electric quantity detection precision is improved.
In one embodiment, obtaining a current value of a preset wire includes: acquiring a plurality of charging currents or a plurality of discharging currents of a battery; and determining the average value of the plurality of charging currents or the plurality of discharging currents to obtain an average current value, wherein the average current value is used as the current value of the preset wire. The charging currents or the discharging currents can be obtained through reading devices such as an ammeter and a charging and discharging chip, the charging currents can be respectively collected at a plurality of charging moments in the battery charging process, and the discharging currents can be respectively collected at a plurality of discharging moments in the battery discharging process.
It should be noted that, by calculating the average current value of the plurality of charging currents or the plurality of discharging currents as the current value of the preset wire, the accuracy of the current value of the preset wire can be improved, thereby improving the accuracy of calculating the target resistance value of the preset wire. It can be understood that in practical application, a charging current in the battery charging process may be collected as a current value of the preset wire, or a discharging current in the battery discharging process may be collected as a current value of the preset wire. In practical application, the current value of the preset wire may be determined by calculating a weighted average of a plurality of charging currents or a plurality of discharging currents, which is not limited in this embodiment.
In one embodiment, obtaining a plurality of charging currents for a battery includes: obtaining output power of a charging chip and obtaining output voltage of the charging chip, wherein the charging chip is connected with a battery; determining the output current of the charging chip according to the output power and the output voltage of the charging chip; and determining the charging current of the battery according to the output current of the charging chip and the preset consumption current.
The preset consumption current is a consumption current of other components of the circuit system, and an output current of the charging chip flows to the battery and other components, so that a charging current I of the battery is generally equal to a difference between an output current IOUT of the charging chip and the preset consumption current ILOSE, i.e., i=iout-ILOSE. The output current IOUT of the charging chip is typically equal to the ratio between the output power POUT and the output voltage VOUT of the charging chip, i.e., iout=pout/VOUT. It should be noted that, a plurality of charging currents of the battery can be accurately obtained through the charging chip connected to the battery, so that the accuracy of calibrating the resistance value of the preset wire can be improved.
It will be appreciated that in practical applications, a plurality of discharge currents of the battery may be obtained through the discharge chip. For example, an input current of a discharge chip is obtained; and determining the discharge current of the battery according to the input current of the discharge chip and the preset consumption current. The discharging current of the battery flows to the discharging chip and other components, so the discharging current of the battery is generally equal to the sum value of the input current of the discharging chip and the preset consumption current. In some embodiments, the charging chip and the discharging chip may be combined in the same chip, for example, the charging chip and the discharging chip, which is not limited in this embodiment.
In an embodiment, obtaining the output power of the charging chip includes: acquiring input voltage and input current of a charging chip, and determining electric energy conversion efficiency of the charging chip; and determining the output power of the charging chip according to the input current of the input voltage and the electric energy conversion efficiency. The electric energy conversion efficiency of the charging chip can be preset according to actual conditions, and the electric energy conversion efficiency can reflect the conversion efficiency of the charging chip to input electric energy. It should be noted that, the output power of the charging chip may be obtained by calculating the product of the input voltage, the input current, and the electric energy conversion efficiency. By calculating the product of the input voltage, the input current and the electric energy conversion efficiency, the output power of the charging chip can be accurately obtained, and therefore the detection precision of the change of the electric quantity of the battery can be improved.
The charging chip is aware of the electrical energy conversion efficiency of the individual charging phases, which may also be referred to as charging efficiency or charging conversion efficiency, for example. The input Voltage (VBUS) and the input current (IBUS) of the charging chip after the stable charging stage are selected during charging. And selecting a section of the VBUS and the IBUS when no jump occurs to charge for the calculated sampling resistance time section of the invention. Output power pout=vbus×ibus×of the charging chip (electric energy conversion efficiency).
In an embodiment, determining the charging current of the battery according to the output current of the charging chip and the preset consumption current includes: determining a current operation mode of a circuit system comprising a charging chip, and acquiring a preset consumption current corresponding to the current operation mode; and determining the charging current of the battery according to the difference value between the output current of the charging chip and the preset consumption current.
The current operation mode of the circuit system of the charging chip may include various low-power consumption modes, such as a shutdown mode, a low-power mode, a standby mode, a flight mode, and the like, the operation mode of the circuit system may be defined by an engineer, and the operation mode may be a mode set by software. The consumption current of the circuit system in each operation mode can be different, so that the preset consumption current corresponding to the current operation mode needs to be obtained, the difference value between the output current of the charging chip and the preset consumption current is calculated, and the charging current of the battery is obtained, so that the calculation accuracy of the charging current of the battery can be improved.
In order to reduce the influence of the circuit system on the calculation accuracy of the target resistance value of the preset wire and reduce the influence of the system power consumption, the current value and the voltage value of the preset wire can be obtained in the low power consumption mode. Meanwhile, the current value and the voltage value of the preset wire can be obtained after the circuit system enters the low-power-consumption mode and the current is stable, for example, after the circuit system enters the preset time of the low-power-consumption mode, the difference value between the output current of the charging chip and the preset consumption current is calculated, and the charging current of the battery is obtained. And for example, after the screen of the screen-lighting device is turned off, calculating the difference between the output current of the charging chip and the preset consumption current to obtain the charging current of the battery.
In one embodiment, obtaining a voltage value of a preset wire includes: reading the voltages at two ends of a preset wire to obtain a first voltage and a second voltage; determining a voltage difference between the first voltage and the second voltage; and determining the voltage value of the preset wire according to the voltage difference value. Wherein the first voltage and the second voltage may be read by an electricity meter built in the power management chip. Of course, the first voltage and the second voltage may also be read by a voltmeter or the like. It should be noted that, by calculating the voltage difference between the first voltage and the second voltage at two ends of the preset wire, the voltage value of the preset wire can be accurately obtained.
Illustratively, the voltage across the preset wire is read by a power management chip built-in electricity meter, and is recorded as V1 and V2, V1 is a high potential, and V2 is a low potential. The voltage value of the preset wire is v=v1-V2.
It should be noted that the voltage difference may be one or more. When the voltage difference is multiple, an average value of the voltage difference can be obtained as the voltage value of the preset wire, and the voltage difference can be obtained at different moments in the charging or discharging process of the battery, so that the calculation accuracy of the voltage value of the preset wire can be improved. The method for obtaining the voltage value of the preset wire may refer to the foregoing corresponding embodiment for obtaining the current value of the preset wire, and the obtaining timing of the voltage value of the preset wire may be the same as or different from the obtaining timing of the current value of the preset wire.
Step S102, determining a target resistance value of a preset wire according to the current value and the voltage value.
In one embodiment, the ratio between the voltage value and the current value of the preset wire is calculated according to an ohm formula to obtain the target resistance value of the preset wire. It should be noted that, the target resistance value is an actual resistance value of the preset wire, the preset wire may be manufactured by using the reference resistance value as a reference standard, and the target resistance value is usually different from the reference resistance value of the preset wire due to the existence of the machining error. Therefore, the target resistance value of the preset wire needs to be calculated, so that the resistance value of the preset wire can be calibrated accurately.
Note that, the target resistance value of the preset wire is denoted as z_sense, and the reference resistance value of the preset wire is assumed to be 5 milliohms. If the target resistance value Z_sense >5, the same current flows, the voltage across the preset wire is greater than the voltage across the resistor of 5 milliohms. The current sampled during calculation of the change in charge is greater than the actual current and may result in the battery being charged ahead of time or 100% being reported. Conversely, if the target resistance value z_sense is <5, the battery charging time is prolonged or the battery is not fully charged.
For example, the charging current of the charging chip in a period of time after the charging is stable is sequentially read, and an average value of a plurality of charging currents is taken as a current value of a preset wire and recorded as delta I. Collecting a plurality of voltage difference values at two ends of a preset wire as V=V1-V2, taking the average value of the voltage difference values as the voltage value of the preset wire, and recording as DeltaV. The target resistance value of the preset wire is z_sense= Δv/. DELTA.i.
Step S103, calibrating the resistance value of the preset wire based on the target resistance value.
The resistance value of the preset wire is used for measuring and calculating the electric quantity change of the battery. The resistance of the preset wire is usually small, for example, 1 milliohm to 10 milliohms, so that accurate detection of the change of the electric quantity of the battery in the charging or discharging process can be realized.
It should be noted that, during the processing of the circuit board, there is a difference in processing precision of the preset wires, so the resistance values of different preset wires are usually different, and the resistance values of the preset wires are used for measuring and calculating the electric quantity change of the battery, so a uniform reference resistance value needs to be set for the preset wires. The current method for detecting the battery power change is to calculate by using the unified reference resistance value, and in the embodiment, the target resistance value of the preset wire is calculated, and the resistance value of the preset wire is calibrated based on the target resistance value, so that the battery power change can be detected by the calibrated resistance value, and the detection precision of the battery power change can be greatly improved.
In an embodiment, the resistance value of the preset wire is assigned to be a target resistance value, so that the resistance value of the preset wire is calibrated. By taking the target resistance value of the preset wire as the measurement and calculation parameter of the battery electric quantity change, the resistance accuracy of the preset wire is ensured, and the detection accuracy of the battery electric quantity change can be greatly improved.
In one embodiment, as shown in fig. 2, step S103 includes: substep S1031 to substep S1033.
In the substep S1031, a reference resistance value of the preset wire is obtained.
The preset wire is manufactured by taking a reference resistance value as a reference standard, and the reference resistance value is 5 milliohms for example. The reference resistance value can be stored in the memory in advance, so that the reference resistance value of the preset wire can be conveniently obtained from the memory.
In the substep S1032, the calibration parameter of the resistance value of the preset wire is determined according to the target resistance value and the reference resistance value.
In one embodiment, a ratio of the target resistance value to the reference resistance value is determined; and taking the ratio of the target resistance value to the reference resistance value as a calibration parameter of the resistance value of the preset lead. It should be noted that the calibration parameter of the resistance value of the preset wire may be a ratio of the target resistance value to the reference resistance value, and the resistance value of the preset wire may be calibrated conveniently through the ratio of the target resistance value to the reference resistance value.
For example, the reference resistance value of the preset wire is R1, the target resistance value of the preset wire is R2, α is set as a calibration parameter, or referred to as a sampling resistance compensation coefficient, and the calibration parameter α=r1/R2. If α=1, it indicates that the actual target resistance value of the preset wire is equal to the configured reference resistance value. If alpha >1, the actual target resistance value of the preset wire is smaller than the configured reference resistance value. If alpha is less than 1, the actual target resistance value of the preset wire is larger than the configured reference resistance value.
In one embodiment, a difference between a target resistance value and a reference resistance value is determined; and taking the difference value of the target resistance value and the reference resistance value as a calibration parameter of the resistance value of the preset lead. It should be noted that the calibration parameter of the resistance value of the preset wire may be a difference between the target resistance value and the reference resistance value, and the resistance value of the preset wire may be calibrated quickly and conveniently through the difference between the target resistance value and the reference resistance value.
And step S1033, calibrating the resistance value of the preset wire through the calibration parameter and the reference resistance value.
In one embodiment, the calibration parameter is a ratio of the target resistance value to the reference resistance value; and determining a product value between the calibration parameter and the reference resistance value, and adjusting the resistance value of the preset wire to the product value. It should be noted that, taking the product value between the calibration parameter and the reference resistance value as the resistance value of the preset wire can ensure the correctness of the resistance value of the preset wire, and can greatly improve the detection precision of the battery electric quantity change.
The calibration parameter is a ratio α of a target resistance value to a reference resistance value, and the reference resistance value of the preset wire is R1. Calculating a product value alpha x R1 between the calibration parameter alpha and the reference resistance value R1, and enabling the resistance value of the preset wire to be alpha x R1.
In one embodiment, the calibration parameter is a difference between the target resistance value and the reference resistance value; and determining the sum of the calibration parameter and the reference resistance value, and adjusting the resistance value of the preset wire to be the sum of the calibration parameter and the reference resistance value. It should be noted that, the sum between the calibration parameter and the reference resistance value is used as the resistance value of the preset wire, so that the correctness of the resistance value of the preset wire can be ensured, and the detection precision of the battery electric quantity change can be greatly improved.
In one embodiment, the predetermined wire may be connected to the negative electrode or the negative electrode of the battery. For example, one end of the preset wire is connected to the negative electrode of the battery, and the other end is grounded. For another example, one end of the preset wire is connected to the positive electrode of the battery, and the other end is connected to the charging chip. For another example, one end of the preset wire is connected to the positive electrode of the battery, and the other end is connected to the discharge chip.
For example, as shown in fig. 3, if the preset wire 20, which is set as the sampling resistor, is connected to the positive electrode of the battery 10, a piece of copper sheet between the charging chip 30 and the positive electrode of the battery 10 is selected as the preset wire 20 when the PCB is designed. For example, as shown in fig. 4, if a preset wire 20, which is set as a sampling resistor, is connected to the negative electrode of the battery 10, a piece of copper sheet between the negative electrode of the battery 10 and the ground is selected as the preset wire 20 when the PCB is designed. When the PCB is designed, a section of copper sheet is selected according to design requirements, and specific impedance is calculated theoretically, for example, 5 milliohms is required to be designed, and the theoretical impedance of the section of copper sheet is selected to be 5 milliohms.
As shown in fig. 3 and 4, the charging chip 30 may output the input voltage VBUS and the input current IBUS of different charging phases to the power management chip 40 in real time. The power management chip 40 determines the output power of the charging chip according to the charging efficiency, the input voltage VBUS, and the input current IBUS, and transfers the output power of the charging chip to the processor 50. The processor 50 calculates the output current IOUT of the charging chip 30 from the output power of the charging chip 30 and the output voltage VOUT. And calculating a calibration parameter alpha according to the output current IOUT and the system consumption current to perform electric quantity accuracy compensation. The power management chip 40 has an electricity meter function, and pins connected with the sampling resistor copper sheet have an ADC function, so that analog-to-digital conversion can be accurately performed. The two ends of the selected copper sheet are respectively connected to the input end of the fuel gauge in the power management chip 40, and when current flows, the voltages at the two ends of the sampling copper sheet are respectively V1 and V2, V1 is high voltage, and V2 is low voltage.
In one embodiment, the preset wire may be connected to the negative electrode or the negative electrode of the battery in series with a resistor. It should be noted that, for some cases, the copper sheet as the preset wire is shorter, the impedance is smaller, and the system impedance requirement cannot be met, for example, 5 milliohms is required, but the actual copper sheet impedance is calculated to be only 2-3 milliohms, and at this time, a sampling resistor needs to be additionally arranged, so that a copper sheet plus sampling resistor mode is formed.
For example, as shown in fig. 5, the preset wire 20 is connected to the positive electrode of the battery 10, and a copper sheet between the charging chip 30 and the positive electrode of the battery 10 is selected as the preset wire 20 when the PCB is designed, and the preset wire 20 is connected in series with the resistor 60. For example, as shown in fig. 6, if a preset wire 20, which is a sampling resistor, is set to be connected to the negative electrode of the battery 10, a piece of copper sheet between the negative electrode of the battery 10 and the ground is selected as the preset wire 20 when the PCB is designed, and the preset wire 20 is connected in series with the resistor 60. As shown in fig. 5 and 6, the electricity meter in the power management chip 40 is connected to both ends of the preset wire 20 and the resistor 60 connected in series, respectively, to collect the voltages of the preset wire 20 and the resistor 60. In calibrating the resistance value of the preset wire 20 shown in fig. 5 and 6, reference may also be made to the resistance value calibration method provided in the embodiment of the present application, while considering the influence of the resistance value R of the resistor 60.
According to the resistance value calibration method provided by the embodiment, the current value of the preset wire is obtained, and the voltage value of the preset wire is obtained, wherein the preset wire is connected with the battery; determining a target resistance value of a preset wire according to the current value and the voltage value; and calibrating the resistance value of the preset wire based on the target resistance value, wherein the resistance value of the preset wire is used for measuring and calculating the electric quantity change of the battery. According to the embodiment of the invention, the preset wire is used as the sampling resistor of the battery, so that the occupied area is small, the heat dissipation performance is good, and the influence on the sampling precision is small. Meanwhile, the resistance value of the preset wire is calibrated through the target resistance value, so that the detection precision of the battery electric quantity change can be greatly improved.
Referring to fig. 7, fig. 7 is a schematic block diagram of a calibration circuit according to an embodiment of the invention.
As shown in fig. 7, the calibration circuit 200 includes a preset wire 201 and a processor 202; the preset lead 201 is used for connecting a battery, and the resistance value of the preset lead 201 is used for measuring and calculating the electric quantity change of the battery; the processor 202 is configured to perform a resistance value calibration method as in any of the embodiments herein.
In particular, the processor 202 is configured to provide computing and control capabilities to support the operation of the overall terminal device. The processor 202 may be a central processing unit (Central Processing Unit, CPU), and the processor 202 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In an embodiment, the calibration circuit 200 may refer to the circuit structures of fig. 4 to 6, for example, the calibration circuit 200 further includes a charging chip, a power management chip, etc., which is not limited in this embodiment.
In an embodiment, the processor is configured to implement the steps of:
acquiring a current value of a preset wire and a voltage value of the preset wire, wherein the preset wire is connected to a battery;
determining a target resistance value of the preset wire according to the current value and the voltage value;
and calibrating the resistance value of the preset wire based on the target resistance value, wherein the resistance value of the preset wire is used for measuring and calculating the electric quantity change of the battery.
In an embodiment, the processor is configured to, when implementing obtaining the current value of the preset wire:
acquiring a plurality of charging currents or a plurality of discharging currents of the battery;
and determining the average value of the charging currents or the discharging currents to obtain an average current value, wherein the average current value is used as the current value of the preset wire.
In an embodiment, the processor, when implementing obtaining a plurality of charging currents for the battery, is configured to implement:
obtaining output power of a charging chip and obtaining output voltage of the charging chip, wherein the charging chip is connected with the battery;
determining the output current of the charging chip according to the output power and the output voltage of the charging chip;
and determining the charging current of the battery according to the output current of the charging chip and the preset consumption current.
In an embodiment, the processor, when implementing obtaining the output power of the charging chip, is configured to implement:
acquiring input voltage and input current of the charging chip, and determining electric energy conversion efficiency of the charging chip;
and determining the output power of the charging chip according to the input voltage, the input current and the electric energy conversion efficiency.
In an embodiment, the processor is configured to, when determining the charging current of the battery according to the output current of the charging chip and a preset consumption current, implement:
determining a current operation mode of a circuit system comprising the charging chip, and acquiring a preset consumption current corresponding to the current operation mode;
and determining the charging current of the battery according to the difference value between the output current of the charging chip and the preset consumption current.
In one embodiment, one end of the preset wire is connected to the negative electrode of the battery, and the other end of the preset wire is grounded; or alternatively
One end of the preset wire is connected with the anode of the battery, and the other end of the preset wire is connected with the charging chip; or alternatively
One end of the preset wire is connected to the positive electrode of the battery, and the other end of the preset wire is connected to the discharge chip.
In an embodiment, the predetermined conductive lines include circuit conductive lines on a PCB board.
In an embodiment, when implementing obtaining the voltage value of the preset wire, the processor is configured to implement:
reading the voltages at two ends of the preset wire to obtain a first voltage and a second voltage;
determining a voltage difference between the first voltage and the second voltage;
and determining the voltage value of the preset wire according to the voltage difference value.
In one embodiment, the first voltage and the second voltage are read by an electricity meter built into the power management chip.
In an embodiment, the processor is configured to, when performing calibration on the resistance value of the preset wire based on the target resistance value, perform:
acquiring a reference resistance value of the preset wire;
determining a calibration parameter of the resistance value of the preset wire according to the target resistance value and the reference resistance value;
and calibrating the resistance value of the preset wire through the calibration parameter and the reference resistance value.
In an embodiment, the processor is configured to, when implementing the calibration parameter for determining the resistance value of the preset wire according to the target resistance value and the reference resistance value, implement:
determining a ratio of the target resistance value to the reference resistance value;
taking the ratio as a calibration parameter of the resistance value of the preset wire;
and calibrating the resistance value of the preset wire by the calibration parameter and the reference resistance value, including:
and determining a product value between the calibration parameter and the reference resistance value, and adjusting the resistance value of the preset wire to be the product value.
It should be noted that, for convenience and brevity of description, the specific operation of the calibration circuit 200 described above may refer to the corresponding process in the foregoing embodiment of the resistance value calibration method, which is not described herein.
Referring to fig. 8, fig. 8 is a schematic block diagram of a structure of a terminal device according to an embodiment of the present invention.
As shown in fig. 8, the terminal device 300 includes a battery 301 and a calibration circuit 302, and the battery 301 is connected to a preset wire in the calibration circuit 302. The resistance value of the preset wire is used for measuring and calculating the electric quantity change of the battery 301, and the preset wire includes a circuit wire on the PCB board, and the preset wire may be the preset wire in the foregoing embodiment.
In one embodiment, calibration circuit 302 may be calibration circuit 200 of FIG. 6.
In an embodiment, the terminal device 300 further comprises a memory, which is connected to the processor in the calibration circuit 302 via a bus 303, such as an I2C (Inter-integrated Circuit) bus. Specifically, the Memory 302 may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of a portion of the structure related to an embodiment of the present invention, and does not constitute a limitation of the terminal device 300 to which the embodiment of the present invention is applied, and that a specific terminal device 300 may include more or less components than those shown in the drawings, or may combine some components, or may have a different arrangement of components.
It should be noted that, for convenience and brevity of description, the specific operation process of the terminal device 300 described above may refer to the corresponding process in the foregoing embodiment of the resistance value calibration method, which is not described herein again.
The embodiment of the invention also provides a storage medium for computer readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any resistance value calibration method provided by the embodiment of the invention.
The storage medium may be an internal storage unit of the terminal device according to the foregoing embodiment, for example, a hard disk or a memory of the terminal device. The storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (14)

1. A method for calibrating a resistance value, comprising:
acquiring a current value of a preset wire and a voltage value of the preset wire, wherein the preset wire is connected to a battery;
determining a target resistance value of the preset wire according to the current value and the voltage value;
and calibrating the resistance value of the preset wire based on the target resistance value, wherein the resistance value of the preset wire is used for measuring and calculating the electric quantity change of the battery.
2. The method for calibrating a resistance value according to claim 1, wherein the step of obtaining the current value of the preset wire comprises:
acquiring a plurality of charging currents or a plurality of discharging currents of the battery;
and determining the average value of the charging currents or the discharging currents to obtain an average current value, wherein the average current value is used as the current value of the preset wire.
3. The method of calibrating a resistance value according to claim 2, wherein the obtaining a plurality of charging currents of the battery includes:
obtaining output power of a charging chip and obtaining output voltage of the charging chip, wherein the charging chip is connected with the battery;
determining the output current of the charging chip according to the output power and the output voltage of the charging chip;
and determining the charging current of the battery according to the output current of the charging chip and the preset consumption current.
4. The method for calibrating a resistance value according to claim 3, wherein the obtaining the output power of the charging chip comprises:
acquiring input voltage and input current of the charging chip, and determining electric energy conversion efficiency of the charging chip;
and determining the output power of the charging chip according to the input voltage, the input current and the electric energy conversion efficiency.
5. The method of calibrating a resistance value according to claim 3, wherein the determining the charging current of the battery according to the output current of the charging chip and a preset consumption current includes:
determining a current operation mode of a circuit system comprising the charging chip, and acquiring a preset consumption current corresponding to the current operation mode;
and determining the charging current of the battery according to the difference value between the output current of the charging chip and the preset consumption current.
6. The method for calibrating a resistance value according to claim 1, wherein,
one end of the preset lead is connected to the negative electrode of the battery, and the other end of the preset lead is grounded; or alternatively
One end of the preset wire is connected with the anode of the battery, and the other end of the preset wire is connected with the charging chip; or alternatively
One end of the preset wire is connected to the positive electrode of the battery, and the other end of the preset wire is connected to the discharge chip.
7. The method of claim 1, wherein the predetermined conductors comprise circuit conductors on a PCB.
8. The method for calibrating a resistance value according to any one of claims 1 to 7, wherein the acquiring the voltage value of the preset wire includes:
reading the voltages at two ends of the preset wire to obtain a first voltage and a second voltage;
determining a voltage difference between the first voltage and the second voltage;
and determining the voltage value of the preset wire according to the voltage difference value.
9. The method of calibrating a resistance value according to claim 8, wherein the first voltage and the second voltage are read by an electricity meter built in a power management chip.
10. The resistance value calibration method according to any one of claims 1 to 7, characterized in that the calibrating the resistance value of the preset wire based on the target resistance value includes:
acquiring a reference resistance value of the preset wire;
determining a calibration parameter of the resistance value of the preset wire according to the target resistance value and the reference resistance value;
and calibrating the resistance value of the preset wire through the calibration parameter and the reference resistance value.
11. The method according to claim 10, wherein determining the calibration parameter of the resistance value of the preset wire according to the target resistance value and the reference resistance value comprises:
determining a ratio of the target resistance value to the reference resistance value;
taking the ratio as a calibration parameter of the resistance value of the preset wire;
and calibrating the resistance value of the preset wire by the calibration parameter and the reference resistance value, including:
and determining a product value between the calibration parameter and the reference resistance value, and adjusting the resistance value of the preset wire to be the product value.
12. A calibration circuit, wherein the calibration circuit comprises a preset wire and a processor; the preset lead is used for connecting a battery, and the resistance value of the preset lead is used for measuring and calculating the electric quantity change of the battery; the processor is configured to perform the resistance value calibration method according to any one of claims 1 to 11.
13. A terminal device comprising a battery and a calibration circuit according to claim 12, the battery being connected to a predetermined wire in the calibration circuit.
14. A storage medium for computer-readable storage, characterized in that the storage medium stores one or more programs executable by one or more processors to implement the resistance value calibration method of any one of claims 1 to 11.
CN202210880118.2A 2022-07-25 2022-07-25 Resistance value calibration method, calibration circuit, terminal device, and storage medium Pending CN117491888A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210880118.2A CN117491888A (en) 2022-07-25 2022-07-25 Resistance value calibration method, calibration circuit, terminal device, and storage medium
PCT/CN2023/092762 WO2024021752A1 (en) 2022-07-25 2023-05-08 Resistance value calibration method, calibration circuit, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210880118.2A CN117491888A (en) 2022-07-25 2022-07-25 Resistance value calibration method, calibration circuit, terminal device, and storage medium

Publications (1)

Publication Number Publication Date
CN117491888A true CN117491888A (en) 2024-02-02

Family

ID=89669566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210880118.2A Pending CN117491888A (en) 2022-07-25 2022-07-25 Resistance value calibration method, calibration circuit, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN117491888A (en)
WO (1) WO2024021752A1 (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981541B (en) * 2012-11-06 2015-01-14 四川和芯微电子股份有限公司 Resistor calibration circuit
CN104502854B (en) * 2014-12-18 2017-08-04 青岛海信移动通信技术股份有限公司 A kind of terminal residual electric quantity display method and device
CN106556732A (en) * 2015-09-30 2017-04-05 中兴通讯股份有限公司 Current detection circuit and electric current detecting method
DE102016202495A1 (en) * 2016-02-18 2017-08-24 Continental Automotive Gmbh Method for calibrating a measuring resistor, calibration device, battery sensor and storage medium
FR3070764B1 (en) * 2017-09-04 2020-09-04 Renault Sas PROCESS FOR DETERMINING THE STATE OF AN ELECTRICAL LINE CONNECTING A BATTERY CELL OF ACCUMULATORS TO A CONTROL UNIT AND CORRESPONDING CONTROL UNIT
CN109782045A (en) * 2018-12-27 2019-05-21 深圳市优必选科技有限公司 The current sample method and current sampling system of motor-drive circuit
CN111771129B (en) * 2019-01-31 2022-04-22 华为技术有限公司 Device, method and equipment for measuring current
WO2021142678A1 (en) * 2020-01-15 2021-07-22 深圳市大疆创新科技有限公司 Battery parameter determination method and device, and storage medium
CN114062957A (en) * 2020-08-10 2022-02-18 北京小米移动软件有限公司 Method and device for acquiring remaining battery capacity, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2024021752A1 (en) 2024-02-01

Similar Documents

Publication Publication Date Title
CN101185005B (en) Method and apparatus of detecting voltage for battery pack
CN110506215A (en) A kind of method and device of determining battery internal short-circuit
US11594766B2 (en) Apparatus and method for testing secondary battery
US11846678B2 (en) Method and system for validating a temperature sensor in a battery cell
CN102721925A (en) Intelligent lithium battery protection board tester
US11215669B2 (en) Apparatus and method for measuring voltage
CN111142032B (en) Method, device and equipment for determining battery electric quantity and storage medium
CN203587780U (en) Battery power detecting device
EP4102614A1 (en) Electric quantity measuring apparatus and method and electronic device
EP3579006A1 (en) Validation of a temperature sensor of a battery cell
CN103460063A (en) Battery voltage measurement
CN103633705B (en) Accurately obtained terminal and the method for cell voltage by discharge mode when charging
CN206331094U (en) A kind of battery data detection means and terminal
WO2023179255A1 (en) Charging device and method, and related equipment
CN117491888A (en) Resistance value calibration method, calibration circuit, terminal device, and storage medium
CN202057774U (en) Intelligent lithium battery baffle automatic tester
CN105048583A (en) Battery charging method and circuit
CN113748438B (en) Electric quantity prediction method and equipment
CN115173512A (en) Analog front-end circuit of battery management system and application method thereof
US11397200B2 (en) Current measuring apparatus and method
CN114189013A (en) Charging device, charging method and computer readable storage medium
CN112557915A (en) Electric quantity detection circuit, electric quantity detection method and electronic equipment
CN103076494A (en) Power consumption measuring device and method
CN220172194U (en) Lithium ion power battery management device
CN117310521B (en) Method, system, equipment and storage medium for calibrating charging state of lithium ion battery

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication