WO2010126513A1 - Calculating power input to a computer - Google Patents

Calculating power input to a computer Download PDF

Info

Publication number
WO2010126513A1
WO2010126513A1 PCT/US2009/042238 US2009042238W WO2010126513A1 WO 2010126513 A1 WO2010126513 A1 WO 2010126513A1 US 2009042238 W US2009042238 W US 2009042238W WO 2010126513 A1 WO2010126513 A1 WO 2010126513A1
Authority
WO
WIPO (PCT)
Prior art keywords
computer
current
voltage
battery
power
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.)
Ceased
Application number
PCT/US2009/042238
Other languages
French (fr)
Inventor
Thomas Sawyers
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.)
Hewlett Packard Development Co LP
Original Assignee
Hewlett Packard Development Co LP
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 Hewlett Packard Development Co LP filed Critical Hewlett Packard Development Co LP
Priority to PCT/US2009/042238 priority Critical patent/WO2010126513A1/en
Priority to DE112009004616T priority patent/DE112009004616B4/en
Priority to CN200980159007.5A priority patent/CN102414638B/en
Priority to US13/202,032 priority patent/US20110302441A1/en
Priority to GB1115579.3A priority patent/GB2481929B/en
Publication of WO2010126513A1 publication Critical patent/WO2010126513A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision

Definitions

  • the present invention relates to a computer that includes a battery with a fuel gauge that reports voltage and current input to charge the battery while the computer is in an off-state so the computer can calculate input power while the computer is in an on-state.
  • Some computers such as personal computers and notebook computers, attempt to measure an amount of power being used. These measurements can be used to provide the user with useful information, such as information pertaining to battery charge expectancy and performance setting options.
  • Figure 1 shows a flow diagram for calculating power consumption in a computer in accordance with an exempiary embodiment of the present invention.
  • Figure 2A shows a graph of gain iilustrating the effect of gain error in a fixed gain amplifier in accordance with an exemplary embodiment of the present invention.
  • Figure 2B shows a graph of gain illustrating the effect of offset error in a fixed IO gain amplifier in accordance with an exemplary embodiment of the present invention.
  • Figure 3 shows a computer system in accordance with an exemplary embodiment of the present invention.
  • Figure 4 shows another embodiment of a computer system in accordance with an exempiary embodiment of the present invention.
  • One embodiment is a computer thai includes a controller and a battery with a fuel gauge.
  • the fuel gauge reports voltage and current input to charge the battery while [he computer is in an off-state.
  • the controller receives information about the voltage and current input to charge the battery from the fuel gauge and uses the information to calculate power being input to the computer while the computer is in an on-state.
  • Exemplary embodiments in accordance with the invention include apparatus and methods that accurately calculate power consumption in a computer.
  • circuitry within the computer senses current and then accurately calculates how much power is being drawn or consumed by the computer.
  • Figure 1 shows a flow diagram for calculating power consumption in a computer in accordance with an exemplary embodiment of the present invention.
  • the computer is powered off to begin charging a battery of the computer.
  • the battery is charged while the computer is in the off state so nearly all the power drawn by the computer is used to charge the battery.
  • this battery can be a permanent rechargeable battery in the computer or a removable battery in the computer, such as a replaceable battery pack that attaches to a notebook computer.
  • two events are provided: off-state and charging the battery.
  • the order of these events include first turning off the computer and then charging the battery, first beginning to charge the battery and then turning off the computer, or commencing these events at the same time.
  • power input into the computer is calculated using charge power reported by a fuel gauge in the battery and efficiency of a charger in the computer, in other words, the charge power reported by the battery's fuel gauge (which is very accurate) is used with an estimate of efficiency of the computer charger to calculate the power being input to the computer.
  • the calculated power being input to the computer is compared to a reading by the computer of AC adapter power.
  • calculations are made of correction factors for current sense amplifier offset and amplifier gain,
  • Embodiments in accordance with the invention reduce or eliminate this error by calculating correction factors for current sense amplifier offset and amplifier gain.
  • the power monitor there are two pieces to the power monitor.
  • the correction factors are used to correct measurements of adapter current while a power monitor in the computer is being used (i.e., the computer is in a power-on state, as opposed to being powered-off). For example, these correction factors are stored then used to correct subsequent measurements of adapter current while the power monitor is used.
  • Figures 2A and 2B show graphs 200 and 250. respectively, of output signal (Y- axis) versus input signal (X-axis) for a fixed gain amplifier.
  • Figure 2A shows a plot of the ideal case 220 (i.e., ideal gain) and the case with gain error 210 for the fixed gain amplifier
  • Figure 2B shows a plot of the ideal case 270 (i.e., ideal gain) and the case with offset error 280 for the fixed gain amplifier.
  • the cases with gain error 210 and with offset error 280 represent measured values of the amplifier whereas the idea! gains 220 and 270 represent vaiues with no error (i.e., ideal or correct values with no measure-induced errors).
  • Exemplary embodiments in accordance with the invention identify or determine [he gain error and offset error and then factor-out or remove these errors from readings of the fixed gain amplifier, As such, these error calculations are used to accurately determine power being consumed by the computer.
  • Figures 3 and 4 show exemplary embodiments of circuits and systems for calculating these errors and using correction factor to correct measurements of adapter current while power is being provided to the computer from an Alternating Current (AC) power source, such as an outlet.
  • AC Alternating Current
  • Figure 3 shows a computer system 300 that generally includes a computer 305, a battery 310. and an AC adapter 315.
  • the computer includes various portable and non-portable electronic devices, such as, but not limited to, notebook or laptop computers, desktop computers, tablet computers, personal digital assistants (PDAs), or other portable and non-portable electronic devices or computers that include a re-chargeable battery.
  • PDAs personal digital assistants
  • the computer 305 includes a charger 320, computer power 325, an embedded controller 330, level shift and amplifier and current monitor 335, a voltage divider 340, and a high-side current sense resistor 350.
  • the battery 310 includes a fuel gauge 380, a sense resistor 365, and rechargeable battery cells 370.
  • the high side current sense (CS) resistor 350 senses adapter current !__adp, ar
  • the current l__adp going through [he current sense resistor 350 produces a voltage that is measured by the circuit 335.
  • the signal is amplified and level shifted to ground (i.e., to determine a voltage difference). This difference, as explained, is fed into the EC as V iadpt.
  • This amplified signal represents current and is output to the embedded controller (EC) 330, shown as VJadp flowing from the circuit 335 to EC 330.
  • Adapter voltage V_adp is also sensed and sent into the EC 330, shown as V_vadp which represents voltage from the AC adapter.
  • the EC 330 receives signals that represent both current and voltage of the AC adapter.
  • Adapter current (I adp) multiplied by adapter voltage (V adp) equals the input power to the computer. Some of this power goes to DC-DC converters that provide power to [he computer, represented by the computer power block 325. if the battery 310 Is charging, power is also delivered to the battery. As the charger may be a DC-DC converter, the charger 320 output current (l__bat) may be different than the charger input current.
  • V adp When the AC adapter voltage (V adp) is constant, the adapter current (I adp) is proportional to adapter power. But to account for voltage drop under load and to ascertain the adapter voltage, the adapter voltage and the adapter current are both measured in the computer. These measurements are separately sent to the EC 330 (noted as VJadp and V_yadp).
  • the battery 310 senses charger output current (l__bat), as well as battery voltage, using the fuel gauge 360.
  • This fuel gauge is very accurate and is designed to track and report all energy entering or leaving the battery cells 370.
  • the fuel gauge 380 is also designed to communicate information (shown as FG info) to the EC 330. By way of example, this information includes a percentage of charge, such as percent full.
  • the power peaks just before the charge current begins to taper, typicaiiy 45W for a 8 ceil battery.
  • current to the same battery has reduced to about 250 mA, or about 3W.
  • the current sense signal is larger, and error is caused primarily by error in the amplifier gain (Av), and by the tolerance of current sense resistor 350. For a small sense signal, error is primarily caused by voltage offset in the amplifier (Vos).
  • charge power sweeps through the maximum power operating point, and down to the taper power operating point. This sweep provides an opportunity to compare computer CS amplitude readings to fuel gauge-based current estimates at two points, a high and a low signal level. From these comparisons, a calculation relating to computer amplifier Vos and actual gain Av are made. These values are stored in memory (for example, registers) and applied to correct subsequent readings made by the computer amplifier, in this manner, an existing low cost current sense amplifier, typically in the battery charger integrated circuit (IC). is made into a high precision sensor.
  • memory for example, registers
  • the following description provides an example embodiment as a notebook computer.
  • the charge voltage passes through 12.50V (on its way toward 12.6V) while the current is at its maximum level, which is measured as 3.574A.
  • adapter voltage and current are reported to the EC (Vadpi , iadp1__measurement).
  • the battery cells " voltage and current are also read at this time (Vbatl , !bat1 ).
  • Efficiency of the charger under these conditions has been previously characterized, so estimated efficiency of the charger (eff1 ) has been stored.
  • the charge voltage is regulated to about 12.6V, and the charge current has tapered down to about 200 mA.
  • the measurement of adapter current in the notebook is in the form of a voltage drop measured across a current sense resistor, then amplified and level shifted. This is Viadp in Figure 3.
  • I actual CS voltage measured x (1 / Atotal) - offset.
  • Figure 4 shows another embodiment of a computer system 400 that generally includes a computer 405, a battery 310, and an AC adapter 315.
  • the computer 405 is similar to the computer 305 shown in Fig, 3 with some difference (like numerals between the figures indicating like components).
  • V__vadp output (V__vadp) from the voltage divider 340 is provided to the level shifft and amplifier circuit and power monitor 410.
  • V padp from the power monitor 410 is then provided to the EC 330.
  • the EC 330 only receives a single power signal (as opposed to Fig. 3 in which the EC receives separate V_vadp and VJadp signals).
  • the computer 405 of Fig. 4 also accounts for voltage drop under load and ascertains the adapter voltage, the adapter voltage and the adapter current. These measurements are not separately sent to the EC 330. Instead, V_adp is sent into a power monitor block, which outputs a single signal to the EC that represents adapter power.
  • a low cost current sense amplifier already in the computer design is used for a high performance power monitor function. No extra circuitry (beyond the minimum required to make a power monitor) is needed. This saves the cost of a precision amplifier and the cost and complexity (charge pump plus level shifter) of providing power to such an amplifier. This also saves the power that would be drawn by a precision amplifier and makes the computer more energy efficient in the off state. This further allows cancellation of the tolerances of the current sense resistor and any other resistors used in amplifying and delivering the signal to the EC, including the adapter voltage sense resistors. It does not require setting anything in the factory. The calibration can be accomplished automatically, without user intervention, during any battery charge cycle.
  • exemplary embodiments do not require extra power switches or additional current sense resistors, which would otherwise be used to switch in a larger current sense resistor.
  • the correction factors for amplifier gain and offset errors are used to correct measurements of adapter current. These corrected measurements can be applied in a variety of manners. For example, the accurate and real-time power consumption can be presented or displayed to a user of the computer. Such information can include an amount of power being drawn or used with current computer settings and a cost analysis of usage at the current power usage rate.
  • the user can be provided through a graphical user interface and software with an opportunity to adjust performance options and power settings (such as turning down brightness of the display, changing power saving settings, changing processor performance, altering sleep or hibernation time periods, and making other changes to the computer s power plan).
  • performance options and power settings such as turning down brightness of the display, changing power saving settings, changing processor performance, altering sleep or hibernation time periods, and making other changes to the computer s power plan).
  • a “battery” is a device that stores energy that can be converted into electricity.
  • a "'current sense resistor” is a resistor that converts current flowing to the resistor to a voltage drop that enables current through the resistor to be measured.
  • a “fuel gauge” is a device that measures an amount of energy stored in a battery.
  • a “voltage divider” is a linear circuit that produces an output voltage (Vout) that is fraction of the input voltage (Vin).
  • one or more blocks or steps discussed herein are automated.
  • apparatus, systems, and methods occur automatically.
  • automated or “automatically” (and like variations thereof) mean controlled operation of an apparatus, system, and/or process using computers and/or mechanical/electrical devices without the necessity of human intervention, observation, effort and/or decision.
  • embodiments are implemented as a method, system, and/or apparatus.
  • exemplary embodiments and steps associated therewith are implemented as one or more computer software programs to implement the methods described herein.
  • the software is implemented as one or more modules (also referred to as code subroutines, or "objects" in object-oriented programming).
  • the location of the software will differ for [he various alternative embodiments.
  • the software programming code for example, is accessed by a processor or processors of the computer or server from long-term storage media of some type, such as a CD-ROM drive or hard drive.
  • the software programming code is embodied or stored on any of a variety of known media for use with a data processing system or in any memory device such as semiconductor, magnetic and optical devices, including a disk, hard drive, CD-ROM, ROM, etc.
  • the code is distributed on such media, or is distributed to users from the memory or storage of one computer system over a network of some type to other computer systems for use by users of such other systems.
  • the programming code is embodied in the memory and accessed by the processor using the bus.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)
  • Measurement Of Current Or Voltage (AREA)
  • Power Sources (AREA)
  • Tests Of Electric Status Of Batteries (AREA)

Abstract

One embodiment is a computer that includes a controller and a battery with a fuel gauge. The fuel gauge reports voltage and current input to charge the battery while the computer is in an off-state. The controller receives information about the voltage and current input to charge the battery from the fuel gauge and uses the information to calculate power being input to the computer while the computer is in an on-state.

Description

CALCULATING POWER INPUT TO A COMPUTER
FIELD OF THE INVENTiON
The present invention relates to a computer that includes a battery with a fuel gauge that reports voltage and current input to charge the battery while the computer is in an off-state so the computer can calculate input power while the computer is in an on-state.
BACKGROUND
Some computers, such as personal computers and notebook computers, attempt to measure an amount of power being used. These measurements can be used to provide the user with useful information, such as information pertaining to battery charge expectancy and performance setting options.
These measurements, however, often include errors induced from circuits provided to measure power usage. As such, users can be presented with inaccurate information regarding performance and power usage.
BRIEF DESCRIPTION OF THE DRAWINGS
Figure 1 shows a flow diagram for calculating power consumption in a computer in accordance with an exempiary embodiment of the present invention.
Figure 2A shows a graph of gain iilustrating the effect of gain error in a fixed gain amplifier in accordance with an exemplary embodiment of the present invention.
Figure 2B shows a graph of gain illustrating the effect of offset error in a fixed IO gain amplifier in accordance with an exemplary embodiment of the present invention.
Figure 3 shows a computer system in accordance with an exemplary embodiment of the present invention. I5
Figure 4 shows another embodiment of a computer system in accordance with an exempiary embodiment of the present invention.
SUMMARY OF THE INVENTION
One embodiment is a computer thai includes a controller and a battery with a fuel gauge. The fuel gauge reports voltage and current input to charge the battery while [he computer is in an off-state. The controller receives information about the voltage and current input to charge the battery from the fuel gauge and uses the information to calculate power being input to the computer while the computer is in an on-state.
DETAILED DESCRIPTION
Exemplary embodiments in accordance with the invention include apparatus and methods that accurately calculate power consumption in a computer. In one embodiment, circuitry within the computer senses current and then accurately calculates how much power is being drawn or consumed by the computer.
Figure 1 shows a flow diagram for calculating power consumption in a computer in accordance with an exemplary embodiment of the present invention.
According to block 100, the computer is powered off to begin charging a battery of the computer. The battery is charged while the computer is in the off state so nearly all the power drawn by the computer is used to charge the battery. By way of example, this battery can be a permanent rechargeable battery in the computer or a removable battery in the computer, such as a replaceable battery pack that attaches to a notebook computer.
In block 100, two events are provided: off-state and charging the battery. The order of these events include first turning off the computer and then charging the battery, first beginning to charge the battery and then turning off the computer, or commencing these events at the same time.
According to block 110, power input into the computer is calculated using charge power reported by a fuel gauge in the battery and efficiency of a charger in the computer, in other words, the charge power reported by the battery's fuel gauge (which is very accurate) is used with an estimate of efficiency of the computer charger to calculate the power being input to the computer.
According to block 120, the calculated power being input to the computer is compared to a reading by the computer of AC adapter power. According to block 130, calculations are made of correction factors for current sense amplifier offset and amplifier gain,
A large source of error is the computer's measurement of current supplied by the AC adapter. This error, in [he past, has lead to inaccuracies in calculating power being consumed by the computer. Embodiments in accordance with the invention reduce or eliminate this error by calculating correction factors for current sense amplifier offset and amplifier gain.
in one exemplary embodiment, there are two pieces to the power monitor. First, there is hardware that collects data and a microcontroller with code that stores the data for future use. Second, there is a software application that reads the collected data, applies the correction factors (after the data has been collected), and outputs some information for use by the user. In this case, the data is collected continuously, but corrections and output are done while the machine is on and the power monitor software application is running. Data collection can also occur while the computer is in the off-state.
According to block 140, the correction factors are used to correct measurements of adapter current while a power monitor in the computer is being used (i.e., the computer is in a power-on state, as opposed to being powered-off). For example, these correction factors are stored then used to correct subsequent measurements of adapter current while the power monitor is used.
Figures 2A and 2B show graphs 200 and 250. respectively, of output signal (Y- axis) versus input signal (X-axis) for a fixed gain amplifier. Figure 2A shows a plot of the ideal case 220 (i.e., ideal gain) and the case with gain error 210 for the fixed gain amplifier, and Figure 2B shows a plot of the ideal case 270 (i.e., ideal gain) and the case with offset error 280 for the fixed gain amplifier. The cases with gain error 210 and with offset error 280 represent measured values of the amplifier whereas the idea! gains 220 and 270 represent vaiues with no error (i.e., ideal or correct values with no measure-induced errors).
Exemplary embodiments in accordance with the invention identify or determine [he gain error and offset error and then factor-out or remove these errors from readings of the fixed gain amplifier, As such, these error calculations are used to accurately determine power being consumed by the computer.
Figures 3 and 4 show exemplary embodiments of circuits and systems for calculating these errors and using correction factor to correct measurements of adapter current while power is being provided to the computer from an Alternating Current (AC) power source, such as an outlet.
Figure 3 shows a computer system 300 that generally includes a computer 305, a battery 310. and an AC adapter 315. The computer includes various portable and non-portable electronic devices, such as, but not limited to, notebook or laptop computers, desktop computers, tablet computers, personal digital assistants (PDAs), or other portable and non-portable electronic devices or computers that include a re-chargeable battery.
The computer 305 includes a charger 320, computer power 325, an embedded controller 330, level shift and amplifier and current monitor 335, a voltage divider 340, and a high-side current sense resistor 350. The battery 310 includes a fuel gauge 380, a sense resistor 365, and rechargeable battery cells 370.
The high side current sense (CS) resistor 350 senses adapter current !__adp, ar|d develops a voltage which is sensed by the level shift and amplifier circuit 335. The current l__adp going through [he current sense resistor 350 produces a voltage that is measured by the circuit 335. The signal is amplified and level shifted to ground (i.e., to determine a voltage difference). This difference, as explained, is fed into the EC as V iadpt. This amplified signal represents current and is output to the embedded controller (EC) 330, shown as VJadp flowing from the circuit 335 to EC 330. Adapter voltage V_adp is also sensed and sent into the EC 330, shown as V_vadp which represents voltage from the AC adapter. Thus, the EC 330 receives signals that represent both current and voltage of the AC adapter.
Adapter current (I adp) multiplied by adapter voltage (V adp) equals the input power to the computer. Some of this power goes to DC-DC converters that provide power to [he computer, represented by the computer power block 325. if the battery 310 Is charging, power is also delivered to the battery. As the charger may be a DC-DC converter, the charger 320 output current (l__bat) may be different than the charger input current.
When the AC adapter voltage (V adp) is constant, the adapter current (I adp) is proportional to adapter power. But to account for voltage drop under load and to ascertain the adapter voltage, the adapter voltage and the adapter current are both measured in the computer. These measurements are separately sent to the EC 330 (noted as VJadp and V_yadp).
The battery 310 senses charger output current (l__bat), as well as battery voltage, using the fuel gauge 360. This fuel gauge is very accurate and is designed to track and report all energy entering or leaving the battery cells 370. The fuel gauge 380 is also designed to communicate information (shown as FG info) to the EC 330. By way of example, this information includes a percentage of charge, such as percent full.
When the computer 305 is in the off state, total power drawn by the computer is very low, typically under 50 mW. When the battery 310 charges in this off state, nearly all energy drawn from the AC adapter 315 is used to charge the battery 310. Voltage of the battery cells 370 and current input to these battery cells is accurately reported by the fuel gauge 380 to the EC 330. At heavy loads, the charger 320 is about 95% efficient and relatively little power is dissipated. When the charger efficiency versus load is characterized at the time of computer design and development, this efficiency is used to calculate an estimate for total power drawn into the computer. Only a few operating points are characterized. The current sense amplifier in the computer reports its measurement of current as well. The EC 330, system BIOS, or software can compare the current sense report to the estimated power level.
During a battery charge cycle, the power peaks just before the charge current begins to taper, typicaiiy 45W for a 8 ceil battery. At end of the charge, current to the same battery has reduced to about 250 mA, or about 3W. At high load, the current sense signal is larger, and error is caused primarily by error in the amplifier gain (Av), and by the tolerance of current sense resistor 350. For a small sense signal, error is primarily caused by voltage offset in the amplifier (Vos).
During a charge cycle, when the battery 310 has been discharged below about 60%. charge power sweeps through the maximum power operating point, and down to the taper power operating point. This sweep provides an opportunity to compare computer CS amplitude readings to fuel gauge-based current estimates at two points, a high and a low signal level. From these comparisons, a calculation relating to computer amplifier Vos and actual gain Av are made. These values are stored in memory (for example, registers) and applied to correct subsequent readings made by the computer amplifier, in this manner, an existing low cost current sense amplifier, typically in the battery charger integrated circuit (IC). is made into a high precision sensor.
The following description provides an example embodiment as a notebook computer. During battery charge with the notebook in the off state, the charge voltage passes through 12.50V (on its way toward 12.6V) while the current is at its maximum level, which is measured as 3.574A. At this High power point at time t1 , adapter voltage and current are reported to the EC (Vadpi , iadp1__measurement). The battery cells" voltage and current are also read at this time (Vbatl , !bat1 ). Efficiency of the charger under these conditions has been previously characterized, so estimated efficiency of the charger (eff1 ) has been stored. Later in the charge cycle, the charge voltage is regulated to about 12.6V, and the charge current has tapered down to about 200 mA.
At some Low power point at time t2, adapter voltage and current are reported to [he EC (Vadp2, iadp2__measurement, Vbat2. ibat2), and efficiency at this state of charge has been previously characterized and stored (eff2). These data points are used to calculate actual voltage gain of the notebook current sense amplifier, and voltage offset of the same amplifier. Data reported from the battery is presumed accurate, as it is much more accurate than the notebook current sense. Power delivered to the notebook is estimated as charger power / charger efficiency. This accounts for all losses, as the efficiency was characterized by measuring notebook power draw in the off state since there is little variation in power draw in the off state. Power = voltage x current, so current = power / voltage. Assume at high power, effϊ =0.951 , Vbatl =12.50, !bat1 =3.574, then Padpi = 12.50 x 3.574 / 0.951 = 48.92 W. If Vadp measured in the notebook was Vadp1=19.26, then Jadρ1__calculated = Padpi / Vadpi = 48.92/19.28 = 2.436 A.
The measurement of adapter current in the notebook is in the form of a voltage drop measured across a current sense resistor, then amplified and level shifted. This is Viadp in Figure 3. The correct formula is ladp_measurement signal = (ladp x Rsense + Vos) x Av. where Vos is voltage offset of the current sense amplifier. Further, as shown below:
!adp_measurement signal = (ladp x Rsense + Vos) x Av iadp__measurement signal = (ladp + Vos/Rsense) x (Av/Rsense) Let offset = Vos/Rsense ; and let Atotal = Av/Rsense Then iadp measurement signal = (iadp + offset) x Atotal.
In this example, !adp1 ^measurement signal = (Iadp + offset) x Atotal = 0.8185 V.
This process is repeated for the low power point. If at low power, eff2=G,682, Vbat2=12.61 , !bat2=0.218, Vadp2=19.4δ, then Iadp2_calculated = Vbat2 x Ibat2 / Vadp2 = 4,031/19.46 = 0,2070 A. For measured current in the notebook, iadp2_measurement signal = {iadp + offset) x Atota! = 0.04922 V. From these four data points - calculated high current 2.436A and measured high CS signal 0.8165V, calculated low current 0.2070A and measured low CS signal 0.04922V - total gain and offset for this notebook can be derived to be Atotal=0.344, offset = -0.0640. These are stored for use as correction factors to the current sense data. As shown below:
CS voltage signal measured = ( l_actuai + offset } x Atotal = CS Using Iadp calculated for current I actual, or I,
CS1 = ( 11 + offset ) x Atotal CS2 = { I2 + offset ) x Atotal offset = (CS2 x 11 - CS1 x I2 ) / (CS1 - CS2 ) - -0.0640 Atota! - (CS1 - CS2 ) / ( 11 - I2 ) = 0.344.
After these factors are learned, [hey are applied to subsequent current measurements made in the notebook to achieve accurate measurement of notebook power for use as a wide range general purpose power monitor. To use this, read the current sense voltage measured, then
I actual = CS voltage measured x (1 / Atotal) - offset.
The large source of error is the efficiency of the charger at each point. Tolerances of notebook CS resistor, gain amplifier resistors, and even the adapter voltage sense divider resistors are [rimmed out (i.e., removed), as the tolerance contributed by all these is accounted for in the total gain Atota!. Figure 4 shows another embodiment of a computer system 400 that generally includes a computer 405, a battery 310, and an AC adapter 315. The computer 405 is similar to the computer 305 shown in Fig, 3 with some difference (like numerals between the figures indicating like components).
In Fig. 4, output (V__vadp) from the voltage divider 340 is provided to the level shifft and amplifier circuit and power monitor 410. V padp from the power monitor 410 is then provided to the EC 330. Here, the EC 330 only receives a single power signal (as opposed to Fig. 3 in which the EC receives separate V_vadp and VJadp signals). As with the discussion of Fig. 3, the computer 405 of Fig. 4 also accounts for voltage drop under load and ascertains the adapter voltage, the adapter voltage and the adapter current. These measurements are not separately sent to the EC 330. Instead, V_adp is sent into a power monitor block, which outputs a single signal to the EC that represents adapter power.
With embodiments in accordance with the invention, a low cost current sense amplifier already in the computer design is used for a high performance power monitor function. No extra circuitry (beyond the minimum required to make a power monitor) is needed. This saves the cost of a precision amplifier and the cost and complexity (charge pump plus level shifter) of providing power to such an amplifier. This also saves the power that would be drawn by a precision amplifier and makes the computer more energy efficient in the off state. This further allows cancellation of the tolerances of the current sense resistor and any other resistors used in amplifying and delivering the signal to the EC, including the adapter voltage sense resistors. It does not require setting anything in the factory. The calibration can be accomplished automatically, without user intervention, during any battery charge cycle. Furthermore, exemplary embodiments do not require extra power switches or additional current sense resistors, which would otherwise be used to switch in a larger current sense resistor. As explained, the correction factors for amplifier gain and offset errors are used to correct measurements of adapter current. These corrected measurements can be applied in a variety of manners. For example, the accurate and real-time power consumption can be presented or displayed to a user of the computer. Such information can include an amount of power being drawn or used with current computer settings and a cost analysis of usage at the current power usage rate. Further, the user can be provided through a graphical user interface and software with an opportunity to adjust performance options and power settings (such as turning down brightness of the display, changing power saving settings, changing processor performance, altering sleep or hibernation time periods, and making other changes to the computer s power plan).
Definitions
As used herein and in the claims, the following words are defined as follows:
A "battery" is a device that stores energy that can be converted into electricity.
A "'current sense resistor" is a resistor that converts current flowing to the resistor to a voltage drop that enables current through the resistor to be measured.
A "fuel gauge" is a device that measures an amount of energy stored in a battery.
A "voltage divider" is a linear circuit that produces an output voltage (Vout) that is fraction of the input voltage (Vin).
in one exemplary embodiment, one or more blocks or steps discussed herein are automated. In other words, apparatus, systems, and methods occur automatically. The terms "automated" or "automatically" (and like variations thereof) mean controlled operation of an apparatus, system, and/or process using computers and/or mechanical/electrical devices without the necessity of human intervention, observation, effort and/or decision.
The methods in accordance with exemplary embodiments of the present invention are provided as examples and should not be construed to iimit other embodiments within the scope of the invention. Further, methods or steps discussed within different figures can be added to or exchanged with methods of steps in other figures. Further yet, specific numerical data values (such as specific quantities, numbers, categories, etc.) or other specific information should be interpreted as illustrative for discussing exemplary embodiments. Such specific information is not provided to iimit the invention.
in the various embodiments in accordance with the present invention, embodiments are implemented as a method, system, and/or apparatus. As one example, exemplary embodiments and steps associated therewith are implemented as one or more computer software programs to implement the methods described herein. The software is implemented as one or more modules (also referred to as code subroutines, or "objects" in object-oriented programming). The location of the software will differ for [he various alternative embodiments. The software programming code, for example, is accessed by a processor or processors of the computer or server from long-term storage media of some type, such as a CD-ROM drive or hard drive. The software programming code is embodied or stored on any of a variety of known media for use with a data processing system or in any memory device such as semiconductor, magnetic and optical devices, including a disk, hard drive, CD-ROM, ROM, etc. The code is distributed on such media, or is distributed to users from the memory or storage of one computer system over a network of some type to other computer systems for use by users of such other systems. Alternatively, the programming code is embodied in the memory and accessed by the processor using the bus. The techniques and methods for embodying software programming code in memory, on physical media, and/or distributing software code via networks are we!! known and will not be further discussed herein.
The above discussion is meant to be illustrative of the principles and various embodiments of the present invention. Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.

Claims

What is claimed is:
1 ) A computer, comprising: a battery including a fuei gauge that reports voltage and current input to charge the battery while the computer is in an off-state; and a controller that receives information about the voitage and current input to charge the battery from the fuel gauge, wherein the controlier uses the information to caicuiate power being input to the computer while the computer is in an on-state.
2) The computer of claim 1 further comprising: a current sense resistor and an amplifier that provide to the controlier a signal representing current suppiied to the computer from an alternating current (AC) adapter; a voitage divider that provides to the controlier a signal representing a voltage supplied to the computer from the AC adapter.
3) The computer of claim 1 further comprising an amplifier, wherein the controlier calculates a gain for an ampiifier system and an offset for the amplifier system and uses the gain and offset to correct measurements of current input to the computer from an adapter.
4) The computer of claim 1 , wherein the controlier calculates power input into the computer from the voltage and current sensed in the computer.
5) The computer of claim 1 , wherein the fuei gauge tracks and reports energy entering and leaving battery cells and reports information to the controller.
8) The computer of claim 1 , wherein the controller compares amplitude readings from a current sense resistor to estimates of current from the fuel gauge at two signal levels to calculate errors in amplifier gain and errors in amplifier
7) The computer of claim 1 further comprising an amplifier, wherein the controller uses correction factors relating to errors in amplifier gain and errors in amplifier offset to correct readings made by the amplifier,
8) A method, comprising: calculating, with a fuel gauge in a battery of a computer, current and voltage input into the computer to charge the battery; calculating, with a controller in the computer, correction factors for gain error and offset error; and correcting, with the controller in the computer using the correction factors, measurements of power consumed by the computer.
9) The method of claim 8 further comprising: receiving the current and voltage to charge the battery while the computer is in an off-state; measuring a current supplied to the computer while the computer is in an on-state.
10) The method of claim 8 further comprising, reporting, from the fuel gauge to the controller, current and voltage input into the computer to charge the battery.
11 )The method of claim 8 further comprising, eliminating the gain and offset error from measurements of the current and voltage.
12) The method of claim 8 further comprising: providing to the controller a signal representing current supplied to the computer from an alternating current (AC) adapter; providing to the controller a signal representing a voltage supplied to the computer from the AC adapter.
13) The method of claim 8 further comprising, comparing amplitude readings from a current sense resistor to estimates of current from [he fuel gauge to calculate the gain error and the offset error.
14) The method of claim 8 further comprising: calculating, with the controller, power input into the computer from a voltage and current sensed in the computer; and correcting calculations of the power with the correction factors.
15) A computer system, comprising: a battery including a fuel gauge that calculates power delivered to charge the battery: and a computer connected to the battery and including a controller that receives information about the power from the fuel gauge, wherein the controller uses [he information and correction factors to calculate power consumed by the computer.
18) The computer system of claim 15 further comprising: a current sense resistor that senses current from an adapter; a level shift and amplifier circuit that develops a voltage sensed from the current, wherein readings of the current and the voltage are provided to the controller to calculate power consumed by [he computer.
17) The computer system of claim 15, wherein the correction factors include a gain of a fixed gain amplifier and an offset of the fixed gain amplifier.
18) The computer system of claim 15 further comprising: a current sense resistor that converts current to a voltage drop that enables current through the current sense resistor to be measured and provided to the controller; a voltage divider produces an output voltage that is a fraction of an input voltage and provided to the controller; a power monitor that provides to the controller a power signal indicative of power being consumed by the computer while the computer is in an on-state.
19) The computer system of claim 15, wherein the controller compares amplitude readings from a current sense resistor to estimates of current from the fuel gauge to calculate the correction factors as errors in amplifier gain and errors in amplifier offset.
20) The computer system of claim 15, wherein the fuel gauge calculates the power delivered to charge the battery while the computer is in an off-state so nearly all energy drawn from an adapter is used to charge [he battery.
PCT/US2009/042238 2009-04-30 2009-04-30 Calculating power input to a computer Ceased WO2010126513A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
PCT/US2009/042238 WO2010126513A1 (en) 2009-04-30 2009-04-30 Calculating power input to a computer
DE112009004616T DE112009004616B4 (en) 2009-04-30 2009-04-30 Calculation of power input to a computer
CN200980159007.5A CN102414638B (en) 2009-04-30 2009-04-30 Calculating power input to a computer
US13/202,032 US20110302441A1 (en) 2009-04-30 2009-04-30 Calculating power input to a computer
GB1115579.3A GB2481929B (en) 2009-04-30 2009-04-30 Calculating power input to a computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/US2009/042238 WO2010126513A1 (en) 2009-04-30 2009-04-30 Calculating power input to a computer

Publications (1)

Publication Number Publication Date
WO2010126513A1 true WO2010126513A1 (en) 2010-11-04

Family

ID=43032449

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2009/042238 Ceased WO2010126513A1 (en) 2009-04-30 2009-04-30 Calculating power input to a computer

Country Status (5)

Country Link
US (1) US20110302441A1 (en)
CN (1) CN102414638B (en)
DE (1) DE112009004616B4 (en)
GB (1) GB2481929B (en)
WO (1) WO2010126513A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014168634A1 (en) * 2013-04-12 2014-10-16 Hewlett-Packard Development Company, Lp Determining an attribute of an adapter based on a ratio of voltage divider output voltages
WO2016014069A1 (en) 2014-07-25 2016-01-28 Hewlett-Packard Development Company, L.P. Bios real-time clock update
US9843211B2 (en) * 2014-09-22 2017-12-12 Qualcomm Incorporated Multiple power chargers for mobile terminals

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6498460B1 (en) * 2001-12-14 2002-12-24 Compaq Information Technologies Group, L.P. Prioritization-based power management protocol in a computer system
US20030205995A1 (en) * 2000-02-17 2003-11-06 Shigefumi Odaohhara Method for displaying information concerning power consumption and electronic device
US20040044914A1 (en) * 2002-08-29 2004-03-04 Gedeon Mazen G. Apparatus and method for measuring and controlling power consumption of a computer system
US20060080559A1 (en) * 2004-10-08 2006-04-13 Dell Products L.P. System and method for regulating the power consumption of a computer system
US20070096697A1 (en) * 2005-11-02 2007-05-03 Stefan Maireanu Battery fuel gauge circuit

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2435782Y (en) * 2000-08-15 2001-06-20 乌鲁木齐特力电信实业发展有限公司 Intelligent computer power supply
US6950950B2 (en) * 2001-12-28 2005-09-27 Hewlett-Packard Development Company, L.P. Technique for conveying overload conditions from an AC adapter to a load powered by the adapter
AU2003903839A0 (en) * 2003-07-24 2003-08-07 Cochlear Limited Battery characterisation
US7301307B2 (en) * 2004-06-25 2007-11-27 Nokia Corporation Method and apparatus to charge a battery using determination of battery load current
US7526659B2 (en) * 2005-02-01 2009-04-28 Hewlett-Packard Development Company, L.P. Systems and methods for controlling use of power in a computer system
JP4735683B2 (en) * 2008-08-22 2011-07-27 ソニー株式会社 Charging apparatus and charging method
US8175825B2 (en) * 2008-09-10 2012-05-08 Dell Products L.P. Methods and systems for auto-calibrated power metering in portable information handling systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030205995A1 (en) * 2000-02-17 2003-11-06 Shigefumi Odaohhara Method for displaying information concerning power consumption and electronic device
US6498460B1 (en) * 2001-12-14 2002-12-24 Compaq Information Technologies Group, L.P. Prioritization-based power management protocol in a computer system
US20040044914A1 (en) * 2002-08-29 2004-03-04 Gedeon Mazen G. Apparatus and method for measuring and controlling power consumption of a computer system
US20060080559A1 (en) * 2004-10-08 2006-04-13 Dell Products L.P. System and method for regulating the power consumption of a computer system
US20070096697A1 (en) * 2005-11-02 2007-05-03 Stefan Maireanu Battery fuel gauge circuit

Also Published As

Publication number Publication date
GB2481929A (en) 2012-01-11
DE112009004616T5 (en) 2012-08-23
GB2481929B (en) 2014-09-03
US20110302441A1 (en) 2011-12-08
GB201115579D0 (en) 2011-10-26
CN102414638A (en) 2012-04-11
CN102414638B (en) 2014-12-10
DE112009004616B4 (en) 2013-04-18

Similar Documents

Publication Publication Date Title
JP3070933U (en) New intelligent computer power management device
CA2090707C (en) Battery operated computer having improved battery gauge and system for measuring battery charge
EP1679576B1 (en) Method, system and calibration technique for power measurement and management over multiple time scales
US8319479B2 (en) Method of estimating battery recharge time and related device
CN102375127B (en) Method for displaying residual battery electricity quantity of mobile terminal
EP2827161B1 (en) Detection circuit and electronic terminal
US7663374B2 (en) Electrical apparatus, computer system, intelligent battery, battery diagnosis method, batter-state display method, and program
CN103033758A (en) Display electric quantity value calibration method and device
CN101008667A (en) Method and system for measuring remaining capacity of a battery with open circuit voltage detection
CN108604818B (en) Battery charging control algorithm
CN110687458A (en) Terminal battery electric quantity determination method and device
CN115436871A (en) Method for preventing zero line missing electricity stealing of single-phase electric energy meter based on low power consumption
US20050156603A1 (en) Method of testing a battery pack by purposeful charge/discharge operations
CN103092062A (en) Method and system used for real-time clock chip accuracy adjustment
US10707038B2 (en) System and method for energy monitoring
WO2010126513A1 (en) Calculating power input to a computer
JP2004226393A (en) Battery level measurement device
CN110297192B (en) A method for estimating the power of a battery during charging and discharging and a method for correcting the power when the battery is turned on
CN106093560B (en) The full decompression of extremely low power dissipation detects control method under ammeter power-down state
CN115327391B (en) Detection method and device based on echelon battery utilization
JP2018200306A (en) Battery remaining amount detection circuit, electronic device using the same, and battery remaining amount detection method
US20240405591A1 (en) Circuit, electronic apparatus, and control method
JP7762855B2 (en) Electronic device, control method for electronic device, and program
TW201344223A (en) The frequency of detection of the secondary battery remaining capacity of the method and display device
CN115267580B (en) Battery electric quantity judging method, device, equipment and storage medium

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200980159007.5

Country of ref document: CN

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

Ref document number: 09844168

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13202032

Country of ref document: US

ENP Entry into the national phase

Ref document number: 1115579

Country of ref document: GB

Kind code of ref document: A

Free format text: PCT FILING DATE = 20090430

WWE Wipo information: entry into national phase

Ref document number: 1115579.3

Country of ref document: GB

WWE Wipo information: entry into national phase

Ref document number: 1120090046169

Country of ref document: DE

Ref document number: 112009004616

Country of ref document: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09844168

Country of ref document: EP

Kind code of ref document: A1