A kind of control method of terminal, device and terminal
[technical field]
The present invention relates to field of terminal technology more particularly to a kind of control methods of terminal, device and terminal.
[background technique]
Currently, terminal generally can the current remaining capacity of display terminal on the display screen.But in electricity calculating process
In, it may appear that various errors.For example, when the environment temperature decreases, the internal impedance of battery will increase, at this point, when application and room temperature
Down when same electric current, very big voltage drop can be generated, so that battery capacity reduces, this is based on, is calculated by existing electricity
The battery capacity that mode obtains certainly exists certain error.In the prior art, it can be obtained according to preset electricity calculation
And show the electricity of battery.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
Based on the electricity of battery is not modified or is adjusted in the prior art, with the increasing of the working time of battery
Long, various errors can be accumulated constantly, between the electricity of battery and the practical electricity of battery got by electricity calculation method
Biggish difference is had, so that terminal is easy to appear the abnormal conditions such as unexpected power down or electricity jump.
[summary of the invention]
In view of this, the embodiment of the invention provides a kind of control method of terminal, device and terminals, to battery
Current electric quantity is adjusted and corrects, and improves the accuracy rate of the electricity of the battery of display, reduces terminal and unexpected power down or electricity occurs
The occurrence probability of the abnormal conditions such as amount jump.
On the one hand, the embodiment of the invention provides a kind of control methods of terminal, comprising:
When battery is in discharge condition, the current electric quantity of the battery is obtained;
When the current electric quantity reaches preset charge node, the virtual voltage of the battery is obtained;
When the extent of deviation between virtual voltage normal voltage corresponding with the charge node is greater than voltage threshold
When, the current electric quantity of the battery is adjusted;
Show the current electric quantity of the battery adjusted.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, when the reality
When extent of deviation between voltage normal voltage corresponding with the charge node is greater than voltage threshold, to the current of the battery
Electricity is adjusted, comprising:
When the extent of deviation is overgauge, keep the current electric quantity of the battery constant, until getting described
The virtual voltage of battery is less than or equal to the normal voltage.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, when the reality
When extent of deviation between voltage normal voltage corresponding with the charge node is greater than voltage threshold, to the current of the battery
Electricity is adjusted, comprising:
When the extent of deviation is minus deviation, within the preset time cycle, the electricity of the battery is accelerated into decline
To the corresponding electricity of the virtual voltage.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation obtains the electricity
Measure the corresponding voltage threshold of node, comprising:
The maximum voltage and minimum voltage in the electricity stage where the charge node are obtained, the maximum voltage is institute
The corresponding voltage value of highest electricity in the electricity stage where charge node is stated, where the minimum voltage is the charge node
The electricity stage in the corresponding voltage value of minimum electricity;
According to preset power threshold, the maximum voltage and minimum voltage, the corresponding voltage of the charge node is obtained
Threshold value, using as the voltage threshold.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, according to preset
Power threshold, the maximum voltage and minimum voltage, obtaining the corresponding voltage threshold of the charge node includes:
According to following formula, the corresponding voltage threshold of the charge node is obtained:
Wherein, V indicates the corresponding voltage threshold of the charge node, VmIndicate the maximum voltage, VnIndicate the minimum
Voltage, X indicate the number in the electricity stage in electricity gamut, and S indicates adjustment thresholding.
A technical solution in above-mentioned technical proposal has the following beneficial effects:
In the embodiment of the present invention, charge node is arranged by electricity to battery, also, when battery be in discharge condition and
When the current electric quantity of battery reaches preset charge node, between the virtual voltage of battery normal voltage corresponding with charge node
Extent of deviation be greater than voltage threshold when, the current electric quantity of battery is adjusted, in this way, can be at charge node to battery
Current electric quantity be modified and adjust, with the difference reduced between the practical electricity of battery and the current electric quantity of battery adjusted
Away from so that the current electric quantity of battery adjusted is more nearly the practical electricity of battery, the battery shown in raising terminal is worked as
The accuracy rate of preceding electricity;Also, the accuracy rate of the electricity of the battery based on display is higher, additionally it is possible to reduce terminal appearance and fall suddenly
The occurrence probability of the abnormal conditions such as electricity or electricity jump.Therefore, technical solution provided by the embodiment of the present invention can be to battery
Current electric quantity be adjusted and correct, improve the accuracy rate of the electricity of the battery of display, reduce terminal occur unexpected power down or
The occurrence probability of the abnormal conditions such as electricity jump.
On the other hand, the embodiment of the invention provides a kind of control devices of terminal, comprising:
First acquisition unit, for obtaining the current electric quantity of the battery when battery is in discharge condition;
Second acquisition unit, for obtaining the reality of the battery when the current electric quantity reaches preset charge node
Border voltage;
Adjustment unit, for when the extent of deviation between virtual voltage normal voltage corresponding with the charge node
When greater than voltage threshold, the current electric quantity of the battery is adjusted;
Display unit, for showing the current electric quantity of the battery adjusted.
Technical solution tool in above-mentioned technical proposal it is following the utility model has the advantages that
In the embodiment of the present invention, charge node is arranged by electricity to battery, also, when battery be in discharge condition and
When the current electric quantity of battery reaches preset charge node, between the virtual voltage of battery normal voltage corresponding with charge node
Extent of deviation be greater than voltage threshold when, the current electric quantity of battery is adjusted, in this way, can be at charge node to battery
Current electric quantity be modified and adjust, with the difference reduced between the practical electricity of battery and the current electric quantity of battery adjusted
Away from so that the current electric quantity of battery adjusted is more nearly the practical electricity of battery, the battery shown in raising terminal is worked as
The accuracy rate of preceding electricity;Also, the accuracy rate of the electricity of the battery based on display is higher, additionally it is possible to reduce terminal appearance and fall suddenly
The occurrence probability of the abnormal conditions such as electricity or electricity jump.Therefore, technical solution provided by the embodiment of the present invention can be to battery
Current electric quantity be adjusted and correct, improve the accuracy rate of the electricity of the battery of display, reduce terminal occur unexpected power down or
The occurrence probability of the abnormal conditions such as electricity jump.
In another aspect, including the embodiment of the invention provides a kind of terminal: the control device of above-mentioned terminal.
In another aspect, including the embodiment of the invention provides a kind of computer storage medium: computer is executable to be referred to
It enables, executes following steps when the computer executable instructions are run:
When battery is in discharge condition, the current electric quantity of the battery is obtained;
When the current electric quantity reaches preset charge node, the virtual voltage of the battery is obtained;
When the extent of deviation between virtual voltage normal voltage corresponding with the charge node is greater than voltage threshold
When, the current electric quantity of the battery is adjusted;
Show the current electric quantity of the battery adjusted.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, when the computer
When executable instruction is run, following steps are specifically executed:
When the extent of deviation between virtual voltage normal voltage corresponding with the charge node is greater than voltage threshold
When, the current electric quantity of the battery is adjusted.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, when the computer
When executable instruction is run, following steps are specifically executed:
When the extent of deviation is overgauge, keep the current electric quantity of the battery constant, until getting described
The virtual voltage of battery is less than or equal to the normal voltage.
A technical solution in above-mentioned technical proposal has the following beneficial effects:
In the embodiment of the present invention, charge node is arranged by electricity to battery, also, when battery be in discharge condition and
When the current electric quantity of battery reaches preset charge node, between the virtual voltage of battery normal voltage corresponding with charge node
Extent of deviation be greater than voltage threshold when, the current electric quantity of battery is adjusted, in this way, can be at charge node to battery
Current electric quantity be modified and adjust, with the difference reduced between the practical electricity of battery and the current electric quantity of battery adjusted
Away from so that the current electric quantity of battery adjusted is more nearly the practical electricity of battery, the battery shown in raising terminal is worked as
The accuracy rate of preceding electricity;Also, the accuracy rate of the electricity of the battery based on display is higher, additionally it is possible to reduce terminal appearance and fall suddenly
The occurrence probability of the abnormal conditions such as electricity or electricity jump.Therefore, technical solution provided by the embodiment of the present invention can be to battery
Current electric quantity be adjusted and correct, improve the accuracy rate of the electricity of the battery of display, reduce terminal occur unexpected power down or
The occurrence probability of the abnormal conditions such as electricity jump.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the flow diagram of the control method of terminal provided by the embodiment of the present invention;
Fig. 2 is the functional block diagram of the control device of terminal provided by the embodiment of the present invention;
Fig. 3 is the functional block diagram of terminal provided by the embodiment of the present invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing
It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate
There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three
Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
For the lower problem of the accuracy rate of the electricity of the battery in the presence of the prior art, the embodiment of the invention provides
Following resolving ideas: pass through the multiple charge nodes of preset in advance, when the electricity of battery reaches any charge node, the reality of battery
Whether border voltage deviates charge node normal voltage corresponding in normal cell curve, in order to when therebetween inclined
When being greater than corresponding voltage threshold from value, just the current electric quantity of battery is adjusted, so that the battery shown in terminal
Electricity is more nearly the practical electricity of battery, improves its accuracy rate.
Under the guidance of the thinking, this programme embodiment provides following feasible embodiment.
Embodiment one
The embodiment of the present invention provides a kind of control method of terminal.
Specifically, referring to FIG. 1, its for the control method of terminal provided by the embodiment of the present invention flow diagram,
As shown in Figure 1, method includes the following steps:
S101 obtains the current electric quantity of battery when battery is in discharge condition.
It is understood that the current electric quantity of battery is that the display area of terminal is shown when battery is located in terminal
Electricity.
The embodiment of the present invention is not particularly limited for how to obtain the algorithm of the current electric quantity of battery, is actually realizing we
When case, can directly it be obtained using preset electricity calculation method in terminal, battery management unit, battery capacity acquisition device etc.
Take the current electric quantity of battery.
S102 obtains the virtual voltage of battery when the current electric quantity of battery reaches preset charge node.
In the embodiment of the present invention, in the use process of terminal, battery is in discharge condition, at this point, the electricity of battery by
High to Low variation, therefore, when the electricity of battery is reduced to charge node, it is believed that the current electric quantity of battery reaches preset electricity
Node.
It should be noted that electricity of the charge node to characterize battery, the number of charge node can for one or
Multiple, when actually realizing this programme, the number of charge node can be preset according to actual needs.
If the multiple charge nodes of preset in advance, then, when the current electric quantity of battery reaches any one charge node,
S102 and S103 as shown in Figure 1 will sequentially be executed.Based on this, the number of preset charge node is more, works as to battery
The number that preceding electricity is adjusted is more, and the difference between the electricity of battery and the practical electricity of battery is smaller, and accuracy rate is higher.
In specific application scenarios, charge node can be set in the form of percentage.For example, in electricity percentage
In the range of 1~100%, multiple charge nodes can be preset.For example, presetting 5 charge nodes, be respectively as follows: 20%,
40%, 60%, 80% and 100%.The embodiment of the present invention is for the interval between two charge nodes of arbitrary neighborhood without special
It limits, charge node can be arranged with the electricity of same intervals with above-mentioned example way, it can also be with the electricity of different interval
Charge node is set.For example, 3 charge nodes can be preset in the range of electricity percentage 1~100%, it is respectively as follows:
30%, 70% and 99%.
S103, when the extent of deviation between the virtual voltage of battery normal voltage corresponding with the charge node is greater than voltage
When threshold value, the current electric quantity of battery is adjusted.
S104 shows the current electric quantity of battery adjusted.
Specifically, at this point, the current electric quantity of battery is identical as charge node, that is to say, that the corresponding standard of charge node
Voltage is the normal voltage that the current electric quantity of battery should reach.So, if battery the charge node virtual voltage and mark
There are relatively large deviations for quasi- voltage, it is possible to which the current electric quantity to battery is adjusted.
It, can be with the corresponding relationship between preset in advance electricity and normal voltage in the embodiment of the present invention.In concrete implementation
It in the process, can be by the corresponding relationship between the electricity of the battery in normal cell curve and the voltage of battery, to obtain electricity
Measure normal voltage corresponding to node.
Specifically, the relationship in normal cell curve between the corresponding normal voltage of each charge node can be with reference table
1.In the embodiment of the present invention, for the ease of stating and illustrating, subsequent citing all illustrate with data instance shown in table 1
It is bright.
Table 1
Charge node |
Normal voltage |
100 |
4339 |
90 |
4217 |
80 |
4105 |
70 |
4003 |
60 |
3922 |
50 |
3839 |
40 |
3800 |
30 |
3770 |
20 |
3735 |
10 |
3685 |
0 |
3349 |
When executing S103 step, the difference of available virtual voltage and the corresponding normal voltage of charge node it is absolute
Value obtains extent of deviation, also, obtains the corresponding voltage threshold of charge node, thus, when the extent of deviation is greater than voltage threshold
When, the current electric quantity of battery is adjusted.
In the embodiment of the present invention, extent of deviation between virtual voltage normal voltage corresponding with charge node=| battery
The corresponding normal voltage of virtual voltage-charge node |.
For example, if detecting, the current electric quantity of battery reaches 10% charge node, at this point, the virtual voltage of battery is
3585V, and according to normal cell curve as shown in Table 1, the corresponding normal voltage of 10% electricity is 3685mV, then, the two
Between extent of deviation be 100mV, and be minus deviation.
In the embodiment of the present invention, the corresponding relationship between charge node and voltage threshold can be directly preset, alternatively, can also
To obtain the corresponding voltage threshold of the charge node according to the electricity stage where charge node.
In the application scenarios that one implements this programme, voltage threshold is determined according to battery parameter,
Since the parameter of battery is not linearly aligned, it is therefore desirable to which 0~100% electricity range is divided into several electricity stages
It is set, at this point, the electricity stage divided is more, it is better for the effect of the electricity adjustment of battery.
Based on this, the method for obtaining the corresponding voltage threshold of charge node may include: the electricity obtained where charge node
Maximum voltage and minimum voltage in the amount stage, and according to preset power threshold and maximum voltage and minimum voltage, it obtains
The corresponding voltage threshold of charge node.Wherein, maximum voltage be charge node where the electricity stage in highest electricity it is corresponding
Voltage value, minimum voltage are the corresponding voltage value of minimum electricity in electricity stage where charge node.
Specifically, the corresponding voltage threshold of charge node can be obtained according to following formula:
Wherein, V indicates the corresponding voltage threshold of charge node, VmIndicate maximum voltage, VnIndicate that minimum voltage, X indicate electricity
The number in the electricity stage in gamut is measured, S indicates preset adjustment thresholding, when electricity difference is more than that S% is needed to battery
Current electric quantity is adjusted.
For example, can be set if 0~100% electricity range is divided into 5 interval equal electricity stages
5 voltage thresholds, also, preset adjustment thresholding is 5%.So, when charge node is located at 80%~100% this electricity rank
Duan Shi obtains the corresponding maximum voltage 4339mV of highest electricity 100% in the electricity stage, and, in the electricity stage
The corresponding minimum voltage 4105mV of minimum electricity 80%, then, the corresponding voltage threshold of the charge node can indicate are as follows:
That is, when the electricity of battery reaches the charge node in the electricity stage, the corresponding electricity of the charge node
Pressure threshold value be 58.5mV, then, when the virtual voltage of battery normal voltage corresponding with the charge node in the electricity stage it
Between extent of deviation be greater than 58.5mV when, it is necessary to the current electric quantity of battery is adjusted.
At this point, there are overgauge and being born based on the extent of deviation between virtual voltage normal voltage corresponding with charge node
Two kinds of situations of deviation also can include but is not limited to following two processing method when the current electric quantity to battery is adjusted:
The first keeps the current electric quantity of battery constant when the extent of deviation is overgauge, until the battery got
Virtual voltage be less than or equal to the normal voltage.
When the extent of deviation is overgauge, battery is in the actual voltage ratio, of the charge node charge node in standard electric
Curve corresponding normal voltage in pond is high, at this point, the corresponding practical electricity of the virtual voltage is higher than current electric quantity (the electricity section of battery
Point), that is to say, that the current electric quantity of battery and the practical electricity of battery are not inconsistent, and relatively large deviation occurs in the electricity of battery, need pair
The current electric quantity of battery is adjusted.
In specific treatment process, since the practical electricity of battery is higher, during discharge, keep battery
Voltage value it is constant, the current electric quantity of battery is freezed at this point, being equivalent to, the electricity of the battery shown in the terminal is temporary
It will not be calculated according to original electricity calculation method;Also, the virtual voltage of battery in this process, is persistently obtained, directly
Virtual voltage to battery is fallen to less than or equal to the charge node in normal cell curve when corresponding normal voltage,
Restore original electricity calculation method, and obtains and show the electricity of battery according to original electricity calculation method.
For example, if the current electric quantity of battery reaches 10% charge node, also, the reality of the battery detected at this time
Voltage is 3700mV, and still, according to normal cell curve, the corresponding normal voltage of 10% charge node is 3685mV, at this point, obtaining
The virtual voltage for the battery got and the absolute value of the difference of normal voltage, obtaining the extent of deviation is positive value, and is more than
Therefore the corresponding voltage threshold of 10% charge node keeps the current electric quantity 10% of battery constant, until detecting the reality of battery
Border voltage is less than or equal to normal voltage 3585mV.
Second, when the extent of deviation is minus deviation, when, within the preset time cycle, the electricity of battery is accelerated
Drop to the corresponding electricity of the virtual voltage.
When the extent of deviation is minus deviation, battery is in the actual voltage ratio, of the charge node charge node in standard electric
Curve corresponding standard electric in pond is forced down, at this point, the corresponding practical electricity of the virtual voltage is lower than the current electric quantity (electricity of the battery
Node), that is to say, that the current electric quantity of battery and the practical electricity of battery are not inconsistent, and relatively large deviation occurs in the electricity of battery, needs
The current electric quantity of battery is adjusted.
In specific treatment process, since the practical electricity of battery is lower, can during discharge, according to
The electricity acceleration of battery is dropped to the corresponding electricity of the virtual voltage within the time cycle, also by the preset time cycle
It is the practical electricity for accelerating to drop to battery, so that the current electric quantity of battery reaches consistent with practical electricity.
For example, if the current electric quantity of battery reaches 10% charge node, also, the reality of the battery detected at this time
Voltage is 3585mV, and still, according to normal cell curve, the corresponding normal voltage of 10% charge node is 3685mV, at this point, obtaining
The virtual voltage for the battery got and the absolute value of the difference of normal voltage, obtaining the extent of deviation is negative value, and is more than
The corresponding voltage threshold of 10% charge node, therefore, according to normal cell curve, the virtual voltage 3585mV for obtaining battery is corresponding
Electricity be 7%, therefore, within the preset time cycle, by the electricity of battery by 10% accelerate drop to 7%.
In the actual implementation process, can preset period of time according to actual needs, the time cycle is for characterizing battery
Duration required for 1% electricity of every drop.
In the embodiment of the present invention, the preset time cycle is less than the duration for consuming 1% electricity under normal circumstances.Specifically
, consuming duration required for 1% electricity under normal circumstances is by carrying out constant-current discharge meter according to 0.2C electric current to battery
The electric discharge duration calculated, wherein 1C indicates the rated capacity of battery.In the actual implementation process, the preset time cycle is not yet
It is preferably too short.
In a concrete implementation scene, it is the duration for consuming 1% electricity under normal circumstances that the time cycle, which can be set,
1/4.It is, consumed in the case of if normal 1% electricity when a length of 120s~240s when, can be with preset period of time
30s~60s.
It should be noted that terminal involved in the embodiment of the present invention can include but is not limited to personal computer
(Personal Computer, PC), personal digital assistant (Personal Digital Assistant, PDA), wireless handheld
Equipment, tablet computer (Tablet Computer), mobile phone, MP3 player, MP4 player etc..
It should be noted that the executing subject of S101~S103 can be the control device of terminal, which can be located at
The application of local terminal, or can also be the plug-in unit being located locally in the application of terminal or Software Development Kit
Functional units such as (Software Development Kit, SDK), the embodiment of the present invention is to this without being particularly limited to.
It is understood that using the application program (nativeApp) that can be mounted in terminal, or can also be
One web page program (webApp) of the browser in terminal, the embodiment of the present invention is to this without limiting.
The technical solution of the embodiment of the present invention has the advantages that
In the embodiment of the present invention, charge node is arranged by electricity to battery, also, when battery be in discharge condition and
When the current electric quantity of battery reaches preset charge node, between the virtual voltage of battery normal voltage corresponding with charge node
Extent of deviation be greater than voltage threshold when, the current electric quantity of battery is adjusted, in this way, can be at charge node to battery
Current electric quantity be modified and adjust, with the difference reduced between the practical electricity of battery and the current electric quantity of battery adjusted
Away from so that the current electric quantity of battery adjusted is more nearly the practical electricity of battery, the battery shown in raising terminal is worked as
The accuracy rate of preceding electricity;Also, the accuracy rate of the electricity of the battery based on display is higher, additionally it is possible to reduce terminal appearance and fall suddenly
The occurrence probability of the abnormal conditions such as electricity or electricity jump.Therefore, technical solution provided by the embodiment of the present invention can be to battery
Current electric quantity be adjusted and correct, improve the accuracy rate of the electricity of the battery of display, reduce terminal occur unexpected power down or
The occurrence probability of the abnormal conditions such as electricity jump.
Embodiment two
The control method of terminal provided by one based on the above embodiment, it is above-mentioned that the embodiment of the present invention further provides realization
The Installation practice of each step and method in embodiment of the method.
On the one hand, the embodiment of the present invention provides a kind of control device of terminal.Specifically, referring to FIG. 2, it is the present invention
The functional block diagram of the control device of terminal provided by embodiment.As shown in Fig. 2, the device includes:
First acquisition unit 21, for obtaining the current electric quantity of battery when battery is in discharge condition;
Second acquisition unit 22, for obtaining the reality of battery when the current electric quantity of battery reaches preset charge node
Border voltage;
Adjustment unit 23, for being greater than when the extent of deviation between virtual voltage normal voltage corresponding with the charge node
When voltage threshold, the current electric quantity of battery is adjusted;
Display unit 24, for showing the current electric quantity of battery adjusted.
On the other hand, the embodiment of the present invention provides a kind of terminal.Specifically, referring to FIG. 3, it is institute of the embodiment of the present invention
The functional block diagram of the terminal of offer.As shown in figure 3, the terminal includes: the control device of terminal as shown in Figure 2.
In another aspect, the embodiment of the present invention provides a kind of computer storage medium, comprising: computer executable instructions, when
The computer executable instructions execute following steps when being run:
When battery is in discharge condition, the current electric quantity of battery is obtained;
When the current electric quantity of battery reaches preset charge node, the virtual voltage of battery is obtained;
When the extent of deviation between virtual voltage normal voltage corresponding with the charge node is greater than voltage threshold, to electricity
The current electric quantity in pond is adjusted;
Show the current electric quantity of battery adjusted.
During a concrete implementation, when the computer executable instructions are run, following steps are specifically executed:
When the extent of deviation between virtual voltage normal voltage corresponding with charge node is greater than voltage threshold, to battery
Current electric quantity be adjusted.
During a concrete implementation, when the computer executable instructions are run, following steps are specifically executed:
When extent of deviation is overgauge, keep the current electric quantity of battery constant, until the practical electricity of the battery got
Pressure is less than or equal to normal voltage.
Method shown in FIG. 1 is able to carry out by each unit in this present embodiment, the part that the present embodiment is not described in detail,
It can refer to the related description to Fig. 1.
The technical solution of the embodiment of the present invention has the advantages that
In the embodiment of the present invention, charge node is arranged by electricity to battery, also, when battery be in discharge condition and
When the current electric quantity of battery reaches preset charge node, between the virtual voltage of battery normal voltage corresponding with charge node
Extent of deviation be greater than voltage threshold when, the current electric quantity of battery is adjusted, in this way, can be at charge node to battery
Current electric quantity be modified and adjust, with the difference reduced between the practical electricity of battery and the current electric quantity of battery adjusted
Away from so that the current electric quantity of battery adjusted is more nearly the practical electricity of battery, the battery shown in raising terminal is worked as
The accuracy rate of preceding electricity;Also, the accuracy rate of the electricity of the battery based on display is higher, additionally it is possible to reduce terminal appearance and fall suddenly
The occurrence probability of the abnormal conditions such as electricity or electricity jump.Therefore, technical solution provided by the embodiment of the present invention can be to battery
Current electric quantity be adjusted and correct, improve the accuracy rate of the electricity of the battery of display, reduce terminal occur unexpected power down or
The occurrence probability of the abnormal conditions such as electricity jump.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.