CN113759257A - Current compensation circuit and method for electronic equipment and electronic equipment - Google Patents

Current compensation circuit and method for electronic equipment and electronic equipment Download PDF

Info

Publication number
CN113759257A
CN113759257A CN202010701576.6A CN202010701576A CN113759257A CN 113759257 A CN113759257 A CN 113759257A CN 202010701576 A CN202010701576 A CN 202010701576A CN 113759257 A CN113759257 A CN 113759257A
Authority
CN
China
Prior art keywords
circuit
current
loop
sub
resistor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010701576.6A
Other languages
Chinese (zh)
Inventor
钟锦荣
于书涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010701576.6A priority Critical patent/CN113759257A/en
Publication of CN113759257A publication Critical patent/CN113759257A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • G01R31/3828Arrangements for monitoring battery or accumulator variables, e.g. SoC using current integration
    • G01R31/3832Arrangements for monitoring battery or accumulator variables, e.g. SoC using current integration without measurement of battery voltage
    • G01R31/3833Arrangements for monitoring battery or accumulator variables, e.g. SoC using current integration without measurement of battery voltage using analog integrators, e.g. coulomb-meters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0092Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring current only

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The present disclosure provides a current compensation circuit for an electronic device, comprising: a first circuit comprising: a first power supply, a first resistor, a first switch sub-circuit and a coulometer connected in series; wherein the coulometer is configured to determine a first current value flowing through itself when the first switch sub-circuit is turned on, so that the electronic device determines a current compensation coefficient according to the first current value and a second current value of the first loop, wherein the second current value is determined according to a voltage value of the first power supply and a resistance value of the first resistor; and a second circuit comprising: a second power supply, a second resistor, a second switch sub-circuit and a coulometer connected in series; wherein the coulometer is configured to determine a third current value flowing through itself when the second switch sub-circuit is turned on, such that the electronic device determines the current of the second loop according to the third current value and the current compensation factor.

Description

Current compensation circuit and method for electronic equipment and electronic equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a current compensation circuit and method for an electronic device, and an electronic device.
Background
With the rapid development of the electronic device industry and the advent of lithium batteries, since lithium batteries have the advantages of high stored energy, long service life, light weight, no memory effect and the like, the lithium batteries are widely used in terminals such as smart phones, tablet computers or multimedia players (e.g., smart speakers), electronic devices with batteries are deeply favored by users, the outdoor use requirements of the electronic devices are also significantly increased, and thus good power display schemes are becoming more and more urgent.
The remaining display capacity of the battery can be determined according to the amount of charge consumed by a system of the electronic device during operation, and the accuracy of the current of the system during operation is a key factor influencing the amount of charge, so that it is particularly important to compensate and calibrate the current during operation of the system.
Disclosure of Invention
In view of the above, the present disclosure provides a current compensation circuit and method for an electronic device, and an electronic device.
One aspect of the present disclosure provides a current compensation circuit for an electronic device, comprising: a first circuit comprising: a first power supply, a first resistor, a first switch sub-circuit and a coulometer connected in series; wherein the coulometer is configured to determine a first current value flowing through itself when the first switch sub-circuit is turned on, so that the electronic device determines a current compensation coefficient according to the first current value and a second current value of the first loop, wherein the second current value is determined according to a voltage value of the first power supply and a resistance value of the first resistor; and a second circuit comprising: a second power supply, a second resistor, a second switch sub-circuit, and the coulometer connected in series; wherein the coulometer is configured to determine a third current value flowing through itself when the second switch sub-circuit is turned on, such that the electronic device determines the current of the second loop according to the third current value and the current compensation factor.
According to an embodiment of the present disclosure, the current compensation circuit further includes: a third circuit comprising: the second power supply, the second resistor and the third switching sub-circuit; wherein the third switching sub-circuit is configured to switch on the third loop to enable the second power supply to supply power to the second resistor when the first switching sub-circuit is switched on and the second switching sub-circuit is switched off.
According to an embodiment of the present disclosure, the current compensation circuit further includes: the driving sub-circuit comprises an input end used for receiving a control signal sent by the electronic equipment, a first control end connected to the first switching sub-circuit, a second control end connected to the second switching sub-circuit and a third control end connected to the third switching sub-circuit; the driving sub-circuit is configured to send a control current to the first, second and third switching sub-circuits under the control of the control signal, wherein the control current is used for controlling the first, second and third switching sub-circuits to be switched on or off.
According to an embodiment of the present disclosure, the first switch sub-circuit includes a first transistor and a second transistor; the grid electrode of the first transistor is connected to the first control end of the driving sub-circuit, the first pole is connected to the first end of the first resistor, and the second pole is connected to the first end of the coulometer; the grid electrode of the second transistor is connected to the first control end of the driving sub-circuit, the first pole is connected to the first voltage end of the first power supply, and the second pole is connected to the second end of the coulometer; the second end of the first resistor is connected to the second voltage end of the first power supply.
According to an embodiment of the present disclosure, the second switch sub-circuit includes a third transistor and a fourth transistor; the grid electrode of the third transistor is connected to the second control end of the driving sub-circuit, the first pole is connected to the first voltage end of the second power supply, and the second pole is connected to the first end of the coulometer; the grid electrode of the fourth transistor is connected to the second control end of the driving sub-circuit, the first pole of the fourth transistor is connected to the first end of the second resistor, and the second pole of the fourth transistor is connected to the second end of the coulometer; the second end of the second resistor is connected to a second voltage end of the second power supply.
According to an embodiment of the present disclosure, the third switching sub-circuit includes a fifth transistor; a gate of the fifth transistor is connected to a third control terminal of the driving sub-circuit, a first pole of the fifth transistor is connected to a first voltage terminal of the second power supply, and a second pole of the fifth transistor is connected to a first terminal of the second resistor; a second terminal of the second resistor is connected to a second voltage terminal of the second power supply.
Another aspect of the disclosure provides an electronic device including the current compensation circuit, wherein the first loop of the current compensation circuit is disposed on a main board of the electronic device.
Another aspect of the present disclosure provides a current compensation method for the current compensation circuit, including: controlling a first switch sub-circuit of the first loop to be switched on and a second switch sub-circuit of the second loop to be switched off through a control signal so as to determine a first current value through a coulomb counter of the current compensation circuit; determining a current compensation coefficient according to the first current value and a second current value of the first loop, wherein the second current value is determined according to a first power supply and a first resistor of the first loop; controlling a second switch sub-circuit of the second loop to be switched on through a control signal, and controlling a first switch sub-circuit of the first loop to be switched off so as to determine a third current value through the coulomb counter; and determining the current of the second loop according to the third current value and the current compensation coefficient.
Another aspect of the present disclosure provides a computer system comprising: one or more processors; memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described above.
Another aspect of the disclosure provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement the method as described above.
According to the embodiment of the disclosure, a technical means that the current compensation circuit comprises a first loop and a second loop is adopted, the first loop comprises a power supply, a resistor, a first switch sub-circuit and a coulometer which are connected in series, the second loop comprises a power supply, a resistor, a second switch sub-circuit and a coulometer which are connected in series, when the first loop is switched on, a current compensation coefficient can be determined according to the current of the coulometer, and when the second loop is switched on, the current of the second loop can be compensated according to the current of the coulometer and the current compensation coefficient to obtain the actual current of the second loop is adopted. The first loop and the second loop of the current compensation circuit can realize the self calibration of the current, so the technical problem that the test is inconvenient because the first loop for charge compensation needs to be manually connected in series into the circuit to be tested when the charge compensation is required in the related technology is at least partially solved, and the technical effects of convenient operation, no need of production test stations and time saving are achieved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates a scenario of a current compensation circuit for an electronic device to which embodiments of the present disclosure may be applied;
FIG. 2 schematically illustrates an exemplary structure of a current compensation circuit for an electronic device, according to an embodiment of the present disclosure;
fig. 3 schematically illustrates a circuit structure of a current compensation circuit for an electronic device according to another embodiment of the present disclosure;
fig. 4 schematically illustrates a circuit structure of a current compensation circuit for an electronic device according to another embodiment of the present disclosure;
fig. 5 schematically illustrates an exemplary structural schematic diagram of a current compensation circuit for an electronic device of another embodiment of the present disclosure;
fig. 6 schematically shows a circuit configuration of a current compensation circuit for an electronic device according to another embodiment of the present disclosure;
FIG. 7 schematically illustrates a flow chart of a current compensation method for an electronic device according to an embodiment of the present disclosure; and
fig. 8 schematically shows a block diagram of a computer system 800 according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Fig. 1 schematically illustrates a scenario of a current compensation circuit for an electronic device to which an embodiment of the present disclosure may be applied. It should be noted that fig. 1 is only an example of a scenario in which the embodiment of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiment of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, a scenario 100 according to this embodiment may include an electronic device 101. The electronic device 101 may be a variety of electronic devices having a display screen including, but not limited to, a smart phone, a tablet, a smart speaker, a voice robot, and so forth.
For example, as shown in fig. 1, the electronic device 101 may be a smart phone having a display screen, and an Integrated Circuit (IC) chip is embedded in the electronic device 101, and the IC chip may support a monitoring function of a battery voltage and a battery temperature. Under the hardware environment, the current in the operation process of the system can be determined by monitoring the voltage of the battery, the charge amount consumed in the operation process of the system can be obtained according to the current in the operation process of the system, the residual charge amount can be further determined, and the residual capacity of the battery can be displayed on a display screen.
In carrying out the present disclosure, calculating the battery capacity may take the form of a voltage method or a coulometer method. Among them, the voltage method is mainly to monitor the open circuit voltage of the battery to obtain the remaining capacity of the battery, and the coulometer method is mainly to estimate the battery capacity by measuring the net charge flowing into/out of the battery.
When the battery capacity is calculated by using a voltage method, a voltage open circuit can cause a current to change rapidly, the electric quantity display of the battery is extremely unstable due to inertia, the percentage fluctuation of the electric quantity of the battery is large in a short time, the difference is more than 10%, and the calculated battery capacity is inaccurate, so that the battery capacity is calculated by using a coulomb method generally.
The coulomb method is used to calculate the battery capacity, the electronic device 101 can be shut down, then the test point is reserved on the test mainboard, the coulomb meter is connected in series with the constant current source, the constant current is set, then the current value of the coulomb meter is obtained through the external instrument, and finally the compensation percentage is obtained through the value of the constant current value/the coulomb meter. The method needs a precise constant current source, simultaneously needs independent testing of corresponding stations, has long testing time, needs long-term storage of calibration data, and can lose the calibration data if some errors occur in the system and the calibration data needs to be reformatted.
Based on this, the present disclosure provides a current compensation circuit for an electronic device, comprising: a first circuit comprising: a first power supply, a first resistor, a first switch sub-circuit and a coulometer connected in series; wherein the coulometer is configured to determine a first current value flowing through itself when the first switch sub-circuit is turned on, so that the electronic device determines a current compensation coefficient according to the first current value and a second current value of the first loop, wherein the second current value is determined according to a voltage value of the first power supply and a resistance value of the first resistor; and a second circuit comprising: a second power supply, a second resistor, a second switch sub-circuit and a coulometer connected in series; wherein the coulometer is configured to determine a third current value flowing through itself when the second switch sub-circuit is turned on, such that the electronic device determines the current of the second loop according to the third current value and the current compensation factor.
Fig. 2 schematically illustrates a circuit structure of a current compensation circuit for an electronic device according to an embodiment of the present disclosure.
As shown in fig. 2, the circuit structure according to this embodiment may include:
a first circuit comprising: a power supply BT1, a resistor R1, a first switch sub-circuit 201, and a coulometer 203 connected in series; wherein the coulometer FGU is configured to determine the current value I1 flowing through itself in case the switch sub-circuit 201 is turned on, so that the electronic device determines the current compensation coefficient according to the current value I1 and the current value I2 of the first loop, wherein the current value I2 is determined according to the voltage value U1 of the power supply BT1 and the resistance value R1 of the resistance R1.
A second circuit comprising: a power supply BT2, a resistor R2, a second switch sub-circuit 202 and a coulomb counter 203 connected in series, wherein the power supply BT2 may be a power supply of an electronic device, i.e. a battery. Resistor R2 may be a load of the electronic device; wherein the coulometer FGU is configured to determine the current value I3 flowing through itself with the switch sub-circuit 202 switched on, such that the electronic device determines the current I4 of the second loop from the current value I3 and the current compensation factor.
As shown in fig. 2, the first loop may be a D, E, F, G loop. The second loop may be a A, C, D, G, I, J loop.
According to the embodiment of the present disclosure, the first loop and the second loop may each include a coulometer (FGU for short), the first loop may obtain a current compensation coefficient according to the coulometer, and the second loop may be an original circuit of the electronic device, and may perform current calibration according to the coulometer and the current compensation coefficient. The first loop may be configured on a motherboard of the electronic device.
According to the embodiment of the present disclosure, the electronic device may control the switch sub-circuit 201 to be turned on and the switch sub-circuit 202 to be turned off by the CPU to turn on the first loop, and simultaneously turn off the second loop, and determine the current compensation coefficient by using the first loop. Specifically, the current value I1 may be obtained by a coulometer. The current value I2 of the first loop is then determined according to the voltage value U1 and the resistance value R1 of the first loop. From the current value I1 and the current value I2, the current compensation factor δ I2/I1 can be determined.
According to the embodiment of the present disclosure, the electronic device may control the switch sub-circuit 201 to be turned off and the switch sub-circuit 202 to be turned on by the CPU to turn on the second loop, and simultaneously turn off the first loop, so as to compensate the current of the second loop by using the current compensation coefficient. Specifically, the current value I3 may be obtained by a coulometer, and the current value I3 is compensated according to the current compensation coefficient δ, so that the actual current value I4 of the second loop is I3 × δ.
According to the embodiment of the disclosure, the first loop and the second loop are both configured on a main board of the electronic device, the first loop is used for calculating a current compensation coefficient, and the current of the second loop is compensated according to the current compensation coefficient so as to obtain the actual current of the second loop. Compared with the scheme that the coulomb meter needs to be manually connected in series with a circuit on the main board to calibrate the current in the related technology, the embodiment of the disclosure can avoid invariance caused by manual operation, realize self calibration of the current, improve the accuracy of electric quantity display and further improve user experience.
Fig. 3 schematically illustrates a circuit structure of a current compensation circuit for an electronic device according to another embodiment of the present disclosure.
As shown in fig. 3, in this embodiment, the first switching sub-circuit includes a PNP transistor Q1, and the second switching sub-circuit includes a PNP transistor Q2. Accordingly, a current compensation circuit for an electronic device includes: power supply BT1, resistor R1, PNP transistor Q1, power supply BT2, resistor R2, PNP transistor Q2, and coulometer 301.
A power supply BT1, a resistor R1, a PNP triode Q1 and a coulometer FGU are connected in series to form a first loop. The positive electrode of the power supply BT1 is connected with the first end of the resistor R1, the second end of the resistor R1 is connected with the collector of the PNP triode Q1, the emitter of the PNP triode Q1 is connected with the first end of the coulometer FGU, and the second end of the coulometer FGU is connected with the negative electrode of the power supply BT 1.
And a power supply BT2, a resistor R2, a PNP triode Q2 and a coulometer FGU are connected in series to form a second loop. The positive electrode of the battery BT2 is connected with the emitter of the PNP triode Q2, the collector of the PNP triode Q2 is connected with the first end of the coulometer FGU, the second end of the coulometer FGU is connected with the first end of the resistor R2, and the second end of the resistor R1 is connected with the negative electrode of the battery BT 2.
According to the embodiment of the disclosure, during coulomb meter calibration, the PNP transistor Q2 is controlled to be turned off, the PNP transistor Q1 is turned on (the first loop DEFG is turned on, and the second loop ABCDGIJ loop is turned off), the current I1 on the coulomb meter is read (for example, the current value may be obtained from the FGU module through a data bus (internal or external) by using a CPU of the electronic device), and the calibration current I2 (i.e., DEFG loop current) is calculated based on the voltage value U1 of the power supply BT1 and the resistance value R1 of the resistor, I2 ═ U1/R1, and the calibration coefficient δ, δ ═ I2/I1 can be determined from the calculated calibration current I2 and the read current I1 on the coulomb meter; due to the circuit impedance, the trace used in the first loop EDGF should be as wide as possible, thereby reducing the impedance inherently generated by the circuit.
According to the embodiment of the disclosure, after the coulometer calibration is completed, when the electronic device normally works, the PNP triode Q2 is controlled to be turned on, the PNP triode 01 is turned off (the DEFG loop is turned off, and the ABCDGIJ loop is turned on), the current I3 on the coulometer is read, and the real current I4 on the coulometer at this time can be obtained by using the calibration coefficient as I3 × δ.
According to the embodiment of the disclosure, compared with the existing mechanical or manual operation, the triode is adopted in the embodiment, so that the on-off of the calibration loop (the loop formed by the calibration circuit and the coulometer), the power supply loop (the power supply circuit loop) and the protection loop (the loop formed by the protection circuit, the power supply battery and the load) can be automatically controlled, the labor and the cost are saved, and the production and measurement time is reduced. In addition, the coulomb meter self-calibration circuit is directly arranged on the main board of the electronic equipment, so that a production line calibration station can be removed, the calibration complexity and the production and test time are reduced, and the production cost is reduced.
In addition, the transistor Q2 may also be connected between the second terminal of the coulometer and the first terminal of the resistor R2; transistor Q1 may also be connected between the second terminal of the coulometer and the negative terminal of power supply BT 1.
Fig. 4 schematically illustrates a circuit structure of a current compensation circuit for an electronic device according to another embodiment of the present disclosure.
As shown in fig. 4, in this embodiment, the first switching sub-circuit includes a PNP transistor Q1 and a PNP transistor Q4, and the second switching sub-circuit includes a PNP transistor Q2 and a PNP transistor Q5. Accordingly, the current compensation circuit for an electronic device may include a battery BT1, a resistor R1, a PNP transistor Q1, a PNP transistor Q4, a coulometer 401, a power supply BT2, a resistor R2, a PNP transistor Q2, and a PNP transistor Q5.
The positive electrode of the power supply BT1 is connected with the first end of the resistor R1, the second end of the resistor R1 is connected with the collector of the PNP triode Q1, the emitter of the PNP triode Q1 is connected with the first end of the coulometer FGU, the second end of the coulometer FGU is connected with the emitter of the PNP triode Q4, and the collector of the PNP triode Q4 is connected with the negative electrode of the calibration power supply BT 2.
The positive electrode of the battery BT2 is connected with the emitter of a PNP triode Q2, the collector of the PNP triode Q2 is connected with the first end of a coulometer FGU, the second end of the coulometer FGU is connected with the collector of the PNP triode Q5, and the emitter of the PNP triode Q5 is connected with the first end of a resistor R2.
During coulomb calibration, the PNP transistor Q1 and PNP transistor Q4 are turned on, and the PNP transistor Q2 and PNP transistor Q5 are turned off. After the coulomb meter is calibrated, when the electronic device works normally, the PNP triode Q1 and the PNP triode Q4 are disconnected, and the PNP triode Q2 and the PNP triode Q5 are connected.
In this embodiment, on the basis of the circuit structure of the previous embodiment, the first switch sub-circuit and the second switch sub-circuit are respectively provided with two triodes, so that when one of the triodes fails (for example, a normally-on failure), the circuit loop can be switched on and off by controlling the on and off of the other triode.
Fig. 5 schematically shows a circuit configuration of a current compensation circuit for an electronic device according to another embodiment of the present disclosure.
As shown in fig. 5, the circuit configuration according to this embodiment includes a third loop in addition to the first loop and the second loop, and as shown in fig. 5, the third loop may be a loop composed of A, B, H, I, J. The current compensation circuit for an electronic device includes a power supply BT1, a resistor R1, a PNP transistor Q1, a power supply BT2, a resistor R2, a PNP transistor Q2, and a coulometer 501. The third loop comprises a power supply BT2, a resistor R2 and a third switch sub-circuit 502; wherein the third switch sub-circuit is configured to switch on the third loop to enable the BT2 power supply to supply power to the resistor R2 when the switch sub-circuit 101 is switched on and the switch sub-circuit 102 is switched off.
Further, the current compensation circuit further includes a driving sub-circuit including an input terminal for receiving a control signal sent by the electronic device, a first control terminal connected to the first switching sub-circuit 101, a second control terminal connected to the second switching sub-circuit 102, and a third control terminal connected to the third switching sub-circuit 103; the driving sub-circuit is configured to send a control current to the first, second and third switching sub-circuits under control of the control signal, wherein the control current is used for controlling the first, second and third switching sub-circuits to be switched on or off.
Fig. 6 schematically shows a circuit configuration of a current compensation circuit for an electronic device according to another embodiment of the present disclosure.
As shown in fig. 6, in this embodiment, the third switching sub-circuit includes a PNP transistor Q3. Accordingly, the current compensation circuit for an electronic device includes a power supply BT1, a resistor R1, a PNP transistor Q1, a power supply BT2, a resistor R2, a PNP transistor Q2, a coulometer 601, and a PNP transistor Q3.
As in the previous embodiment, the positive electrode of the battery BT2 is connected to the emitter of the PNP transistor Q2, the collector of the PNP transistor Q2 is connected to a first terminal of the coulometer FGU, a second terminal of the coulometer FGU is connected to a first terminal of the resistor R2, and a second terminal of the resistor R2 is connected to the negative electrode of the battery BT 2. The positive electrode of the power supply BT1 is connected with the first end of the resistor R1, the second end of the resistor R1 is connected with the collector of the PNP triode Q1, the emitter of the PNP triode Q1 is connected with the first end of the coulometer FGU, and the second end of the coulometer FGU is connected with the negative electrode of the power supply BT 1.
According to the embodiment of the present disclosure, unlike the previous embodiment, the positive electrode of the power supply BT2 is also simultaneously connected to the emitter of the PNP transistor Q3, and the first terminal of the load R2 is also simultaneously connected to the collector of the PNP transistor Q3.
According to the embodiment of the disclosure, during coulomb meter calibration, the PNP transistor Q2 is turned off, the PNP transistor Q1 is turned on, and the PNP transistor Q3 is turned on; after the coulomb meter calibration is completed, when the electronic equipment normally works, the PNP triode Q2 is switched on, the PNP triode Q1 is switched off, and the PNP triode Q3 is switched off.
The present embodiment provides a third circuit based on the circuit structure of the previous embodiment, so that during calibration, the battery BT2 can supply power to the resistor R2 by controlling the protection circuit transistor Q3 to be turned on.
The gates of the PNP triodes Q1-Q5 can be connected to the CPU of the electronic device, so that the on/off of the PNP triodes Q1-Q5 can be directly controlled by the control signal output by the CPU.
Of course, it should be understood by those skilled in the art that the switch sub-circuit may also employ an NPN transistor in addition to the PNP transistor, and the details are similar to those of the PNP transistor, and are not described herein again, and a field effect transistor may also be employed in addition to the transistor. In addition, when the transistors are connected in series into the first loop, the second loop and the third loop, the connection relations of the two poles of the transistors except the grid electrodes can be interchanged, and the implementation of the disclosure is not affected.
Fig. 7 schematically illustrates a flow chart of a current compensation method according to an embodiment of the present disclosure. As shown in fig. 7, the method includes operations S701 to S704.
In operation S701, controlling a first switching sub-circuit of the first loop to be turned on and a second switching sub-circuit of the second loop to be turned off by a control signal to determine a first current value through a coulomb counter of the current compensation circuit;
determining a current compensation coefficient according to a first current value and a second current value of the first loop, wherein the second current value is determined according to a first power supply and a first resistor of the first loop in operation S702;
in operation S703, controlling a second switching sub-circuit of the second loop to be turned on and a first switching sub-circuit of the first loop to be turned off by the control signal to determine a third current value by a coulometer; and
in operation S704, a current of the second loop is determined according to the third current value and the current compensation coefficient.
Fig. 8 schematically illustrates a block diagram of a computer system for a current compensation method according to an embodiment of the present disclosure. The computer system illustrated in FIG. 8 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 8, a computer system 800 according to an embodiment of the present disclosure includes a processor 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 801 may also include onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM 803, various programs and data necessary for the operation of the system 800 are stored. The processor 801, the ROM802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM802 and/or RAM 803. Note that the programs may also be stored in one or more memories other than the ROM802 and RAM 803. The processor 801 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
System 800 may also include an input/output (I/O) interface 805, also connected to bus 804, according to an embodiment of the disclosure. The system 800 may also include one or more of the following components connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program, when executed by the processor 801, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM802 and/or RAM 803 described above and/or one or more memories other than the ROM802 and RAM 803.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A current compensation circuit for an electronic device, comprising:
a first circuit comprising: a first power supply, a first resistor, a first switch sub-circuit and a coulometer connected in series;
wherein the coulometer is configured to determine a first current value flowing through itself when the first switch sub-circuit is turned on, so that the electronic device determines a current compensation coefficient according to the first current value and a second current value of the first loop, wherein the second current value is determined according to a voltage value of the first power supply and a resistance value of the first resistor; and
a second circuit comprising: a second power supply, a second resistor, a second switch sub-circuit, and the coulometer connected in series;
wherein the coulometer is configured to determine a third current value flowing through itself when the second switch sub-circuit is turned on, such that the electronic device determines the current of the second loop according to the third current value and the current compensation factor.
2. The current compensation circuit of claim 1, further comprising:
a third circuit comprising: the second power supply, the second resistor and the third switching sub-circuit;
wherein the third switching sub-circuit is configured to switch on the third loop to enable the second power supply to supply power to the second resistor when the first switching sub-circuit is switched on and the second switching sub-circuit is switched off.
3. The current compensation circuit of claim 2, further comprising:
the driving sub-circuit comprises an input end used for receiving a control signal sent by the electronic equipment, a first control end connected to the first switching sub-circuit, a second control end connected to the second switching sub-circuit and a third control end connected to the third switching sub-circuit;
the driving sub-circuit is configured to send a control current to the first, second and third switching sub-circuits under the control of the control signal, wherein the control current is used for controlling the first, second and third switching sub-circuits to be switched on or off.
4. The current compensation circuit of claim 3, wherein the first switch sub-circuit comprises a first transistor and a second transistor;
the grid electrode of the first transistor is connected to the first control end of the driving sub-circuit, the first pole is connected to the first end of the first resistor, and the second pole is connected to the first end of the coulometer;
the grid electrode of the second transistor is connected to the first control end of the driving sub-circuit, the first pole is connected to the first voltage end of the first power supply, and the second pole is connected to the second end of the coulometer;
the second end of the first resistor is connected to the second voltage end of the first power supply.
5. The current compensation circuit of claim 3 wherein the second switch subcircuit includes a third transistor and a fourth transistor;
the grid electrode of the third transistor is connected to the second control end of the driving sub-circuit, the first pole is connected to the first voltage end of the second power supply, and the second pole is connected to the first end of the coulometer;
the grid electrode of the fourth transistor is connected to the second control end of the driving sub-circuit, the first pole of the fourth transistor is connected to the first end of the second resistor, and the second pole of the fourth transistor is connected to the second end of the coulometer;
the second end of the second resistor is connected to a second voltage end of the second power supply.
6. The current compensation circuit of claim 3, wherein the third switching sub-circuit comprises a fifth transistor;
a gate of the fifth transistor is connected to a third control terminal of the driving sub-circuit, a first pole of the fifth transistor is connected to a first voltage terminal of the second power supply, and a second pole of the fifth transistor is connected to a first terminal of the second resistor;
a second terminal of the second resistor is connected to a second voltage terminal of the second power supply.
7. An electronic device comprising the current compensation circuit of any one of claims 1 to 6, wherein the first loop of the current compensation circuit is disposed on a motherboard of the electronic device.
8. A current compensation method for the current compensation circuit of any one of claims 1 to 6, comprising:
controlling a first switch sub-circuit of the first loop to be switched on and a second switch sub-circuit of the second loop to be switched off through a control signal so as to determine a first current value through a coulomb counter of the current compensation circuit;
determining a current compensation coefficient according to the first current value and a second current value of the first loop, wherein the second current value is determined according to a first power supply and a first resistor of the first loop;
controlling a second switch sub-circuit of the second loop to be switched on through a control signal, and controlling a first switch sub-circuit of the first loop to be switched off so as to determine a third current value through the coulomb counter; and
and determining the current of the second loop according to the third current value and the current compensation coefficient.
9. A computer system, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of claim 8.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to implement the method of claim 8.
CN202010701576.6A 2020-07-17 2020-07-17 Current compensation circuit and method for electronic equipment and electronic equipment Pending CN113759257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010701576.6A CN113759257A (en) 2020-07-17 2020-07-17 Current compensation circuit and method for electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010701576.6A CN113759257A (en) 2020-07-17 2020-07-17 Current compensation circuit and method for electronic equipment and electronic equipment

