WO2020155068A1 - Current measuring device, method, and apparatus - Google Patents
Current measuring device, method, and apparatus Download PDFInfo
- Publication number
- WO2020155068A1 WO2020155068A1 PCT/CN2019/074295 CN2019074295W WO2020155068A1 WO 2020155068 A1 WO2020155068 A1 WO 2020155068A1 CN 2019074295 W CN2019074295 W CN 2019074295W WO 2020155068 A1 WO2020155068 A1 WO 2020155068A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- resistance
- value
- current
- processor
- current value
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
Definitions
- the embodiments of the present application relate to the field of electronic technology, and in particular, to a device, method, and device for measuring current.
- Terminal devices such as mobile phones, tablet computers, and notebook computers have the function of displaying the remaining battery power.
- the remaining battery power is usually calculated and determined based on the current on the battery discharge path measured by the coulomb meter in the terminal device.
- the coulometer measures current, it first measures the voltage across the precision resistor connected in the battery discharge path, and then divides the measured voltage value by the resistance value of the precision resistor to obtain the current value in the battery discharge path .
- the coulomb counter can usually only measure the voltage within a fixed range. When the resistance of the precision resistor is fixed, the current range that the coulomb counter can measure is also fixed.
- I min is the lower limit of the coulomb counter that can accurately measure the current
- I max is the upper limit of the coulomb counter that can accurately measure the current. For less than I min or The current coulomb counter greater than I max will be inaccurate.
- the measuring range of the coulomb counter can be expanded (for example, if the current value in a smaller battery discharge path and/or a larger current value in the battery discharge path can be measured), it can be improved
- the calculation accuracy of the remaining power of the battery enables the user to know the remaining power value of the battery more accurately.
- the method adopted in order to expand the current measurement range of the coulomb meter, the method adopted is to replace the coulomb meter with a larger measurement range. Increase the cost of measuring current. Therefore, how to provide a low-cost technology for expanding the measuring range of the coulomb counter becomes a problem.
- the embodiments of the present application provide a device, method, and equipment for measuring current, so as to reduce the cost on the basis of expanding the current measurement range.
- an embodiment of the present application provides a device for measuring current, including: a plurality of series resistors, a switching unit, and a coulomb counter; the plurality of series resistors are located on the discharge path of the battery, and the plurality The value of at least one first resistance in the series resistance is different from the value of the second resistance; the switching unit is used to switch the coupling relationship between the coulomb counter and the plurality of series resistances to form multiple coupling modes; In a coupling mode, at least one measurement target resistance of the plurality of series resistors is coupled to the coulomb counter; the coulomb counter is used to measure the discharge using the at least one measurement target resistance in any coupling mode The current value on the path.
- a plurality of resistors connected in series are arranged on the discharge path of the battery, and at least two measurement target resistors with different resistance values can be obtained through the switching unit.
- the current measurement ranges corresponding to the measurement target resistances of different resistance values are different.
- the embodiments of the present application have It is helpful to expand the measuring range of the coulomb meter when measuring current.
- the embodiment of the present application implements the expansion of the current measurement range of the coulomb counter by measuring measurement target resistances with different resistance values, thereby saving costs.
- the at least one first resistor includes a third resistor and a fourth resistor, and the value of the third resistor is different from the value of the fourth resistor.
- resistors with different resistance values are set in the first resistor, which is beneficial to further expand the current measurement range of the coulomb counter.
- the value of the third resistor is greater than the value of the second resistor, and the value of the fourth resistor is less than the value of the second resistor.
- the coulomb counter measures the third resistance, it can measure a smaller current value than when the second resistance is measured.
- the coulomb counter measures the fourth resistance it can detect that it is more current than when the second resistance is measured. A large current value, therefore, compared to the current measurement range corresponding to the second resistor, the adoption of this embodiment is beneficial to expand the current measurement range.
- any one of the at least one first resistance includes a parasitic resistance.
- the parasitic resistance can be provided by traces, wires, or connectors. Since the parasitic resistance does not need to be purchased or designed separately, this embodiment can expand the current measurement range of the coulomb counter without increasing the cost.
- the at least one measurement target resistance includes any one of the at least one first resistance or the first resistance.
- the at least one measurement target resistance includes a combination of any one of the at least one first resistance and the second resistance.
- the foregoing embodiment obtains a coupling mode including different resistances through the switching unit, which is beneficial to expand the different current detection range of the coulomb counter.
- an embodiment of the present application provides a device for measuring current, including: the device and the processor according to the first aspect or any possible implementation manner of the first aspect; the processor is used to control The switching unit switches the coupling relationship between the coulomb counter and the plurality of series resistors.
- the processor is further configured to obtain a current value corresponding to each of the multiple coupling modes from the device.
- the processor is further configured to calibrate the current value corresponding to at least one coupling mode.
- the processor calibrates the current value obtained by at least one coupling method, which is beneficial to discharge the measured battery.
- the current value on the path is more accurate.
- the multiple coupling modes include a first coupling mode and a second coupling mode; in the first coupling mode, the at least one measurement target resistance has a first resistance value, and the first The current value corresponding to the coupling mode is the first current value; in the second coupling mode, the at least one measurement target resistance has a second resistance value, the first resistance value is smaller than the second resistance value, and the The current value corresponding to the second coupling mode is the second current value; the processor is further configured to, when it is determined that the first current value is less than or equal to the first threshold, use the calibration parameters to calibrate the second current value to obtain the measurement result.
- the processor is further configured to use the first current value as a measurement result when it is determined that the first current value is greater than the first threshold value.
- the processor is further configured to modify the calibration parameter when it is determined that the first current value is greater than the first threshold value and the second current value is less than the second threshold value.
- the second threshold is greater than the first threshold.
- the multiple coupling modes include a third coupling mode and a fourth coupling mode; in the third coupling mode, the at least one measurement target resistance has a third resistance value, and the third coupling mode The current value corresponding to the coupling mode is the third current value; in the fourth coupling mode, the at least one measurement target resistance has a fourth resistance value, the third resistance value is greater than the fourth resistance value, and the The current value corresponding to the fourth coupling mode is the fourth current value; the processor is further configured to, when it is determined that the third current value is greater than or equal to the second threshold value, use the calibration parameters to calibrate the fourth current value to obtain the measurement result.
- the processor is further configured to use the third current value as a measurement result when it is determined that the third current value is less than the second threshold value.
- the processor is further configured to modify the calibration parameter when it is determined that the third current value is less than the second threshold value and the fourth current value is greater than the first threshold value.
- the second threshold is greater than the first threshold.
- an embodiment of the present application provides a method for measuring current, which is applied to a device for measuring current including a plurality of series resistors, a switching unit, a coulomb counter, and a processor; wherein the multiple A series resistor is located on the discharge path of the battery, and the value of at least one first resistor of the plurality of series resistors is different from the value of the second resistor; the method includes: the processor controls the switching unit to switch the The coupling relationship between the coulomb counter and the plurality of series resistances; to form a plurality of coupling modes; in any coupling mode, at least one measurement target resistance of the plurality of series resistances is coupled to the coulomb counter; The processor acquires the current value of the discharge path by the coulomb counter using the at least one measurement target resistance in any coupling mode.
- an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause all The processor executes the method as described in the third aspect.
- the embodiments of the present application provide a computer program product
- the computer program product includes a computer-readable storage medium storing a computer program
- the computer program causes a computer to execute part or part of the method described in the third aspect All steps.
- Fig. 1A is a schematic structural diagram of a device for measuring current provided by an embodiment of the present application.
- Fig. 1B is a schematic diagram of the control flow of the device for measuring current in Fig. 1A when measuring current.
- FIG. 1C is a schematic structural diagram of a device for measuring current provided by another embodiment of the present application.
- Fig. 2A is a schematic structural diagram of a device for measuring current provided by another embodiment of the present application.
- Fig. 2B is a schematic diagram of the control flow when the device for measuring current in Fig. 2A measures current.
- FIG. 3 is a schematic diagram of the control flow when the device for measuring current in another embodiment corresponding to FIG. 1A measures current.
- Fig. 4 is a schematic structural diagram of a device for measuring current provided by another embodiment of the present application.
- the inventor of the present application provides a device for measuring current.
- the device can expand the current measurement range of the coulomb counter.
- the coulomb counter does not need to be replaced during implementation.
- the discharge path of the measuring battery is connected in series.
- the current value corresponding to the multiple resistances can be realized.
- the implementation principle of the technical solution provided by this application is: in the case of a traditional fixed resistance, if the current detection range within the rated accuracy of the coulomb counter is (I min , I max ), this embodiment measures the resistance of a resistor with a larger resistance value. Voltage, a current value smaller than I min can be obtained.
- the resistance measured by the coulomb counter may include: parasitic resistance generated by wires, traces or electronic components, or ordinary resistance, Or precision resistance, etc. Parasitic resistance provided by wires, traces or electronic components does not require additional purchase or design, which can reduce costs.
- the current value obtained by the measurement is more accurate due to its relatively stable performance.
- the resistance value of parasitic resistance and ordinary resistance will fluctuate greatly with temperature or the aging of related electronic components.
- precision resistance and parasitic resistance or ordinary resistance can be used. The relationship calibrates the measured current value. This will be further introduced below.
- FIG. 1A is a device 100 for measuring current, including: a device 110 for measuring current, a battery 120, and a processor 130.
- the device 110 for measuring current includes: a first resistor 114 and a second resistor 113 connected in series, a switching unit 112 and a coulomb counter 111 located on the discharge path of the battery 120.
- the device may include, but is not limited to, a terminal device, such as a mobile phone, a tablet computer, or a notebook computer with a remaining power display function.
- the terminal device may include a display screen, and the remaining power of the battery or the length of time that the terminal device corresponding to the remaining power can continue to be used can be displayed on the display screen.
- the switching unit 112 may include two switches, each of which may be a single-pole double-throw switch. Each fixed end of a single-pole double-throw switch is connected to one end of a resistor, and the other end of each resistor is respectively connected to a fixed end of another single-pole double-throw switch. In some possible implementations, two The switches can all perform switching operations, so that there is only one resistance coupled with the coulomb counter 111 each time.
- a first resistor 114 comprises a resistance value R 1 of the resistor
- a second resistor 113 comprises a resistance value of the resistor R O, R O different resistance and resistance R 1, and R 1> R o .
- a resistance R o is a precision resistor
- a first resistor 114 in resistor R 1 is general resistance or parasitic resistance.
- the switching unit 112 is used to switch the coupling relationship between the coulomb counter 111 and the resistance R o and the resistance R 1 to form a variety of coupling modes. As shown in FIG. 1A, the switching unit 112 can be switched with the resistance R 1 through the switching unit 112.
- any one of the resistors Ro is connected in parallel, that is, two coupling modes are generated by the switching unit 112.
- the measurement target resistance is R 1
- the measurement target resistance is Ro
- the coulometer measures the current value flowing through R 1 and the current value flowing through R o respectively.
- the processor 130 is configured to control the switching unit 112 to switch, and receive the current value measured by the coulomb counter 111 in any coupling mode.
- the processor 130 can further perform current calibration and obtain the final measurement result.
- the final measurement result can be the current value measured by the coulomb counter 111 in one of the coupling modes, or the current value measured by the coulomb counter 111 in one or more coupling modes.
- One or more current values measured by the meter 111 are calibrated.
- the control flow chart of the device in FIG. 1A for current detection is shown in FIG. 1B in this embodiment.
- the process includes the following steps: 141.
- the processor 130 triggers the start of the current sampling period.
- the coulomb counter can sample each measurement target resistance every 500 milliseconds. Take the circuit corresponding to Figure 1A as an example.
- the coulomb counter measures the current flowing through R 1 and the current flowing through R o ⁇ current.
- the processor 130 acquires the flow through coulometer measurement precision resistor R O current I o, and acquiring coulomb flowing through the parasitic resistance R measured current I 1 1.
- the battery discharge plurality of resistors connected in series on the path comprising a resistor R o is greater than the resistance values
- the processor 130 is greater than the resistance value of each resistor R o are provided a calibration factor
- the initial value of the calibration coefficient K (i-1 ) corresponding to the resistance R (i-1) ) K (i-1) R (i-1) /R (i-2)
- the i is an integer, 1 ⁇ i ⁇ a.
- ⁇ is the filter constant
- the processor 130 determines that the current on the battery discharge path is I, which is the final current detection result. Further, the processor 130 may determine the remaining power of the battery 120 according to the current I on the battery discharge path, and may also estimate the length of time that the device 100 for current measurement corresponding to the remaining power can continue to be used.
- R 1 is greater than Ro , if the current I o obtained by measuring the precision resistance in the current sampling period is within (I min , I max ), then I o is taken as the current sample Current I in the discharge path of the cycle battery. If I o ⁇ I min, then the current of the current sampling period measured resistances R 1 is calibrated, the calibrated value of current as the current sampling period current I flowing through the battery discharge path, since the current I min can be less than It is obtained by calibrating I 1 , so this embodiment is used to expand the range of the current measured by the coulometer.
- the coupling relationship between the coulomb counter 111 and each resistance can be changed by the switching unit 112.
- the coulomb counter 111 is used for resistances including R o and R 1 respectively .
- 115 comprises a resistor 113 and R o was measured.
- the switching unit 112 includes a switch, which may be a single pole double throw switch connected to one end of resistor R o coulomb counter 111, without going through the switch, the other end of the resistor R o and the SPDT One fixed end of the switch is connected to one end of R 1 , and the other end of R 1 is connected to the other fixed end of the SPDT switch.
- the coulomb counter 111 When the moving end of the SPDT switch is switched to the left fixed end, the coulomb counter 111 is coupled with the resistance (R 1 +R o ). When the moving end of the single-pole double-throw switch is switched to the fixed end on the right, the coulomb counter 111 is coupled with the resistance Ro .
- the coulometer can measure a current larger than I max .
- the corresponding control flow implementation is shown in FIG. 3, which includes the following steps: 341.
- the processor 130 triggers the start of the current sampling period.
- the coulomb counter can sample each measurement target resistance every 500 milliseconds. Take the circuit in Figure 1A as an example. In each sampling period, the coulomb counter measures the current flowing through R1 and the current flowing through Ro. . 342, the processor 130 acquires coulometer measurement precision resistor R O flowing current I o, and acquiring coulomb measured current flowing through the parasitic resistance R I 1 1 a.
- the processor 130 determines that the current on the battery discharge path is I. Further, the processor 130 may determine the remaining power of the battery 120 according to the current I on the battery discharge path, and may also estimate the length of time that the device 100 for current measurement corresponding to the remaining power can continue to be used.
- R 1 is less than R o . If the current I o obtained by measuring the precision resistance in the current sampling period is within (I min , I max ), then I o is taken as the current sample Current I in the discharge path of the cycle battery. If I o ⁇ I max , calibrate the current measured by the resistance R 1 in the current sampling period, and use the calibrated current value as the current I flowing through the battery discharge path in the current sampling period. Since the current greater than I max can be It is obtained by calibrating I 1 , so this embodiment is used to expand the range of the current measured by the coulometer.
- FIG. 2A is a schematic structural diagram of a device 200 for measuring current.
- the device 200 for measuring current includes a device 210 for measuring current, a battery 220, and a processor 230.
- This embodiment is used to expand the current measurement range of the coulomb counter.
- the apparatus 210 for measuring current comprising: a coulomb counter 211, the switching unit 212, branch 213 and precision resistor 214 and the parasitic resistances 215, 213 are precision resistors of resistance R o, the parasitic resistance of the resistor 214 is R 1 , the resistance of the parasitic resistance 215 is R 2 .
- the precision resistance branch 213 and the parasitic resistances 214 and 215 are connected in series in the battery discharge path. Different from FIG. 1A, the two switches in the switching unit 212 in FIG. 2A become single-pole three-throw switches to realize the switching between the precision resistance branch 213 and the parasitic resistances 214 and 215.
- the control process shown in FIG. 2B may be used. Specifically, it includes the following steps: 241.
- the processor 130 triggers the start of the current sampling period. In each sampling period, the coulometer measures the currents flowing through R 1 , R 2 , and Ro respectively. 242, the processor 130 acquires coulometer measurement precision resistor R O flowing current I o, acquiring coulomb flowing through the parasitic resistance R measured current I 1 1, and acquiring coulomb flowing through the parasitic resistance R measured current I 1 of 1 .
- the processor 130 determines that the current on the battery discharge channel is I, which is the final determined result.
- the processor 230 can determine the remaining power of the battery 220 according to the current I of the battery discharge path, and can also estimate the duration that the device 200 corresponding to the remaining power can continue to be used.
- the device for measuring current provided by the embodiment of the present application is provided with a precision resistor, and resistors R1 and R2 that are larger than the precision resistor. By measuring different resistors, it is possible to detect a small current.
- the discharge path of the battery may be the main circuit of the system that receives the discharge.
- the multiple resistors set in the device for measuring current are either larger than the precision resistance or smaller than the precision resistance.
- both are set larger than the precision resistance R o the resistors R 1 and R 2, and provided less than the precision resistor R & lt o resistor R 1 'and R 2', the description of the previous embodiments can be seen, through the switching unit to switch 412, can coulomb counter 411, respectively, for R 1 , R 2, R o, R 1 ' and R 2' is coupled, respectively measuring current flowing through each resistor.
- I o ⁇ I max of the '2 and R' is the measured current is corrected by R 1.
- the resistors connected in series in the main circuit of the battery include multiple resistors with a resistance value less than the precision resistor Ro , for example, if there are b resistors with a resistance value less than Ro , b is greater than 1 or equal to 1.
- the device includes hardware structures and/or software modules corresponding to various functions.
- the functions of the control flow performed by the processor can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
- the embodiments of the present application may divide the device or device into functional units according to the above examples.
- each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
- the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
- the division of each component in the embodiment of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
- the above devices may be located in the same chip or a chipset including multiple chips.
- the device can be located on the same chip as the processor.
- the device and the processor are located on different chips, that is, the processor is located on a separate chip.
- the device when the processor is located in an independent chip, the device can be a power management unit (PMU) chip.
- PMU power management unit
- at least one of the plurality of series resistances and the switching unit used to perform the measurement may be located in the chip or outside the chip, that is, at least one of the plurality of series resistances and the switching unit may be a separate device located in the circuit On the board, this embodiment is not limited.
- the above processor may selectively run software to work.
- the software may be stored in a computer-readable storage medium, including a computer program in the form of the software, and the computer program includes a large amount of computer code.
- the processor controls the switching unit to switch the coupling relationship between the coulomb counter and the plurality of series resistors by running the computer program, and receives the current value measured by any coupling mode of the coulomb counter.
- the processor further determines the final measurement result from the multiple current values obtained in multiple coupling modes by running the computer program, and can also selectively calibrate the current value.
- the processor may include, but is not limited to, a central processing unit, a microcontroller, a microprocessor, a digital signal processor, or an artificial intelligence processor.
- the embodiments of the present application also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions, when executed by a processing tool, cause the processor to execute the above-mentioned process method implementation Part or all of the steps of any process method for measuring current described in the example.
- the computer-readable storage medium may be a memory, which may include a flash disk, a read-only memory, a random access device, a magnetic disk or an optical disk, and the like.
- the embodiments of the present application also provide a computer program product, the computer program product includes a computer-readable storage medium storing a computer program, and the computer program causes a computer to execute any of the current measurement methods described in the above-mentioned process method embodiment. Part or all of the steps of the process method.
- each embodiment has its own focus. For a part that is not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
- the disclosed device may be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or connection may be direct connection or indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Secondary Cells (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
Embodiments of the present application disclose a current measuring device, a method, and an apparatus. The current measuring device comprises: multiple resistors in series, switching units, and a coulombmeter. The multiple resistors in series are on a discharging circuit of a battery, and at least one first resistor of the multiple resistors in series has a value different from that of a second resistor. The switching units are used to switch a coupling configuration between the coulombmeter and the multiple resistors in series so as to form various coupling modes. In any of the coupling modes, at least one target measurement resistor of the multiple resistors in series is coupled to the coulombmeter, and the coulombmeter uses at least one target measurement resistor to measure a current value of the discharging circuit in any of the coupling modes. The technical solution provided by the embodiments of the present application enables the coulombmeter to be coupled to resistors having different resistance values by means of the switching units, and increases a current measuring range of the coulombmeter by performing a measurement by means of resistors having different resistance values.
Description
本申请实施例涉及电子技术领域,尤其涉及一种用于测量电流的装置、方法及设备。The embodiments of the present application relate to the field of electronic technology, and in particular, to a device, method, and device for measuring current.
手机、平板电脑、笔记本电脑等终端设备具有电池的剩余电量显示功能,电池的剩余电量通常基于终端设备中的库仑计测量得到的电池放电通路上的电流计算确定。在现有技术中,库仑计测量电流时,先测量串联在电池放电通路中的精密电阻两端的电压,然后用测量的电压值除以精密电阻的电阻值,就得到电池放电通路中的电流值。需要说明的是,在额定精度下库仑计通常只能测量固定范围内的电压,在精密电阻的阻值固定的情况下,库仑计能够测量的电流范围也是固定的,比如,若库仑计在额定精度下对应的电流测量范围是(I
min,I
max),则I
min是库仑计能够精确测量电流的下限值,I
max是库仑计能够精确测量电流的上限值,对于小于I
min或者大于I
max的电流库仑计就检测不准确了。
Terminal devices such as mobile phones, tablet computers, and notebook computers have the function of displaying the remaining battery power. The remaining battery power is usually calculated and determined based on the current on the battery discharge path measured by the coulomb meter in the terminal device. In the prior art, when the coulometer measures current, it first measures the voltage across the precision resistor connected in the battery discharge path, and then divides the measured voltage value by the resistance value of the precision resistor to obtain the current value in the battery discharge path . It should be noted that under the rated accuracy, the coulomb counter can usually only measure the voltage within a fixed range. When the resistance of the precision resistor is fixed, the current range that the coulomb counter can measure is also fixed. For example, if the coulomb counter is at the rated The current measurement range corresponding to the accuracy is (I min , I max ), then I min is the lower limit of the coulomb counter that can accurately measure the current, and I max is the upper limit of the coulomb counter that can accurately measure the current. For less than I min or The current coulomb counter greater than I max will be inaccurate.
在额定精度下,若能拓展库仑计的测量范围(比如,若能测量到更小的电池放电通路中的电流值和/或测量到更大的电池放电通路中的电流值),则可以提升电池的剩余电量的计算精度,使用户获知更准确的电池的剩余电量值,现有技术中,为了拓展库仑计测量电流的范围,采用的方法是更换测量范围更大的库仑计,这将大大提高测量电流的成本。因此如何提供一种低成本的拓展库仑计的测量范围的技术就成为一个问题。Under the rated accuracy, if the measuring range of the coulomb counter can be expanded (for example, if the current value in a smaller battery discharge path and/or a larger current value in the battery discharge path can be measured), it can be improved The calculation accuracy of the remaining power of the battery enables the user to know the remaining power value of the battery more accurately. In the prior art, in order to expand the current measurement range of the coulomb meter, the method adopted is to replace the coulomb meter with a larger measurement range. Increase the cost of measuring current. Therefore, how to provide a low-cost technology for expanding the measuring range of the coulomb counter becomes a problem.
发明内容Summary of the invention
本申请实施例提供了一种用于测量电流的装置、方法及设备,以在拓展电流测量范围的基础上降低成本。The embodiments of the present application provide a device, method, and equipment for measuring current, so as to reduce the cost on the basis of expanding the current measurement range.
第一方面,本申请实施例提供了一种用于测量电流的装置,包括:多个串联电阻、切换单元、和库仑计;所述多个串联电阻位于电池的放电通路上,所述多个串联电阻中的至少一个第一电阻的值不同于第二电阻的值;所述切换单元,用于切换所述库仑计与所述多个串联电阻的耦合关系,以形成多种耦合方式;在任一耦合方式下,所述多个串联电阻中的至少一个测量目标电阻被耦合至所述库仑计;所述库仑计,用于在任一耦合方式下利用所述至少一个测量目标电阻测量所述放电通路上的电流值。In the first aspect, an embodiment of the present application provides a device for measuring current, including: a plurality of series resistors, a switching unit, and a coulomb counter; the plurality of series resistors are located on the discharge path of the battery, and the plurality The value of at least one first resistance in the series resistance is different from the value of the second resistance; the switching unit is used to switch the coupling relationship between the coulomb counter and the plurality of series resistances to form multiple coupling modes; In a coupling mode, at least one measurement target resistance of the plurality of series resistors is coupled to the coulomb counter; the coulomb counter is used to measure the discharge using the at least one measurement target resistance in any coupling mode The current value on the path.
本申请实施例提供的用于测量电流的装置,在电池的放电通路上设置了多个串联的电阻,通过切换单元可以得到至少两个阻值不同的测量目标电阻,库仑计对阻值不同的测量目标电阻进行测量时,不同阻值的测量目标电阻对应的电流测量范围不同,相对于现有技术中只对一个电阻进行测量,且对应一个固定的电流测量范围来说,本申请实施例有利于拓展库仑计测量电流时的测量范围。另外,相对于更换库仑计拓展电流测量范围来说,本申请实施例通过对阻值不同的测量目标电阻进行测量实现拓展库仑计对电流的测量范围,节省了成本。In the device for measuring current provided by the embodiment of the application, a plurality of resistors connected in series are arranged on the discharge path of the battery, and at least two measurement target resistors with different resistance values can be obtained through the switching unit. When the target resistance is measured, the current measurement ranges corresponding to the measurement target resistances of different resistance values are different. Compared with the measurement of only one resistance in the prior art and corresponding to a fixed current measurement range, the embodiments of the present application have It is helpful to expand the measuring range of the coulomb meter when measuring current. In addition, compared to replacing the coulomb counter to expand the current measurement range, the embodiment of the present application implements the expansion of the current measurement range of the coulomb counter by measuring measurement target resistances with different resistance values, thereby saving costs.
在一些可能实施例中,所述至少一个第一电阻包括第三电阻和第四电阻,所述第三电阻的值与所述第四电阻的值不同。In some possible embodiments, the at least one first resistor includes a third resistor and a fourth resistor, and the value of the third resistor is different from the value of the fourth resistor.
本申请实施例通过在第一电阻中设置阻值不同的电阻,有利于进一步拓展库仑计的电流测量范围。In the embodiment of the present application, resistors with different resistance values are set in the first resistor, which is beneficial to further expand the current measurement range of the coulomb counter.
在一些可能实施例中,所述第三电阻的值大于所述第二电阻的值,所述第四电阻的值小于所述第二电阻的值。当库仑计对第三电阻进行测量时,可以测量到比对第二电阻进行测量时更小的电流值,库仑计对第四电阻进行测量时,可以检测到比对第二电阻进行测量时更大的电流值,因此,相对于第二电阻对应的电流测量范围来说,采用该实施例有利于拓展电流的测量范围。In some possible embodiments, the value of the third resistor is greater than the value of the second resistor, and the value of the fourth resistor is less than the value of the second resistor. When the coulomb counter measures the third resistance, it can measure a smaller current value than when the second resistance is measured. When the coulomb counter measures the fourth resistance, it can detect that it is more current than when the second resistance is measured. A large current value, therefore, compared to the current measurement range corresponding to the second resistor, the adoption of this embodiment is beneficial to expand the current measurement range.
在一些可能实施例中,所述至少一个第一电阻中的任一个电阻包括寄生电阻。该寄生电阻可以是走线、导线或者连接器等提供的,由于寄生电阻不需要另外购买或设计,所以该实施例可以在不增加成本的基础上拓展库仑计的电流测量范围。In some possible embodiments, any one of the at least one first resistance includes a parasitic resistance. The parasitic resistance can be provided by traces, wires, or connectors. Since the parasitic resistance does not need to be purchased or designed separately, this embodiment can expand the current measurement range of the coulomb counter without increasing the cost.
在一些可能实施例中,所述至少一个测量目标电阻包括所述至少一个第一电阻中任一个或所述第一电阻。In some possible embodiments, the at least one measurement target resistance includes any one of the at least one first resistance or the first resistance.
在一些可能实施例中,所述至少一个测量目标电阻包括所述至少一个第一电阻中任一个与所述第二电阻的组合。In some possible embodiments, the at least one measurement target resistance includes a combination of any one of the at least one first resistance and the second resistance.
上述实施例通过切换单元得到包括不同电阻的耦合方式,有利于库仑计拓展不同的电流检测范围。The foregoing embodiment obtains a coupling mode including different resistances through the switching unit, which is beneficial to expand the different current detection range of the coulomb counter.
第二方面,本申请实施例提供了一种用于测量电流的设备,包括:第一方面或者第一方面任一可能的实施方式所述的装置和处理器;所述处理器,用于控制所述切换单元切换所述库仑计与所述多个串联电阻的所述耦合关系。In the second aspect, an embodiment of the present application provides a device for measuring current, including: the device and the processor according to the first aspect or any possible implementation manner of the first aspect; the processor is used to control The switching unit switches the coupling relationship between the coulomb counter and the plurality of series resistors.
在一些可能实施例中,所述处理器还用于从所述装置获取与所述多种耦合方式中每种耦合方式对应的电流值。In some possible embodiments, the processor is further configured to obtain a current value corresponding to each of the multiple coupling modes from the device.
在一些可能实施例中,所述处理器还用于对至少一种耦合方式对应的电流值做校准。In some possible embodiments, the processor is further configured to calibrate the current value corresponding to at least one coupling mode.
需要说明的是,寄生电阻和普通电阻的阻值会随着温度或者电路的老化等因素发生变化,处理器通过对至少一种耦合方式得到的电流值进行校准,有利于使测量得到的电池放电通路上的电流值更精确。It should be noted that the resistance of parasitic resistance and ordinary resistance will change with factors such as temperature or circuit aging. The processor calibrates the current value obtained by at least one coupling method, which is beneficial to discharge the measured battery. The current value on the path is more accurate.
在一些可能实施例中,所述多种耦合方式包括第一耦合方式和第二耦合方式;在所述第一耦合方式下,所述至少一个测量目标电阻具有第一电阻值,所述第一耦合方式对应的电流值是第一电流值;在所述第二耦合方式下,所述至少一个测量目标电阻具有第二电阻值,所述第一电阻值小于所述第二电阻值,所述第二耦合方式对应的电流值是第二电流值;所述处理器还用于当确定所述第一电流值小于或等于第一阈值,则利用校准参数对第二电流值做校准以得到测量结果。In some possible embodiments, the multiple coupling modes include a first coupling mode and a second coupling mode; in the first coupling mode, the at least one measurement target resistance has a first resistance value, and the first The current value corresponding to the coupling mode is the first current value; in the second coupling mode, the at least one measurement target resistance has a second resistance value, the first resistance value is smaller than the second resistance value, and the The current value corresponding to the second coupling mode is the second current value; the processor is further configured to, when it is determined that the first current value is less than or equal to the first threshold, use the calibration parameters to calibrate the second current value to obtain the measurement result.
在一些可能实施例中,所述处理器还用于当确定所述第一电流值大于所述第一阈值,将所述第一电流值作为测量结果。In some possible embodiments, the processor is further configured to use the first current value as a measurement result when it is determined that the first current value is greater than the first threshold value.
在一些可能实施例中,所述处理器还用于当确定所述第一电流值大于所述第一阈值且所述第二电流值小于所述第二阈值,则修正所述校准参数,所述第二阈值大于所述第一阈值。In some possible embodiments, the processor is further configured to modify the calibration parameter when it is determined that the first current value is greater than the first threshold value and the second current value is less than the second threshold value. The second threshold is greater than the first threshold.
在一些可能实施例中,所述多种耦合方式包括第三耦合方式和第四耦合方式;在所述第三耦合方式下,所述至少一个测量目标电阻具有第三电阻值,所述第三耦合方式对应的 电流值是第三电流值;在所述第四耦合方式下,所述至少一个测量目标电阻具有第四电阻值,所述第三电阻值大于所述第四电阻值,所述第四耦合方式对应的电流值是第四电流值;所述处理器还用于当确定所述第三电流值大于或等于第二阈值,则利用校准参数对第四电流值做校准以得到测量结果。In some possible embodiments, the multiple coupling modes include a third coupling mode and a fourth coupling mode; in the third coupling mode, the at least one measurement target resistance has a third resistance value, and the third coupling mode The current value corresponding to the coupling mode is the third current value; in the fourth coupling mode, the at least one measurement target resistance has a fourth resistance value, the third resistance value is greater than the fourth resistance value, and the The current value corresponding to the fourth coupling mode is the fourth current value; the processor is further configured to, when it is determined that the third current value is greater than or equal to the second threshold value, use the calibration parameters to calibrate the fourth current value to obtain the measurement result.
在一些可能实施例中,所述处理器还用于当确定所述第三电流值小于所述第二阈值,将所述第三电流值作为测量结果。In some possible embodiments, the processor is further configured to use the third current value as a measurement result when it is determined that the third current value is less than the second threshold value.
在一些可能实施例中,所述处理器还用于当确定所述第三电流值小于所述第二阈值且所述第四电流值大于所述第一阈值,则修正所述校准参数,所述第二阈值大于所述第一阈值。In some possible embodiments, the processor is further configured to modify the calibration parameter when it is determined that the third current value is less than the second threshold value and the fourth current value is greater than the first threshold value. The second threshold is greater than the first threshold.
第三方面,本申请实施例提供了一种用于测量电流的方法,应用于包括:多个串联电阻、切换单元、库仑计、和处理器的用于测量电流的设备;其中,所述多个串联电阻位于电池的放电通路上,所述多个串联电阻中的至少一个第一电阻的值不同于第二电阻的值;所述方法包括:所述处理器控制所述切换单元切换所述库仑计与所述多个串联电阻的所述耦合关系;以形成多种耦合方式;在任一耦合方式下,所述多个串联电阻中的至少一个测量目标电阻被耦合至所述库仑计;所述处理器获取所述库仑计在任一耦合方式下利用所述至少一个测量目标电阻测量所述放电通路上的电流值。In the third aspect, an embodiment of the present application provides a method for measuring current, which is applied to a device for measuring current including a plurality of series resistors, a switching unit, a coulomb counter, and a processor; wherein the multiple A series resistor is located on the discharge path of the battery, and the value of at least one first resistor of the plurality of series resistors is different from the value of the second resistor; the method includes: the processor controls the switching unit to switch the The coupling relationship between the coulomb counter and the plurality of series resistances; to form a plurality of coupling modes; in any coupling mode, at least one measurement target resistance of the plurality of series resistances is coupled to the coulomb counter; The processor acquires the current value of the discharge path by the coulomb counter using the at least one measurement target resistance in any coupling mode.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如第三方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause all The processor executes the method as described in the third aspect.
第五方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的计算机可读存储介质,该计算机程序使得计算机执行如第三方面所述的方法的部分或全部步骤。In the fifth aspect, the embodiments of the present application provide a computer program product, the computer program product includes a computer-readable storage medium storing a computer program, the computer program causes a computer to execute part or part of the method described in the third aspect All steps.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1A是本申请实施例提供的用于测量电流的设备的结构示意图。Fig. 1A is a schematic structural diagram of a device for measuring current provided by an embodiment of the present application.
图1B是图1A中用于测量电流的设备测量电流时的控制流程示意图。Fig. 1B is a schematic diagram of the control flow of the device for measuring current in Fig. 1A when measuring current.
图1C是本申请另一实施例提供的用于测量电流的设备的结构示意图。FIG. 1C is a schematic structural diagram of a device for measuring current provided by another embodiment of the present application.
图2A是本申请另一实施例提供的用于测量电流的设备的结构示意图。Fig. 2A is a schematic structural diagram of a device for measuring current provided by another embodiment of the present application.
图2B是图2A中用于测量电流的设备测量电流时的控制流程示意图。Fig. 2B is a schematic diagram of the control flow when the device for measuring current in Fig. 2A measures current.
图3是图1A对应的另一实施例中用于测量电流的设备测量电流时的控制流程示意图。FIG. 3 is a schematic diagram of the control flow when the device for measuring current in another embodiment corresponding to FIG. 1A measures current.
图4是本申请另一实施例提供的用于测量电流的设备的结构示意图。Fig. 4 is a schematic structural diagram of a device for measuring current provided by another embodiment of the present application.
为了使本领域的技术人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发 明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。It should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms of "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
需要说明的是,下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。It should be noted that the embodiments of the present invention are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary, and are only used to explain the present invention, and cannot be construed as limiting the present invention.
下文提供了多个不同的实施例来说明实现本发明的不同结构。为了简化本发明的公开,下文中对特定例子的部件和设置进行描述。当然,它们仅仅为示例,并且目的不在于限制本发明。此外,本发明可以在不同例子中重复参考数字和/或字母。这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施例和/或设置之间的关系。A number of different embodiments are provided below to illustrate different structures for implementing the present invention. In order to simplify the disclosure of the present invention, the components and settings of specific examples are described below. Of course, they are only examples and are not intended to limit the invention. In addition, the present invention may repeat reference numbers and/or letters in different examples. This repetition is for the purpose of simplification and clarity and does not in itself indicate the relationship between the various embodiments and/or settings discussed.
为了拓展库仑计的电流检测范围,本申请发明人提供了一种用于测量电流的装置,该装置可以拓展库仑计电流测量范围,实施时不用更换库仑计,通过测量电池的放电通路上相互串联的多个电阻对应的电流值来实现。本申请提供的技术方案的实现原理是:在传统固定电阻时,若库仑计额定精度范围内的电流检测范围是(I
min,I
max),则本实施例通过测量电阻值更大的电阻的电压,可以得到比I
min更小的电流值。或者,通过测量电阻值更小的电阻的电压,可以得到比I
max更大的电流值。相对现有技术中更换库仑计来拓展库仑计电流范围来说节约了成本,在具体实施时,库仑计测量的电阻可以包括:导线、走线或者电子元件等产生的寄生电阻、或普通电阻、或精密电阻等。导线、走线或者电子元件本身提供的寄生电阻不需要额外购买或设计,可降低成本。
In order to expand the current detection range of the coulomb counter, the inventor of the present application provides a device for measuring current. The device can expand the current measurement range of the coulomb counter. The coulomb counter does not need to be replaced during implementation. The discharge path of the measuring battery is connected in series. The current value corresponding to the multiple resistances can be realized. The implementation principle of the technical solution provided by this application is: in the case of a traditional fixed resistance, if the current detection range within the rated accuracy of the coulomb counter is (I min , I max ), this embodiment measures the resistance of a resistor with a larger resistance value. Voltage, a current value smaller than I min can be obtained. Alternatively, by measuring the voltage of a resistor with a smaller resistance value, a current value larger than I max can be obtained. Compared with the replacement of the coulomb counter in the prior art to expand the current range of the coulomb counter, the cost is saved. In specific implementation, the resistance measured by the coulomb counter may include: parasitic resistance generated by wires, traces or electronic components, or ordinary resistance, Or precision resistance, etc. Parasitic resistance provided by wires, traces or electronic components does not require additional purchase or design, which can reduce costs.
需要说明的是,对精密电阻进行测量时,由于其性能比较稳定,对其进行测量得到的电流值比较准确。寄生电阻和普通电阻的阻值随着温度或者相关电子元器件的老化会有较大的波动,为了得到准确的电流值,在一些可能的实施例中可以利用精密电阻和寄生电阻或者普通电阻的关系对测量得到的电流值进行校准。下面对此做进一步介绍。It should be noted that when the precision resistance is measured, the current value obtained by the measurement is more accurate due to its relatively stable performance. The resistance value of parasitic resistance and ordinary resistance will fluctuate greatly with temperature or the aging of related electronic components. In order to obtain accurate current value, in some possible embodiments, precision resistance and parasitic resistance or ordinary resistance can be used. The relationship calibrates the measured current value. This will be further introduced below.
为了方便理解,下面结合附图对本申请的实施例进行描述,请参阅图1A,图1A是用于测量电流的设备100,包括:用于测量电流的装置110、电池120和处理器130。其中,用于测量电流的装置110包括:位于电池120放电通路上的,串联的第一电阻114和第二电阻113、切换单元112和库仑计111。该设备可以包括但不限于终端设备,如具有剩余电量显示功能的手机、平板电脑、或者笔记本电脑等。在本申请一些可能的实施方式中,终端设备可以包括显示屏,可以在显示屏中显示电池的剩余电量、或者与剩余电量对应的终端设备可以继续使用的时长。切换单元112可以包括两个开关,每个可以是单刀双掷开关。其中一个单刀双掷开关的各不动端分别与一个电阻的一端相连,各电阻的另一端分别与另一单刀双掷开关的一不动端分别相连,在一些可能的实施方式中,两个开关可以都执行切 换操作,使每次与库仑计111耦合的电阻只有一个,比如,若图1A中的两个单刀双掷开关的动端都切换到左边的不动端时,库仑计111与电阻R
1耦合;若两个单刀双掷开关的动端都切换到右边的不动端时,库仑计111与电阻R
2耦合。
For ease of understanding, the embodiments of the present application will be described below with reference to the accompanying drawings. Please refer to FIG. 1A. FIG. 1A is a device 100 for measuring current, including: a device 110 for measuring current, a battery 120, and a processor 130. The device 110 for measuring current includes: a first resistor 114 and a second resistor 113 connected in series, a switching unit 112 and a coulomb counter 111 located on the discharge path of the battery 120. The device may include, but is not limited to, a terminal device, such as a mobile phone, a tablet computer, or a notebook computer with a remaining power display function. In some possible implementation manners of the present application, the terminal device may include a display screen, and the remaining power of the battery or the length of time that the terminal device corresponding to the remaining power can continue to be used can be displayed on the display screen. The switching unit 112 may include two switches, each of which may be a single-pole double-throw switch. Each fixed end of a single-pole double-throw switch is connected to one end of a resistor, and the other end of each resistor is respectively connected to a fixed end of another single-pole double-throw switch. In some possible implementations, two The switches can all perform switching operations, so that there is only one resistance coupled with the coulomb counter 111 each time. For example, if the moving ends of the two SPDT switches in Figure 1A are switched to the left fixed ends, the coulomb counter 111 and The resistance R 1 is coupled; if the moving ends of the two single-pole double-throw switches are switched to the right non-moving ends, the coulomb counter 111 is coupled to the resistance R 2 .
在图1A中,第一电阻114包括阻值为R
1的电阻,第二电阻113包括阻值为R
o的电阻,R
1的阻值与R
o的阻值不同,且R
1>R
o。在该实施例中假设第二电阻113中的电阻R
o是精密电阻,第一电阻114中的电阻R
1是寄生电阻或者普通电阻。切换单元112用于切换库仑计111与电阻R
o和电阻R
1之间的耦合关系,以形成多种耦合方式,以图1A所示,切换单元112通过切换,库仑计可以分别与电阻R
1或电阻R
o中的任一个并联,即通过切换单元112切换生成了两种耦合方式,一种耦合方式中测量目标电阻为R
1,另一种耦合方式中测量目标电阻为R
o。库仑计分别测量流经R
1上的电流值和流经R
o上的电流值。处理器130用于控制切换单元112进行切换,并接收任一耦合方式下库仑计111所测得的电流值。处理器130能够进一步进行电流校准并能够得到最终测量结果,该最终测量结果可以是其中一种耦合方式下库仑计111所测得的电流值,也可以是对某一个或多个耦合方式下库仑计111所测得的一个或多个电流值做校准得到的值。
In FIG. 1A, a first resistor 114 comprises a resistance value R 1 of the resistor, a second resistor 113 comprises a resistance value of the resistor R O, R O different resistance and resistance R 1, and R 1> R o . In this embodiment, assuming the second resistor 113 a resistance R o is a precision resistor, a first resistor 114 in resistor R 1 is general resistance or parasitic resistance. The switching unit 112 is used to switch the coupling relationship between the coulomb counter 111 and the resistance R o and the resistance R 1 to form a variety of coupling modes. As shown in FIG. 1A, the switching unit 112 can be switched with the resistance R 1 through the switching unit 112. Or any one of the resistors Ro is connected in parallel, that is, two coupling modes are generated by the switching unit 112. In one coupling mode, the measurement target resistance is R 1 , and in the other coupling mode, the measurement target resistance is Ro . The coulometer measures the current value flowing through R 1 and the current value flowing through R o respectively. The processor 130 is configured to control the switching unit 112 to switch, and receive the current value measured by the coulomb counter 111 in any coupling mode. The processor 130 can further perform current calibration and obtain the final measurement result. The final measurement result can be the current value measured by the coulomb counter 111 in one of the coupling modes, or the current value measured by the coulomb counter 111 in one or more coupling modes. One or more current values measured by the meter 111 are calibrated.
假设传统库仑计在额定精度下,对精密电阻R
o进行测量时的电流检测范围是(I
min,I
max),本实施例采用图1A中的设备检测电流时的控制流程图如图1B所示,该流程包括如下步骤:141、处理器130触发电流采样周期开始。举例来说,库仑计可以每隔500毫秒对各测量目标电阻执行一次采样,以图1A对应的电路为例,在每个采样周期,库仑计分别测量流经R
1的电流和流经R
o的电流。142、处理器130获取库仑计测量流经精密电阻R
o的电流I
o,以及获取库仑计测量流经寄生电阻R
1的电流I
1。
Assuming that under the rated accuracy of the traditional coulomb counter, the current detection range when measuring the precision resistance Ro is (I min , I max ), the control flow chart of the device in FIG. 1A for current detection is shown in FIG. 1B in this embodiment. As shown, the process includes the following steps: 141. The processor 130 triggers the start of the current sampling period. For example, the coulomb counter can sample each measurement target resistance every 500 milliseconds. Take the circuit corresponding to Figure 1A as an example. In each sampling period, the coulomb counter measures the current flowing through R 1 and the current flowing through R o的current. 142, the processor 130 acquires the flow through coulometer measurement precision resistor R O current I o, and acquiring coulomb flowing through the parasitic resistance R measured current I 1 1.
143、处理器130判断I
o是否大于I
min。若I
o>I
min,则执行步骤144,若I
o不大于I
min,则执行步骤147。处理器130判断I
1是否小于I
max。若I
1<I
max,则执行步骤145,若I
1不小于I
max,则执行步骤146。145、处理器130修正校准系数K
1,K
1=K
1n=f(K
1(n-1),I
1/I
o)。在一些可能的实施方式中,f是使K
i平缓变化的低通滤波函数。在本申请一些可能的实施方式中,电池放电通路上串联的多个电阻中包括a个电阻值大于R
o的电阻,则处理器130对电阻值大于R
o每个电阻分别设置一个校准系数,电阻R
(i-1))对应的校准系数K
(i-1)的初始值K
(i-1)=R
(i-1)/R
(i-2),所述i为整数,1≤i≤a。在任一采样周期中,若I
min≤I
i≤I
max且I
min≤I
(i-1)≤I
max,则对电阻R
i的校准系数K
i进行修正,修正后的K
i=f(修正前的K
i,I
(i-1)/I
(i-2));其中,所述f是使K
(i-1)平缓变化的低通滤波函数,若电阻R
i对应的电流为I
i,电阻R(i-1)对应的电流为I
(i-1),电阻R
(i-2)对应的电流为I
(i-2);在当前采样周期中,若I
(i-2)<I
min且I
(i-1)>I
min,则当前采样周期流经所述电池主回路的电流I=I
(i-1)/(K
(i-1)×K
(i-2)×…×K
1)。举例来说,在一些可能的实施方式中,K
i=f=K
(i-1)×θ+(I
i/I
(i-1))×(1-θ),其中,θ为滤波常数,选择范围0<θ<1,比如可以选择θ=0.6或者θ=0.8等,可以根据实测效果修正。
143. The processor 130 determines whether I o is greater than I min . If I o >I min , then step 144 is executed, and if I o is not greater than I min , step 147 is executed. The processor 130 determines whether I 1 is less than I max . If I 1 <I max , then perform step 145. If I 1 is not less than I max , then perform step 146. 145. The processor 130 corrects the calibration coefficient K 1 , K 1 =K 1n =f(K 1(n-1 ) , I 1 /I o ). In some possible embodiments, f is a smooth change in K i that the low pass filtering function. In some possible embodiments of the present application, the battery discharge plurality of resistors connected in series on the path comprising a resistor R o is greater than the resistance values, the processor 130 is greater than the resistance value of each resistor R o are provided a calibration factor, The initial value of the calibration coefficient K (i-1 ) corresponding to the resistance R (i-1) ) K (i-1) = R (i-1) /R (i-2) , the i is an integer, 1≤ i≤a. In any sampling period, if the I min ≤I i ≤I max and I min ≤I (i-1) ≤I max, K i is the calibration coefficient of resistance R i is corrected, the corrected K i = f ( K i before correction, I (i-1) /I (i-2) ); where the f is a low-pass filter function that smoothly changes K (i-1) , if the current corresponding to the resistance R i is I i , the current corresponding to the resistance R (i-1) is I (i-1) , and the current corresponding to the resistance R (i-2) is I (i-2) ; in the current sampling period, if I (i- 2) <I min and I (i-1) > I min , the current I (i-1) / (K (i-1) × K (i- 2) ×…×K 1 ). For example, in some possible implementations, K i =f=K (i-1) ×θ+(I i /I (i-1) )×(1-θ), where θ is the filter constant , The selection range is 0<θ<1, for example, you can choose θ=0.6 or θ=0.8, etc., which can be corrected according to the actual measurement effect.
146、处理器130设置I=I
o。147、处理器130设置I=I
1/K
1。148、处理器130确定电池放电通路上的电流为I,即为最终的电流检测结果。进一步地,处理器130可以根据电池放电通路上的电流I确定电池120的剩余电量,也可以估算出于与剩余电量对应的用于测量电流的设备设备100可以继续使用的时长。
146, the processor 130 set I = I o. 147. The processor 130 sets I=I 1 /K 1 . 148. The processor 130 determines that the current on the battery discharge path is I, which is the final current detection result. Further, the processor 130 may determine the remaining power of the battery 120 according to the current I on the battery discharge path, and may also estimate the length of time that the device 100 for current measurement corresponding to the remaining power can continue to be used.
本申请实施例提供的用于测量电流的装置中R
1大于R
o,若当前采样周期中对精密电阻测量得到的电流I
o位于(I
min,I
max)内,则将I
o作为当前采样周期电池放电通路的电流I。若I
o<I
min,则对当前采样周期中对电阻R
1测量得到的电流进行校准,将校准后的电流值作为当前采样周期流经电池
放电通路的电流I,由于小于I
min的电流可以通过对I
1进行校准得到,所以采用该实施例拓展了库仑计测量电流的范围。
In the device for measuring current provided by the embodiments of the present application, R 1 is greater than Ro , if the current I o obtained by measuring the precision resistance in the current sampling period is within (I min , I max ), then I o is taken as the current sample Current I in the discharge path of the cycle battery. If I o <I min, then the current of the current sampling period measured resistances R 1 is calibrated, the calibrated value of current as the current sampling period current I flowing through the battery discharge path, since the current I min can be less than It is obtained by calibrating I 1 , so this embodiment is used to expand the range of the current measured by the coulometer.
在本申请一些可能的实施方式中,通过切换单元112可以改变库仑计111与各电阻之间的耦合关系,如图1C所示实施例中,库仑计111分别对包括R
o和R
1的电阻115以及包括R
o的电阻113进行测量。此时与图1A不同,切换单元112中包括一个开关,该开关可以是单刀双掷开关,电阻R
o的一端与库仑计111相连,不需要经过开关,电阻R
o的另一端与单刀双掷开关的一个不动端以及R
1的一端相连,R
1的另一端与单刀双掷开关的另一不动端相连,当单刀双掷开关的动端切换到左边的不动端时,库仑计111与电阻(R
1+R
o)耦合,当单刀双掷开关的动端切换到右边的不动端时,库仑计111与电阻R
o耦合。
In some possible implementation manners of the present application, the coupling relationship between the coulomb counter 111 and each resistance can be changed by the switching unit 112. In the embodiment shown in FIG. 1C, the coulomb counter 111 is used for resistances including R o and R 1 respectively . 115 comprises a resistor 113 and R o was measured. At this time, different from FIG. 1A, the switching unit 112 includes a switch, which may be a single pole double throw switch connected to one end of resistor R o coulomb counter 111, without going through the switch, the other end of the resistor R o and the SPDT One fixed end of the switch is connected to one end of R 1 , and the other end of R 1 is connected to the other fixed end of the SPDT switch. When the moving end of the SPDT switch is switched to the left fixed end, the coulomb counter 111 is coupled with the resistance (R 1 +R o ). When the moving end of the single-pole double-throw switch is switched to the fixed end on the right, the coulomb counter 111 is coupled with the resistance Ro .
在本申请一些可能的实施方式中,对于图1A所示的用于测量电流的装置100,若R
1<R
o,则库仑计可以测量比I
max更大的电流。其对应的控制流程实施例如图3所示,包括如下步骤:341、处理器130触发电流采样周期开始。举例来说,库仑计可以每隔500毫秒对各测量目标电阻执行一次采样,以图1A对应的电路为例,在每个采样周期,库仑计分别测量流经R1的电流和流经Ro的电流。342、处理器130获取库仑计测量流经精密电阻R
o的电流I
o,以及获取库仑计测量流经寄生电阻R
1的电流I
1。
In some possible implementations of the present application, for the device 100 for measuring current shown in FIG. 1A, if R 1 <R o , the coulometer can measure a current larger than I max . The corresponding control flow implementation is shown in FIG. 3, which includes the following steps: 341. The processor 130 triggers the start of the current sampling period. For example, the coulomb counter can sample each measurement target resistance every 500 milliseconds. Take the circuit in Figure 1A as an example. In each sampling period, the coulomb counter measures the current flowing through R1 and the current flowing through Ro. . 342, the processor 130 acquires coulometer measurement precision resistor R O flowing current I o, and acquiring coulomb measured current flowing through the parasitic resistance R I 1 1 a.
343、处理器130判断I
o是否小于I
max。若I
o<I
max,则执行步骤344,若I
o不大于I
max,则执行步骤347。344、判断I
1是否大于I
min。若I
1>I
min,则执行步骤345,若I
1不大于I
min,则执行步骤346。345、处理器130修正校准系数K
1,K
1=K
1n=f(K
1(n-1),I
1/I
o)。f是低通滤波函数,修正校准系数K
1的过程具体可参照之前实施例的介绍。
343. The processor 130 determines whether I o is less than I max . If I o <I max , then perform step 344, if I o is not greater than I max , then perform step 347. 344, determine whether I 1 is greater than I min . If I 1 >I min , go to step 345, and if I 1 is not greater than I min , go to step 346. 345, the processor 130 corrects the calibration coefficient K 1 , K 1 =K 1n =f(K 1(n-1 ) , I 1 /I o ). f is a low-pass filter function, and the process of correcting the calibration coefficient K 1 can refer to the introduction of the previous embodiment.
346、处理器130设置I=I
o。347、处理器130设置I=I
1×K
1。348、处理器130确定电池放电通路上的电流为I。进一步地,处理器130可以根据电池放电通路上的电流I确定电池120的剩余电量,也可以估算出于与剩余电量对应的用于测量电流的设备设备100可以继续使用的时长。
346, the processor 130 set I = I o. 347. The processor 130 sets I=I 1 ×K 1 . 348. The processor 130 determines that the current on the battery discharge path is I. Further, the processor 130 may determine the remaining power of the battery 120 according to the current I on the battery discharge path, and may also estimate the length of time that the device 100 for current measurement corresponding to the remaining power can continue to be used.
本申请实施例提供的用于测量电流的装置中R
1小于R
o,若当前采样周期中对精密电阻测量得到的电流I
o位于(I
min,I
max)内,则将I
o作为当前采样周期电池放电通路的电流I。若I
o≥I
max,则对当前采样周期中对电阻R
1测量得到的电流进行校准,将校准后的电流值作为当前采样周期流经电池放电通路的电流I,由于大于I
max的电流可以通过对I
1进行校准得到,所以采用该实施例拓展了库仑计测量电流的范围。
In the device for measuring current provided by the embodiment of the application, R 1 is less than R o . If the current I o obtained by measuring the precision resistance in the current sampling period is within (I min , I max ), then I o is taken as the current sample Current I in the discharge path of the cycle battery. If I o ≥ I max , calibrate the current measured by the resistance R 1 in the current sampling period, and use the calibrated current value as the current I flowing through the battery discharge path in the current sampling period. Since the current greater than I max can be It is obtained by calibrating I 1 , so this embodiment is used to expand the range of the current measured by the coulometer.
请参阅图2A,图2A是用于测量电流的设备200的结构示意图。用于测量电流的设备200包括:用于测量电流的装置210、电池220、和处理器230。该实施例用于往下拓展库仑计电流测量范围。在该实施例中,用于测量电流的装置210包括:库仑计211、切换单元212、精密电阻支路213和寄生电阻214和215,精密电阻213的电阻为R
o,寄生电阻214的电阻为R
1,寄生电阻215的电阻为R
2。R
2>R
1>R
o,精密电阻支路213和寄生电阻214 和215在电池放电通路中串联。不同于图1A,图2A中的切换单元212内的两个开关变为单刀三掷开关,以实现在精密电阻支路213和寄生电阻214和215之间的切换。
Please refer to FIG. 2A. FIG. 2A is a schematic structural diagram of a device 200 for measuring current. The device 200 for measuring current includes a device 210 for measuring current, a battery 220, and a processor 230. This embodiment is used to expand the current measurement range of the coulomb counter. In this embodiment, the apparatus 210 for measuring current comprising: a coulomb counter 211, the switching unit 212, branch 213 and precision resistor 214 and the parasitic resistances 215, 213 are precision resistors of resistance R o, the parasitic resistance of the resistor 214 is R 1 , the resistance of the parasitic resistance 215 is R 2 . R 2 >R 1 >R o , the precision resistance branch 213 and the parasitic resistances 214 and 215 are connected in series in the battery discharge path. Different from FIG. 1A, the two switches in the switching unit 212 in FIG. 2A become single-pole three-throw switches to realize the switching between the precision resistance branch 213 and the parasitic resistances 214 and 215.
在用于检测电流的设备200在测量电流时,可以采用图2B所示的控制流程。具体地,包括如下步骤:241、处理器130触发电流采样周期开始。每个采样周期,库仑计分别测量流经R
1、R
2、和R
o的电流。242、处理器130获取库仑计测量流经精密电阻R
o的电流I
o,获取库仑计测量流经寄生电阻R
1的电流I
1,以及获取库仑计测量流经寄生电阻R
1的电流I
1。
When the device 200 for detecting current is measuring current, the control process shown in FIG. 2B may be used. Specifically, it includes the following steps: 241. The processor 130 triggers the start of the current sampling period. In each sampling period, the coulometer measures the currents flowing through R 1 , R 2 , and Ro respectively. 242, the processor 130 acquires coulometer measurement precision resistor R O flowing current I o, acquiring coulomb flowing through the parasitic resistance R measured current I 1 1, and acquiring coulomb flowing through the parasitic resistance R measured current I 1 of 1 .
243、处理器130判断I
o是否大于I
min。库仑计测量精密电阻R
o的电流时,在额定精度下电流测量范围为(I
min,I
max)。若I
o>I
min,则执行步骤244,若I
o不大于I
min,则执行步骤248。244、处理器130判断I
1是否小于I
max。若是,则执行步骤245,若否,则执行步骤246.245、处理器130修正校准系数K
1,K
1=K
1n=f(K
1(n-1),I
1/I
o),具体可参照之前描述。
243. The processor 130 determines whether I o is greater than I min . When the coulometer current measuring precision resistor R o, the accuracy of the current at nominal measurement range (I min, I max). If I o > I min , then step 244 is executed. If I o is not greater than I min , then step 248 is executed. 244. The processor 130 determines whether I 1 is less than I max . If yes, go to step 245, if not, go to step 246.245, the processor 130 corrects the calibration coefficient K 1 , K 1 =K 1n =f(K 1(n-1) , I 1 /I o ), refer to Described before.
246、处理器130设置I=I
o。248、处理器130判断I
1是否大于I
min。若I
1>I
min,则执行步骤2481,若I
1不大于I
min,则执行步骤2484。处理器130设置I=I
2/(K
1×K
2)。2481、处理器130判断I
2是否小于I
max。若I
2<I
max,则执行步骤2482,若I
1不小于I
max,则执行步骤2483。2482、处理器130修正校准系数K
2。K
2=K
2m=f(K
2(m-1),I
2/I
1),f为低通滤波函数。
246. The processor 130 sets I=I o . 248. The processor 130 determines whether I 1 is greater than I min . If I 1 >I min , then step 2481 is executed, and if I 1 is not greater than I min , step 2484 is executed. The processor 130 sets I=I 2 /(K 1 ×K 2 ). 2481. The processor 130 determines whether I 2 is less than I max . If I 2 <I max , then perform step 2482, and if I 1 is not less than I max , then perform step 2483. 2482. The processor 130 corrects the calibration coefficient K 2 . K 2 =K 2m =f(K 2(m-1) , I 2 /I 1 ), where f is a low-pass filter function.
2483、处理器130设置I=I
1/K
1其中。247、处理器130确定电池放电通道上的电流为I,为最终确定的结果。具体地,处理器230根据电池放电通路的电流I可以确定电池220的剩余电量,也可以估算出于与剩余电量对应的设备200可以继续使用的时长。本申请实施例提供的用于测量电流的装置中设置了精密电阻,和大于精密电阻的电阻R1和R2,通过对不同的电阻进行测量,可以实现对较小电流进行检测。
2483. The processor 130 sets I=I 1 /K 1 where. 247. The processor 130 determines that the current on the battery discharge channel is I, which is the final determined result. Specifically, the processor 230 can determine the remaining power of the battery 220 according to the current I of the battery discharge path, and can also estimate the duration that the device 200 corresponding to the remaining power can continue to be used. The device for measuring current provided by the embodiment of the present application is provided with a precision resistor, and resistors R1 and R2 that are larger than the precision resistor. By measuring different resistors, it is possible to detect a small current.
在一些可能的实施方式中,电池的放电通路可以是接收放电的系统的主回路,若电池主回路中串联的电阻中包括多个阻值大于精密电阻R
o的电阻,比如若有a个电阻的阻值大于Ro,a为大于1或者等于1的整数,则电阻值大于精密电阻的a个电阻的阻值由大到小依次为:R
a、R
(a-1)、…、R
1,则R
i大于R
(i-1),并且(R
i/R
(i-1))至少小于(I
max/I
min),所述i为整数,1≤i≤a。以图2A所示实施例为例,其中,a=2,R
2>R
1>R
o,(R
2/R
1)至少小于(I
max/I
min)。
In some possible implementations, the discharge path of the battery may be the main circuit of the system that receives the discharge. If the resistor connected in series in the main circuit of the battery includes multiple resistors with a resistance greater than the precision resistor Ro , for example, if there is a resistor resistance Ro of greater than, or equal to a is an integer greater than 1 to 1, is greater than the resistance value of the resistance of the descending precision resistors of a resistor of the order of: R a, R (a- 1), ..., R 1 , Then R i is greater than R (i-1) and (R i /R (i-1) ) is at least less than (I max /I min ), the i is an integer, and 1≤i≤a. Take the embodiment shown in FIG. 2A as an example, where a=2, R 2 >R 1 >R o , and (R 2 /R 1 ) is at least less than (I max /I min ).
以上实施例中,用于测量电流的装置中设置的多个电阻,要么是大于精密电阻的电阻,要么是小于精密电阻的电阻,在图4所示实施例中,既设置了大于精密电阻R
o的电阻R
1和R
2,又设置了小于精密电阻R
o的电阻R
1'和R
2',根据前面实施例的描述可知,通过切换单元412切换,可以使库仑计411分别与R
1、R
2、R
o、R
1'和R
2'耦合,分别测量流经各电阻的电流。当测量R
o的电流I
o位于(I
min,I
max),则处理器430设置I=I
o,若I
o≤I
min则用对R
1或R
2的测量电流进行校正。若I
o≥I
max则用对R
1'和R
2'的测量电流进行校正。具体地校正过程可以参考前面实施例中的描述,这里不再赘述,校准的基本原理在各个实施例中是类似的。
In the above embodiment, the multiple resistors set in the device for measuring current are either larger than the precision resistance or smaller than the precision resistance. In the embodiment shown in FIG. 4, both are set larger than the precision resistance R o the resistors R 1 and R 2, and provided less than the precision resistor R & lt o resistor R 1 'and R 2', the description of the previous embodiments can be seen, through the switching unit to switch 412, can coulomb counter 411, respectively, for R 1 , R 2, R o, R 1 ' and R 2' is coupled, respectively measuring current flowing through each resistor. When the current I o of the measurement R o is located at (I min , I max ), the processor 430 sets I=I o , and if I o ≤ I min , the measurement current of R 1 or R 2 is used for correction. If I o ≥I max of the '2 and R' is the measured current is corrected by R 1. For the specific calibration process, reference may be made to the description in the previous embodiment, which will not be repeated here. The basic principle of calibration is similar in each embodiment.
在一些可能的实施方式中,若电池主回路中串联的电阻中包括多个阻值小于精密电阻R
o的电阻,比如若有b个电阻的阻值小于R
o,b为大于1或者等于1的整数,则电阻值小于精密电阻支路的b个电阻的阻值由小到大依次为:R
b、R
(b-1)、…、R
1,则R
j小于R
(j-1),并且R
(j-1)/R
j至少小于(I
max/I
min),所述i为整数,1≤j≤b;处理器对电阻值小于精密电阻的b 个电阻分别设置一个校准系数,电阻R
j对应的校准系数K
j的初始值K
j=R
(j-1)/R
j,所述j为整数,1≤j≤b;比如K
1=R
o/R
1。在任一采样周期中,若I
min≤I
j≤I
max,I
min≤I
(j-1)≤I
max,则对电阻R
j的校准系数K
j进行修正,修正后的K
j=f(修正前的K
j,I
(j-1)/I
j);其中,f是使K
j平缓变化的低通滤波函数,电阻R
j对应的电流为I
j,电阻R
(j-1)对应的电流为I
(j-1)。在当前采样周期中,若I
j≤I
max,则当前采样周期流经所述电池主回路的电流I=I
j×(K
j×K
(j-1)×…×K
1)。
In some possible implementations, if the resistors connected in series in the main circuit of the battery include multiple resistors with a resistance value less than the precision resistor Ro , for example, if there are b resistors with a resistance value less than Ro , b is greater than 1 or equal to 1. The resistance value of the b resistors of the precision resistor branch is as follows: R b , R (b-1) ,..., R 1 , then R j is less than R (j-1) , And R (j-1) /R j is at least less than (I max /I min ), the i is an integer, 1≤j≤b; the processor sets a calibration coefficient for each of the b resistors whose resistance value is less than the precision resistance , the initial value corresponding to the resistance R j of the calibration factor K j K j = R (j-1 ) / R j, the j is an integer, 1≤j≤b; such as K 1 = R o / R 1 . In any sampling period, if I min ≤I j ≤I max , I min ≤I (j-1) ≤I max , then the calibration coefficient K j of the resistance R j is corrected, and the corrected K j =f( K j before correction, I (j-1) /I j ); where f is a low-pass filter function that smoothly changes K j , the current corresponding to resistance R j is I j , and resistance R (j-1) corresponds to The current of is I (j-1) . In the current sampling period, if I j ≤ I max , then the current I j × (K j × K (j-1) ×... × K 1 ) flowing through the battery main circuit in the current sampling period.
上述主要从装置侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,为了实现上述控制流程,装置内包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,处理器所做的控制流程的功能能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solution of the embodiment of the present application from the perspective of the execution process on the device side. It can be understood that, in order to implement the above control process, the device includes hardware structures and/or software modules corresponding to various functions. Those skilled in the art should easily realize that the functions of the control flow performed by the processor can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据上述示例对装置或设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对各组成部分的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。例如,以上装置可以位于同一个芯片或者包括多个芯片的芯片组中。该装置可以与处理器位于同一个芯片内。或者,装置和处理器位于不同芯片内,即处理器是位于一个独立芯片中。例如,处理器是位于一个独立芯片中时,装置可以使一个电源管理单元(PMU)芯片。可选地,用于执行测量的多个串联电阻和切换单元中的至少一个可以位于芯片中,也可以位于芯片外,即多个串联电阻和切换单元中的至少一个可以使分离器件,位于电路板上,本实施例对此不限定。The embodiments of the present application may divide the device or device into functional units according to the above examples. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of each component in the embodiment of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation. For example, the above devices may be located in the same chip or a chipset including multiple chips. The device can be located on the same chip as the processor. Or, the device and the processor are located on different chips, that is, the processor is located on a separate chip. For example, when the processor is located in an independent chip, the device can be a power management unit (PMU) chip. Optionally, at least one of the plurality of series resistances and the switching unit used to perform the measurement may be located in the chip or outside the chip, that is, at least one of the plurality of series resistances and the switching unit may be a separate device located in the circuit On the board, this embodiment is not limited.
示例性地,以上处理器可以选择性地运行软件来工作,该软件可以存储于一个计算机可读存储介质中,其中包括以所述软件形式存在的计算机程序,该计算机程序包括大量计算机代码。处理器通过运行所述计算机程序控制切换单元切换所述库仑计与所述多个串联电阻的所述耦合关系,并接收库仑计任一耦合方式测得的电流值。处理器通过运行所述计算机程序进一步从多个耦合方式下得到的多个电流值中确定最终测量结果,还可选择性地对电流值进行校准,校准的具体过程参照之前实施例的描述。该处理器可包括但不限于中央处理单元、微控制器、微处理器、数字信号处理器、或人工智能处理器等。Exemplarily, the above processor may selectively run software to work. The software may be stored in a computer-readable storage medium, including a computer program in the form of the software, and the computer program includes a large amount of computer code. The processor controls the switching unit to switch the coupling relationship between the coulomb counter and the plurality of series resistors by running the computer program, and receives the current value measured by any coupling mode of the coulomb counter. The processor further determines the final measurement result from the multiple current values obtained in multiple coupling modes by running the computer program, and can also selectively calibrate the current value. For the specific calibration process, refer to the description of the previous embodiment. The processor may include, but is not limited to, a central processing unit, a microcontroller, a microprocessor, a digital signal processor, or an artificial intelligence processor.
本申请实施例还提供一种计算机可读存储介质,其中,该计算机可读存储介质存储有计算机程序,计算机程序包括程序指令,程序指令当被处理利器执行时使处理器执行如上述流程方法实施例中记载的任何一种用于测量电流的流程方法的部分或全部步骤。该计算机可读存储介质可以使存储器,可以包括:闪存盘、只读存储器、随机存取器、磁盘或光盘等。The embodiments of the present application also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions, when executed by a processing tool, cause the processor to execute the above-mentioned process method implementation Part or all of the steps of any process method for measuring current described in the example. The computer-readable storage medium may be a memory, which may include a flash disk, a read-only memory, a random access device, a magnetic disk or an optical disk, and the like.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的计算机可读存储介质,该计算机程序使得计算机执行如上述流程方法实施例中记载的任何一种测量电流的流程方法的部分或全部步骤。The embodiments of the present application also provide a computer program product, the computer program product includes a computer-readable storage medium storing a computer program, and the computer program causes a computer to execute any of the current measurement methods described in the above-mentioned process method embodiment. Part or all of the steps of the process method.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分, 可以参见其他实施例的相关描述。在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或连接可以是直接相连或通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the foregoing embodiments, the description of each embodiment has its own focus. For a part that is not described in detail in an embodiment, reference may be made to related descriptions of other embodiments. In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or connection may be direct connection or indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only a preferred embodiment of the present invention. Of course, it cannot be used to limit the scope of rights of the present invention. A person of ordinary skill in the art can understand all or part of the process of implementing the foregoing embodiments and follow the rights of the present invention. The equivalent changes required are still within the scope of the invention.
Claims (18)
- 一种用于测量电流的装置,其特征在于,包括:多个串联电阻、切换单元、和库仑计;A device for measuring current, which is characterized by comprising: a plurality of series resistors, a switching unit, and a coulomb counter;所述多个串联电阻位于电池的放电通路上,所述多个串联电阻中的至少一个第一电阻的值不同于第二电阻的值;The plurality of series resistors are located on the discharge path of the battery, and the value of at least one first resistor of the plurality of series resistors is different from the value of the second resistor;所述切换单元,用于切换所述库仑计与所述多个串联电阻的耦合关系,以形成多种耦合方式;在任一耦合方式下,所述多个串联电阻中的至少一个测量目标电阻被耦合至所述库仑计;The switching unit is configured to switch the coupling relationship between the coulomb counter and the plurality of series resistances to form a plurality of coupling modes; in any coupling mode, at least one of the plurality of series resistances is measured by the target resistance Coupled to the coulomb counter;所述库仑计,用于在任一耦合方式下利用所述至少一个测量目标电阻测量所述放电通路上的电流值。The coulomb counter is used to measure the current value on the discharge path by using the at least one measurement target resistance in any coupling mode.
- 根据权利要求1所述的装置,其特征在于,所述至少一个第一电阻包括第三电阻和第四电阻,所述第三电阻的值与所述第四电阻的值不同。The device according to claim 1, wherein the at least one first resistor includes a third resistor and a fourth resistor, and the value of the third resistor is different from the value of the fourth resistor.
- 根据权利要求2所述的装置,其特征在于,所述第三电阻的值大于所述第二电阻的值,所述第四电阻的值小于所述第二电阻的值。3. The device according to claim 2, wherein the value of the third resistor is greater than the value of the second resistor, and the value of the fourth resistor is less than the value of the second resistor.
- 根据权利要求1-3中任一项所述的装置,其特征在于,所述至少一个第一电阻中的任一个电阻包括寄生电阻。The device according to any one of claims 1 to 3, wherein any one of the at least one first resistance includes a parasitic resistance.
- 根据权利要求1-4中任一项所述的装置,其特征在于,所述至少一个测量目标电阻包括所述至少一个第一电阻中任一个或所述第一电阻。The device according to any one of claims 1 to 4, wherein the at least one measurement target resistance comprises any one of the at least one first resistance or the first resistance.
- 根据权利要求1-4中任一项所述的装置,其特征在于,所述至少一个测量目标电阻包括所述至少一个第一电阻中任一个与所述第二电阻的组合。The device according to any one of claims 1 to 4, wherein the at least one measurement target resistance comprises a combination of any one of the at least one first resistance and the second resistance.
- 一种用于测量电流的设备,其特征在于,包括如权利要求1-6中任一项所述装置以及处理器;A device for measuring current, characterized by comprising the device and a processor according to any one of claims 1-6;所述处理器,用于控制所述切换单元切换所述库仑计与所述多个串联电阻的所述耦合关系。The processor is configured to control the switching unit to switch the coupling relationship between the coulomb counter and the plurality of series resistors.
- 根据权利要求7所述的设备,其特征在于,所述处理器还用于从所述装置获取与所述多种耦合方式中每种耦合方式对应的电流值。8. The device according to claim 7, wherein the processor is further configured to obtain a current value corresponding to each of the multiple coupling modes from the device.
- 根据权利要求8所述的设备,其特征在于,所述处理器还用于对至少一种耦合方式对应的电流值做校准。The device according to claim 8, wherein the processor is further configured to calibrate the current value corresponding to at least one coupling mode.
- 根据权利要求9所述的设备,其特征在于,所述多种耦合方式包括第一耦合方式和第二耦合方式;在所述第一耦合方式下,所述至少一个测量目标电阻具有第一电阻值,所述第一耦合方式对应的电流值是第一电流值;在所述第二耦合方式下,所述至少一个测量目标电阻具有第二电阻值,所述第一电阻值小于所述第二电阻值,所述第二耦合方式对应的电流值是第二电流值;The device according to claim 9, wherein the multiple coupling modes include a first coupling mode and a second coupling mode; in the first coupling mode, the at least one measurement target resistance has a first resistance Value, the current value corresponding to the first coupling mode is the first current value; in the second coupling mode, the at least one measurement target resistance has a second resistance value, and the first resistance value is smaller than the first resistance value Two resistance values, the current value corresponding to the second coupling mode is the second current value;所述处理器还用于当确定所述第一电流值小于或等于第一阈值,则利用校准参数对第二电流值做校准以得到测量结果。The processor is further configured to, when it is determined that the first current value is less than or equal to the first threshold value, use calibration parameters to calibrate the second current value to obtain a measurement result.
- 根据权利要求10所述的设备,其特征在于,所述处理器还用于当确定所述第一电流值大于所述第一阈值,将所述第一电流值作为测量结果。The device according to claim 10, wherein the processor is further configured to use the first current value as a measurement result when it is determined that the first current value is greater than the first threshold value.
- 根据权利要求10或11所述的设备,其特征在于,所述处理器还用于当确定所述第一电流值大于所述第一阈值且所述第二电流值小于所述第二阈值,则修正所述校准参数,所述第二阈值大于所述第一阈值。The device according to claim 10 or 11, wherein the processor is further configured to, when it is determined that the first current value is greater than the first threshold value and the second current value is less than the second threshold value, Then, the calibration parameter is corrected, and the second threshold is greater than the first threshold.
- 根据权利要求9所述的设备,其特征在于,所述多种耦合方式包括第三耦合方式和第四耦合方式;在所述第三耦合方式下,所述至少一个测量目标电阻具有第三电阻值,所述第三耦合方式对应的电流值是第三电流值;在所述第四耦合方式下,所述至少一个测量目标电阻具有第四电阻值,所述第三电阻值大于所述第四电阻值,所述第四耦合方式对应的电流值是第四电流值;The device according to claim 9, wherein the multiple coupling modes include a third coupling mode and a fourth coupling mode; in the third coupling mode, the at least one measurement target resistance has a third resistance Value, the current value corresponding to the third coupling mode is a third current value; in the fourth coupling mode, the at least one measurement target resistance has a fourth resistance value, and the third resistance value is greater than the first Four resistance values, the current value corresponding to the fourth coupling mode is the fourth current value;所述处理器还用于当确定所述第三电流值大于或等于第二阈值,则利用校准参数对第四电流值做校准以得到测量结果。The processor is further configured to, when it is determined that the third current value is greater than or equal to a second threshold value, calibrate the fourth current value by using calibration parameters to obtain a measurement result.
- 根据权利要求13所述的设备,其特征在于,所述处理器还用于当确定所述第三电流值小于所述第二阈值,将所述第三电流值作为测量结果。The device according to claim 13, wherein the processor is further configured to use the third current value as a measurement result when it is determined that the third current value is less than the second threshold value.
- 根据权利要求13或14所述的设备,其特征在于,所述处理器还用于当确定所述第三电流值小于所述第二阈值且所述第四电流值大于所述第一阈值,则修正所述校准参数,所述第二阈值大于所述第一阈值。The device according to claim 13 or 14, wherein the processor is further configured to: when it is determined that the third current value is less than the second threshold value and the fourth current value is greater than the first threshold value, Then, the calibration parameter is corrected, and the second threshold is greater than the first threshold.
- 一种用于测量电流的方法,其特征在于,应用于包括:多个串联电阻、切换单元、库仑计、和处理器的用于测量电流的设备;其中,所述多个串联电阻位于电池的放电通路上,所述多个串联电阻中的至少一个第一电阻的值不同于第二电阻的值;所述方法包括:A method for measuring current, characterized in that it is applied to a device for measuring current that includes a plurality of series resistors, a switching unit, a coulomb counter, and a processor; wherein, the plurality of series resistors are located in the battery On the discharge path, the value of at least one first resistor of the plurality of series resistors is different from the value of the second resistor; the method includes:所述处理器控制所述切换单元切换所述库仑计与所述多个串联电阻的所述耦合关系;以形成多种耦合方式;在任一耦合方式下,所述多个串联电阻中的至少一个测量目标电阻被耦合至所述库仑计;The processor controls the switching unit to switch the coupling relationship between the coulomb counter and the plurality of series resistances; to form a plurality of coupling modes; in any coupling mode, at least one of the plurality of series resistances The measurement target resistance is coupled to the coulomb counter;所述处理器获取所述库仑计在任一耦合方式下利用所述至少一个测量目标电阻测量所述放电通路上的电流值。The processor obtains the current value on the discharge path by the coulomb counter using the at least one measurement target resistance in any coupling mode.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求16所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause the processor to execute The method described in claim 16.
- 一种计算机程序产品,其特征在,所述计算机程序产品包括存储了计算机程序的计算机可读存储介质,该计算机程序使得计算机执行如权利要求16所述的方法的部分或全部步骤。A computer program product, characterized in that the computer program product includes a computer-readable storage medium storing a computer program, the computer program causing a computer to execute part or all of the steps of the method according to claim 16.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201980006469.7A CN111771129B (en) | 2019-01-31 | 2019-01-31 | Device, method and equipment for measuring current |
PCT/CN2019/074295 WO2020155068A1 (en) | 2019-01-31 | 2019-01-31 | Current measuring device, method, and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/074295 WO2020155068A1 (en) | 2019-01-31 | 2019-01-31 | Current measuring device, method, and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020155068A1 true WO2020155068A1 (en) | 2020-08-06 |
Family
ID=71841492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/074295 WO2020155068A1 (en) | 2019-01-31 | 2019-01-31 | Current measuring device, method, and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111771129B (en) |
WO (1) | WO2020155068A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113533844A (en) * | 2021-08-17 | 2021-10-22 | 南昌黑鲨科技有限公司 | Electric quantity meter circuit, control method, electric quantity meter and terminal |
CN113922445A (en) * | 2021-09-24 | 2022-01-11 | 东莞新能安科技有限公司 | Current acquisition circuit and method, battery management system, battery pack and electric equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117491888A (en) * | 2022-07-25 | 2024-02-02 | 中兴通讯股份有限公司 | Resistance value calibration method, calibration circuit, terminal device, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2045856U (en) * | 1988-05-18 | 1989-10-11 | 严卫民 | Intelligent direct-current voltameter |
CN103207317A (en) * | 2013-03-25 | 2013-07-17 | 圣邦微电子(北京)股份有限公司 | Voltage change collecting circuit of voltmeter applied to battery |
CN107843842A (en) * | 2017-09-25 | 2018-03-27 | 中派科技(深圳)有限责任公司 | Battery status monitoring system and method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7957116B2 (en) * | 2006-10-13 | 2011-06-07 | Advanced Analogic Technologies, Inc. | System and method for detection of multiple current limits |
CN101839936B (en) * | 2009-03-19 | 2013-09-25 | 北京普源精电科技有限公司 | Current measurement device |
CN102466781B (en) * | 2010-11-01 | 2014-08-13 | 昶懋国际股份有限公司 | High-accuracy storage battery detection device |
CN102539869A (en) * | 2012-02-23 | 2012-07-04 | 华为技术有限公司 | Current detecting device and method |
EP2821799B1 (en) * | 2013-07-05 | 2019-02-13 | Dialog Semiconductor GmbH | Highly accurate current measurement |
CN206906458U (en) * | 2017-04-25 | 2018-01-19 | 深圳市凌阳电子有限公司 | A kind of I/O expansion voltage detection module |
CN108819566B (en) * | 2018-08-03 | 2020-02-04 | 京东方科技集团股份有限公司 | Intelligent pen and intelligent pen control method |
-
2019
- 2019-01-31 WO PCT/CN2019/074295 patent/WO2020155068A1/en active Application Filing
- 2019-01-31 CN CN201980006469.7A patent/CN111771129B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2045856U (en) * | 1988-05-18 | 1989-10-11 | 严卫民 | Intelligent direct-current voltameter |
CN103207317A (en) * | 2013-03-25 | 2013-07-17 | 圣邦微电子(北京)股份有限公司 | Voltage change collecting circuit of voltmeter applied to battery |
CN107843842A (en) * | 2017-09-25 | 2018-03-27 | 中派科技(深圳)有限责任公司 | Battery status monitoring system and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113533844A (en) * | 2021-08-17 | 2021-10-22 | 南昌黑鲨科技有限公司 | Electric quantity meter circuit, control method, electric quantity meter and terminal |
CN113922445A (en) * | 2021-09-24 | 2022-01-11 | 东莞新能安科技有限公司 | Current acquisition circuit and method, battery management system, battery pack and electric equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111771129B (en) | 2022-04-22 |
CN111771129A (en) | 2020-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020155068A1 (en) | Current measuring device, method, and apparatus | |
JP7173642B2 (en) | Insulation resistance measuring device and method | |
CN105259528B (en) | A kind of the internal calibration circuit and calibration method of microwave power probe | |
CN109828173B (en) | Load detection system and load detection method thereof | |
CN107181300B (en) | Charge protector, the method and apparatus for calibrating charging equipment | |
CN109327258A (en) | Calibration method, device and the readable storage medium storing program for executing of optical module receiving end optical power | |
US10686433B1 (en) | Circuit operating speed detecting circuit | |
CN211927125U (en) | Temperature measurement circuit, temperature measurement and light measurement circuit, chip, module and electronic equipment | |
JP2011138504A (en) | Signal monitoring system | |
CN115598410B (en) | Power consumption acquisition system and method | |
CN114499521A (en) | Signal calibration method and device, computer equipment and storage medium | |
JP6604725B2 (en) | Test measurement system and equalization filter calculation method | |
CN108475982A (en) | A kind of switching power circuit and switch power supply current detection method | |
CN109148981B (en) | Method and device for determining open-circuit voltage of battery, storage medium and electronic equipment | |
US10535990B2 (en) | Power supply device, detection circuit and power supply method thereof | |
CN112557732B (en) | Magnitude tracing method and system of impulse current measuring device based on induction coil | |
CN113866504A (en) | Detection circuit, detection device and detection method for insulation impedance | |
KR20220027815A (en) | Temperature measuring circuit, temperature and optical measuring circuit, temperature measuring method and temperature and optical measuring method | |
CN111026232A (en) | Clock calibration method, chip and electronic equipment | |
JP2008203116A (en) | Electrical quantity integrating device | |
JP2014228350A (en) | Measuring device | |
JP2001201524A (en) | Ratio measuring device of electric signal, electric element measuring device, calibration method of electric element measuring device and ratio measuring method of electric signal | |
WO2022242019A1 (en) | Pin state configuration circuit and configuration method, and electronic device | |
CN115951756A (en) | Clock signal calibration device and method, electronic device, and storage medium | |
CN107561147B (en) | Detection circuit, calibration method and device for current of glucometer |
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: 19912449 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19912449 Country of ref document: EP Kind code of ref document: A1 |