WO2024021752A1 - 电阻值校准方法、校准电路、终端设备及存储介质 - Google Patents

电阻值校准方法、校准电路、终端设备及存储介质 Download PDF

Info

Publication number
WO2024021752A1
WO2024021752A1 PCT/CN2023/092762 CN2023092762W WO2024021752A1 WO 2024021752 A1 WO2024021752 A1 WO 2024021752A1 CN 2023092762 W CN2023092762 W CN 2023092762W WO 2024021752 A1 WO2024021752 A1 WO 2024021752A1
Authority
WO
WIPO (PCT)
Prior art keywords
resistance value
preset
battery
preset wire
current
Prior art date
Application number
PCT/CN2023/092762
Other languages
English (en)
French (fr)
Inventor
陈涛
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2024021752A1 publication Critical patent/WO2024021752A1/zh

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

Definitions

  • the present disclosure relates to the field of electronic technology, and in particular to a resistance value calibration method, calibration circuit, terminal equipment and storage medium.
  • high-precision sampling resistors To detect battery power changes during charging or discharging.
  • high-precision sampling resistors In order to meet the requirements for passing large currents, high-precision sampling resistors generally require smaller resistance values, higher accuracy, and larger packages, such as a sampling resistor of 5 milliohms, an accuracy of 1%, and a 1206 package.
  • a larger packaged sampling resistor will occupy a larger area on the circuit board, and will easily generate higher heat when passing a large current. If the heat cannot be exported in time, it will affect the charging and discharging power and the sampling accuracy of the sampling resistor, thus affecting the battery. Detection accuracy of power changes.
  • Embodiments of the present disclosure provide a resistance value calibration method, calibration circuit, terminal equipment and storage medium.
  • an embodiment of the present disclosure provides a resistance value calibration method, including: obtaining a current value of a preset wire, and obtaining a voltage value of the preset wire, the preset wire being connected to a battery; according to the The current value and the voltage value are used to determine the target resistance value of the preset wire; and based on the target resistance value, the resistance value of the preset wire is calibrated, and the resistance value of the preset wire is used for calculation.
  • the battery capacity changes.
  • embodiments of the present disclosure also provide a calibration circuit.
  • the calibration circuit includes a preset wire and a processor; the preset wire is used to connect the battery, and the resistance value of the preset wire is used to measure the The battery power changes; the processor is used to execute the resistance value calibration method provided by the embodiment of the present disclosure.
  • an embodiment of the present disclosure also provides a terminal device.
  • the terminal device includes a battery and a calibration circuit as provided in the embodiment of the present disclosure.
  • the battery is connected to a preset wire in the calibration circuit.
  • embodiments of the present disclosure also provide a storage medium for computer-readable storage.
  • the storage medium stores one or more programs, and the one or more programs can be processed by one or more processors. to implement, to achieve The resistance value calibration method provided by the embodiment of the present disclosure is now provided.
  • Figure 1 is a schematic flowchart of steps of a resistance value calibration method provided by an embodiment of the present disclosure
  • Figure 2 is a schematic flowchart of the sub-steps of the resistance value calibration method in Figure 1;
  • Figure 3 is a schematic circuit diagram used to implement the resistance value calibration method provided by the embodiment of the present disclosure.
  • Figure 4 is another circuit schematic diagram used to implement the resistance value calibration method provided by the embodiment of the present disclosure.
  • Figure 5 is another circuit schematic diagram used to implement the resistance value calibration method provided by the embodiment of the present disclosure.
  • Figure 6 is another circuit schematic diagram used to implement the resistance value calibration method provided by the embodiment of the present disclosure.
  • Figure 7 is a schematic structural block diagram of a calibration circuit provided by an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural block diagram of a terminal device provided by an embodiment of the present disclosure.
  • sampling resistor In order to accurately detect the power changes of the terminal equipment during charging or discharging, it is often necessary to add a sampling resistor for detection.
  • the sampling resistor generally requires a smaller resistance value, higher precision, and larger package to meet the requirements of a larger package. Large current, such as 5 milliohm, 10 milliohm, accuracy 1%, 0805 package and 1206 package, etc.
  • Large current such as 5 milliohm, 10 milliohm, accuracy 1%, 0805 package and 1206 package, etc.
  • These larger packaged devices occupy a larger area on the circuit board, which is not conducive to simplified circuit board design and increases cost. They also generate high heat when passing large currents, such as when a 5 milliohm sampling resistor passes a 10A current.
  • the thermal power generated is 0.5W. If the heat cannot be exported in time, it will cause the terminal equipment to heat up, affecting the charging power, and various resistors have thermal effects. As the heat increases, the resistance accuracy will also change,
  • the impedance characteristics of the preset wires in the PCB can be effectively used.
  • the impedance of the copper in the PCB is used as a sampling resistor.
  • the impedance is generally Only a few milliohms can meet the requirements of the sampling resistor for power detection, which not only reduces the cost, but also reduces the heating of the sampling resistor, and makes the design more flexible.
  • the processing accuracy of the preset wires is difficult to control.
  • the actual impedance or resistance value of the preset wires in each PCB board cannot be measured.
  • the impact will be 100mAh in 1 hour, which means the corresponding battery capacity is 2%.
  • the current flowing through the sampling resistor is usually greater than 10A, so the resistance value of the sampling resistor is required to be smaller, and some are even 1 milliohm in order to reduce heat generation. It can be seen that how to reduce the processing accuracy requirements of PCB boards, reduce the defective rate, and improve the sampling accuracy of preset wires has become an urgent problem that needs to be solved.
  • Embodiments of the present disclosure provide a resistance value calibration method, calibration circuit, terminal equipment and storage medium.
  • This resistance value calibration method can be applied to terminal devices equipped with batteries, which can be electronic devices such as mobile phones, tablet computers, notebook computers, desktop computers, personal digital assistants, and wearable devices.
  • FIG. 1 is a schematic flow chart of a resistance value calibration method according to an embodiment of the present disclosure.
  • the resistance value calibration method includes steps S101 to S103.
  • Step S101 Obtain the current value of the preset wire and obtain the voltage value of the preset wire.
  • the preset wire is connected to the battery, and the resistance of the preset wire is small, for example, 5 milliohms, so that the change in power of the battery during charging or discharging can be accurately detected.
  • the resistance value of the preset wire is used to measure the change of battery power.
  • the charging current or discharge current of the battery can be calculated through the resistance value of the preset wire and the voltage value of the preset wire, so that the battery can be detected by the charging current or discharge current of the battery. Changes in electric quantity during charging or discharging.
  • the preset wires include circuit wires on a PCB (Printed Circuit Board).
  • the preset wires are, for example, copper. Of course, they can also be wires made of other metals or conductive materials.
  • the length, width, thickness, material, shape, position, etc. of the preset wire can be set according to the actual situation, for example, based on the reference resistance value of the sampling resistor, which is not specified in this embodiment. limited.
  • the battery includes a lithium battery, an alkaline zinc-manganese battery, a nickel-cadmium battery, a nickel-hydrogen battery, etc.
  • the battery can be a single battery or a battery module composed of multiple batteries, which is not specifically limited in this embodiment.
  • the connection relationship between the preset wire and the battery can be set according to the actual situation.
  • the preset wire can be connected to the negative pole or negative pole of the battery, and the preset wire can also be connected to other devices or circuits.
  • a voltmeter can be connected between the first end and the second end of the preset wire, and the voltmeter is used for Detect the voltage value at both ends of the preset wire.
  • the preset wire is used as the sampling resistor of the battery.
  • the preset wire occupies a smaller area on the PCB board and has better heat dissipation performance. Therefore, the sampling accuracy of the battery power change is improved. Less affected.
  • this is conducive to the simplified design of the PCB board, saves dedicated sampling resistor components, and can reduce circuit costs. At the same time, this can also reduce the processing accuracy requirements of PCB circuits, reduce the defective rate, and improve the accuracy of power detection.
  • obtaining the current value of the preset wire includes: obtaining multiple charging currents or multiple discharging currents of the battery; and determining the average of the multiple charging currents or multiple discharging currents to obtain the average current value, which The average current value is used as the current value of the preset wire.
  • Multiple charging currents or multiple discharging currents can be read through ammeters, charging and discharging chips and other devices. Multiple charging currents can be collected at multiple charging moments during the battery charging process. Multiple discharging currents can be collected at Multiple discharge moments during the battery discharge process were collected separately.
  • the accuracy of the current value of the preset wire can be improved, thereby improving the calculation accuracy of the target resistance value of the preset wire.
  • a charging current during the battery charging process can also be collected as the current value of the preset wire, or a discharge current during the battery discharge process can be collected as the current value of the preset wire.
  • the current value of the preset wire can also be determined by calculating the weighted average of multiple charging currents or multiple discharging currents, which is not specifically limited in this embodiment.
  • obtaining multiple charging currents of the battery includes: obtaining the output power of the charging chip, and obtaining the output voltage of the charging chip.
  • the charging chip is connected to the battery; the output current of the charging chip is determined based on the output power and output voltage of the charging chip; and the charging current of the battery is determined based on the output current and preset consumption current of the charging chip.
  • the preset consumption current is the loss current of other components of the circuit system.
  • multiple discharge currents of the battery can also be obtained through the discharge chip. For example, obtain the input current of the discharge chip; determine the discharge current of the battery based on the input current of the discharge chip and the preset consumption current.
  • the discharge current of the battery flows to the discharge chip and other components, so the discharge current of the battery is usually equal to the sum of the input current of the discharge chip and the preset consumption current.
  • the charging chip and the discharging chip can also be integrated into the same chip, such as a charging and discharging chip, which is not specifically limited in this embodiment.
  • obtaining the output power of the charging chip includes: obtaining the input voltage and input current of the charging chip, and determining the power conversion efficiency of the charging chip; determining based on the input voltage, input current and power conversion efficiency The output power of the charging chip.
  • the power conversion efficiency of the charging chip can be preset according to the actual situation, and the power conversion efficiency can reflect the conversion efficiency of the charging chip for input power.
  • the output power of the charging chip can be obtained by calculating the product between the input voltage, input current and power conversion efficiency. By calculating the product between the input voltage, input current and power conversion efficiency, the output power of the charging chip can be accurately obtained, thereby improving the detection accuracy of battery power changes.
  • the charging chip knows the power conversion efficiency of each charging stage, and the power conversion efficiency may also be called charging efficiency or charging conversion efficiency.
  • the power conversion efficiency select the input voltage (VBUS) and input current (IBUS) of the charging chip after the charging stage is stable.
  • a charging period when VBUS and IBUS do not transition is selected as the time period for calculating the sampling resistor in this disclosure.
  • the output power POUT of the charging chip VBUS*IBUS* (power conversion efficiency).
  • determining the charging current of the battery based on the output current of the charging chip and the preset consumption current includes: determining the current operating mode of the circuit system including the charging chip, and obtaining the preset consumption corresponding to the current operating mode. current; and determine the charging current of the battery based on the difference between the output current of the charging chip and the preset consumption current.
  • the current operating mode of the circuit system of the charging chip can include multiple modes, such as shutdown mode, low power mode, standby mode, flight mode and other low power consumption modes.
  • the operating mode of the circuit system can be defined by the engineer, and the operating mode can be set by the software. mode.
  • the current consumption of the circuit system can be different in each operating mode. Therefore, it is necessary to obtain the preset current consumption corresponding to the current operating mode, and calculate the difference between the output current of the charging chip and the preset consumption current to obtain the battery charge. current, thereby improving the calculation accuracy of the battery charging current.
  • the current value and voltage value of the preset wire can be obtained in the above-mentioned low power consumption mode.
  • the current value and voltage value of the preset wire can be obtained after the circuit system enters the above-mentioned low-power consumption mode and the current is stable. For example, after entering the above-mentioned low-power consumption mode for a preset time, calculate the output current of the charging chip and The difference between the preset consumption currents is used to obtain the battery charging current. For another example, after a device with a bright screen turns off its screen, the difference between the output current of the charging chip and the preset consumption current is calculated to obtain the charging current of the battery.
  • obtaining the voltage value of the preset wire includes: reading the voltage at both ends of the preset wire to obtain the first voltage and the second voltage; determining the voltage difference between the first voltage and the second voltage; and Determine the voltage value of the preset wire based on the voltage difference.
  • the first voltage and the second voltage may be read through a fuel gauge built into the power management chip.
  • the first voltage and the second voltage can also be read by a device such as a voltmeter.
  • the voltages at both ends of the preset wire are read through the built-in fuel gauge of the power management chip, recorded as V1 and V2.
  • the voltage difference can be one or more. When there are multiple voltage differences, the average of the multiple voltage differences can be calculated As the voltage value of the preset wire, the multiple voltage differences can be obtained at different times during the charging or discharging process of the battery, which can improve the calculation accuracy of the voltage value of the preset wire.
  • the method of obtaining the voltage value of the preset conductor may refer to the corresponding embodiment of obtaining the current value of the preset conductor.
  • the timing of obtaining the voltage value of the preset conductor may be the same as or different from the timing of obtaining the current value of the preset conductor.
  • Step S102 Determine the target resistance value of the preset wire according to the current value and voltage value.
  • the ratio between the voltage value and the current value of the preset wire is calculated to obtain the target resistance value of the preset wire.
  • the target resistance value is the actual resistance value of the preset wire.
  • the preset wire can be manufactured with the reference resistance value as a reference standard. Due to the existence of processing errors, the target resistance value is usually different from the reference resistance value of the preset wire. Therefore, it is necessary to calculate the target resistance value of the preset wire in order to accurately calibrate the resistance value of the preset wire.
  • the target resistance value of the preset wire is recorded as Z_sense, assuming that the reference resistance value of the preset wire is 5 milliohms. If the target resistance value Z_sense>5 and the same current flows, the voltage at both ends of the preset wire is greater than the voltage at both ends of the 5 milliohm resistor. Then the sampled current when calculating the power change is greater than the actual current, which will cause the battery to be fully charged in advance or report 100%. . On the contrary, if the target resistance value Z_sense ⁇ 5, it will cause the battery charging time to be prolonged or the battery will not be fully charged.
  • Step S103 Calibrate the resistance value of the preset wire based on the target resistance value.
  • the preset wire is connected to the battery, and the resistance value of the preset wire is used to measure the change in battery power.
  • the resistance of the preset wire is usually small, for example, 1 milliohm to 10 milliohm, which enables accurate detection of changes in battery power during charging or discharging.
  • the resistance values of different preset wires are usually different, and the resistance values of the preset wires are used to measure battery power changes, so it is necessary to give the preset
  • the wire sets a uniform reference resistance value.
  • Current detection methods for battery power changes all use this unified reference resistance value for calculation.
  • 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. As a result, the battery power change can be detected through the calibrated resistance value, which can greatly improve the detection accuracy of the battery power change.
  • the resistance value of the preset wire is assigned as the target resistance value to achieve calibration of the resistance value of the preset wire.
  • step S103 includes: sub-steps S1031 to sub-step S1033.
  • Sub-step S1031 Obtain the reference resistance value of the preset wire.
  • the preset wire is manufactured with a reference resistance value as a reference standard, and the reference resistance value is, for example, 5 milliohms.
  • the reference resistance value can be stored in the memory in advance, so that the reference resistance value of the preset wire can be obtained from the memory.
  • Sub-step S1032 Determine the calibration parameters of the resistance value of the preset wire according to the target resistance value and the reference resistance value.
  • the ratio of the target resistance value to the reference resistance value is determined; the ratio of the target resistance value to the reference resistance value is used as a calibration parameter for the resistance value of the preset wire.
  • the calibration parameter of the resistance value of the preset wire can be the ratio of the target resistance value to the reference resistance value.
  • the resistance value of the preset wire can be easily calibrated through the ratio of the target resistance value to the reference resistance value.
  • the reference resistance value of the preset wire is R1
  • the target resistance value of the preset wire is R2
  • is set as the calibration parameter, or called the sampling resistance compensation coefficient
  • the difference between the target resistance value and the reference resistance value is determined; the difference between the target resistance value and the reference resistance value is used as a calibration parameter for the resistance value of the preset wire.
  • the calibration parameter of the resistance value of the preset wire can be the difference between the target resistance value and the reference resistance value.
  • the resistance value of the preset wire can be calibrated quickly and conveniently through the difference between the target resistance value and the reference resistance value.
  • Sub-step S1033 Calibrate the resistance value of the preset wire through the calibration parameters and the reference resistance value.
  • the calibration parameter is the ratio of the target resistance value and the reference resistance value; the product value between the calibration parameter and the reference resistance value is determined, and the resistance value of the preset wire is adjusted to the product value.
  • the product value between the calibration parameter and the reference resistance value as the resistance value of the preset wire can ensure the accuracy of the resistance value of the preset wire and greatly improve the detection accuracy of battery power changes.
  • the calibration parameter is the ratio ⁇ of the target resistance value to the reference resistance value
  • the reference resistance value of the preset wire is R1.
  • the calibration parameter is the difference between the target resistance value and the reference resistance value; the sum between the calibration parameter and the reference resistance value is determined, and the resistance value of the preset wire is adjusted to the ratio of the calibration parameter and the reference resistance value. and. Using the sum of the calibration parameters and the reference resistance value as the resistance value of the preset wire can ensure the accuracy of the resistance value of the preset wire and greatly improve the detection accuracy of battery power changes.
  • the preset wire may be connected to the negative electrode or negative electrode of the battery.
  • one end of the preset wire is connected to the negative terminal of the battery and the other end is grounded.
  • one end of the default wire is connected to the positive electrode of the battery, and the other end is connected to the charging chip.
  • one end of the default wire is connected to the positive electrode of the battery, and the other end is connected to the discharge chip.
  • the preset wire 20 set as the sampling resistor is connected to the positive electrode of the battery 10, then a section of copper between the charging chip 30 and the positive electrode of the battery 10 is selected as the preset wire during PCB design. 20.
  • a section of copper between the charging chip 30 and the positive electrode of the battery 10 is selected as the preset wire during PCB design.
  • the preset wire 20 set as the sampling resistor is connected to the negative electrode of the battery 10 , then a section of copper between the negative electrode of the battery 10 and the ground is selected as the preset wire 20 during PCB design.
  • select a section of copper and theoretically calculate the impedance For example, if the design is required to be 5 milliohms, then select a section of copper with a theoretical impedance of 5 milliohms.
  • the charging chip 30 can output the input voltage VBUS and the input current IBUS in different charging stages 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, input voltage VBUS and 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 based on the output power and the output voltage VOUT of the charging chip 30 . Calculate the calibration parameter ⁇ based on the output current IOUT and system consumption current for power accuracy compensation.
  • the power management chip 40 has a fuel gauge function, and the pin connected to the copper skin of the sampling resistor has an ADC function and can accurately perform analog-to-digital conversion.
  • V1 and V2 are connected to the input terminals of the fuel gauge in the power management chip 40 respectively.
  • V1 is a high voltage
  • V2 is a low voltage.
  • the predetermined wire may be connected in series with a resistor to the negative electrode or negative electrode of the battery.
  • the copper skin used as the preset wire is short and has low impedance, which cannot meet the system impedance requirements. For example, a 5 milliohm resistance is required, but the actual copper skin impedance is calculated to be only 2-3 milliohms. In this case, it is necessary An external sampling resistor is added to form a copper skin plus sampling resistor method.
  • the preset wire 20 is connected to the positive electrode of the battery 10 , then during PCB design, a section of copper between the charging chip 30 and the positive electrode of the battery 10 is selected as the preset wire 20 , and the preset wire 20 is connected to the positive electrode of the battery 10 .
  • Resistor 60 in series.
  • the preset wire 20 set as the sampling resistor is connected to the negative electrode of the battery 10
  • a section of copper between the negative electrode of the battery 10 and the ground is selected as the preset wire 20 during PCB design.
  • the preset wire 20 and the resistor 60 are connected in series. As shown in FIG. 5 and FIG.
  • the fuel gauge in the power management chip 40 is connected to both ends of the preset wire 20 and the resistor 60 connected in series to collect the voltage of the preset wire 20 and the resistor 60 .
  • the resistance value calibration method provided by the embodiment of the present disclosure can also be referred to, and the influence of the resistance value R of the resistor 60 can also be considered.
  • the resistance value calibration method obtained by the above embodiments obtains the current value of the preset wire and obtains the voltage value of the preset wire.
  • the preset wire is connected to the battery; and determines the target resistance value of the preset wire based on the current value and voltage value. ;Based on the target resistance value, calibrate the resistance value of the preset wire, and the resistance value of the preset wire is used to measure the change in battery power.
  • the embodiment of the present disclosure uses the preset wire as the sampling resistor of the battery, which occupies a smaller area and has better heat dissipation performance, so it has less impact on the sampling accuracy. At the same time, calibrating the resistance value of the preset wire through the target resistance value can greatly improve the detection accuracy of battery power changes.
  • FIG. 7 is a schematic structural block diagram of a calibration circuit provided by an embodiment of the present disclosure.
  • the calibration circuit 200 includes a preset wire 201 and a processor 202; the preset wire 201 is used to connect the battery, and the resistance value of the preset wire 201 is used to measure the change in battery power; the processor 202 is used to perform the following: This disclosure actually The resistance value calibration method of any one of the embodiments.
  • the processor 202 is used to provide computing and control capabilities to support the operation of the entire terminal device.
  • the processor 202 can be a central processing unit (Central Processing Unit, CPU).
  • the processor 202 can 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 Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the calibration circuit 200 may refer to the circuit structure of FIGS. 4 to 6 .
  • the calibration circuit 200 also includes a charging chip, a power management chip, etc., which are not specifically limited in this embodiment.
  • the processor can implement the following steps: obtain the current value of the preset wire, and obtain the voltage value of the preset wire, which is connected to the battery; and determine the target of the preset wire based on the current value and voltage value. resistance value; and based on the target resistance value, calibrate the resistance value of the preset wire, and the resistance value of the preset wire is used to measure the change in battery power.
  • the processor when the processor obtains the current value of the preset wire, it can: obtain multiple charging currents or multiple discharging currents of the battery; determine the average of the multiple charging currents or multiple discharging currents, and obtain Average current value, the average current value is used as the current value of the preset wire.
  • the processor when it obtains multiple charging currents of the battery, it can also: obtain the output power of the charging chip, and obtain the output voltage of the charging chip, and the charging chip is connected to the battery; according to the output power of the charging chip and output voltage to determine the output current of the charging chip; determine the charging current of the battery based on the output current of the charging chip and the preset consumption current.
  • the processor when it obtains the output power of the charging chip, it can: obtain the input voltage and input current of the charging chip, and determine the power conversion efficiency of the charging chip; based on the input voltage, input current, and power conversion efficiency , determine the output power of the charging chip.
  • the processor when the processor determines the charging current of the battery based on the output current of the charging chip and the preset consumption current, it can: determine the current operating mode of the circuit system including the charging chip, and obtain the information related to the current operating mode. Corresponding preset consumption current; determine the battery charging current based on the difference between the output current of the charging chip and the preset consumption current.
  • one end of the preset wire is connected to the negative electrode of the battery, and the other end is grounded; or 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; or one end of the preset wire is connected to the positive electrode of the battery, and the other end is connected to the ground. One end is connected to the discharge chip.
  • the preset wires include circuit wires on a PCB.
  • the processor when the processor obtains the voltage value of the preset wire, it can: read the preset wire The voltage at both ends is used to obtain the first voltage and the second voltage; the voltage difference between the first voltage and the second voltage is determined; and the voltage value of the preset conductor is determined according to the voltage difference.
  • the first voltage and the second voltage are read through a fuel gauge built into the power management chip.
  • the processor when calibrating the resistance value of the preset wire based on the target resistance value, can: obtain the reference resistance value of the preset wire; determine the preset resistance value based on the target resistance value and the reference resistance value. Calibration parameters of the resistance value of the wire; calibrate the resistance value of the preset wire through the calibration parameters and reference resistance value.
  • the processor when it determines the calibration parameters of the resistance value of the preset wire based on the target resistance value and the reference resistance value, it can also implement: determine the ratio of the target resistance value to the reference resistance value; use the ratio as the preset resistance value. Set the calibration parameters of the resistance value of the wire; calibrate the resistance value of the preset wire through the calibration parameters and the reference resistance value, including: determining the product value between the calibration parameter and the reference resistance value, and setting the resistance value of the preset wire Adjust to the product value.
  • FIG. 8 is a schematic structural block diagram of a terminal device provided by an embodiment of the present disclosure.
  • the terminal device 300 includes a battery 301 and a calibration circuit 302 .
  • the battery 301 is connected to a preset wire in the calibration circuit 302 .
  • the resistance value of the preset wires is used to measure the change in the battery capacity of the battery 301.
  • the preset wires include circuit wires on the PCB board.
  • the preset wires may be the preset wires in the aforementioned embodiments.
  • calibration circuit 302 may be calibration circuit 200 in FIG. 6 .
  • the terminal device 300 further includes a memory, which is connected to the processor in the calibration circuit 302 through a bus 303, such as an I2C (Inter-integrated Circuit) bus.
  • the memory 302 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk or a mobile hard disk, etc.
  • FIG. 8 is only a block diagram of a partial structure related to the embodiment of the present disclosure, and does not constitute a limitation on the terminal device 300 to which the embodiment of the present disclosure is applied.
  • the terminal device 300 may include more or fewer components than shown, some combinations of components, or a different arrangement of components.
  • Embodiments of the present disclosure also provide a storage medium for computer-readable storage.
  • the storage medium stores one or more programs.
  • the one or more programs can be executed by one or more processors to implement the embodiments of the present disclosure.
  • the storage medium may be an internal storage unit of the terminal device of the aforementioned embodiment, such as a hard disk or memory of the terminal device.
  • the storage medium can also be an external storage device of the terminal device, such as a plug-in hard disk equipped on the terminal device, a Smart Media Card (SMC), a Secure Digital (SD) card, or a Flash Card (Flash Card). wait.
  • SMC Smart Media Card
  • SD Secure Digital
  • Flash Card Flash Card
  • the functional modules/units in can be implemented as software, firmware, hardware and appropriate combinations thereof.
  • the division between 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 consist of several physical components. Components execute cooperatively.
  • Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a 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).
  • computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer.
  • 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 may include any information delivery media .
  • the embodiments of the present disclosure provide a resistance value calibration method, calibration circuit, terminal equipment and storage medium.
  • the embodiments of the present disclosure obtain the current value of the preset wire and obtain the voltage value of the preset wire.
  • the preset wire is connected to the battery. ; Based on the current value and voltage value, determine the target resistance value of the preset wire; based on the target resistance value, calibrate the resistance value of the preset wire, and the resistance value of the preset wire is used to measure the change in battery power.
  • the embodiment of the present disclosure uses the preset wire as the sampling resistor of the battery, which occupies a smaller area and has better heat dissipation performance, so it has less impact on the sampling accuracy. At the same time, calibrating the resistance value of the preset wire through the target resistance value can greatly improve the detection accuracy of battery power changes.

