CN106026220A - Charging sampling voltage compensation method and mobile terminal - Google Patents
Charging sampling voltage compensation method and mobile terminal Download PDFInfo
- Publication number
- CN106026220A CN106026220A CN201610292617.4A CN201610292617A CN106026220A CN 106026220 A CN106026220 A CN 106026220A CN 201610292617 A CN201610292617 A CN 201610292617A CN 106026220 A CN106026220 A CN 106026220A
- Authority
- CN
- China
- Prior art keywords
- voltage
- charging
- sampled voltage
- mobile terminal
- value
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/0071—Regulation of charging or discharging current or voltage with a programmable schedule
Abstract
The invention provides a charging sampling voltage compensation method and a mobile terminal. The method comprises the steps that the function relationship between a voltage compensation value and charging sampling voltage is fit; when charging sampling voltage is detected, the function relation is used to calculate a voltage compensation value corresponding to the charging sampling voltage; the charging sampling voltage and the voltage compensation value are added; and the added voltage is used as the reference voltage for adjusting the charging current of the mobile terminal. According to the invention, error of the reference voltage with respect to actual external charging voltage can be reduced.
Description
Technical field
The present invention relates to voltage compensation technology field, be specifically related to the compensation method of a kind of sampled voltage that charges and move eventually
End.
Background technology
Current when mobile terminal is charged, mobile terminal can voltage based on charger different, Automatic adjusument
Charging current, to adapt to the charged state of mobile terminal self.Mobile terminal can be according to the PMIC (Power configured
Management Integrated Circuit, integrated power supply management circuit) and the peripheral circuit charging voltage to charger
Sample.Referring to Fig. 1, Fig. 1 is a kind of equivalent circuit diagram sampling charging voltage.As it is shown in figure 1, VCHR_IN
For the external charging voltage of mobile terminal, resistance R1 and resistance R2 is the sample circuit to VCHR_IN, and U2 is charging sampling electricity
Pressure.U2 is to be sampled by USB_IN1 Yu the USB_IN2 pin in PMIC to obtain, if the precision of resistance R1 and resistance R2 is relatively
Low, then there is certain error in the voltage carrying out sampling by this kind of circuit, need mobile terminal sampling charging voltage after, to institute
The voltage of sampling compensates, and the voltage after compensating is as the reference voltage of regulation charging current.
At present, external charging voltage VCHR_IN different according to the mode that charging sampled voltage is compensated, sampling
Obtain different charging sampled voltage U2, and go out each charging according to the mathematic interpolation of external charging voltage with charging sampled voltage and adopt
Offset corresponding to sample voltage.And the offset calculated is averaged as mobile terminal to the whole of sampled voltage of charging
Body offset.The most no matter the charging sample voltage value detected by mobile terminal is how many, is required to plus this entire compensation value
As the reference voltage.But, the reference voltage after compensating in said method is bigger compared to actual external charging voltage error.
Summary of the invention
Embodiments provide compensation method and the mobile terminal of a kind of sampled voltage that charges, reference voltage can be reduced
Error compared to actual external charging voltage.
Embodiment of the present invention first aspect provides the compensation method of a kind of sampled voltage that charges, including:
Simulate the functional relationship of voltage compensation value and charging sampled voltage;
When charging sampled voltage being detected, described functional relationship is utilized to calculate corresponding to described charging sampled voltage
Voltage compensation value;
Described charging sampled voltage is summed up with described voltage compensation value, using described add and after voltage as regulation
The reference voltage of mobile terminal charging current.
Optionally, simulate voltage compensation value described in and the functional relationship of the sampled voltage that charges include:
Least square fitting is utilized to go out the linear equation y=a of voltage compensation value and charging sampled voltage0+a1X, wherein,
Described x represents described charging sampled voltage, and described y represents described voltage compensation value.
Optionally, the described linear equation y=utilizing least square fitting to go out voltage compensation value and charging sampled voltage
a0+a1X, including:
Obtain N number of external charging voltage pi, 1≤i≤N;
Obtain and described N number of external charging voltage piCorresponding N number of charging sampled voltage xi;
Calculate N number of with reference to offset yi=pi-xi;
Based on described N number of charging sampled voltage xiAnd it is described N number of with reference to offset yi, determine described linear equation y=a0
+a1Coefficient a in x0With coefficient a1Value.
Optionally, described acquisition and described N number of external charging voltage piCorresponding N number of charging sampled voltage xiAfter, described side
Method also includes:
Detection obtains described N number of charging sampled voltage xiTemperature parameter in rear mobile terminal local environment;
Described N number of charging sampled voltage x is determined based on described temperature parameteriCorresponding N number of weighted value wi;
Wherein, described based on described N number of charging sampled voltage xiAnd it is described N number of with reference to offset yi, determine described linearly
Equation y=a0+a1Coefficient a in x0With coefficient a1Value, including:
Based on described N number of charging sampled voltage xi, described N number of with reference to offset yiAnd described N number of weighted value wi, determine
Described linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
Optionally, when charging sampled voltage being detected, described method also includes:
Based on the ambient parameter residing for described mobile terminal, determine the functional relationship corresponding with described ambient parameter;
Described described functional relationship is utilized to calculate the voltage compensation value corresponding to described charging sampled voltage, including:
Utilize and calculate the voltage corresponding to described charging sampled voltage with the functional relationship corresponding to described ambient parameter
Offset.
Embodiment of the present invention second aspect provides a kind of mobile terminal, including:
Fitting module, for simulating the functional relationship of voltage compensation value and charging sampled voltage;
Computing module, for when charging sampled voltage being detected, utilizing described functional relationship to calculate described charging and adopt
Voltage compensation value corresponding to sample voltage;
Add and module, for described charging sampled voltage is summed up with described voltage compensation value, by described add with after
Voltage as regulation mobile terminal charging current reference voltage.
Optionally, described fitting module is additionally operable to:
Least square fitting is utilized to go out the linear equation y=a of voltage compensation value and charging sampled voltage0+a1X, wherein,
Described x represents described charging sampled voltage, and described y represents described voltage compensation value.
Optionally, described fitting module includes:
First acquiring unit, is used for obtaining N number of external charging voltage pi, 1≤i≤N;
Second acquisition unit, for obtaining and described N number of external charging voltage piCorresponding N number of charging sampled voltage xi;
Computing unit, is used for calculating N number of reference offset yi=pi-xi;
First determines unit, for based on described N number of charging sampled voltage xiAnd it is described N number of with reference to offset yi, determine
Described linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
Optionally, described fitting module also includes:
Detector unit, is used for detecting described second acquisition unit and obtains described N number of charging sampled voltage xiRear mobile terminal
Temperature parameter in local environment;
Second determines unit, for determining described N number of charging sampled voltage x based on described temperature parameteriCorresponding is N number of
Weighted value wi;
Described first determines that unit is additionally operable to:
Based on described N number of charging sampled voltage xi, described N number of with reference to offset yiAnd described N number of weighted value wi, determine
Described linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
Optionally, described mobile terminal also includes:
Determine module, for when charging sampled voltage being detected, based on the ambient parameter residing for described mobile terminal, really
The fixed functional relationship corresponding with described ambient parameter;
Described computing module is additionally operable to:
Utilize and calculate the voltage corresponding to described charging sampled voltage with the functional relationship corresponding to described ambient parameter
Offset.
The embodiment of the present invention third aspect provides a kind of mobile terminal, including:
Storage has the memorizer of executable program code;
The processor coupled with described memorizer;
The sample circuit coupled with described processor, described sample circuit is adopted for generating charging according to external charging voltage
Sample voltage;
Described processor calls the described executable program code of storage in described memorizer, performs such as the embodiment of the present invention
Part or all of step described in first aspect either method.
In the embodiment of the present invention, by the functional relationship of matching voltage compensation value with charging sampled voltage, it is possible to based on not
Same charging sampled voltage dynamically compensates regulation to charging sampled voltage.When charging sampled voltage being detected, available
The functional relationship of matching calculates this voltage compensation value corresponding to charging sampled voltage;And the charging sampled voltage that will detect
Sum up with the voltage compensation value calculated, add and after voltage be compensation voltage, this compensation voltage can be as regulation
The reference voltage of mobile terminal charging current.Utilize said method, it is possible to reduce reference voltage compared to actual external charging
The error of voltage.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make
Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be some embodiments of the present invention, for ability
From the point of view of the those of ordinary skill of territory, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings
Figure.
Fig. 1 is a kind of equivalent circuit diagram sampling charging voltage disclosed in prior art.
Fig. 2 is the first embodiment flow process signal of the compensation method of a kind of sampled voltage that charges that the embodiment of the present invention provides
Figure;
Fig. 3 is the second embodiment flow process signal of the compensation method of a kind of sampled voltage that charges that the embodiment of the present invention provides
Figure;
Fig. 4 is the first embodiment structural representation of a kind of mobile terminal that the embodiment of the present invention provides;
Fig. 5 is the second example structure schematic diagram of a kind of mobile terminal that the embodiment of the present invention provides;
Fig. 6 is the 3rd example structure schematic diagram of a kind of mobile terminal that the embodiment of the present invention provides;
Fig. 7 is that a kind of offset utilizing least square fitting linear equation to calculate that the embodiment of the present invention provides shows
It is intended to;
Fig. 8 is a kind of offset schematic diagram utilizing averaging method to calculate that prior art provides.
Detailed description of the invention
Embodiments provide compensation method and the mobile terminal of a kind of sampled voltage that charges, reference voltage can be reduced
Error compared to actual external charging voltage.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this
Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise
Example, broadly falls into the scope of protection of the invention.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this
Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise
Example, broadly falls into the scope of protection of the invention.
Term " first ", " second ", " the 3rd " and " in description and claims of this specification and described accompanying drawing
Four " it is etc. for distinguishing different object rather than for describing particular order.Additionally, term " includes " and " having " and it
Any deformation, it is intended that cover non-exclusive comprising.Such as contain series of steps or the process of unit, method, be
System, product or equipment are not limited to step or the unit listed, but the most also include step or the list do not listed
Unit, or the most also include other step intrinsic for these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments
It is contained at least one embodiment of the present invention.It is identical that each position in the description occurs that this phrase might not each mean
Embodiment, be not and the independent of other embodiments mutual exclusion or alternative embodiment.Those skilled in the art explicitly and
Implicitly being understood by, embodiment described herein can combine with other embodiments.
Mobile terminal described by the embodiment of the present invention can include smart mobile phone (as Android phone, iOS mobile phone,
Windows Phone mobile phone etc.), panel computer, palm PC, notebook computer, mobile internet device (MID, Mobile
Internet Devices) or Wearable etc., above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned end
End.
Refer to Fig. 2, for the first embodiment of compensation method of a kind of sampled voltage that charges that the embodiment of the present invention provides
Schematic flow sheet.The method can be applicable to above-mentioned mobile terminal.Method described in the present embodiment comprises the following steps.
Step S201, simulates the functional relationship of voltage compensation value and charging sampled voltage.
In one embodiment, owing to mobile terminal is fixed for the sample circuit of external charging voltage, can be by experiment
Simulate the voltage compensation value required for mobile terminal and the functional relationship between charging sampled voltage.Concrete, voltage compensation
It is worth different based on different charging sampled voltages.Wherein, available different method simulates voltage compensation value and adopts with charging
Functional relationships different between sample voltage;As utilized least square fitting to go out voltage compensation value and the linear of sampled voltage of charging
Functional relationship;Method of least square or other algorithms is and for example utilized to simulate the non-linear letter of voltage compensation value and charging sampled voltage
Number relation etc..Optionally, can determine that voltage compensation value is adopted with charging based on mobile terminal residing different environment when charging
The different functional relationship of sample voltage.Environment as residing when charging in mobile terminal can be distinguished based on temperature, residing ring
During the temperature height of border, corresponding a kind of functional relationship, when local environment temperature is low, corresponding another kind of functional relationship, real in this present invention
Execute example not limit.
Step S202, when charging sampled voltage being detected, utilizes described functional relationship to calculate described charging sampling electricity
Voltage compensation value corresponding to pressure.
In one embodiment, after mobile terminal detects charging sampled voltage by devices such as sample circuits, can profit
The voltage compensation value that mobile terminal needs to compensate this charging sample circuit is calculated by the functional relationship of institute's matching.Specifically
, based on above-mentioned functional relationship, it is possible to calculate charging voltage compensation value corresponding to sampled voltage.It should be noted that base
In different functional relationships, it is possible to the different corresponding identical voltage compensation values of charging sampled voltage, it is of course also possible to fill
Electricity sampled voltage is tied to form one-to-one relationship with voltage compensation value based on functional relationships, as when charging sampled voltage and voltage compensation value
Between functional relationship when being linear relationship, then voltage compensation value becomes one-to-one relationship with charging sampled voltage.Optionally, when
When charging sampled voltage being detected, also can detect the environment residing for mobile terminal or above-mentioned sample circuit further, and obtain energy
Enough impacts or function relation are to corresponding ambient parameter, such as temperature parameter etc..And then, according to current ambient parameter, can be from
The functional relationship corresponding with current environment parameter is transferred in the functional relationship set simulated.As when simulating charging sampled voltage
And when the functional relationship between voltage compensation value is linear relationship, different linear passes can be simulated according to different ambient parameters
System, thus, mobile terminal can transfer, according to current ambient parameter, linear with current environment match parameters simulated
Relation.
Step S203, sums up with described voltage compensation value described charging sampled voltage, by described add and after electricity
Press the reference voltage as regulation mobile terminal charging current.
In one embodiment, after utilizing above-mentioned functional relationship to calculate voltage compensation value, can be to charging sampled voltage
Sum up with the voltage compensation value calculated, add and after voltage closer to external charging voltage, thus shifting can be reduced
The dynamic terminal sampling error to outside charging voltage, further, after charging sampled voltage is compensated, the voltage after compensation
Charging current can be carried out based on the voltage after compensating as the reference voltage of regulation mobile terminal charging current, i.e. mobile terminal
Adjust such that it is able to determine charging current more accurately, to protect the chip in mobile terminal or circuit to be operated in optimal shape
State.
In the embodiment of the present invention, by the functional relationship of matching voltage compensation value with charging sampled voltage, it is possible to based on not
Same charging sampled voltage dynamically compensates regulation to charging sampled voltage.When charging sampled voltage being detected, available
The functional relationship of matching calculates this voltage compensation value corresponding to charging sampled voltage;And the charging sampled voltage that will detect
Sum up with the voltage compensation value calculated, add and after voltage be compensation voltage, this compensation voltage can be as regulation
The reference voltage of mobile terminal charging current.Utilize said method, it is possible to reduce reference voltage compared to actual external charging
The error of voltage.
Refer to Fig. 3, for second embodiment of compensation method of a kind of sampled voltage that charges that the embodiment of the present invention provides
Schematic flow sheet.The method can be applicable to above-mentioned mobile terminal.Method described in the present embodiment comprises the following steps.
Step S301, utilizes least square fitting to go out the linear equation y=a of voltage compensation value and charging sampled voltage0+
a1X, wherein, described x represents described charging sampled voltage, and described y represents described voltage compensation value.
In one embodiment, available least square fitting goes out the linear side of voltage compensation value and charging sampled voltage
Journey.Concrete, above-mentioned linear equation can be simulated by following steps:
Obtain N number of external charging voltage pi, 1≤i≤N;
Obtain and described N number of external charging voltage piCorresponding N number of charging sampled voltage xi;
Calculate N number of with reference to offset yi=pi-xi;
Based on described N number of charging sampled voltage xiAnd it is described N number of with reference to offset yi, determine described linear equation y=a0
+a1Coefficient a in x0With coefficient a1Value.
Below above-mentioned steps is specifically described.
First N number of external charging voltage p can be obtained1~pN, this N number of external charging voltage is external charging common voltage.Move
Dynamic terminal can jointly set up experimental situation, by the reality of exterior arrangement during linear equation with external charger
Test detection device and can detect the external charger charging voltage to mobile terminal, or can be controlled by the experimental situation set up
Charging voltage to mobile terminal, as inputted the charging voltage of 4190mV, and by mobile for this charging voltage notice to mobile terminal
Terminal, after mobile terminal has notice, records this charging voltage as external charging voltage.Wherein, N number of external charging electricity is obtained
Pressure can obtain successively, and the external charging voltage obtained in i & lt is pi, 1≤i≤N.
Obtain and the N number of charging sampled voltage corresponding to N number of external charging voltage.Concrete, outside i & lt gets
Portion's charging voltage is piTime, mobile terminal is x based on the charging sampled voltage that the sample circuit in terminal detectsi, wherein, logical
Cross and there is error between charging sampled voltage and the external charging voltage that terminal sample circuit detects, then can be based on getting
N number of external charging voltage and N number of charging sampled voltage, calculate N number of with reference to offset.Illustrate, when mobile terminal i-th
The secondary external charging voltage p gotiFor 4190mV, at the charging sampled voltage x that i & lt getsiFor 4100mV, then i-th
The secondary reference offset y calculatedi=pi-xi=4190mV-4100mV=90mV.
By above-mentioned calculating process, see table 1, show that mobile terminal is corresponding after obtaining N number of external charging voltage
N number of with reference to offset.As shown in table 1, table 1 lists external charging voltage and charging sampled voltage and reference offset
Corresponding relation.It should be noted that this table is not exhaustive, for other external charging voltages obtained, people in the art
Member can calculate the corresponding relation of each voltage by the way.
External charging voltage (mV) | Charging sampled voltage (mV) | With reference to offset (mV) |
4190 | 4100 | 90 |
4300 | 4198 | 102 |
4390 | 4292 | 98 |
4430 | 4328 | 102 |
4510 | 4394 | 116 |
4600 | 4486 | 114 |
4620 | 4506 | 114 |
4710 | 4598 | 112 |
4820 | 4696 | 124 |
4920 | 4792 | 128 |
5020 | 4890 | 130 |
5120 | 4990 | 130 |
5220 | 5084 | 136 |
5320 | 5184 | 136 |
5430 | 5284 | 146 |
5520 | 5380 | 140 |
5630 | 5482 | 148 |
Table 1
After getting charging sampled voltage and calculating reference offset as shown in table 1, available least square
The formula principle of method calculates linear equation y=a further0+a1Coefficient a in x0With coefficient a1Value.Concrete, a young waiter in a wineshop or an inn
Shown in the formula principle of multiplication such as below equation (1).
Wherein,
In the embodiment of the present invention, utilize least square fitting linear equation, then m value is 1.And then, formula (1) simplifies
For below equation (2).
And then, when getting N number of charging sampled voltage xi, and N number of with reference to offset yiAfter, can be calculated:
Thus it is available about coefficient a0With coefficient a1Linear equation in two unknowns group, coefficient a can be calculated0With coefficient a1's
Concrete numerical value.
See table 1, as N=17, the coefficient a calculated according to table 10=-62.1659;a1=0.0387;And then, can lead to
Cross least square fitting going out a linear equation is y=-62.1659+0.0387x.
Refer to Fig. 7 and Fig. 8.Wherein, Fig. 7 is that the one that the embodiment of the present invention provides utilizes least square fitting outlet
The offset schematic diagram of property Equation for Calculating;Fig. 8 is a kind of offset schematic diagram utilizing averaging method to calculate that prior art provides.
Discrete point shown in Fig. 7 Yu Fig. 8 is to mend with the reference in table 1 based on the offset corresponding to charging sampled voltage each in table 1
Repay the error amount between value, wherein, after Fig. 7 utilizes above-mentioned linear equation to calculate each offset, calculate further and mend with reference
Repay the error amount between value, after Fig. 8 utilizes averaging method to calculate average offset, calculate further and with reference between offset
Error amount.Straight line shown in Fig. 7 Yu Fig. 8 represents the meansigma methods of error amount.Based on icon shown in Fig. 7 Yu Fig. 8, it is possible to more straight
The error found out between the offset utilizing above-mentioned linear equation to calculate and reference offset seen is less, the compensation i.e. calculated
It is worth more accurate.Thus reduce the error compared to actual external charging voltage of the voltage after compensation.
Optionally, the weighted value of each charging sampled voltage also can be determined further according to temperature parameter, and according to acquisition
Weighted value different, the linear equation that matching is different.Specific embodiment can be found in following steps:
Detection obtains described N number of charging sampled voltage xiTemperature parameter in rear mobile terminal local environment;
Described N number of charging sampled voltage x is determined based on described temperature parameteriCorresponding N number of weighted value wi;
Based on described N number of charging sampled voltage xi, described N number of with reference to offset yiAnd described N number of weighted value wi, determine
Described linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
Below above-mentioned steps is specifically described.
Charging sampled voltage difference based on temperature parameter, it may be determined that the weighted value of this charging sampled voltage.As detection obtains
After taking this charging sampled voltage, the temperature parameter in mobile terminal local environment, or detection acquisition charging sampled voltage time shift
Temperature parameter in dynamic terminal local environment.If it is different to obtain difference charging temperature parameter corresponding to sampled voltage, then based on
Different temperature parameters contrasts with standard temperature parameter area, if temperature parameter deviation is the biggest, then can set the charging of its correspondence
The weighted value of sampled voltage becomes positive correlation or negative correlativing relation with above-mentioned deviation value, here, the embodiment of the present invention does not limits.If
Obtain difference charging temperature parameter corresponding to sampled voltage identical, then can set the weighted value phase of different charging sampled voltage
With.When determining N number of charging sampled voltage x based on temperature parameteriCorresponding N number of weighted value wiAfter, available formula (2) calculates
Linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
Concrete,
Thus it is available about coefficient a0With coefficient a1Linear equation in two unknowns group, coefficient a can be calculated0With coefficient a1's
Concrete numerical value.
Step S302, when detect charging sampled voltage time, based on the ambient parameter residing for described mobile terminal, determine with
The linear equation that described ambient parameter is corresponding.
In one embodiment, can determine multiple different linear equation by above-mentioned various ways, such as the mark arranged
Quasi-temperature parameter is different, and then the weighted value affecting each charging sampled voltage is different, thus forms different linear equation.When
So, the above-mentioned linear equation not considering weighted value can be applied in part or all of applied environment based on concrete condition.Work as matching
After going out different linear equation, can be when charging sampled voltage being detected, based on the ambient parameter residing for current mobile terminal, bag
Include temperature parameter etc., determine the linear equation corresponding with this ambient parameter.Optionally, different standard environment parameters can correspondence not
Same linear equation, and mapping table storage can be formed in the terminal, thus when learning what mobile terminal was presently in
After ambient parameter, by this ambient parameter as standard environment parameter, transfer from mapping table using this ambient parameter as mark
The linear equation that quasi environment parameter is simulated.
Step S303, utilizes described linear equation to calculate the voltage compensation value corresponding to described charging sampled voltage.
In one embodiment, after determining and needing the linear equation that compensates, available determined by linear side
Journey calculates the voltage compensation value that mobile terminal needs to compensate this charging sample circuit.
Step S304, sums up with described voltage compensation value described charging sampled voltage, by described add and after electricity
Press the reference voltage as regulation mobile terminal charging current.
In one embodiment, after utilizing above-mentioned functional relationship to calculate voltage compensation value, can be to charging sampled voltage
Sum up with the voltage compensation value calculated, add and after voltage closer to external charging voltage, thus shifting can be reduced
The dynamic terminal sampling error to outside charging voltage, further, after charging sampled voltage is compensated, the voltage after compensation
Charging current can be carried out based on the voltage after compensating as the reference voltage of regulation mobile terminal charging current, i.e. mobile terminal
Adjust such that it is able to determine charging current more accurately, to protect the chip in mobile terminal or circuit to be operated in optimal shape
State.
In the embodiment of the present invention, by the detection to varying environment parameter, it is possible to determine and match with this ambient parameter
Linear equation such that it is able to calculate and more precisely compensate for value, with reduce further the voltage after above-mentioned compensation with reality outside
Error between portion's charging voltage, and then charging voltage can be regulated more accurately.
Refer to the first embodiment structural representation that Fig. 4, Fig. 4 are a kind of mobile terminals that the embodiment of the present invention provides.
Mobile terminal described in the present embodiment includes fitting module 401, computing module 402, adds and module 403.
Wherein, fitting module 401, for simulating the functional relationship of voltage compensation value and charging sampled voltage.
In one embodiment, owing to mobile terminal is fixed for the sample circuit of external charging voltage, fitting module 401
The voltage compensation value required for mobile terminal and the functional relationship between charging sampled voltage can be gone out by experimental fit.Specifically
, voltage compensation value is different based on different charging sampled voltages.Wherein, available different method simulates voltage compensation
It is worth functional relationships different between charging sampled voltage;As utilized least square fitting to go out voltage compensation value and charging sampling
The linear functional relation of voltage;Method of least square or other algorithms is and for example utilized to simulate voltage compensation value and charging sampled voltage
Nonlinear function etc..Optionally, voltage compensation can be determined based on mobile terminal residing different environment when charging
It is worth the functional relationship different from charging sampled voltage.Environment as residing when charging in mobile terminal can carry out district based on temperature
Not, during local environment temperature height, corresponding a kind of functional relationship, when local environment temperature is low, corresponding another kind of functional relationship, at this
The embodiment of the present invention does not limits.
Computing module 402, for when charging sampled voltage being detected, utilizing described functional relationship to calculate described charging
Voltage compensation value corresponding to sampled voltage.
In one embodiment, after mobile terminal detects charging sampled voltage by devices such as sample circuits, calculate
Module 402 may utilize the functional relationship of institute's matching and calculates the voltage that mobile terminal needs to compensate this charging sample circuit
Offset.Concrete, based on above-mentioned functional relationship, it is possible to calculate charging voltage compensation value corresponding to sampled voltage.Need
Illustrate, based on different functional relationships, it is possible to the different corresponding identical voltage compensation values of charging sampled voltage, when
So, it is also possible to charging sampled voltage is tied to form one-to-one relationship with voltage compensation value based on functional relationships, as when charging sampling electricity
When functional relationship between pressure and voltage compensation value is linear relationship, then voltage compensation value becomes one_to_one corresponding with charging sampled voltage
Relation.Optionally, when charging sampled voltage being detected, also can detect further residing for mobile terminal or above-mentioned sample circuit
Environment, and acquisition can affect or function relation is to corresponding ambient parameter, such as temperature parameter etc..And then, according to current
Ambient parameter, can transfer the functional relationship corresponding with current environment parameter from the functional relationship set simulated.As worked as matching
Go out the functional relationship charging between sampled voltage and voltage compensation value when being linear relationship, can be according to different ambient parameter matchings
Go out different linear relationships, thus, mobile terminal can according to current ambient parameter, transfer simulate with current environment join
The linear relationship that number matches.
Add and module 403, for described charging sampled voltage is summed up with described voltage compensation value, by described add with
After voltage as regulation mobile terminal charging current reference voltage.
In one embodiment, after computing module 402 utilizes above-mentioned functional relationship to calculate voltage compensation value, add and mould
Block 403 can to charging sampled voltage sum up with the voltage compensation value calculated, add and after voltage can be closer to outside
Charging voltage, thus reduce the mobile terminal sampling error to outside charging voltage, further, charging sampled voltage is entered
After row compensates, the voltage after compensation can be as the reference voltage of regulation mobile terminal charging current, and i.e. mobile terminal is based on compensation
After voltage charging current is adjusted such that it is able to determine charging current more accurately, to protect in mobile terminal
Chip or circuit are operated in optimum state.
In the embodiment of the present invention, by the functional relationship of matching voltage compensation value with charging sampled voltage, it is possible to based on not
Same charging sampled voltage dynamically compensates regulation to charging sampled voltage.When charging sampled voltage being detected, available
The functional relationship of matching calculates this voltage compensation value corresponding to charging sampled voltage;And the charging sampled voltage that will detect
Sum up with the voltage compensation value calculated, add and after voltage be compensation voltage, this compensation voltage can be as regulation
The reference voltage of mobile terminal charging current.Utilize said method, it is possible to reduce reference voltage compared to actual external charging
The error of voltage.
Refer to Fig. 5, for the second example structure schematic diagram of a kind of mobile terminal that the embodiment of the present invention provides.This reality
Execute the mobile terminal described in example to include fitting module 501, determine module 502, computing module 503, add and module 504.
Wherein, fitting module 501, for utilizing least square fitting to go out the line of voltage compensation value and charging sampled voltage
Property equation y=a0+a1X, wherein, described x represents described charging sampled voltage, and described y represents described voltage compensation value.
In one embodiment, available least square fitting goes out the linear side of voltage compensation value and charging sampled voltage
Journey.Concrete, fitting module 501 can include with lower unit:
First acquiring unit 5011, is used for obtaining N number of external charging voltage pi, 1≤i≤N;
Second acquisition unit 5012, obtains and described N number of external charging voltage piCorresponding N number of charging sampled voltage xi;
Computing unit 5013, calculates N number of with reference to offset yi=pi-xi;
First determines unit 5014, based on described N number of charging sampled voltage xiAnd it is described N number of with reference to offset yi, determine
Described linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
Below said units is specifically described.
First the first acquiring unit 5011 can obtain N number of external charging voltage p1~pN, this N number of external charging voltage is outward
Portion's charging common voltage.Mobile terminal can jointly set up experimental situation during linear equation with external charger,
The external charger charging voltage to mobile terminal can be detected by the experimental detection device of exterior arrangement, or by foundation
Experimental situation can control the charging voltage to mobile terminal, as inputted the charging voltage of 4190mV to mobile terminal, and should
Charging voltage notice mobile terminal, after mobile terminal has notice, records this charging voltage as external charging voltage.Wherein,
Obtaining N number of external charging voltage can obtain successively, the external charging voltage obtained in i & lt is pi, 1≤i≤N.
Second acquisition unit 5012 obtains and the N number of charging sampled voltage corresponding to N number of external charging voltage.Concrete,
The external charging voltage got when i & lt is piTime, the charging that mobile terminal detects based on the sample circuit in terminal is adopted
Sample voltage is xi, wherein, exist by mistake between the charging sampled voltage and the external charging voltage that are detected by terminal sample circuit
Difference, then computing unit 5013 can calculate N number of ginseng based on the N number of external charging voltage got and N number of charging sampled voltage
Examine offset.Illustrate, as the external charging voltage p that mobile terminal i & lt getsiFor 4190mV, get in i & lt
Charging sampled voltage xiFor 4100mV, then the reference offset y calculated in i & lti=pi-xi=4190mV-4100mV=
90mV。
By above-mentioned calculating process, see table 1, show that mobile terminal is corresponding after obtaining N number of external charging voltage
N number of with reference to offset.As shown in table 1, table 1 lists external charging voltage and charging sampled voltage and reference offset
Corresponding relation.It should be noted that this table is not exhaustive, for other external charging voltages obtained, people in the art
Member can calculate the corresponding relation of each voltage by the way.
External charging voltage (mV) | Charging sampled voltage (mV) | With reference to offset (mV) |
4190 | 4100 | 90 |
4300 | 4198 | 102 |
4390 | 4292 | 98 |
4430 | 4328 | 102 |
4510 | 4394 | 116 |
4600 | 4486 | 114 |
4620 | 4506 | 114 |
4710 | 4598 | 112 |
4820 | 4696 | 124 |
4920 | 4792 | 128 |
5020 | 4890 | 130 |
5120 | 4990 | 130 |
5220 | 5084 | 136 |
5320 | 5184 | 136 |
5430 | 5284 | 146 |
5520 | 5380 | 140 |
5630 | 5482 | 148 |
Table 1
After getting charging sampled voltage and calculating reference offset as shown in table 1, available least square
The formula principle of method calculates linear equation y=a further0+a1Coefficient a in x0With coefficient a1Value.Concrete, a young waiter in a wineshop or an inn
Shown in the formula principle of multiplication such as below equation (1).
Wherein,
In the embodiment of the present invention, utilize least square fitting linear equation, then m value is 1.And then, formula (1) simplifies
For below equation (2).
And then, when getting N number of charging sampled voltage xi, and N number of with reference to offset yiAfter, can be calculated:
Thus it is available about coefficient a0With coefficient a1Linear equation in two unknowns group, first determines that unit 5014 can determine that is
Number a0With coefficient a1Concrete numerical value.
See table 1, as N=17, the coefficient a calculated according to table 10=-62.1659;a1=0.0387;And then, can lead to
Cross least square fitting going out a linear equation is y=-62.1659+0.0387x.
Refer to Fig. 7 and Fig. 8.Wherein, Fig. 7 is that the one that the embodiment of the present invention provides utilizes least square fitting outlet
The offset schematic diagram of property Equation for Calculating;Fig. 8 is a kind of offset schematic diagram utilizing averaging method to calculate that prior art provides.
Discrete point shown in Fig. 7 Yu Fig. 8 is to mend with the reference in table 1 based on the offset corresponding to charging sampled voltage each in table 1
Repay the error amount between value, wherein, after Fig. 7 utilizes above-mentioned linear equation to calculate each offset, calculate further and mend with reference
Repay the error amount between value, after Fig. 8 utilizes averaging method to calculate average offset, calculate further and with reference between offset
Error amount.Straight line shown in Fig. 7 Yu Fig. 8 represents the meansigma methods of error amount.Based on icon shown in Fig. 7 Yu Fig. 8, it is possible to more straight
The error found out between the offset utilizing above-mentioned linear equation to calculate and reference offset seen is less, the compensation i.e. calculated
It is worth more accurate.Thus reduce the error compared to actual external charging voltage of the voltage after compensation.
Optionally, the weighted value of each charging sampled voltage also can be determined further according to temperature parameter, and according to acquisition
Weighted value different, the linear equation that matching is different.Fitting module 501 may also include with lower unit:
Detector unit 5015, is used for detecting the described N number of charging sampled voltage x of acquisitioniIn rear mobile terminal local environment
Temperature parameter;
Second determines unit 5016, for determining described N number of charging sampled voltage x based on described temperature parameteriCorresponding
N number of weighted value wi;
Wherein, first determines unit 5014, is additionally operable to based on described N number of charging sampled voltage xi, described N number of with reference to compensate
Value yiAnd described N number of weighted value wi, determine described linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
Below said units is specifically described.
Charging sampled voltage difference based on temperature parameter, second determines that unit 5016 can determine that this charging sampled voltage
Weighted value.The temperature parameter obtained after this charging sampled voltage in mobile terminal local environment such as detector unit 5015 detection, or
Person detects temperature parameter when obtaining charging sampled voltage in mobile terminal local environment.If obtaining different charging sampled voltage institute
Corresponding temperature parameter is different, then contrast with standard temperature parameter area based on different temperature parameters, if temperature parameter deviation
The biggest, then the weighted value of the charging sampled voltage that can set its correspondence becomes positive correlation or negative correlativing relation with above-mentioned deviation value,
This, the embodiment of the present invention does not limits.If it is identical to obtain difference charging temperature parameter corresponding to sampled voltage, then can set not
Weighted value with charging sampled voltage is identical.When second determines that unit 5016 determines N number of charging sampled voltage based on temperature parameter
xiCorresponding N number of weighted value wiAfter, first determines that unit 5014 may utilize formula (2) and determines linear equation y=a0+a1In x
Coefficient a0With coefficient a1Value.
Concrete,
Thus it is available about coefficient a0With coefficient a1Linear equation in two unknowns group, coefficient a can be calculated0With coefficient a1's
Concrete numerical value.
Determine module 502, for when charging sampled voltage being detected, joining based on the environment residing for described mobile terminal
Number, determines the linear equation corresponding with described ambient parameter.
In one embodiment, fitting module 501 can determine multiple different linear equation by above-mentioned various ways,
Standard temperature parameter as arranged is different, and then the weighted value affecting each charging sampled voltage is different, thus forms different lines
Property equation.Certainly, the above-mentioned linear equation not considering weighted value can be applied to part or all of applied environment based on concrete condition
In.After fitting module 501 simulates different linear equation, determine that module 502 can be when detecting charging sampled voltage, base
In the ambient parameter residing for current mobile terminal, including temperature parameter etc., determine the linear equation corresponding with this ambient parameter.Can
Choosing, different standard environment parameters can corresponding different linear equation, and mapping table can be formed be stored in mobile terminal
In, thus after learning the ambient parameter that mobile terminal is presently in, by this ambient parameter as standard environment parameter, from correspondence
Relation table is transferred the linear equation simulated as standard environment parameter using this ambient parameter.
Computing module 503, mends for utilizing described linear equation to calculate the voltage corresponding to described charging sampled voltage
Repay value.
In one embodiment, after determining that module 502 determines the linear equation needing to compensate, computing module
503 available determined by linear equation calculate the voltage compensation that mobile terminal needs to compensate this charging sample circuit
Value.
Add and module 504, for described charging sampled voltage is summed up with described voltage compensation value, by described add with
After voltage as regulation mobile terminal charging current reference voltage.
In one embodiment, after computing module 503 utilizes above-mentioned functional relationship to calculate voltage compensation value, add and mould
Block 504 can to charging sampled voltage sum up with the voltage compensation value calculated, add and after voltage can be closer to outside
Charging voltage, thus reduce the mobile terminal sampling error to outside charging voltage, further, charging sampled voltage is entered
After row compensates, the voltage after compensation can be as the reference voltage of regulation mobile terminal charging current, and i.e. mobile terminal is based on compensation
After voltage charging current is adjusted such that it is able to determine charging current more accurately, to protect in mobile terminal
Chip or circuit are operated in optimum state.
In the embodiment of the present invention, by the detection to varying environment parameter, it is possible to determine and match with this ambient parameter
Linear equation such that it is able to calculate and more precisely compensate for value, with reduce further the voltage after above-mentioned compensation with reality outside
Error between portion's charging voltage, and then charging voltage can be regulated more accurately.
Refer to Fig. 6, for the 3rd example structure schematic diagram of a kind of mobile terminal that the embodiment of the present invention provides.This reality
Execute the terminal described in example, including: at least one input equipment 1000;At least one outut device 2000;At at least one
Reason device 3000, such as CPU;With memorizer 4000, above-mentioned input equipment 1000, outut device 2000, processor 3000 and storage
Device 4000 is connected by bus 5000.
Wherein, above-mentioned input equipment 1000 can include sample circuit, is used for detecting external charging voltage, and generate charging and adopt
Sample voltage, sample circuit includes bleeder circuit and the PMIC chip of the resistance R1 shown in Fig. 1 and resistance R2 composition, certainly, adopts
Sample circuit may also comprise the circuit of other forms, and the embodiment of the present invention does not limits.
Above-mentioned outut device 2000 concretely display screen.
Above-mentioned memorizer 4000 can be high-speed RAM memorizer, it is possible to for non-labile memorizer (non-volatile
Memory), such as disk memory.Above-mentioned memorizer 4000 is used for storing batch processing code, and above-mentioned processor 3000 is used for
Call the program code of storage in memorizer 4000, perform to operate as follows:
Simulate the functional relationship of voltage compensation value and charging sampled voltage;
When charging sampled voltage being detected, described functional relationship is utilized to calculate corresponding to described charging sampled voltage
Voltage compensation value;
Described charging sampled voltage is summed up with described voltage compensation value, using described add and after voltage as regulation
The reference voltage of mobile terminal charging current.
Optionally, processor 3000 simulates the concrete mode of voltage compensation value and the functional relationship of charging sampled voltage
For:
Least square fitting is utilized to go out the linear equation y=a of voltage compensation value and charging sampled voltage0+a1X, wherein,
Described x represents described charging sampled voltage, and described y represents described voltage compensation value.
Optionally, processor 3000 utilizes least square fitting to go out the linear side of voltage compensation value and charging sampled voltage
Journey y=a0+a1The concrete mode of x is:
Obtain N number of external charging voltage pi, 1≤i≤N;
Obtain and described N number of external charging voltage piCorresponding N number of charging sampled voltage xi;
Calculate N number of with reference to offset yi=pi-xi;
Based on described N number of charging sampled voltage xiAnd it is described N number of with reference to offset yi, determine described linear equation y=a0
+a1Coefficient a in x0With coefficient a1Value.
Optionally, described acquisition and described N number of external charging voltage piCorresponding N number of charging sampled voltage xiAfter, processor
3000 are additionally operable to call the program code of storage in memorizer 4000, perform to operate as follows:
Detection obtains described N number of charging sampled voltage xiTemperature parameter in rear mobile terminal local environment;
Described N number of charging sampled voltage x is determined based on described temperature parameteriCorresponding N number of weighted value wi;
Wherein, described based on described N number of charging sampled voltage xiAnd it is described N number of with reference to offset yi, determine described linearly
Equation y=a0+a1Coefficient a in x0With coefficient a1Value, including:
Based on described N number of charging sampled voltage xi, described N number of with reference to offset yiAnd described N number of weighted value wi, determine
Described linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
When charging sampled voltage being detected, processor 3000 is additionally operable to call in memorizer 4000 the program generation of storage
Code, performs to operate as follows:
Based on the ambient parameter residing for described mobile terminal, determine the functional relationship corresponding with described ambient parameter;
Described described functional relationship is utilized to calculate the voltage compensation value corresponding to described charging sampled voltage, including:
Utilize and calculate the voltage corresponding to described charging sampled voltage with the functional relationship corresponding to described ambient parameter
Offset.
In the embodiment of the present invention, by the functional relationship of matching voltage compensation value with charging sampled voltage, it is possible to based on not
Same charging sampled voltage dynamically compensates regulation to charging sampled voltage.When charging sampled voltage being detected, available
The functional relationship of matching calculates this voltage compensation value corresponding to charging sampled voltage;And the charging sampled voltage that will detect
Sum up with the voltage compensation value calculated, add and after voltage be compensation voltage, this compensation voltage can be as regulation
The reference voltage of mobile terminal charging current.Utilize said method, it is possible to reduce reference voltage compared to actual external charging
The error of voltage.
The embodiment of the present invention also provides for a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can store journey
Sequence, this program includes the part of the compensation method of any one charging sampled voltage described in said method embodiment when performing
Or Overall Steps.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has the portion described in detail in certain embodiment
Point, may refer to the associated description of other embodiments.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should know
Knowing, embodiment described in this description belongs to preferred embodiment, involved action and the module not necessarily present invention
Necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has the portion described in detail in certain embodiment
Point, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way
Realize.Such as, device embodiment described above is only schematically, and the division of the most described unit is only one
Logic function divides, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or can
To be integrated into another system, or some features can be ignored, or does not performs.Another point, shown or discussed each other
Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication connection,
Can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme
's.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list
Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit
Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part that in other words prior art contributed or this technical scheme completely or partially can be with the form of software product
Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer
Equipment (can be for personal computer, server or the network equipment etc.) perform the whole of method described in each embodiment of the present invention or
Part steps.And aforesaid storage medium includes: USB flash disk, read only memory (ROM, Read-Only Memory), random access memory are deposited
Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can store program code
Medium.
The above, above example only in order to technical scheme to be described, is not intended to limit;Although with reference to front
State embodiment the present invention has been described in detail, it will be understood by those within the art that: it still can be to front
State the technical scheme described in each embodiment to modify, or wherein portion of techniques feature is carried out equivalent;And these
Amendment or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.
Claims (11)
1. the compensation method of the sampled voltage that charges, it is characterised in that including:
Simulate the functional relationship of voltage compensation value and charging sampled voltage;
When charging sampled voltage being detected, described functional relationship is utilized to calculate the voltage corresponding to described charging sampled voltage
Offset;
Described charging sampled voltage is summed up with described voltage compensation value, using described add and after voltage mobile as regulation
The reference voltage of terminal charge electric current.
2. as claimed in claim 1 method, it is characterised in that described in simulate the function of voltage compensation value and charging sampled voltage
Relation includes:
Least square fitting is utilized to go out the linear equation y=a of voltage compensation value and charging sampled voltage0+a1X, wherein, described x
Representing described charging sampled voltage, described y represents described voltage compensation value.
3. as claimed in claim 2 method, it is characterised in that described utilize least square fitting to go out voltage compensation value and charging
The linear equation y=a of sampled voltage0+a1X, including:
Obtain N number of external charging voltage pi, 1≤i≤N;
Obtain and described N number of external charging voltage piCorresponding N number of charging sampled voltage xi;
Calculate N number of with reference to offset yi=pi-xi;
Based on described N number of charging sampled voltage xiAnd it is described N number of with reference to offset yi, determine described linear equation y=a0+a1x
In coefficient a0With coefficient a1Value.
4. method as claimed in claim 3, it is characterised in that described acquisition and described N number of external charging voltage piCorresponding is N number of
Charging sampled voltage xiAfter, described method also includes:
Detection obtains described N number of charging sampled voltage xiTemperature parameter in rear mobile terminal local environment;
Described N number of charging sampled voltage x is determined based on described temperature parameteriCorresponding N number of weighted value wi;
Wherein, described based on described N number of charging sampled voltage xiAnd it is described N number of with reference to offset yi, determine described linear equation
Y=a0+a1Coefficient a in x0With coefficient a1Value, including:
Based on described N number of charging sampled voltage xi, described N number of with reference to offset yiAnd described N number of weighted value wi, determine described
Linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
5. method as described in any one of claim 1-4, it is characterised in that when charging sampled voltage being detected, described method
Also include:
Based on the ambient parameter residing for described mobile terminal, determine the functional relationship corresponding with described ambient parameter;
Described described functional relationship is utilized to calculate the voltage compensation value corresponding to described charging sampled voltage, including:
Utilize and calculate the voltage compensation corresponding to described charging sampled voltage with the functional relationship corresponding to described ambient parameter
Value.
6. a mobile terminal, it is characterised in that including:
Fitting module, for simulating the functional relationship of voltage compensation value and charging sampled voltage;
Computing module, for when charging sampled voltage being detected, utilizes described functional relationship to calculate described charging sampling electricity
Voltage compensation value corresponding to pressure;
Add and module, for described charging sampled voltage is summed up with described voltage compensation value, by described add with after electricity
Press the reference voltage as regulation mobile terminal charging current.
7. mobile terminal as claimed in claim 6, it is characterised in that described fitting module is additionally operable to:
Least square fitting is utilized to go out the linear equation y=a of voltage compensation value and charging sampled voltage0+a1X, wherein, described x
Representing described charging sampled voltage, described y represents described voltage compensation value.
8. mobile terminal as claimed in claim 7, it is characterised in that described fitting module includes:
First acquiring unit, is used for obtaining N number of external charging voltage pi, 1≤i≤N;
Second acquisition unit, for obtaining and described N number of external charging voltage piCorresponding N number of charging sampled voltage xi;
Computing unit, is used for calculating N number of reference offset yi=pi-xi;
First determines unit, for based on described N number of charging sampled voltage xiAnd it is described N number of with reference to offset yi, determine described
Linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
9. mobile terminal as claimed in claim 8, it is characterised in that described fitting module also includes:
Detector unit, is used for detecting described second acquisition unit and obtains described N number of charging sampled voltage xiRing residing for rear mobile terminal
Temperature parameter in border;
Second determines unit, for determining described N number of charging sampled voltage x based on described temperature parameteriCorresponding N number of weight
Value wi;
Described first determines that unit is additionally operable to:
Based on described N number of charging sampled voltage xi, described N number of with reference to offset yiAnd described N number of weighted value wi, determine described
Linear equation y=a0+a1Coefficient a in x0With coefficient a1Value.
10. mobile terminal as described in any one of claim 6-9, it is characterised in that described mobile terminal also includes:
Determine module, for when detect charging sampled voltage time, based on the ambient parameter residing for described mobile terminal, determine with
The functional relationship that described ambient parameter is corresponding;
Described computing module is additionally operable to:
Utilize and calculate the voltage compensation corresponding to described charging sampled voltage with the functional relationship corresponding to described ambient parameter
Value.
11. 1 kinds of mobile terminals, it is characterised in that including:
Storage has the memorizer of executable program code;
The processor coupled with described memorizer;
The sample circuit coupled with described processor, described sample circuit is for generating charging sampling electricity according to external charging voltage
Pressure;
Described processor calls the described executable program code of storage in described memorizer, performs if claim 1 is to right
Require the method described in 5 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610292617.4A CN106026220B (en) | 2016-05-05 | 2016-05-05 | It is a kind of charge sampled voltage compensation method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610292617.4A CN106026220B (en) | 2016-05-05 | 2016-05-05 | It is a kind of charge sampled voltage compensation method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106026220A true CN106026220A (en) | 2016-10-12 |
CN106026220B CN106026220B (en) | 2019-07-05 |
Family
ID=57082276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610292617.4A Active CN106026220B (en) | 2016-05-05 | 2016-05-05 | It is a kind of charge sampled voltage compensation method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106026220B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108322025A (en) * | 2018-02-26 | 2018-07-24 | 重庆长安汽车股份有限公司 | A kind of Vehicular charger voltage ripple parameter compensation method, apparatus and system |
CN109814649A (en) * | 2019-01-02 | 2019-05-28 | 湖北三江航天红峰控制有限公司 | A kind of current compensation method and system suitable for endpiece steering engine test macro |
CN114113974A (en) * | 2021-11-01 | 2022-03-01 | 海光信息技术股份有限公司 | Chip system level test method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101806867A (en) * | 2010-03-12 | 2010-08-18 | 中兴通讯股份有限公司 | Method and device for measuring electric quantity of mobile phone battery |
CN102735918A (en) * | 2012-06-30 | 2012-10-17 | 惠州市亿能电子有限公司 | Battery voltage acquisition method and system based on linear temperature compensation algorithm |
CN103176132A (en) * | 2011-12-22 | 2013-06-26 | 联芯科技有限公司 | Estimation method and terminal device of electricity quantity of battery |
CN103472400A (en) * | 2013-09-06 | 2013-12-25 | 广东欧珀移动通信有限公司 | Acquiring method and system for battery life of mobile terminal |
CN105553050A (en) * | 2016-02-26 | 2016-05-04 | 宁波萨瑞通讯有限公司 | Self-adaptive charging method and system |
-
2016
- 2016-05-05 CN CN201610292617.4A patent/CN106026220B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101806867A (en) * | 2010-03-12 | 2010-08-18 | 中兴通讯股份有限公司 | Method and device for measuring electric quantity of mobile phone battery |
CN103176132A (en) * | 2011-12-22 | 2013-06-26 | 联芯科技有限公司 | Estimation method and terminal device of electricity quantity of battery |
CN102735918A (en) * | 2012-06-30 | 2012-10-17 | 惠州市亿能电子有限公司 | Battery voltage acquisition method and system based on linear temperature compensation algorithm |
CN103472400A (en) * | 2013-09-06 | 2013-12-25 | 广东欧珀移动通信有限公司 | Acquiring method and system for battery life of mobile terminal |
CN105553050A (en) * | 2016-02-26 | 2016-05-04 | 宁波萨瑞通讯有限公司 | Self-adaptive charging method and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108322025A (en) * | 2018-02-26 | 2018-07-24 | 重庆长安汽车股份有限公司 | A kind of Vehicular charger voltage ripple parameter compensation method, apparatus and system |
CN109814649A (en) * | 2019-01-02 | 2019-05-28 | 湖北三江航天红峰控制有限公司 | A kind of current compensation method and system suitable for endpiece steering engine test macro |
CN114113974A (en) * | 2021-11-01 | 2022-03-01 | 海光信息技术股份有限公司 | Chip system level test method and device |
CN114113974B (en) * | 2021-11-01 | 2023-10-27 | 海光信息技术股份有限公司 | Chip system level test method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106026220B (en) | 2019-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106443480B (en) | A kind of lithium-ion battery systems SOC estimation method | |
CN103902004B (en) | Charging remaining time calculation method and device and mobile equipment | |
CN104181470B (en) | Battery state-of-charge (SOC) estimation method based on nonlinear prediction extended Kalman filtering | |
CN106537106B (en) | Capacitance detecting device, method and pressure detecting system | |
CN106772091A (en) | The update method of battery capacity value, device and terminal | |
CN106026220A (en) | Charging sampling voltage compensation method and mobile terminal | |
CN105760656B (en) | Battery remaining charging time estimation method | |
RU2006119641A (en) | DEVICE AND METHOD FOR EVALUATING THE BATTERY CHARGING LEVEL USING A NEURAL NETWORK | |
CN102246385A (en) | Method and apparatus for determining state of charge of a battery | |
CN108604818B (en) | Battery charging control algorithm | |
CN104515955A (en) | Method and system for measuring residual remaining capacity of battery in constant-temperature state | |
CN112345939B (en) | Lithium ion battery model parameter identification method based on continuous impulse response | |
CN105988086A (en) | Battery remaining power predicting device and battery pack | |
CN103323779B (en) | The estimation charge volume counter of rechargeable battery | |
CN105868543B (en) | The storage life test accelerated factor appraisal procedure being distributed based on the inverse Gauss service life | |
CN107677967A (en) | Determine the method and device of battery electric quantity | |
CN105634077A (en) | Charge method and electronic device | |
CN110673037A (en) | Battery SOC estimation method and system based on improved simulated annealing algorithm | |
CN109782182B (en) | Online estimation method and device for energy state of series battery pack | |
Li et al. | A framework for states co-estimation of hybrid energy storage systems based on fractional-order theory | |
Chen et al. | State-of-charge estimation for lithium-ion batteries based on incommensurate fractional-order observer | |
CN109844551A (en) | Charge rate estimation device and charge rate estimation method | |
CN205958716U (en) | A system and electronic equipment that is arranged in accurate electronic equipment's of sureness battery state of charge | |
CN109061498A (en) | A kind of battery dump energy metering chip and metering method | |
CN102467593A (en) | Nonlinear circuit time domain model reduction method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |