CN108966670B - Electric meter and current acquisition calibration circuit and calibration method thereof - Google Patents

Electric meter and current acquisition calibration circuit and calibration method thereof Download PDF

Info

Publication number
CN108966670B
CN108966670B CN201780010235.0A CN201780010235A CN108966670B CN 108966670 B CN108966670 B CN 108966670B CN 201780010235 A CN201780010235 A CN 201780010235A CN 108966670 B CN108966670 B CN 108966670B
Authority
CN
China
Prior art keywords
calibration
switch
battery
measuring resistor
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201780010235.0A
Other languages
Chinese (zh)
Other versions
CN108966670A (en
Inventor
宋汉学
林俊超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chenxin Technology Co ltd
Original Assignee
Leadcore Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Leadcore Technology Co Ltd filed Critical Leadcore Technology Co Ltd
Publication of CN108966670A publication Critical patent/CN108966670A/en
Application granted granted Critical
Publication of CN108966670B publication Critical patent/CN108966670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Current Or Voltage (AREA)
  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)

Abstract

The utility model provides an electricity meter and current acquisition calibration circuit and calibration method thereof, electricity meter (30) includes measuring resistance (Rsense), voltage sample thief and current acquisition calibration circuit, and the input of this voltage sample thief is connected to this measuring resistance (Rsense) both ends, and this current acquisition calibration circuit includes Battery (BAT), first switch (SW1), second switch (SW2), calibration enable circuit (41), current source (42) and controller (43), and second switch (SW2), current source (42) and Battery (BAT), measuring resistance (Rsense) are parallelly connected; wherein the calibration enable circuit (41) generates a second state signal and outputs the second state signal to the second switch (SW 2); when the second switch (SW2) is closed, the current source (42), the Battery (BAT) and the measuring resistor (Rsense) form a loop, and the controller (43) calculates the calibration resistance value of the measuring resistor (Rsense) according to the current value of the current source (42) and the sampling value of the voltage sampler; when the first switch (SW1) is closed, the Battery (BAT), the measuring resistor (Rsense) and the load (RL) form a loop, and the controller (43) adopts the calibration resistance value to calculate the electric quantity.

Description

Electric meter and current acquisition calibration circuit and calibration method thereof
Technical Field
The present invention relates to an electricity meter, and more particularly, to a current collection calibration circuit and a calibration method for an electricity meter.
Background
Fig. 1 is an electrical schematic diagram of a conventional electricity meter. Referring to fig. 1, the fuel gauge includes a battery BAT, a switch SW, a resistor Rsense, an amplifier 11, analog-to-digital converters (ADCs) 12 and 13, an accumulator 14, and a time base circuit 15. The acquisition of the current is calculated by detecting the voltage on the resistor Rsense. The resistance Rsense is a measuring resistance, and is a current detection resistance of the order of m Ω. Resistor RL is the system load. The battery BAT discharges the system load RL by turning on the switch SW. When the system is working normally, the current loop includes battery BAT, switch SW, and resistor Rsense and RL. Assuming that the loop current is I0The instantaneous voltage drop across the resistor Rsense is vs (t) I0(t) × Rsense, the electricity meter 10 continuously detects the voltage difference Vs across the resistor Rsense, converts it into a digital quantity Current through the amplifier 11 and the ADC13, and then accumulates, and the unit of the Accumulated Current is Vh (volt-hour). Accumulating the quantized Vs is equivalent to integrating them
Figure GDA0001756678660000011
The discharge capacity can therefore be expressed as:
Figure GDA0001756678660000012
as can be seen from the above equation, the deviation of the resistance Rsense causes the deviation of the power calculation.
Fig. 2 is a welded structure of the resistor in the electricity meter shown in fig. 1. As shown in fig. 2, when a resistor Rsense having a resistance of several tens of milliohms is actually used, a welding resistance Rsolder is introduced during welding. The value of Rsolder sometimes reaches the milliohm level and therefore the weld resistance greatly increases the measurement error. Therefore, the conventional electricity meter has a problem that the current detection result has large deviation. In addition, the resistor itself may have manufacturing variations, which may also cause variations in the current measurement results.
Disclosure of Invention
The invention aims to solve the technical problem of providing a current acquisition calibration circuit in an electricity meter, which can be used for adjusting the error of a measuring resistor, thereby improving the current acquisition precision of the electricity meter.
In order to solve the technical problem, the invention provides a current acquisition calibration circuit in an electricity meter, which comprises the electricity meter, a measuring resistor, a voltage sampler, an electricity accumulator and a current acquisition calibration circuit, wherein the input end of the voltage sampler is connected to two ends of the measuring resistor, the output end of the voltage sampler is connected with the electricity accumulator, the current acquisition calibration circuit comprises a battery, a first switch, a second switch, a calibration enabling circuit, a current source and a controller, the battery is connected with the measuring resistor in series and is connected with a load in parallel through the first switch, and the first switch is controlled by a first state signal to be switched on and off; the second switch, the current source, the battery and the measuring resistor are connected in parallel; the calibration enabling circuit generates a second state signal and outputs the second state signal to the second switch, and the second switch is controlled by the second state signal to be opened and closed; when the second switch is closed, the current source, the battery and the measuring resistor form a loop, and the controller calculates the calibration resistance value of the measuring resistor according to the current value of the current source and the sampling value of the voltage sampler; when the first switch is closed, the battery, the measuring resistor and the load form a loop, and the controller adopts the calibration resistance value to calculate the electric quantity.
In an embodiment of the invention, the first status signal is a power-on status signal of a device in which the fuel gauge is located.
In an embodiment of the invention, the calibration enabling circuit generates the second status signal according to a power-off status signal of a device in which the fuel gauge is located.
In an embodiment of the invention, the calibration enabling circuit generates the second state signal according to a shutdown state signal of a device where the fuel gauge is located, and one of an on-bit signal and a power supply stabilization signal of the battery.
In an embodiment of the invention, the calibration enable circuit further detects a calibration flag and generates the second state signal when the calibration flag is set.
In an embodiment of the invention, the current collection calibration circuit further includes a register for storing the calibration resistance value of the measuring resistor, and the register is connected to the controller.
The invention also provides a current acquisition and calibration circuit of the electricity meter, which comprises a battery, a measuring resistor and a voltage sampler, wherein the battery is connected with the measuring resistor in series, and the input end of the voltage sampler is connected with the two ends of the measuring resistor; the calibration enabling circuit generates a second state signal and outputs the second state signal to the second switch, and the second switch is controlled by the second state signal to be opened and closed; when the second switch is closed, the current source, the battery and the measuring resistor form a loop, and the controller calculates the calibration resistance value of the measuring resistor according to the current value of the current source and the sampling value of the voltage sampler.
In an embodiment of the invention, the calibration enabling circuit generates the second status signal according to a power-off status signal of a device in which the fuel gauge is located.
In an embodiment of the invention, the calibration enabling circuit generates the second state signal according to a shutdown state signal of a device where the fuel gauge is located, and one of an on-bit signal and a power supply stabilization signal of the battery.
In an embodiment of the invention, the calibration enable circuit further detects a calibration flag and generates the second state signal when the calibration flag is not set.
In an embodiment of the invention, the current collection calibration circuit further includes a register for storing the calibration resistance value of the measuring resistor, and the register is connected to the controller.
The invention also provides a current acquisition and calibration method of the electricity meter, the electricity meter comprises a measuring resistor, a voltage sampler, an electricity accumulator and a current acquisition and calibration circuit, the input end of the voltage sampler is connected with the two ends of the measuring resistor, the output end of the voltage sampler is connected with the electricity accumulator, the first switch is controlled by a first state signal to be switched on and off, the current acquisition and calibration circuit comprises a battery, a first switch, a second switch and a current source, the battery is connected with the measuring resistor in series and is connected with a load in parallel through the first switch, and the second switch, the current source, the battery and the measuring resistor are connected in parallel; wherein the first switch is controlled to open and close by a first status signal and the second switch is controlled to open and close by a second status signal, the method comprising the steps of: providing the second state signal to close the second switch, wherein the current source, the battery and the measuring resistor form a loop; calculating a calibration resistance value of the measuring resistor according to the current value of the current source and the sampling value of the voltage sampler; and providing the first state signal to close the first switch, forming a loop by the battery, the measuring resistor and the load, and calculating the electric quantity by the controller by adopting the calibration resistance value.
In an embodiment of the invention, the first status signal is a power-on status signal of the fuel gauge.
In an embodiment of the invention, the second status signal is provided according to a power-off status signal of a device where the electricity meter is located.
In an embodiment of the invention, the second status signal is provided according to a shutdown status signal of a device where the electricity meter is located, and one of an on-bit signal and a power stabilization signal of the battery.
In an embodiment of the present invention, the method includes: after the calibration resistance value is obtained, a calibration flag is set, wherein the calibration flag is detected, and the second state signal is generated when the calibration flag is not set.
In an embodiment of the invention, when the calibration flag is not set, if the boot vector of the device where the fuel gauge is located is received, the second status signal is still provided, and the boot process is suspended.
According to the electricity meter and the current calibration circuit thereof, errors of the mounting and the resistor are eliminated by calibrating the actual value of the precision resistor after mounting, the calibration value is written into the register of the battery voltage domain, and the value is called to calculate the electricity quantity during normal operation, so that the calculation precision of the electricity meter is optimized. The current calibration method of the embodiment of the invention respectively ensures the time of calibration and the time of electric quantity calculation when the computer is started up through strict flow design, and ensures the accuracy of calibration and the accuracy of current calculation.
Drawings
The features and properties of the present invention are further described by the following examples and their drawings.
Fig. 1 is an electrical schematic diagram of a conventional electricity meter.
Fig. 2 is a welded structure of the resistance in the electricity meter shown in fig. 1.
Fig. 3 is an electrical schematic diagram of an electricity meter according to an embodiment of the present invention.
Fig. 4 is an electrical schematic diagram of an electricity meter according to another embodiment of the present invention.
Fig. 5 is an electrical schematic diagram of an electricity meter according to yet another embodiment of the present invention.
Fig. 6 is a flowchart of a current collection calibration method according to an embodiment of the invention.
Fig. 7 is a flow chart of a current collection calibration method according to another embodiment of the invention.
Fig. 8 is a flowchart of a current collection calibration method according to another embodiment of the present invention.
Fig. 9 is a flowchart of an optimized example of the current collection calibration method of the embodiment shown in fig. 7.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those specifically described herein, and thus the present invention is not limited to the specific embodiments disclosed below.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.
The embodiment of the invention describes a current acquisition calibration circuit and a calibration method in an electricity meter, which are used for correcting errors of a measured resistor, particularly errors introduced by the resistor during mounting and errors of the resistor. The electricity meter of the present invention can be used for measuring the capacity of a battery, and thus can be widely applied to various portable electronic devices.
Fig. 3 is an electrical schematic diagram of an electricity meter according to an embodiment of the present invention. Referring to fig. 3, the fuel gauge 30 of the present embodiment includes a measuring resistor Rsense, an amplifier 31, analog-to-digital converters (ADCs) 32 and 33, an accumulator 34, a time base circuit 35, a current source 36, and a calibration enable circuit 40. The amplifier 31 and the ADC 33 form a voltage sampler, the input end of the amplifier 31 is connected to two ends of the measuring resistor Rsense, and the output end is connected to the input end of the ADC 33. The output of the ADC 33 is connected to an accumulator 34. Accumulator 34 and time reference circuit 35 form a charge accumulator.
The current collection calibration circuit 40 includes a battery BAT, a first switch SW1, a second switch SW2, a calibration enable circuit 41, a current source 42, and a controller 43. The battery BAT is connected in series with the measuring resistor Rsense and in parallel with the load RL through a first switch SW 1. The second switch SW2, the current source 42, the battery BAT and the measuring resistor Rsense are connected in parallel. The measurement resistance Rsense is nominally the resistance Rsense, however, due to the introduction of the weld resistance value Rsolder, the actual resistance Rsns is the sum of Rsense and Rsolder. In addition, the actual resistance value Rsns is the sum of Rsense 'and Rsolder, taking into account the difference between the actual value Rsense' and the nominal value of the measurement resistance Rsense. Current source 42 has a current Ical. To ensure the accuracy of the calibration, Ical needs to be stable with low error. For example, Ical has an error of + -1%.
The electricity meter of the present embodiment has two states of electricity amount calculation and resistance calibration. To this end, a first state signal and a second state signal are provided for controlling the first switch SW1 and the second switch SW2, respectively, corresponding to the two states. The power amount calculation is usually performed after the device in which the fuel gauge is located is turned on, so that the on-state signal of the device in which the fuel gauge is located is selected as the first state signal to be supplied to the first switch SW 1. The first switch SW1 is controlled by the power-on state signal to open and close, i.e. when the power-on state signal indicates that the apparatus is powered on, the first switch SW1 is closed, otherwise the first switch SW1 is open. When the device where the fuel gauge is located is turned off, the calibration accuracy can be further ensured, so that the off-state signal of the device where the fuel gauge is located is selected as the second state signal and provided to the second switch SW 2. The calibration enable circuit 41 generates a second status signal according to the power-off status and outputs the second status signal to the second switch SW 2. The second switch SW2 is controlled by the second status signal to open and close, i.e. when the off status signal indicates that the apparatus is off, the second switch SW2 is closed, otherwise the second switch SW2 is open.
When the second switch SW2 is closed, the current source 42, the battery BAT and the measuring resistor Rsense form a loop. The voltage sampler formed by the amplifier 31 and the ADC 33 will collect the voltage Vcal across the measurement resistor Rsense. The actual measured resistance value Rsns — Vcal/Ical can now be calculated in the controller 43. This resistance value can be used as a calibration resistance value.
When the first switch SW1 is closed, the battery BAT, the measurement resistor Rsense, and the load RL form a loop. The controller 43 can now perform the power calculation using the calibrated resistance value, and the power calculation process is already in the prior art and is not expanded here.
Preferably, a register 44 is provided for holding the calibration resistance value. The register 44 is connected to the controller 43 so that the controller 43 can access the register 44. Thus, when the electricity meter is in the electricity amount calculation state, the value REGcal thereof can be called from the register 44 to perform the calculation of the electricity amount.
Fig. 4 is an electrical schematic diagram of an electricity meter according to another embodiment of the present invention. Referring to fig. 4, the fuel gauge 30 of the present embodiment includes a measuring resistor Rsense, an amplifier 31, analog-to-digital converters (ADCs) 32 and 33, an accumulator 34, a time base circuit 35, a current source 36, and a calibration enable circuit 40. The amplifier 31 and the ADC 33 form a voltage sampler, the input end of the amplifier 31 is connected to two ends of the measuring resistor Rsense, and the output end is connected to the input end of the ADC 33. The output of the ADC 33 is connected to an accumulator 34. Accumulator 34 and time reference circuit 35 form a charge accumulator.
The current collection calibration circuit 40 includes a battery BAT, a first switch SW1, a second switch SW2, a calibration enable circuit 41, a current source 42, and a controller 43. The battery BAT is connected in series with the measuring resistor Rsense and in parallel with the load RL through a first switch SW 1. The second switch SW2, the current source 42, the battery BAT and the measuring resistor Rsense are connected in parallel. The measurement resistance Rsense is nominally the resistance Rsense, however, due to the introduction of the weld resistance value Rsolder, the actual resistance Rsns is the sum of Rsense and Rsolder. In addition, the actual resistance value Rsns is the sum of Rsense 'and Rsolder, taking into account the difference between the actual value Rsense' and the nominal value of the measurement resistance Rsense. Current source 42 has a current Ical. To ensure the accuracy of the calibration, Ical needs to be stable with low error. For example, Ical has an error of + -1%.
The electricity meter of the present embodiment has two states of electricity amount calculation and resistance calibration. To this end, a first state signal and a second state signal are provided for controlling the first switch SW1 and the second switch SW2, respectively, corresponding to the two states. The power amount calculation is usually performed after the device in which the fuel gauge is located is turned on, so that the on-state signal of the device in which the fuel gauge is located is selected as the first state signal to be supplied to the first switch SW 1. The first switch SW1 is controlled by the power-on state signal to open and close, i.e. when the power-on state signal indicates that the apparatus is powered on, the first switch SW1 is closed, otherwise the first switch SW1 is open. When the device where the fuel gauge is located is turned off, the calibration accuracy can be further ensured, so that the off-state signal of the device where the fuel gauge is located is selected as the second state signal and provided to the second switch SW 2. The present embodiment is different from the previous embodiment in that the calibration enable circuit 41 generates the second status signal according to the battery on-bit signal and the shutdown status signal. The calibration enable circuit 41 may be implemented as an and gate at this time. That is, the calibration is performed only when the battery is in place and the device in which the fuel gauge is located is in a power-off state.
In another variation, the battery presence signal may be replaced by a power supply stabilization signal, that is, calibration is performed only when the power supply is stable and the device in which the electricity meter is located is in a power-off state.
Fig. 5 is an electrical schematic diagram of an electricity meter according to yet another embodiment of the present invention. Referring to fig. 5, the fuel gauge 30 of the present embodiment includes a measuring resistor Rsense, an amplifier 31, analog-to-digital converters (ADCs) 32 and 33, an accumulator 34, a time base circuit 35, a current source 36, and a calibration enable circuit 40. The amplifier 31 and the ADC 33 form a voltage sampler, the input end of the amplifier 31 is connected to two ends of the measuring resistor Rsense, and the output end is connected to the input end of the ADC 33. The output of the ADC 33 is connected to an accumulator 34. Accumulator 34 and time reference circuit 35 form a charge accumulator.
The current collection calibration circuit 40 includes a battery BAT, a first switch SW1, a second switch SW2, a calibration enable circuit 41, a current source 42, and a controller 43. The battery BAT is connected in series with the measuring resistor Rsense and in parallel with the load RL through a first switch SW 1. The second switch SW2, the current source 42, the battery BAT and the measuring resistor Rsense are connected in parallel. The measurement resistance Rsense is nominally the resistance Rsense, however, due to the introduction of the weld resistance value Rsolder, the actual resistance Rsns is the sum of Rsense and Rsolder. In addition, the actual resistance value Rsns is the sum of Rsense 'and Rsolder, taking into account the difference between the actual value Rsense' and the nominal value of the measurement resistance Rsense. Current source 42 has a current Ical. To ensure the accuracy of the calibration, Ical needs to be stable with low error. For example, Ical has an error of + -1%. The value of the current Ical may be set to 100mA or several hundred mA, as needed.
The electricity meter of the present embodiment has two states of electricity amount calculation and resistance calibration. To this end, a first state signal and a second state signal are provided for controlling the first switch SW1 and the second switch SW2, respectively, corresponding to the two states. The power amount calculation is usually performed after the device in which the fuel gauge is located is turned on, so that the on-state signal of the device in which the fuel gauge is located is selected as the first state signal to be supplied to the first switch SW 1. The first switch SW1 is controlled by the power-on state signal to open and close, i.e. when the power-on state signal indicates that the apparatus is powered on, the first switch SW1 is closed, otherwise the first switch SW1 is open. When the device where the fuel gauge is located is turned off, the calibration accuracy can be further ensured, so that the off-state signal of the device where the fuel gauge is located is selected as the second state signal and provided to the second switch SW 2. The difference between this embodiment and the previous embodiment is that the current collection calibration circuit 40 further includes a register 45, which stores a calibration flag bit. After the controller 43 obtains the calibration resistance value, the calibration flag is set (e.g., set 1). The calibration enable circuit 41 detects the calibration flag bit, and generates the second status signal according to the battery on-bit signal and the power-off status signal when the calibration flag bit is not set. The calibration enable circuit 41 may now be implemented as an and gate with 3 signal inputs. That is, only when calibration is not performed, the battery is in place, and the device in which the fuel gauge is located is in a power-off state, calibration is performed.
In another variation, the battery presence signal may be replaced by a power supply stabilization signal, that is, calibration is performed only when the power supply is stable and the device in which the electricity meter is located is in a power-off state.
Fig. 6 is a flowchart of a current collection calibration method according to an embodiment of the invention. Referring to fig. 6, in the current collection calibration method of the present embodiment, when the power management chip is in the power-on reset state, the following steps are performed:
in step 61, detecting whether the equipment where the electricity meter is located is in a power-off state, if so, entering step 62, otherwise, continuing to wait;
in step 62, judging whether a starting vector exists, if so, entering step 66, otherwise, entering step 63; the starting vector is an event which can cause the equipment where the electricity meter is located to start, such as pressing a starting key, starting charging and the like;
in step 63, a resistance value calibration is performed; the specific calibration process can refer to the foregoing embodiments, and is not expanded herein;
at step 64, the calibration resistance value is written into a register;
in step 65, judging whether a starting-up vector exists again, if so, entering step 66, otherwise, continuing to wait;
in step 66, the power is turned on, and the electricity meter performs electricity quantity calculation;
in step 67, the value of the register is called for calculation when the electric quantity calculation is performed;
at step 68, the charge calculation is performed in a loop.
Fig. 7 is a flow chart of a current collection calibration method according to another embodiment of the invention. Referring to fig. 7, in the current collection calibration method of the present embodiment, when the power management chip is in the power-on reset state, the following steps are performed:
in step 71, detecting whether the equipment where the electricity meter is located is in a power-off state, if so, entering step 62, otherwise, continuing to wait;
in step 72, determining whether the calibration flag is 1, if so, entering step 73, otherwise, entering step 74;
in step 73, judging whether a starting vector exists, if so, entering step 77, otherwise, continuing to wait; the starting vector is an event which can cause the equipment where the electricity meter is located to start, such as pressing a starting key, starting charging and the like;
at step 74, a resistance value calibration is performed; the specific calibration process can refer to the foregoing embodiments, and is not expanded herein;
at step 75, the calibration resistance value is written into the register and the calibration flag bit is set;
at step 76, it is determined again whether a boot vector exists, if so, step 66 is entered, otherwise, the wait continues;
in step 77, the power is turned on, and the electricity meter performs electricity quantity calculation;
in step 78, the register value is called for calculation when the power calculation is performed;
in step 79, the power calculation is performed cyclically.
Fig. 8 is a flowchart of a current collection calibration method according to another embodiment of the present invention. Referring to fig. 8, in the current collection calibration method of the present embodiment, when the power management chip is in the power-on reset state, the following steps are performed:
in step 81, judging whether the battery is in place, if so, entering step 83, otherwise, entering step 82;
in step 82, judging whether the power supply is stable, if so, entering step 83, otherwise, returning to step 81;
in step 83, detecting whether the device where the electricity meter is located is in a power-off state, if so, entering step 84, otherwise, continuing to wait;
in step 84, determining whether the calibration flag is 1, if so, indicating that calibration has been performed, entering step 85, otherwise, entering step 86;
in step 85, judging whether a starting vector exists, if so, entering step 89, otherwise, continuing to wait; the starting vector is an event which can cause the equipment where the electricity meter is located to start, such as pressing a starting key, starting charging and the like;
at step 86, a resistance value calibration is performed; the specific calibration process can refer to the foregoing embodiments, and is not expanded herein;
at step 87, writing the calibration resistance value to the register and setting the calibration flag bit;
in step 88, it is determined again whether a boot vector exists, if yes, step 66 is entered, otherwise, the process continues to wait;
in step 89, starting up, the electricity meter performs electricity quantity calculation;
in step 90, the value of the register is called for calculation when the electric quantity calculation is performed;
in step 91, power calculation is performed in a loop.
In addition, when the power is turned on and each power supply is turned on, the calibration value is influenced by the increase of the load current. The calibration is performed in a shutdown condition. In order to avoid the calibration accuracy being affected by the power-on during the calibration of the resistance value, the embodiment shown in fig. 7 can be further optimized as the embodiment shown in fig. 9. Referring to fig. 9, in the current collection calibration method of the present embodiment, when the power management chip is in the power-on reset state, the following steps are performed:
in step 1001, detecting whether the device where the electricity meter is located is in a power-off state, if so, entering step 62, otherwise, continuing to wait;
in step 1002, judging whether the calibration flag bit is 1, if so, indicating that the calibration is performed, entering step 1003, otherwise, entering step 1004;
in step 1003, judging whether a starting-up vector exists, if so, entering step 1011, otherwise, continuing to wait; the starting vector is an event which can cause the equipment where the electricity meter is located to start, such as pressing a starting key, starting charging and the like;
in step 1004, judging whether a starting vector exists, if so, entering step 1008, otherwise, entering step 1005;
in step 1005, performing a resistance value calibration; the specific calibration process can refer to the foregoing embodiments, and is not expanded herein;
at step 1006, writing the calibration resistance value into a register and setting a calibration flag bit;
in step 1007, it is determined again whether a boot vector exists, if yes, step 66 is entered, otherwise, the waiting is continued;
at step 1008, a resistance value calibration is performed;
in step 1009, a boot process is performed;
at step 1010, writing a calibration resistance value to a register and setting a calibration flag bit;
in step 1011, the electricity meter is started up to calculate the electricity quantity;
in step 1012, the value of the register is called for calculation when the electric quantity calculation is performed;
in step 1013, the power calculation is performed cyclically.
That is, when the boot vector is determined to exist in step 1004, the boot process is not performed immediately, but is delayed for a predetermined time (e.g., 100ms), the resistance calibration is performed in step 1008 within the predetermined time, and then the boot process is performed in step 1009.
According to the electricity meter and the current calibration circuit thereof, errors of the mounting and the resistor are eliminated by calibrating the actual value of the precision resistor after mounting, the calibration value is written into the register of the battery voltage domain, and the value is called to calculate the electric quantity during normal operation, so that the calculation accuracy of the electricity meter is optimized. The current calibration method of the embodiment of the invention respectively ensures the time of calibration and the time of electric quantity calculation when the computer is started up through strict flow design, and ensures the accuracy of calibration and the accuracy of current calculation.
Although the present invention has been described with reference to the present specific embodiments, it will be appreciated by those skilled in the art that the above embodiments are merely illustrative of the present invention, and various equivalent changes and substitutions may be made without departing from the spirit of the invention, and therefore, it is intended that all changes and modifications to the above embodiments within the spirit and scope of the present invention be covered by the appended claims.

Claims (17)

1. An electricity meter comprises a measuring resistor, a voltage sampler, an electricity accumulator and a current collecting and calibrating circuit, wherein the input end of the voltage sampler is connected with the two ends of the measuring resistor, the output end of the voltage sampler is connected with the electricity accumulator,
the current acquisition calibration circuit comprises a battery, a first switch, a second switch, a calibration enabling circuit, a current source and a controller, wherein the battery is connected with the measuring resistor in series and is connected with a load in parallel through the first switch, the first switch is controlled by a first state signal to be switched on and off, and the second switch, the current source, the battery and the measuring resistor are connected in parallel; the calibration enabling circuit generates a second state signal and outputs the second state signal to the second switch, and the second switch is controlled by the second state signal to be opened and closed;
when the second switch is closed, the current source, the battery and the measuring resistor form a loop, and the controller calculates the calibration resistance value of the measuring resistor according to the current value of the current source and the sampling value of the voltage sampler;
when the first switch is closed, the battery, the measuring resistor and the load form a loop, and the controller adopts the calibration resistance value to calculate the electric quantity.
2. The fuel gauge of claim 1, wherein the first status signal is a power-on status signal of a device in which the fuel gauge is located.
3. The fuel gauge of claim 1, wherein the calibration enable circuit generates the second status signal based on a power-off status signal of a device in which the fuel gauge is located.
4. The fuel gauge of claim 1, wherein the calibration enable circuit generates the second status signal based on a power-off status signal of a device in which the fuel gauge is located and one of a presence signal and a power stabilization signal of the battery.
5. The fuel gauge of claim 3 or 4, wherein the calibration enable circuit further detects a calibration flag bit and generates the second status signal when the calibration flag bit is set.
6. The fuel gauge of claim 1, wherein the current collection calibration circuit further comprises a register for storing the calibration resistance value of the measurement resistor, the register being connected to the controller so that the controller can access the register.
7. A current acquisition calibration circuit of an electricity meter comprises a measuring resistor and a voltage sampler, wherein the input end of the voltage sampler is connected with the two ends of the measuring resistor,
the current acquisition and calibration circuit comprises a battery, a first switch, a second switch, a calibration enabling circuit, a current source and a controller, wherein the battery is connected with the measuring resistor in series and is connected with a load in parallel through the first switch, the first switch is controlled by a first state signal to be switched on and off, the second switch, the current source, the battery and the measuring resistor are connected in parallel, and the controller is connected with the voltage sampler; the calibration enabling circuit generates a second state signal and outputs the second state signal to the second switch, and the second switch is controlled by the second state signal to be opened and closed;
when the second switch is closed, the current source, the battery and the measuring resistor form a loop, and the controller calculates the calibration resistance value of the measuring resistor according to the current value of the current source and the sampling value of the voltage sampler;
when the first switch is closed, the battery, the measuring resistor and the load form a loop, and the controller adopts the calibration resistance value to calculate the electric quantity.
8. The current collection calibration circuit of claim 7, wherein the calibration enable circuit generates the second status signal based on a power-off status signal of a device in which the fuel gauge is located.
9. The current collection calibration circuit of claim 7, wherein the calibration enable circuit generates the second status signal based on a power-off status signal of a device in which the fuel gauge is located and one of a presence signal and a power stabilization signal of the battery.
10. The current collection calibration circuit of claim 8 or 9, wherein the calibration enable circuit further detects a calibration flag and generates the second state signal when the calibration flag is not set.
11. The current collection calibration circuit of claim 7, further comprising a register for storing the calibration resistance value of the measurement resistor, the register being coupled to the controller.
12. A current acquisition calibration method of an electricity meter comprises a measuring resistor, a voltage sampler, an electricity accumulator and a current acquisition calibration circuit, wherein the input end of the voltage sampler is connected with the two ends of the measuring resistor, the output end of the voltage sampler is connected with the electricity accumulator, the current acquisition calibration circuit comprises a battery, a first switch, a second switch and a current source, the battery is connected with the measuring resistor in series and is connected with a load in parallel through the first switch, and the second switch, the current source, the battery and the measuring resistor are connected in parallel; wherein the first switch is controlled to open and close by a first status signal and the second switch is controlled to open and close by a second status signal, the method comprising the steps of:
providing the second state signal to close the second switch, wherein the current source, the battery and the measuring resistor form a loop;
calculating a calibration resistance value of the measuring resistor according to the current value of the current source and the sampling value of the voltage sampler;
and providing the first state signal to close the first switch, forming a loop by the battery, the measuring resistor and the load, and calculating the electric quantity by the controller by adopting the calibration resistance value.
13. The method of claim 12, wherein the first status signal is a power-on status signal of the fuel gauge.
14. The current collection calibration method of claim 12, wherein the second status signal is provided based on a power-off status signal of a device in which the fuel gauge is located.
15. The current collection calibration method of claim 12, wherein the second status signal is provided based on a power-off status signal of a device in which the fuel gauge is located and one of an on-bit signal and a power stabilization signal of the battery.
16. The current collection calibration method of claim 14 or 15, further comprising:
after the calibration resistance value is obtained, a calibration flag is set,
wherein the calibration flag is detected and the second state signal is generated when the calibration flag is not set.
17. The method of claim 16, wherein when the calibration flag is not set, if a boot vector of a device in which the fuel gauge is located is received, the second status signal is still provided, and a boot process is suspended.
CN201780010235.0A 2017-03-22 2017-03-22 Electric meter and current acquisition calibration circuit and calibration method thereof Active CN108966670B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/077653 WO2018170775A1 (en) 2017-03-22 2017-03-22 Electrical quantity meter, current-sampling calibration circuit and method of calibration

Publications (2)

Publication Number Publication Date
CN108966670A CN108966670A (en) 2018-12-07
CN108966670B true CN108966670B (en) 2021-01-08

Family

ID=63584883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780010235.0A Active CN108966670B (en) 2017-03-22 2017-03-22 Electric meter and current acquisition calibration circuit and calibration method thereof

Country Status (2)

Country Link
CN (1) CN108966670B (en)
WO (1) WO2018170775A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111697659A (en) * 2020-06-24 2020-09-22 北京捷莱特技术有限公司 Battery management circuit
CN113759257A (en) * 2020-07-17 2021-12-07 北京京东尚科信息技术有限公司 Current compensation circuit and method for electronic equipment and electronic equipment
CN113094230B (en) * 2021-03-31 2024-03-12 宁畅信息产业(北京)有限公司 Power consumption monitoring method and power consumption monitoring main board
CN114200325B (en) * 2021-11-05 2024-02-20 深圳优地智能有限公司 Battery electric quantity calibration method, control device of robot and robot

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102539899A (en) * 2010-09-21 2012-07-04 马克西姆综合产品公司 Integrated mosfet current sensing for fuel-gauging

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5928678A (en) * 1982-08-10 1984-02-15 Fuji Photo Film Co Ltd Display device of residual electric power of battery
EP1843164A4 (en) * 2005-01-27 2009-06-03 Panasonic Ev Energy Co Ltd Secondary cell charge/discharge electricity amount estimation method and device, secondary cell polarization voltage estimation method and device, and secondary cell remaining capacity estimation method and device
US7531989B2 (en) * 2005-11-02 2009-05-12 02Micro International Ltd. Battery fuel gauge circuit
CN201508380U (en) * 2009-10-21 2010-06-16 金亮 Wireless electric quantity charging device
WO2011060820A1 (en) * 2009-11-19 2011-05-26 Robert Bosch Gmbh Method and device for error-compensated current measurement of an electrical accumulator
DE102012212978B3 (en) * 2012-07-24 2013-08-22 Siemens Aktiengesellschaft Process measuring device for measuring physical or chemical quantities, such as pressure or flow used in process automation and process technology, has measuring unit for converting non-electrical quantity into electrical measurement signal
CN202794494U (en) * 2012-09-28 2013-03-13 贵州航天计量测试技术研究所 Device for four-point probe resistivity tester verification
CN103592508B (en) * 2013-12-04 2016-02-24 珠海全志科技股份有限公司 A kind of current sensing means for coulomb metering
PL227598B1 (en) * 2013-12-14 2018-01-31 Uniwersytet Jagiellonski System for collecting and measuring of slowly-changing electric charge and method for collecting and measuring of slowly-changing electric charge
CN104200635A (en) * 2014-09-19 2014-12-10 上海电器科学研究院 Wireless switch with function of electrical quantity metering and acquisition method
CN205861886U (en) * 2016-05-05 2017-01-04 天津市计量监督检测科学研究院 A kind of High-accuracy direct current coulomb meter, coulometer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102539899A (en) * 2010-09-21 2012-07-04 马克西姆综合产品公司 Integrated mosfet current sensing for fuel-gauging

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于MCU的蓄电池电量计的设计与实现;王莉;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20081115(第11期);C042-601 *

Also Published As

Publication number Publication date
WO2018170775A1 (en) 2018-09-27
CN108966670A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108966670B (en) Electric meter and current acquisition calibration circuit and calibration method thereof
JP6406825B2 (en) System and method for detecting battery capacity
US9157966B2 (en) Method and apparatus for online determination of battery state of charge and state of health
US9379556B2 (en) Systems and methods for energy harvesting and current and voltage measurements
US9651624B2 (en) Systems and methods for state of charge estimation
US20150032394A1 (en) Power management system
JP2010256323A5 (en)
JP2013083612A (en) Battery state measurement method and battery state measurement apparatus
JP2010500539A (en) Battery capacity detection method based on capacity dependent parameters
WO2007142195A1 (en) Method for judging abnormality of battery pack, and battery pack
US10573936B2 (en) Remaining battery life prediction device and battery pack
KR20160110211A (en) Battery remaining power predicting device and battery pack
JP2019504451A (en) Effective battery cell balancing method and system using duty control
JP2010271287A (en) Device and method of determining deterioration of battery, and program
JP6749080B2 (en) Power storage system, secondary battery control system, and secondary battery control method
JPWO2014122832A1 (en) Power storage device and deterioration determination method
KR20150131977A (en) Battery remaining power predicting device and battery pack
KR101398465B1 (en) Apparatus and method for determinig status of battery
TWI528043B (en) Battery SOC/SOH estimation circuit
US10862175B2 (en) Battery fuel gauge circuit
KR100781792B1 (en) The intergrated circuit to measure the remaining capacity
WO2012141755A1 (en) Battery voltage measurement
KR20140071060A (en) Methods and apparatus for online determination of battery state of charge and state of health
KR101175369B1 (en) Apparatus and Methode of measuring charges in a battery
TWI695988B (en) Battery residual amount detection circuit, electronic device using the same, and battery residual amount detection method

Legal Events

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

Effective date of registration: 20221114

Address after: 266500 No. 687, Binhai street, Huangdao District, Qingdao, Shandong

Patentee after: Chenxin Technology Co.,Ltd.

Address before: 201206 Ming Yue Road, Pudong New Area, Shanghai, No. 1258

Patentee before: LEADCORE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: Room 102, Building 16, No. 1699, the Pearl River Road, Huangdao District, Qingdao, Shandong 266499

Patentee after: Chenxin Technology Co.,Ltd.

Address before: 266500 No. 687, Binhai street, Huangdao District, Qingdao, Shandong

Patentee before: Chenxin Technology Co.,Ltd.

CP03 Change of name, title or address