Landscapes

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

Abstract

一种电阻值校准方法、校准电路、终端设备及存储介质,属于电子技术领域。该方法包括:获取预设导线的电流值,并获取预设导线的电压值(S101),预设导线连接于电池;根据电流值和电压值,确定预设导线的目标电阻值(S102);以及基于目标电阻值,对预设导线的电阻值进行校准(S103),预设导线的电阻值用于测算电池的电量变化。

Description

电阻值校准方法、校准电路、终端设备及存储介质
相关申请的交叉引用
本公开要求享有2022年07月25日提交的名称为“电阻值校准方法、校准电路、终端设备及存储介质”的中国专利申请202210880118.2的优先权,其全部内容通过引用并入本公开中。
技术领域
本公开涉及电子技术领域,尤其涉及一种电阻值校准方法、校准电路、终端设备及存储介质。
背景技术
随着电池充放电技术的发展,需要使用高精度的采样电阻检测电池在充电或者放电过程中的电量变化。为了满足大电流的通过要求,高精度的采样电阻一般需要较小的阻值、较高的精度和较大的封装,如采样电阻为5毫欧,精度1%和1206封装等。较大封装的采样电阻在电路板上会占用较大面积,且在通过大电流时容易产生较高的热量,如果热量不能及时导出,会影响充放电功率和采样电阻的采样精度,从而影响电池电量变化的检测精度。
发明内容
本公开实施例提供了一种电阻值校准方法、校准电路、终端设备及存储介质。
第一方面,本公开实施例提供了一种电阻值校准方法,包括:获取预设导线的电流值,并获取所述预设导线的电压值,所述预设导线连接于电池;根据所述电流值和所述电压值,确定所述预设导线的目标电阻值;以及基于所述目标电阻值,对所述预设导线的电阻值进行校准,所述预设导线的电阻值用于测算所述电池的电量变化。
第二方面,本公开实施例还提供了一种校准电路,所述校准电路包括预设导线和处理器;所述预设导线用于连接电池,所述预设导线的电阻值用于测算所述电池的电量变化;所述处理器用于执行如本公开实施例提供的电阻值校准方法。
第三方面,本公开实施例还提供了一种终端设备,所述终端设备包括电池以及如本公开实施例提供的校准电路,所述电池与所述校准电路中的预设导线连接。
第四方面,本公开实施例还提供了一种存储介质,用于计算机可读存储,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实 现如本公开实施例提供的电阻值校准方法。
附图说明
图1为本公开实施例提供的一种电阻值校准方法的步骤流程示意图;
图2为图1中的电阻值校准方法的子步骤流程示意图;
图3为实施本公开实施例提供的电阻值校准方法采用的一电路示意图;
图4为实施本公开实施例提供的电阻值校准方法采用的另一电路示意图;
图5为实施本公开实施例提供的电阻值校准方法采用的另一电路示意图;
图6为实施本公开实施例提供的电阻值校准方法采用的另一电路示意图;
图7为本公开实施例提供的一种校准电路的结构示意框图;以及
图8为本公开实施例提供的一种终端设备的结构示意框图。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。
应当理解,在此本公开说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本公开。如在本公开说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
为了能够精确检测终端设备在充电或者放电过程中的电量变化,往往需要增加采样电阻来进行检测,采样电阻一般需要较小的阻值和较高的精度和较大的封装,以满足能够通过较大电流,如5毫欧,10毫欧,精度1%,0805封装和1206封装等。这些较大封装器件在电路板上占用了较大面积,不利于电路板的简化设计,还增加了成本,并且通过大电流时会产生较高的热量,如5毫欧采样电阻通过10A电流时产生的热功率为0.5W。如果热量不能及时导出,将会引起终端设备发热,影响充电功率,并且各种电阻都有热效应,随着热量的增加,电阻精度也会发生变化,影响采样精度,进一步影响终端设备的电量检测。
基于此,在PCB板(Printed Circuit Board,印制电路板)设计时,可以有效利用PCB板中的预设导线自身的阻抗特性,如利用PCB板中的铜皮的阻抗作为采样电阻,阻抗一般 只有几毫欧,能够满足用于电量检测的采样电阻的要求,这样既降低了成本,也减小了采样电阻的发热,并且设计更加灵活。
然而,使用预设导线例如铜皮作为采样电阻时,预设导线的加工精度难以控制。加工过程中,不能测量每一块PCB板中的预设导线的实际阻抗或电阻值。预设导线的阻抗加工精度越高,PCB板的不良率越高。例如,若要求PCB板中的预设导线的阻抗加工精度控制到1%,则会有24%的不良率。对于5毫欧的采样电阻,理论上分析,每误差0.01毫欧,大电流充电时对用户影响会很大,如果电流是10A,则1小时影响是100mAh,即对应电量是2%。在进行大功率充电时,流过采样电阻的电流通常大于10A,因此要求采样电阻的电阻值更小,为了降低发热有的甚至是1毫欧。可见,如何降低PCB板的加工精度要求,减少不良率,提高预设导线的采样精度成为了亟需解决的问题。
本公开实施例提供一种电阻值校准方法、校准电路、终端设备及存储介质。该电阻值校准方法可应用于设置有电池的终端设备中,该终端设备可以为手机、平板电脑、笔记本电脑、台式电脑、个人数字助理和穿戴式设备等电子设备。
下面结合附图,对本公开的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
请参照图1,图1为本公开实施例提供的一种电阻值校准方法的步骤流程示意图。
如图1所示,该电阻值校准方法包括步骤S101至步骤S103。
步骤S101、获取预设导线的电流值,并获取预设导线的电压值。
预设导线连接于电池,预设导线的阻值较小,例如为5毫欧,从而能够实现电池在充电或者放电过程中的电量变化的精确检测。预设导线的电阻值用于测算电池的电量变化,如通过预设导线的电阻值以及预设导线的电压值计算电池的充电电流或者放电电流,从而能够通过电池的充电电流或者放电电流检测电池在充电或者放电过程中的电量变化。
在一些实施例中,预设导线包括PCB板(Printed Circuit Board,印制电路板)上的电路导线,该预设导线例如为铜皮,当然也可以为其他金属或者导电物制成的导线。在PCB板的生产过程中,可以根据实际情况设置该预设导线的长度、宽度、厚度、材质、形状、位置等,例如根据采样电阻的参考电阻值进行确定,本实施例对此不做具体限定。
电池包括锂电池、碱性锌锰电池、镉镍电池、氢镍电池等,电池可以是单一电池,也可以是由多个电池组成的电池模组,本实施例对此不做具体限定。预设导线与电池之间的连接关系可以根据实际情况进行设置,预设导线可以连接于电池的负极或者负极,预设导线还可以连接有其他器件或电路。例如,预设导线的第一端连接于电池的负极,预设导线的第二端接地时,预设导线的第一端与第二端之间还可以连接有一电压计,该电压计用于检测预设导线两端的电压值。
本公开实施例将预设导线作为电池的采样电阻,相较于常规的采样电阻,该预设导线在PCB板上的占用面积较小且散热性能较好,因此对电池电量变化的采样精度的影响较小。同时,这样有利于PCB板的简化设计,节省了专用的采样电阻元件,能够降低电路成本。同时,这样还能够降低PCB电路的加工精度要求,减少不良率,提高电量检测精度。
在一些实施例中,获取预设导线的电流值,包括:获取电池的多个充电电流或多个放电电流;以及确定多个充电电流或多个放电电流的平均值,得到平均电流值,该平均电流值作为预设导线的电流值。多个充电电流或多个放电电流可以通过电流表、充放电芯片等装置读取得到,多个充电电流可以是在电池充电过程中的多个充电时刻分别采集到的,多个放电电流可以是在电池放电过程中的多个放电时刻分别采集到的。
通过计算多个充电电流或多个放电电流的平均电流值作为预设导线的电流值,能够提高预设导线的电流值的准确性,从而提高预设导线的目标电阻值的计算准确性。可以理解的是,实际应用中也可以采集电池充电过程中的一个充电电流作为预设导线的电流值,或者采集电池放电过程中的一个放电电流作为预设导线的电流值。实际应用中还可以通过计算多个充电电流或多个放电电流的加权平均值等方式确定预设导线的电流值,本实施例对此不做具体限定。
在一些实施例中,获取电池的多个充电电流,包括:获取充电芯片的输出功率,并获取充电芯片的输出电压。充电芯片连接于电池;根据充电芯片的输出功率和输出电压,确定充电芯片的输出电流;并且根据充电芯片的输出电流和预设消耗电流,确定电池的充电电流。
预设消耗电流为电路系统的其他元器件的损耗电流,充电芯片的输出电流流向电池和其他元器件,因此电池的充电电流I通常等于充电芯片的输出电流IOUT与预设消耗电流ILOSE之间的差值,即I=IOUT-ILOSE。充电芯片的输出电流IOUT通常等于充电芯片的输出功率POUT与输出电压VOUT之间的比值,即IOUT=POUT/VOUT。通过连接于电池的充电芯片可以准确的获取电池的多个充电电流,从而能够提高预设导线的电阻值进行校准的准确度。
可以理解的是,实际应用中也可以通过放电芯片获取电池的多个放电电流。例如,获取放电芯片的输入电流;根据放电芯片的输入电流和预设消耗电流,确定电池的放电电流。电池的放电电流流向放电芯片和其他元器件,因此电池的放电电流通常等于放电芯片的输入电流与预设消耗电流之间的和值。在一些实施例中,充电芯片和放电芯片也可以合并于同一芯片例如充放电芯片,本实施例对此不做具体限定。
在一些实施例中,获取充电芯片的输出功率,包括:获取充电芯片的输入电压和输入电流,并确定充电芯片的电能转换效率;根据输入电压述输入电流和电能转换效率,确定 充电芯片的输出功率。充电芯片的电能转换效率可以是根据实际情况预先设置的,电能转换效率能够反映充电芯片对于输入电能的转化效率。充电芯片的输出功率可以通过计算输入电压、输入电流和电能转换效率之间的乘积得到。通过计算输入电压、输入电流和电能转换效率之间的乘积,能够准确的得到充电芯片的输出功率,从而能够提高电池电量变化的检测精度。
示例性地,充电芯片知道各充电阶段的电能转换效率,该电能转换效率也可以称为充电效率或充电转换效率。充电时选取充电阶段稳定后的充电芯片的输入电压(VBUS)和输入电流(IBUS)。选取VBUS和IBUS在不发生跳变时的一段充电为本公开的计算采样电阻时间段。充电芯片的输出功率POUT=VBUS*IBUS*(电能转换效率)。
在一些实施例中,根据充电芯片的输出电流和预设消耗电流,确定电池的充电电流,包括:确定包括充电芯片的电路系统的当前运行模式,并获取与当前运行模式相对应的预设消耗电流;以及根据充电芯片的输出电流与预设消耗电流之间的差值,确定电池的充电电流。
充电芯片的电路系统的当前运行模式可以包括多种,例如关机模式、低电量模式、待机模式、飞行模式等低功耗模式,电路系统的运行模式可以由工程师自行定义,运行模式可以为软件设置的模式。各运行模式下电路系统的消耗电流可以是不同的,因此需要获取当前运行模式相对应的预设消耗电流,并计算充电芯片的输出电流与预设消耗电流之间的差值,得到电池的充电电流,从而能够提高电池的充电电流的计算准确度。
为降低电路系统对预设导线的目标电阻值的计算精度的影响,降低系统功耗产生的影响,可以在上述的低功耗模式下获取预设导线的电流值和电压值。同时,可以在电路系统进入上述的低功耗模式且电流稳定后获取预设导线的电流值和电压值,比如在进入上述的低功耗模式的预设时间后,计算充电芯片的输出电流与预设消耗电流之间的差值,得到电池的充电电流。又比如在亮屏的设备熄屏后,计算充电芯片的输出电流与预设消耗电流之间的差值,得到电池的充电电流。
在一些实施例中,获取预设导线的电压值,包括:读取预设导线两端的电压,得到第一电压和第二电压;确定第一电压与第二电压之间的电压差值;以及根据电压差值确定预设导线的电压值。第一电压和第二电压可以是通过电源管理芯片内置的电量计读取的。当然的,第一电压和第二电压也可以电压表等装置读取。通过计算预设导线两端的第一电压与第二电压之间的电压差值,能够准确的得到预设导线的电压值。
示例性地,通过电源管理芯片内置电量计读取预设导线两端电压,记为V1和V2,V1为高电位,V2为低电位,则预设导线的电压值为V=V1-V2。
电压差值可以是一个或多个。当电压差值为多个时,可以求取多个电压差值的平均值 作为预设导线的电压值,该多个电压差值可以是在电池的充电或放电过程的不同时刻获取的,能够提高预设导线的电压值的计算准确度。预设导线的电压值的获取方式可参照前述获取预设导线的电流值的对应实施例,预设导线的电压值的获取时机可以与预设导线的电流值的获取时机相同或者不相同。
步骤S102、根据电流值和电压值,确定预设导线的目标电阻值。
在一些实施例中,根据欧姆公式,计算预设导线的电压值与电流值之间的比值,得到预设导线的目标电阻值。该目标电阻值为预设导线的实际电阻值,预设导线可以以参考电阻值为参考标准进行制造,由于加工误差的存在,该目标电阻值通常不同于预设导线的参考电阻值。因此需要计算预设导线的目标电阻值,便于精准的对预设导线的电阻值进行校准。
预设导线的目标电阻值记为Z_sense,假设预设导线的参考电阻值为5毫欧。如果目标电阻值Z_sense>5,流过相同的电流则预设导线两端电压大于5毫欧电阻两端电压,则电量变化计算时采样的电流大于实际电流,会导致电池提前充满或者上报100%。反之如果目标电阻值Z_sense<5,则会导致电池充电时间加长,或者充不满。
示例性地,顺序读取充电稳定后一段时间内的充电芯片的充电电流,并取多个充电电流的平均值作为预设导线的电流值,记为△I。采集预设导线两端的多个电压差值为V=V1-V2,并取多个电压差值的平均值作为预设导线的电压值,记为△V。则预设导线的目标电阻值为Z_sense=△V/△I。
步骤S103、基于目标电阻值,对预设导线的电阻值进行校准。
预设导线连接于电池,预设导线的电阻值用于测算电池的电量变化。预设导线的阻值通常较小,例如为1毫欧至10毫欧,从而能够实现电池在充电或者放电过程中的电量变化的精确检测。
在电路板的加工过程中,存在预设导线的加工精度差异,因此不同预设导线的电阻值通常是不同的,而预设导线的电阻值用于测算电池的电量变化,因此需要给预设导线设定一个统一的参考电阻值。当前的电池电量变化的检测方法都是利用这个统一的参考电阻值进行计算的,而本实施例通过计算预设导线的目标电阻值,并基于目标电阻值对预设导线的电阻值进行校准,从而能够通过校准后的电阻值检测电池的电量变化,能够极大的提高电池电量变化的检测精度。
在一些实施例中,将预设导线的电阻值赋值为目标电阻值,实现对预设导线的电阻值进行校准。通过将预设导线的目标电阻值作为电池电量变化的测算参数,保证预设导线的电阻准确度,能够极大的提高电池电量变化的检测精度。
在一些实施例中,如图2所示,步骤S103包括:子步骤S1031至子步骤S1033。
子步骤S1031、获取预设导线的参考电阻值。
预设导线是以参考电阻值为参考标准进行制造的,参考电阻值例如为5毫欧。参考电阻值可以预先存储于存储器,便于从存储器中获取预设导线的参考电阻值。
子步骤S1032、根据目标电阻值和参考电阻值,确定预设导线的电阻值的校准参数。
在一些实施例中,确定目标电阻值与参考电阻值的比值;将目标电阻值与参考电阻值的比值作为预设导线的电阻值的校准参数。预设导线的电阻值的校准参数可以为目标电阻值与参考电阻值的比值,通过目标电阻值与参考电阻值的比值能够便捷的对预设导线的电阻值进行校准。
示例性地,预设导线的参考电阻值为R1,预设导线的目标电阻值为R2,设定α为校准参数,或称为采样电阻补偿系数,校准参数α=R1/R2。若α=1,则表明预设导线实际的目标电阻值等于配置的参考电阻值。若α>1,则表明预设导线实际的目标电阻值小于配置的参考电阻值。若α<1,则表明预设导线实际的目标电阻值大于配置的参考电阻值。
在一些实施例中,确定目标电阻值与参考电阻值的差值;将目标电阻值与参考电阻值的差值作为预设导线的电阻值的校准参数。预设导线的电阻值的校准参数可以为目标电阻值与参考电阻值的差值,通过目标电阻值与参考电阻值的差值能够快速便利的对预设导线的电阻值进行校准。
子步骤S1033、通过校准参数和参考电阻值,对预设导线的电阻值进行校准。
在一些实施例中,校准参数为目标电阻值与参考电阻值的比值;确定校准参数与参考电阻值之间的乘积值,并将预设导线的电阻值调节为该乘积值。将校准参数与参考电阻值之间的乘积值作为预设导线的电阻值,能够保证预设导线的电阻值的正确性,能够极大的提高电池电量变化的检测精度。
示例性地,校准参数为目标电阻值与参考电阻值的比值α,预设导线的参考电阻值为R1。计算校准参数α与参考电阻值R1之间的乘积值α*R1,并令预设导线的电阻值为α*R1。
在一些实施例中,校准参数为目标电阻值与参考电阻值的差值;确定校准参数与参考电阻值之间的和,并将预设导线的电阻值调节为该校准参数与参考电阻值的和。将校准参数与参考电阻值的和作为预设导线的电阻值,能够保证预设导线的电阻值的正确性,能够极大地提高电池电量变化的检测精度。
在一些实施例中,预设导线可以连接于电池的负极或者负极。例如,预设导线一端连接于电池的负极,另一端接地。又例如,预设导线一端连接于电池的正极,另一端连接于充电芯片。又例如,预设导线一端连接于电池的正极,另一端连接于放电芯片。
示例性地,如图3所示,如果设定作为采样电阻的预设导线20连接于电池10的正极,则PCB设计时选择充电芯片30到电池10正极之间的一段铜皮作为预设导线20。示例性地, 如图4所示,如果设定作为采样电阻的预设导线20连接于电池10的负极,则PCB设计时选择电池10负极到地之间的一段铜皮作为预设导线20。PCB设计时根据设计要求,选取一段铜皮并理论计算出阻抗,例如,要求设计5毫欧,则选择一段铜皮理论阻抗为5毫欧。
如图3和图4所示,充电芯片30可以实时输出不同的充电阶段的输入电压VBUS和输入电流IBUS给电源管理芯片40。电源管理芯片40根据充电效率、输入电压VBUS和输入电流IBUS确定充电芯片的输出功率,并将充电芯片的输出功率传递给处理器50。处理器50充电芯片30的输出功率和输出电压VOUT计算出充电芯片30的输出电流IOUT。根据输出电流IOUT和系统消耗电流计算出校准参数α进行电量精确度补偿。电源管理芯片40具有电量计功能,连接采样电阻铜皮的管脚具有ADC功能,能够精确进行模数转换。将选取的铜皮两端分别连接到电源管理芯片40中的电量计的输入端,流过电流时采样铜皮两端的电压分别是V1、V2,V1是高电压,V2是低电压。
在一些实施例中,预设导线可以与一电阻串联连接于电池的负极或者负极。对于有的案例,作为预设导线的铜皮较短,阻抗较小,无法满足系统阻抗要求,例如,要求5毫欧电阻,但是实际铜皮阻抗计算下来只有2-3毫欧,此时需要外加采样电阻,形成一种铜皮加采样电阻的方式。
示例性地,如图5所示,预设导线20连接于电池10的正极,则PCB设计时选择充电芯片30到电池10正极之间的一段铜皮作为预设导线20,预设导线20与电阻60串联。示例性地,如图6所示,如果设定作为采样电阻的预设导线20连接于电池10的负极,则PCB设计时选择电池10负极到地之间的一段铜皮作为预设导线20,预设导线20与电阻60串联。如图5和图6所示,电源管理芯片40中的电量计分别连接到串联的预设导线20与电阻60两端,以采集预设导线20与电阻60的电压。在对图5和图6所示的预设导线20的电阻值进行校准时,亦可参考本公开实施例提供的电阻值校准方法,同时考虑电阻60的电阻值R的影响。
上述实施例提供的电阻值校准方法,通过获取预设导线的电流值,并获取预设导线的电压值,预设导线连接于电池;根据电流值和电压值,确定预设导线的目标电阻值;基于目标电阻值,对预设导线的电阻值进行校准,预设导线的电阻值用于测算电池的电量变化。本公开实施例将预设导线作为电池的采样电阻,占用面积较小且散热性能较好,因此对采样精度的影响较小。同时,通过目标电阻值对预设导线的电阻值进行校准,能够极大的提高电池电量变化的检测精度。
请参照图7,图7为本公开实施例提供的一种校准电路的结构示意框图。
如图7所示,校准电路200包括预设导线201和处理器202;预设导线201用于连接电池,预设导线201的电阻值用于测算电池的电量变化;处理器202用于执行如本公开实 施例任一项的电阻值校准方法。
处理器202用于提供计算和控制能力,支撑整个终端设备的运行。处理器202可以是中央处理单元(Central Processing Unit,CPU),该处理器202还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在一些实施例中,校准电路200可参考图4至图6的电路结构,例如校准电路200还包括充电芯片、电源管理芯片等,本实施例对此不做具体限定。
在一些实施例中,处理器可实现如下步骤:获取预设导线的电流值,并获取预设导线的电压值,预设导线连接于电池;根据电流值和电压值,确定预设导线的目标电阻值;以及基于目标电阻值,对预设导线的电阻值进行校准,预设导线的电阻值用于测算电池的电量变化。
在一些实施例中,处理器在实现获取预设导线的电流值时,可以实现:获取电池的多个充电电流或多个放电电流;确定多个充电电流或多个放电电流的平均值,得到平均电流值,平均电流值作为预设导线的电流值。
在一些实施例中,处理器在实现获取电池的多个充电电流时,还可以实现:获取充电芯片的输出功率,并获取充电芯片的输出电压,充电芯片连接于电池;根据充电芯片的输出功率和输出电压,确定充电芯片的输出电流;根据充电芯片的输出电流和预设消耗电流,确定电池的充电电流。
在一些实施例中,处理器在实现获取充电芯片的输出功率时,可以实现:获取充电芯片的输入电压和输入电流,并确定充电芯片的电能转换效率;根据输入电压、输入电流和电能转换效率,确定充电芯片的输出功率。
在一些实施例中,处理器在实现根据充电芯片的输出电流和预设消耗电流,确定电池的充电电流时,可以实现:确定包括充电芯片的电路系统的当前运行模式,并获取与当前运行模式相对应的预设消耗电流;根据充电芯片的输出电流与预设消耗电流之间的差值,确定电池的充电电流。
在一些实施例中,预设导线一端连接于电池的负极,另一端接地;或者预设导线一端连接于电池的正极,另一端连接于充电芯片;或者预设导线一端连接于电池的正极,另一端连接于放电芯片。
在一些实施例中,预设导线包括PCB板上的电路导线。
在一些实施例中,处理器在实现获取预设导线的电压值时,可以实现:读取预设导线 两端的电压,得到第一电压和第二电压;确定第一电压与第二电压之间的电压差值;根据电压差值确定预设导线的电压值。
在一些实施例中,第一电压和第二电压是通过电源管理芯片内置的电量计读取的。
在一些实施例中,处理器在实现基于目标电阻值,对预设导线的电阻值进行校准时,可以实现:获取预设导线的参考电阻值;根据目标电阻值和参考电阻值,确定预设导线的电阻值的校准参数;通过校准参数和参考电阻值,对预设导线的电阻值进行校准。
在一些实施例中,处理器在实现根据目标电阻值和参考电阻值,确定预设导线的电阻值的校准参数时,还可以实现:确定目标电阻值与参考电阻值的比值;将比值作为预设导线的电阻值的校准参数;通过校准参数和参考电阻值,对预设导线的电阻值进行校准,包括:确定校准参数与参考电阻值之间的乘积值,并将预设导线的电阻值调节为乘积值。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的校准电路200的工作过程,可以参考前述电阻值校准方法实施例中的对应过程,在此不再赘述。
请参阅图8,图8为本公开实施例提供的一种终端设备的结构示意性框图。
如图8所示,终端设备300包括电池301以及校准电路302,电池301与校准电路302中的预设导线连接。预设导线的电阻值用于测算电池301的电量变化,预设导线包括PCB板上的电路导线,该预设导线可以是前述实施例中的预设导线。
在一些实施例中,校准电路302可以是图6中的校准电路200。
在一些实施例中,终端设备300还包括存储器,该存储器与校准电路302中的处理器通过总线303连接,该总线比如为I2C(Inter-integrated Circuit)总线。存储器302可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。
本领域技术人员可以理解,图8中示出的结构,仅仅是与本公开实施例相关的部分结构的框图,并不构成对本公开实施例所应用于其上的终端设备300的限定,终端设备300可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的终端设备300的工作过程,可以参考前述电阻值校准方法实施例中的对应过程,在此不再赘述。
本公开实施例还提供一种存储介质,用于计算机可读存储,存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现如本公开实施例提供的任一项电阻值校准方法的步骤。
存储介质可以是前述实施例的终端设备的内部存储单元,例如终端设备的硬盘或内存。存储介质也可以是终端设备的外部存储设备,例如终端设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置 中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
本公开实施例提供了一种电阻值校准方法、校准电路、终端设备及存储介质,本公开实施例通过获取预设导线的电流值,并获取预设导线的电压值,预设导线连接于电池;根据电流值和电压值,确定预设导线的目标电阻值;基于目标电阻值,对预设导线的电阻值进行校准,预设导线的电阻值用于测算电池的电量变化。本公开实施例将预设导线作为电池的采样电阻,占用面积较小且散热性能较好,因此对采样精度的影响较小。同时,通过目标电阻值对预设导线的电阻值进行校准,能够极大的提高电池电量变化的检测精度。
上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。

Claims (14)

  1. 一种电阻值校准方法,包括:
    获取预设导线的电流值,并获取所述预设导线的电压值,其中所述预设导线连接于电池;
    根据所述电流值和所述电压值,确定所述预设导线的目标电阻值;以及
    基于所述目标电阻值,对所述预设导线的电阻值进行校准,所述预设导线的电阻值用于测算所述电池的电量变化。
  2. 根据权利要求1所述的电阻值校准方法,其中,所述获取预设导线的电流值,包括:
    获取所述电池的多个充电电流或多个放电电流;以及
    确定所述多个充电电流或所述多个放电电流的平均值,得到平均电流值,所述平均电流值作为所述预设导线的电流值。
  3. 根据权利要求2所述的电阻值校准方法,其中,所述获取所述电池的多个充电电流,包括:
    获取充电芯片的输出功率,并获取所述充电芯片的输出电压,其中,所述充电芯片连接于所述电池;
    根据所述充电芯片的输出功率和输出电压,确定所述充电芯片的输出电流;以及
    根据所述充电芯片的输出电流和预设消耗电流,确定所述电池的充电电流。
  4. 根据权利要求3所述的电阻值校准方法,其中,所述获取充电芯片的输出功率,包括:
    获取所述充电芯片的输入电压和输入电流,并确定所述充电芯片的电能转换效率;以及
    根据所述输入电压、所述输入电流和所述电能转换效率,确定所述充电芯片的输出功率。
  5. 根据权利要求3所述的电阻值校准方法,其中,所述根据所述充电芯片的输出电流和预设消耗电流,确定所述电池的充电电流,包括:
    确定包括所述充电芯片的电路系统的当前运行模式,并获取与所述当前运行模式相对应的预设消耗电流;以及
    根据所述充电芯片的输出电流与所述预设消耗电流之间的差值,确定所述电池的充电电流。
  6. 根据权利要求1所述的电阻值校准方法,其中,
    所述预设导线一端连接于所述电池的负极,另一端接地;或者
    所述预设导线一端连接于所述电池的正极,另一端连接于充电芯片;或者
    所述预设导线一端连接于所述电池的正极,另一端连接于放电芯片。
  7. 根据权利要求1所述的电阻值校准方法,其中,所述预设导线包括PCB板上的电路导线。
  8. 根据权利要求1-7中任一项所述的电阻值校准方法,其中,所述获取所述预设导线的电压值,包括:
    读取所述预设导线两端的电压,得到第一电压和第二电压;
    确定所述第一电压与所述第二电压之间的电压差值;以及
    根据所述电压差值确定所述预设导线的电压值。
  9. 根据权利要求8所述的电阻值校准方法,其中,所述第一电压和所述第二电压通过电源管理芯片内置的电量计读取。
  10. 根据权利要求1-7中任一项所述的电阻值校准方法,其中,所述基于所述目标电阻值,对所述预设导线的电阻值进行校准,包括:
    获取所述预设导线的参考电阻值;
    根据所述目标电阻值和所述参考电阻值,确定所述预设导线的电阻值的校准参数;以及
    通过所述校准参数和所述参考电阻值,对所述预设导线的电阻值进行校准。
  11. 根据权利要求10所述的电阻值校准方法,其中,
    所述根据所述目标电阻值和所述参考电阻值,确定所述预设导线的电阻值的校准参数,包括:
    确定所述目标电阻值与所述参考电阻值的比值;以及
    将所述比值作为所述预设导线的电阻值的校准参数,
    所述通过所述校准参数和所述参考电阻值,对所述预设导线的电阻值进行校准,包括:
    确定所述校准参数与所述参考电阻值之间的乘积值,并将所述预设导线的电阻值调节为所述乘积值。
  12. 一种校准电路,包括预设导线和处理器;其中,所述预设导线用于连接电池,所述预设导线的电阻值用于测算所述电池的电量变化;所述处理器用于执行如权利要求1至11中任一项所述的电阻值校准方法。
  13. 一种终端设备,包括电池以及如权利要求12所述的校准电路,其中,所述电池与所述校准电路中的预设导线连接。
  14. 一种存储介质,用于计算机可读存储,其中,所述存储介质存储有一个或者 多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求1至11中任一项所述的电阻值校准方法。
PCT/CN2023/092762 2022-07-25 2023-05-08 电阻值校准方法、校准电路、终端设备及存储介质 WO2024021752A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210880118.2 2022-07-25
CN202210880118.2A CN117491888A (zh) 2022-07-25 2022-07-25 电阻值校准方法、校准电路、终端设备及存储介质

Publications (1)

Publication Number Publication Date
WO2024021752A1 true WO2024021752A1 (zh) 2024-02-01

Family

ID=89669566

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/092762 WO2024021752A1 (zh) 2022-07-25 2023-05-08 电阻值校准方法、校准电路、终端设备及存储介质

Country Status (2)

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

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981541A (zh) * 2012-11-06 2013-03-20 四川和芯微电子股份有限公司 电阻校准电路
CN104502854A (zh) * 2014-12-18 2015-04-08 青岛海信移动通信技术股份有限公司 一种终端剩余电量显示方法及装置
WO2016177209A1 (zh) * 2015-09-30 2016-11-10 中兴通讯股份有限公司 电流检测电路及电流检测方法
CN107091954A (zh) * 2016-02-18 2017-08-25 大陆-特韦斯贸易合伙股份公司及两合公司 校准测量电阻的方法、校准装置、电池传感器和存储介质
CN109782045A (zh) * 2018-12-27 2019-05-21 深圳市优必选科技有限公司 电机驱动电路的电流采样方法及电流采样系统
CN111051907A (zh) * 2017-09-04 2020-04-21 雷诺股份公司 用于确定将电池的电池单元连接到监测单元的电线的状态的方法以及相应的监测单元
CN111771129A (zh) * 2019-01-31 2020-10-13 华为技术有限公司 一种用于测量电流的装置、方法及设备
CN112955763A (zh) * 2020-01-15 2021-06-11 深圳市大疆创新科技有限公司 电池参数确定方法、设备及存储介质
US20220043064A1 (en) * 2020-08-10 2022-02-10 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for obtaining residual electric quantity, electronic device, and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981541A (zh) * 2012-11-06 2013-03-20 四川和芯微电子股份有限公司 电阻校准电路
CN104502854A (zh) * 2014-12-18 2015-04-08 青岛海信移动通信技术股份有限公司 一种终端剩余电量显示方法及装置
CN107271908A (zh) * 2014-12-18 2017-10-20 青岛海信移动通信技术股份有限公司 一种终端剩余电量显示方法及装置
WO2016177209A1 (zh) * 2015-09-30 2016-11-10 中兴通讯股份有限公司 电流检测电路及电流检测方法
CN106556732A (zh) * 2015-09-30 2017-04-05 中兴通讯股份有限公司 电流检测电路及电流检测方法
CN107091954A (zh) * 2016-02-18 2017-08-25 大陆-特韦斯贸易合伙股份公司及两合公司 校准测量电阻的方法、校准装置、电池传感器和存储介质
CN111051907A (zh) * 2017-09-04 2020-04-21 雷诺股份公司 用于确定将电池的电池单元连接到监测单元的电线的状态的方法以及相应的监测单元
CN109782045A (zh) * 2018-12-27 2019-05-21 深圳市优必选科技有限公司 电机驱动电路的电流采样方法及电流采样系统
CN111771129A (zh) * 2019-01-31 2020-10-13 华为技术有限公司 一种用于测量电流的装置、方法及设备
CN112955763A (zh) * 2020-01-15 2021-06-11 深圳市大疆创新科技有限公司 电池参数确定方法、设备及存储介质
US20220043064A1 (en) * 2020-08-10 2022-02-10 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for obtaining residual electric quantity, electronic device, and storage medium

Also Published As

Publication number Publication date
CN117491888A (zh) 2024-02-02

Similar Documents

Publication Publication Date Title
CN102854471B (zh) 电池电量计量方法及计量装置
CN110506215A (zh) 一种确定电池内短路的方法及装置
US11215672B2 (en) Battery detection method
WO2023179255A1 (zh) 一种充电装置、方法及相关设备
CN111929569A (zh) Ic芯片的校准方法、系统及装置
US9696353B2 (en) Measuring power consumption of circuit component operating in run mode
US11215669B2 (en) Apparatus and method for measuring voltage
CN113748438B (zh) 电量预测方法和设备
CN102721925A (zh) 智能锂电池保护板自动测试仪
WO2021164475A1 (zh) 电量检测装置和方法、电子设备
CN103460063B (zh) 电池电压测量
CN203587780U (zh) 一种电池电量检测装置
WO2016131268A1 (zh) 电压测量方法及装置
WO2023044874A1 (zh) 确定显示荷电状态的方法、装置和电池管理芯片
US20180080992A1 (en) Determination of a battery-model parameter
WO2024021752A1 (zh) 电阻值校准方法、校准电路、终端设备及存储介质
CN112799493A (zh) 一种电源vr芯片的电流自动校准电路及校准方法
CN112557915B (zh) 电量检测电路、电量检测方法及电子设备
CN108761187A (zh) 一种基底电流测试方法、系统及终端设备
JP2018200306A (ja) バッテリの残量検出回路、それを用いた電子機器、バッテリ残量の検出方法
CN210572606U (zh) 一种内存条vref电路的短路测试仪
CN113169385B (zh) 电池包、测量电池电流的电路系统及测量电池电流的设备
CN102628895A (zh) 一种电池检测方法、电池及电子设备
CN112865229A (zh) 一种充电保护电路及无线耳机
CN113495208A (zh) 实装电路板电源电路测试装置、测试系统和方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23844967

Country of ref document: EP

Kind code of ref document: A1