Publications (1)

Publication Number Publication Date
CN113759257A true CN113759257A (en) 2021-12-07

Family

ID=78785554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010701576.6A Pending CN113759257A (en) 2020-07-17 2020-07-17 Current compensation circuit and method for electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN113759257A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10310503A1 (en) * 2003-03-11 2004-09-23 Robert Bosch Gmbh Current measurement arrangement has a test current source of known value that permits the calibration of a measurement resistance prior to, or during, current measurement processes
US20070030032A1 (en) * 2005-08-03 2007-02-08 Chin Lee Fault Tolerant NAND Gate Circuit
US20130038292A1 (en) * 2010-02-12 2013-02-14 Stephen Barrett Management of battery charging through coulomb counting
CN103051237A (en) * 2013-01-22 2013-04-17 哈尔滨工业大学 Six-phase eight-bridge arm inverter with high fault-tolerant capability
CN103944436A (en) * 2014-05-15 2014-07-23 西安科技大学 Three-phase fault-tolerant inverter circuit and control method thereof
CN105372602A (en) * 2015-12-10 2016-03-02 惠州Tcl移动通信有限公司 Battery remaining capacity detecting method of mobile terminal and device thereof
CN106526286A (en) * 2016-11-11 2017-03-22 广州极飞科技有限公司 Current detection circuit, method and cell system
CN107505577A (en) * 2017-09-19 2017-12-22 上海斐讯数据通信技术有限公司 A kind of circuit for measuring capacity of battery, battery capacity Method for Accurate Calculation and system
CN207339709U (en) * 2017-03-11 2018-05-08 常州市裕成富通电机有限公司 Four phase switch reluctances power of motor converter topology structure used for electric vehicle
CN108966670A (en) * 2017-03-22 2018-12-07 联芯科技有限公司 Voltameter and its current acquisition calibration circuit and calibration method
CN109061268A (en) * 2018-07-27 2018-12-21 维沃移动通信有限公司 A kind of current value detection system, method and mobile terminal
US10650946B1 (en) * 2018-08-08 2020-05-12 Flex Ltd. Trimming method of DCR sensing circuits

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10310503A1 (en) * 2003-03-11 2004-09-23 Robert Bosch Gmbh Current measurement arrangement has a test current source of known value that permits the calibration of a measurement resistance prior to, or during, current measurement processes
US20070030032A1 (en) * 2005-08-03 2007-02-08 Chin Lee Fault Tolerant NAND Gate Circuit
US20130038292A1 (en) * 2010-02-12 2013-02-14 Stephen Barrett Management of battery charging through coulomb counting
CN103051237A (en) * 2013-01-22 2013-04-17 哈尔滨工业大学 Six-phase eight-bridge arm inverter with high fault-tolerant capability
CN103944436A (en) * 2014-05-15 2014-07-23 西安科技大学 Three-phase fault-tolerant inverter circuit and control method thereof
CN105372602A (en) * 2015-12-10 2016-03-02 惠州Tcl移动通信有限公司 Battery remaining capacity detecting method of mobile terminal and device thereof
CN106526286A (en) * 2016-11-11 2017-03-22 广州极飞科技有限公司 Current detection circuit, method and cell system
CN207339709U (en) * 2017-03-11 2018-05-08 常州市裕成富通电机有限公司 Four phase switch reluctances power of motor converter topology structure used for electric vehicle
CN108966670A (en) * 2017-03-22 2018-12-07 联芯科技有限公司 Voltameter and its current acquisition calibration circuit and calibration method
CN107505577A (en) * 2017-09-19 2017-12-22 上海斐讯数据通信技术有限公司 A kind of circuit for measuring capacity of battery, battery capacity Method for Accurate Calculation and system
CN109061268A (en) * 2018-07-27 2018-12-21 维沃移动通信有限公司 A kind of current value detection system, method and mobile terminal
US10650946B1 (en) * 2018-08-08 2020-05-12 Flex Ltd. Trimming method of DCR sensing circuits

Similar Documents

Publication Publication Date Title
CN108475935B (en) Battery charging management method and terminal
CN102508172A (en) Calculation method for electric quantities of battery, device and terminal
US8448112B1 (en) System, method, and computer program product for automatic power management verification
CN110703984B (en) Data collection system and data collection method
TW201403105A (en) Method and system for calculating capacities of battery
CN107885683A (en) A kind of current test method of terminal and terminal
CN112362971B (en) Power module equivalent resistance testing method, device, equipment and storage medium
US20230078697A1 (en) Method and apparatus for determining display power, electronic device, and storage medium
CN112946482A (en) Battery voltage estimation method, device, equipment and storage medium based on model
US9383223B2 (en) Smart meter system architecture
CN204405748U (en) Can the Novel wire harness tester of spread test interface
US8248257B2 (en) System and method for testing charging current of a mobile electronic device
CN113759257A (en) Current compensation circuit and method for electronic equipment and electronic equipment
CN117723978A (en) Cell power state determining method, device, computer equipment and storage medium
CN117054896A (en) SOP function test method, device, equipment and storage medium
CN204463780U (en) Short bar tool
US10719110B2 (en) In-system power usage measurement
CN104730993A (en) Intelligent instrument partitioning upgrading method and intelligent instrument
US11120716B2 (en) Method for detecting gamma voltage value, gamma chip, and computer-readable storage medium
CN107748342A (en) Coulomb meter calibration method, mobile terminal and computer-readable storage medium
CN115468552A (en) Fiber-optic gyroscope data acquisition method and system
CN114689940A (en) Substrate impedance testing method, device, system, computer equipment and storage medium
CN110967446B (en) Parameter targeting method and device, storage medium and electronic equipment
CN203414580U (en) Precision dual temperature correction circuit of electronic load
CN101938156A (en) Charging circuit for use in the calibration and test of mobile terminal and implementation method thereof

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211207