CN107356881B - A kind of control method of terminal, device and terminal - Google Patents

A kind of control method of terminal, device and terminal Download PDF

Info

Publication number
CN107356881B
CN107356881B CN201710591279.9A CN201710591279A CN107356881B CN 107356881 B CN107356881 B CN 107356881B CN 201710591279 A CN201710591279 A CN 201710591279A CN 107356881 B CN107356881 B CN 107356881B
Authority
CN
China
Prior art keywords
voltage
battery
electricity
charge node
electric quantity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710591279.9A
Other languages
Chinese (zh)
Other versions
CN107356881A (en
Inventor
廖野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Boao Zongheng Network Technology Co ltd
Guangzhou Juyue Software Co.,Ltd.
Original Assignee
Guangzhou Juyue Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Juyue Software Co Ltd filed Critical Guangzhou Juyue Software Co Ltd
Priority to CN201710591279.9A priority Critical patent/CN107356881B/en
Publication of CN107356881A publication Critical patent/CN107356881A/en
Application granted granted Critical
Publication of CN107356881B publication Critical patent/CN107356881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/3644Constructional arrangements
    • G01R31/3648Constructional arrangements comprising digital calculation means, e.g. for performing an algorithm
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention provides a kind of control method of terminal, device and terminals, are applied to field of terminal technology.In the embodiment of the present invention, when battery is in discharge condition, by the current electric quantity for obtaining the battery, then, when the current electric quantity reaches preset charge node, the virtual voltage of the battery is obtained, to, when the extent of deviation between virtual voltage normal voltage corresponding with the charge node is greater than voltage threshold, the current electric quantity of the battery is adjusted, and show the current electric quantity of the battery adjusted.Therefore, technical solution provided in an embodiment of the present invention is adjusted and corrects to the current electric quantity of battery, improves the accuracy rate of the electricity of the battery of display, reduces the occurrence probability that the abnormal conditions such as unexpected power down or electricity jump occurs in terminal.

Description

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.

Claims (4)

1. a kind of control method of terminal, which is characterized in that the described method includes:
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;
It is right when the extent of deviation between virtual voltage normal voltage corresponding with the charge node is greater than voltage threshold The current electric quantity of the battery is adjusted;
Show the current electric quantity of the battery adjusted;
It is right when the extent of deviation between virtual voltage normal voltage corresponding with the charge node is greater than voltage threshold The current electric quantity of the battery is adjusted, comprising: when the extent of deviation is overgauge, keeps the current electricity of the battery Measure it is constant, until the virtual voltage of the battery got is less than or equal to the normal voltage;Or
It is right when the extent of deviation between virtual voltage normal voltage corresponding with the charge node is greater than voltage threshold The current electric quantity of the battery is adjusted, comprising: when the extent of deviation is minus deviation, within the preset time cycle, The electricity acceleration of the battery is dropped into the corresponding electricity of the virtual voltage;
The method also includes:
The maximum voltage and minimum voltage in the electricity stage where the charge node are obtained, the maximum voltage is the electricity The corresponding voltage value of highest electricity in the electricity stage where amount node, the minimum voltage are the electricity where the charge node The corresponding voltage value of minimum electricity in the amount stage;
According to preset power threshold, the maximum voltage and minimum voltage, the corresponding voltage threshold of the charge node is obtained, Using as the voltage threshold;
According to preset power threshold, the maximum voltage and minimum voltage, the corresponding voltage threshold of the charge node is obtained Include:
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 electricity Pressure, X indicate the number in the electricity stage in electricity gamut, and S indicates preset adjustment thresholding.
2. a kind of control device of terminal, which is characterized in that described device includes:
First acquisition unit, for obtaining the current electric quantity of the battery when battery is in discharge condition;
Second acquisition unit, for obtaining the practical electricity of the battery when the current electric quantity reaches preset charge node Pressure;
Adjustment unit, 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 the battery is adjusted;
Display unit, for showing the current electric quantity of the battery adjusted;
The adjustment unit is specifically used for keeping the current electric quantity of the battery constant when the extent of deviation is overgauge, Until the virtual voltage of the battery got is less than or equal to the normal voltage;Alternatively, when the extent of deviation is When minus deviation, within the preset time cycle, the electricity acceleration of the battery is dropped into the corresponding electricity of the virtual voltage;
The control device of terminal is also used to:
The maximum voltage and minimum voltage in the electricity stage where the charge node are obtained, the maximum voltage is the electricity The corresponding voltage value of highest electricity in the electricity stage where amount node, the minimum voltage are the electricity where the charge node The corresponding voltage value of minimum electricity in the amount stage;
According to preset power threshold, the maximum voltage and minimum voltage, the corresponding voltage threshold of the charge node is obtained, Using as the voltage threshold;
According to preset power threshold, the maximum voltage and minimum voltage, the corresponding voltage threshold of the charge node is obtained Include:
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 electricity Pressure, X indicate the number in the electricity stage in electricity gamut, and S indicates preset adjustment thresholding.
3. a kind of terminal, which is characterized in that the terminal includes: the control device of terminal as claimed in claim 2.
4. a kind of computer storage medium characterized by comprising computer executable instructions refer to when the computer is executable Following steps are executed when order is 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;
It is right when the extent of deviation between virtual voltage normal voltage corresponding with the charge node is greater than voltage threshold The current electric quantity of the battery is adjusted;
Show the current electric quantity of the battery adjusted;
When the computer executable instructions are run, following steps are specifically executed:
When the extent of deviation is overgauge, keep the current electric quantity of the battery constant, until the battery got Virtual voltage be less than or equal to the normal voltage;Or
When the computer executable instructions are run, following steps are specifically executed:
When the extent of deviation is minus deviation, within the preset time cycle, the electricity acceleration of the battery is dropped into institute State the corresponding electricity of virtual voltage;
When the computer executable instructions are run, following steps are also executed:
The maximum voltage and minimum voltage in the electricity stage where the charge node are obtained, the maximum voltage is the electricity The corresponding voltage value of highest electricity in the electricity stage where amount node, the minimum voltage are the electricity where the charge node The corresponding voltage value of minimum electricity in the amount stage;
According to preset power threshold, the maximum voltage and minimum voltage, the corresponding voltage threshold of the charge node is obtained, Using as the voltage threshold;
According to preset power threshold, the maximum voltage and minimum voltage, the corresponding voltage threshold of the charge node is obtained Include:
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 electricity Pressure, X indicate the number in the electricity stage in electricity gamut, and S indicates preset adjustment thresholding.
CN201710591279.9A 2017-07-19 2017-07-19 A kind of control method of terminal, device and terminal Active CN107356881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710591279.9A CN107356881B (en) 2017-07-19 2017-07-19 A kind of control method of terminal, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710591279.9A CN107356881B (en) 2017-07-19 2017-07-19 A kind of control method of terminal, device and terminal

Publications (2)

Publication Number Publication Date
CN107356881A CN107356881A (en) 2017-11-17
CN107356881B true CN107356881B (en) 2019-11-22

Family

ID=60284762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710591279.9A Active CN107356881B (en) 2017-07-19 2017-07-19 A kind of control method of terminal, device and terminal

Country Status (1)

Country Link
CN (1) CN107356881B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109066865B (en) * 2018-08-21 2021-02-09 北京小米移动软件有限公司 Calibration method of battery electric quantity and terminal
CN109596989B (en) * 2018-12-29 2021-01-01 出门问问信息科技有限公司 Method and device for displaying electric quantity of electronic equipment and electronic equipment
CN110068773A (en) * 2019-04-29 2019-07-30 北京长城华冠汽车科技股份有限公司 The method and apparatus of output power battery SOC, medium, electronic equipment
CN110419987B (en) * 2019-08-30 2021-08-10 深圳市银星智能科技股份有限公司 Energy monitoring method of cleaning robot and cleaning robot
CN113933715B (en) * 2020-07-09 2022-08-16 珠海格力电器股份有限公司 Method, device and equipment for displaying battery electric quantity and storage medium
WO2023221105A1 (en) * 2022-05-20 2023-11-23 北京小米移动软件有限公司 Battery electric quantity adjustment method and apparatus, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202486292U (en) * 2011-11-07 2012-10-10 浙江绿源电动车有限公司 Battery electric quantity acquiring device
CN106124995A (en) * 2016-06-16 2016-11-16 深圳市鼎盛智能科技有限公司 Battery electric quantity checking device and mobile electronic device
CN106249168A (en) * 2016-08-31 2016-12-21 福州瑞芯微电子股份有限公司 A kind of battery curve modification method and device
CN106597307A (en) * 2016-12-16 2017-04-26 东莞新能德科技有限公司 Method and apparatus for correcting estimated value of remaining capacity of battery
CN106842042A (en) * 2016-12-28 2017-06-13 深圳天珑无线科技有限公司 It is a kind of that method, system and the electronic equipment calibrated are shown to electricity
EP3190425A1 (en) * 2014-09-04 2017-07-12 ZTE Corporation Method and apparatus for displaying electricity quantity of battery, and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202486292U (en) * 2011-11-07 2012-10-10 浙江绿源电动车有限公司 Battery electric quantity acquiring device
EP3190425A1 (en) * 2014-09-04 2017-07-12 ZTE Corporation Method and apparatus for displaying electricity quantity of battery, and electronic device
CN106124995A (en) * 2016-06-16 2016-11-16 深圳市鼎盛智能科技有限公司 Battery electric quantity checking device and mobile electronic device
CN106249168A (en) * 2016-08-31 2016-12-21 福州瑞芯微电子股份有限公司 A kind of battery curve modification method and device
CN106597307A (en) * 2016-12-16 2017-04-26 东莞新能德科技有限公司 Method and apparatus for correcting estimated value of remaining capacity of battery
CN106842042A (en) * 2016-12-28 2017-06-13 深圳天珑无线科技有限公司 It is a kind of that method, system and the electronic equipment calibrated are shown to electricity

Also Published As

Publication number Publication date
CN107356881A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN107356881B (en) A kind of control method of terminal, device and terminal
CN103606716B (en) A kind of charging method and device
CN106129508B (en) A kind of charging method and device
CN106992326B (en) Charging control method and device and electronic equipment
US20170271903A1 (en) Charging method and apparatus
CN109981744B (en) Data distribution method and device, storage medium and electronic equipment
WO2018072443A1 (en) Charging method, apparatus, and data storage medium
CN108255673A (en) Application program occupies detection method, device and the storage medium of resource
CN112367384B (en) Kafka cluster-based dynamic speed limiting method and device and computer equipment
CN115902641A (en) Method and device for predicting battery capacity diving and storage medium
CN117805663B (en) Battery testing method, device, equipment and medium based on running state
CN105353206A (en) Computing method and system for air conditioner power consumption
CN110365598B (en) Heartbeat message sending method, device, server, terminal and storage medium
CN105589847A (en) Weighted article identification method and device
CN106200866B (en) A kind of application freezing method and mobile terminal
CN105653242A (en) Timing method and apparatus
CN115657570B (en) Intelligent chip control method and device in low power consumption mode and storage medium
CN109800079B (en) Node adjusting method in medical insurance system and related device
CN108347355A (en) A kind of detection method and its equipment of application state
CN115169976A (en) Reliability evaluation method and device for base station power supply system
CN113507154A (en) Charging method and device, charger and electronic equipment
CN111668804B (en) Overcurrent protection method and device and electronic equipment
CN111665390A (en) Non-invasive load detection method, terminal device and readable storage medium
CN113439252A (en) Terminal control method, terminal control device, storage medium and electronic equipment
CN104298333A (en) Portable electronic device and power management method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20191025

Address after: 510300 room 2308, No.84, diejing Middle Road, Haizhu District, Guangzhou City, Guangdong Province (office only)

Applicant after: Guangzhou Juyue Software Co.,Ltd.

Address before: 510000 Guangzhou High-tech Industrial Development Zone Science Avenue 231, 233 Skirt Building B1B2, 1st, 2nd, 3rd and 4th floors

Applicant before: BOAO ZONGHENG NETWORK TECHNOLOGY Co.,Ltd.

Effective date of registration: 20191025

Address after: 510000 Guangzhou High-tech Industrial Development Zone Science Avenue 231, 233 Skirt Building B1B2, 1st, 2nd, 3rd and 4th floors

Applicant after: BOAO ZONGHENG NETWORK TECHNOLOGY Co.,Ltd.

Address before: 518053 Guangdong city of Shenzhen province Nanshan District overseas Chinese town in Eastern Industrial Zone H3 building 501B

Applicant before: SHENZHEN TINNO WIRELESS TECHNOLOGY Co.,Ltd.

Applicant before: Tinno Mobile Technology Corp.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant