The content of the invention
It is a primary object of the present invention to provide a kind of mobile terminal electric quantity display method, mobile terminal and computer-readable
Storage medium, it is intended to solve the battery capacity of mobile terminal technology that rapid jumping causes Consumer's Experience low in a short time and ask
Topic.
To achieve the above object, the embodiment of the present invention provides a kind of mobile terminal electric quantity display method, the mobile terminal
Electric quantity display method includes:
The actual electricity percentage of end cell is obtained, and obtains the interface electricity percentage that terminal interface is currently shown;
The difference of actual electricity percentage and interface electricity percentage is obtained, difference to be adjusted is set to;
When difference to be adjusted be more than first threshold when, based on difference to be adjusted obtain interface electricity adjustment interval time and
Adjustment amplitude;
The electricity adjustment of amplitude is adjusted to interface electricity percentage every adjustment interval time, by interface electricity hundred
Divide than adjusting to actual electricity percentage.
Alternatively, it is described when difference to be adjusted is more than first threshold, the tune of interface electricity is obtained based on difference to be adjusted
The step of whole interval time and adjustment amplitude, includes:
Real-time voltage and real time electrical quantity of the end cell under different electricity percentage situations are recorded, to obtain relationship match
Table;
The corresponding virtual voltage of actual electricity percentage and actual electricity are obtained, and it is corresponding to obtain interface electricity percentage
Phase boundary potential and interface electricity;
When difference to be adjusted is more than first threshold, analysis virtual voltage, actual electricity, phase boundary potential and interface electricity it
Between logical relation, to obtain the first operation values;
Analyze the corresponding first voltage of the first electricity percentage, the first electricity and the second electricity percentage in relationship match table
Logical relation between corresponding second voltage, the second electricity, to obtain the second operation values, the first electricity percentage and reality
Border electricity percentage matches, and the second electricity percentage matches with interface electricity percentage;
When the difference of the first operation values and the second operation values is less than or equal to Second Threshold, obtained based on relationship match table
The adjustment interval time corresponding with difference to be adjusted and adjustment amplitude.
Alternatively, the corresponding first voltage of the first electricity percentage, the first electricity and the in the analysis relationship match table
Logical relation between the corresponding second voltage of two electricity percentages, the second electricity, the step of to obtain the second operation values after
Also include:
When the difference of the first operation values and the second operation values is more than Second Threshold, by the first electricity hundred in relationship match table
The first voltage of ratio, the first electricity is divided to be updated to the virtual voltage of actual electricity percentage, actual electricity, based on relation after renewal
The matching list acquisition adjustment interval time corresponding with difference to be adjusted and adjustment amplitude.
Alternatively, it is described when the difference of the first operation values and the second operation values is more than Second Threshold, by relationship match table
In the first voltage of the first electricity percentage, the first electricity be updated to the virtual voltage of actual electricity percentage, actual electricity, base
Include the step of the adjustment interval time corresponding with difference to be adjusted of relationship match table acquisition after renewal and adjustment amplitude:
When the difference of the first operation values and the second operation values is more than Second Threshold and during more than three threshold values, the is reacquired
The difference of one operation values and the second operation values;
When the difference of the first operation values and the second operation values is more than Second Threshold and is less than or equal to three threshold values, it will close
It is that the first voltage of the first electricity percentage in matching list, the first electricity are updated to the actual electricity of actual electricity percentage successively
Pressure, actual electricity.
Alternatively, first operation values and the second operation values are followed successively by first slope and the second slope, and described first is oblique
Rate is function slope between virtual voltage, actual electricity, phase boundary potential, interface electricity, second slope be first voltage,
Function slope between first electricity, second voltage, the second electricity.
Alternatively, it is described when difference to be adjusted is more than first threshold, the tune of interface electricity is obtained based on difference to be adjusted
Also include after the step of whole interval time and adjustment amplitude:
When difference to be adjusted is less than or equal to first threshold, and mobile terminal is in when ceasing screen state, by interface electricity
Percentage is directly adjusted to actual electricity percentage.
Alternatively, actual electricity percentage is set to the first actual electricity percentage,
The electricity adjustment for being adjusted amplitude to interface electricity percentage every adjustment interval time, by interface electricity
Amount percentage, which is adjusted to after the step of actual electricity percentage, also to be included:
During the adjustment of interface electricity percentage, the second reality is converted to when detecting the first actual electricity percentage
During electricity percentage, judge whether the difference of the second actual electricity percentage and the first actual electricity percentage is more than the 4th threshold
Value;
When the difference for detecting the second actual electricity percentage and the first actual electricity percentage is more than four threshold values, with
Second actual electricity percentage, which is defined, recalculates difference to be adjusted, and interface electricity percentage is adjusted.
Alternatively, the mobile terminal electric quantity display method also includes:
When detecting mobile terminal in charged state, interface electricity percentage is adjusted every preset time.
The present invention also provides a kind of mobile terminal, and the mobile terminal includes:Memory, processor, communication bus and
The terminal power being stored on the memory shows program,
The communication bus is used to realize the communication connection between processor and memory;
The processor is used to perform the terminal power display program, to realize following steps:
The actual electricity percentage of end cell is obtained, and obtains the interface electricity percentage that terminal interface is currently shown;
The difference of actual electricity percentage and interface electricity percentage is obtained, difference to be adjusted is set to;
When difference to be adjusted be more than first threshold when, based on difference to be adjusted obtain interface electricity adjustment interval time and
Adjustment amplitude;
The electricity adjustment of amplitude is adjusted to interface electricity percentage every adjustment interval time, by interface electricity hundred
Divide than adjusting to actual electricity percentage.
Alternatively, it is described when difference to be adjusted is more than first threshold, the tune of interface electricity is obtained based on difference to be adjusted
The step of whole interval time and adjustment amplitude, includes:
Real-time voltage and real time electrical quantity of the end cell under different electricity percentage situations are recorded, to obtain relationship match
Table;
The corresponding virtual voltage of actual electricity percentage and actual electricity are obtained, and it is corresponding to obtain interface electricity percentage
Phase boundary potential and interface electricity;
When difference to be adjusted is more than first threshold, analysis virtual voltage, actual electricity, phase boundary potential and interface electricity it
Between logical relation, to obtain the first operation values;
Analyze the corresponding first voltage of the first electricity percentage, the first electricity and the second electricity percentage in relationship match table
Logical relation between corresponding second voltage, the second electricity, to obtain the second operation values, the first electricity percentage and reality
Border electricity percentage matches, and the second electricity percentage matches with interface electricity percentage;
When the difference of the first operation values and the second operation values is less than or equal to Second Threshold, obtained based on relationship match table
The adjustment interval time corresponding with difference to be adjusted and adjustment amplitude.
Alternatively, the corresponding first voltage of the first electricity percentage, the first electricity and the in the analysis relationship match table
Logical relation between the corresponding second voltage of two electricity percentages, the second electricity, the step of to obtain the second operation values after
Also include:
When the difference of the first operation values and the second operation values is more than Second Threshold, by the first electricity hundred in relationship match table
The first voltage of ratio, the first electricity is divided to be updated to the virtual voltage of actual electricity percentage, actual electricity, based on relation after renewal
The matching list acquisition adjustment interval time corresponding with difference to be adjusted and adjustment amplitude.
Alternatively, it is described when the difference of the first operation values and the second operation values is more than Second Threshold, by relationship match table
In the first voltage of the first electricity percentage, the first electricity be updated to the virtual voltage of actual electricity percentage, actual electricity, base
Include the step of the adjustment interval time corresponding with difference to be adjusted of relationship match table acquisition after renewal and adjustment amplitude:
When the difference of the first operation values and the second operation values is more than Second Threshold and during more than three threshold values, the is reacquired
The difference of one operation values and the second operation values;
When the difference of the first operation values and the second operation values is more than Second Threshold and is less than or equal to three threshold values, it will close
It is that the first voltage of the first electricity percentage in matching list, the first electricity are updated to the actual electricity of actual electricity percentage successively
Pressure, actual electricity.
Alternatively, first operation values and the second operation values are followed successively by first slope and the second slope, and described first is oblique
Rate is function slope between virtual voltage, actual electricity, phase boundary potential, interface electricity, second slope be first voltage,
Function slope between first electricity, second voltage, the second electricity.
Alternatively, it is described when difference to be adjusted is more than first threshold, the tune of interface electricity is obtained based on difference to be adjusted
Also include after the step of whole interval time and adjustment amplitude:
When difference to be adjusted is less than or equal to first threshold, and mobile terminal is in when ceasing screen state, by interface electricity
Percentage is directly adjusted to actual electricity percentage.
Alternatively, actual electricity percentage is set to the first actual electricity percentage,
The electricity adjustment for being adjusted amplitude to interface electricity percentage every adjustment interval time, by interface electricity
Amount percentage, which is adjusted to after the step of actual electricity percentage, also to be included:
During the adjustment of interface electricity percentage, the second reality is converted to when detecting the first actual electricity percentage
During electricity percentage, judge whether the difference of the second actual electricity percentage and the first actual electricity percentage is more than the 4th threshold
Value;
When the difference for detecting the second actual electricity percentage and the first actual electricity percentage is more than four threshold values, with
Second actual electricity percentage, which is defined, recalculates difference to be adjusted, and interface electricity percentage is adjusted.
Alternatively, the mobile terminal electric quantity display method also includes:
When detecting mobile terminal in charged state, interface electricity percentage is adjusted every preset time.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable
Storage medium is stored with one or more than one program, one or more than one program can by one or one with
On computing device for:
The actual electricity percentage of end cell is obtained, and obtains the interface electricity percentage that terminal interface is currently shown;
The difference of actual electricity percentage and interface electricity percentage is obtained, difference to be adjusted is set to;
When difference to be adjusted be more than first threshold when, based on difference to be adjusted obtain interface electricity adjustment interval time and
Adjustment amplitude;
The electricity adjustment of amplitude is adjusted to interface electricity percentage every adjustment interval time, by interface electricity hundred
Divide than adjusting to actual electricity percentage.
In technical scheme, the actual electricity percentage of end cell is obtained first, and obtains terminal interface works as
The interface electricity percentage of preceding display;Then the difference of actual electricity percentage and interface electricity percentage is obtained, is set to wait to adjust
Whole difference;Then when difference to be adjusted is more than first threshold, when obtaining the adjustment interval of interface electricity based on difference to be adjusted
Between and adjustment amplitude;The last electricity adjustment for being adjusted amplitude to interface electricity percentage every adjustment interval time, will
Interface electricity percentage is adjusted to actual electricity percentage.The present invention is made by way of repeatedly adjusting interface electricity percentage
The smooth-out gradual change of change of battery electric quantity is obtained, smooth variation and accurate electric quantity change trend is provided the user, movement is prevented
Terminal battery electricity quantity quickly changes in a short time, causes user can not accurately adjust to the frequency of usage of mobile terminal and use
Purpose, so as to improve the usage experience of user.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed
Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved
Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode
Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera)
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can
By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with
For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy
The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage
Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers
Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
The present invention provides a kind of mobile terminal electric quantity display method, in mobile terminal electric quantity display method first embodiment
In, reference picture 3, the mobile terminal electric quantity display method includes:
Step S10, obtains the actual electricity percentage of end cell, and obtains the interface electricity that terminal interface is currently shown
Percentage;
The end cell of mobile terminal provides electricity for all operation activities of mobile terminal and supported.In actual life,
User is high to the frequency of usage of mobile terminal, to ensure that user can make according to the adjustment of the power supply capacity of battery to mobile terminal
With degree, mobile terminal can show the charge condition of present battery.But, cell degradation, electricity shows inaccurate, is easily caused
Battery electric quantity, which is shown, in a short time redirects too fast, user can be caused not know the assurance of battery electric quantity so that user can not
Precise arrangements frequency of usage, so as to influence Consumer's Experience.
Reference picture 10, the actual electricity percentage of end cell is 65%, but due to battery detecting algorithm or cell degradation
Etc. reason, the interface electricity percentage that mobile terminal is shown is inaccurate, and in 75%, the electricity percentage of this gap 10% is false
It is 65% by 75% saltus step, then the electric quantity change trend that user's direct feel is arrived is too obvious, Yong Huwu if disposably adjusting
Method correctly judge mobile terminal whether normal work, the how proper use of mobile terminal also just can not be normally determined, to user
Cause the injury in usage experience.
To solve this technical problem, mobile terminal by the display mode by repeatedly adjusting battery capacity of mobile terminal,
So that the display data of battery electric quantity progressively levels off to the true charge condition of battery.
Because mobile terminal detects the charge condition of end cell by IC circuits in real time, therefore mobile terminal can be obtained directly
The actual electricity percentage of end cell is got, the actual electricity percentage refers to the end cell institute of current mobile terminal
Dump energy accounts for the percentage of total battery capacity of end cell.The actual electricity percentage can truly reflect end cell
Remaining available power.Meanwhile, mobile terminal can be directly obtained the interface electricity percentage shown on terminal interface, the boundary
Face electricity percentage refers to the electricity percentage shown on the display interface of mobile terminal.
Mobile terminal is after actual electricity percentage is got, by special IC circuits or functional module by actual electricity
Percentage reports to the functional module of interface display.Normally, it is phase between interface electricity percentage and actual electricity percentage
Deng, it is assumed that there is data exception or reports inaccurate in centre, then actual electricity percentage and interface electricity percentage can not
Unanimously.Therefore, adjustment interface electricity percentage is, it is necessary to which with reference to actual electricity percentage, mobile terminal needs to get reality simultaneously
Border electricity percentage and actual electricity percentage.
Step S20, obtains the difference of actual electricity percentage and interface electricity percentage, is set to difference to be adjusted;
Adjustment to the interface electricity percentage shown by mobile terminal is, it is necessary to according to actual electricity percentage and interface electricity
Measure the difference between percentage and adjust.Therefore mobile terminal can directly obtain electricity percentage and interface electricity percentage by calculating
Difference than between, difference to be adjusted is set to by the difference.The difference to be adjusted refers to that mobile terminal is needed to interface
The numerical value amplitude that electricity percentage is adjusted.
For example, it is assumed that the numerical value of actual electricity percentage is 50%, and the numerical value of interface electricity percentage is 60%, then two
Person's difference 10%, 10% is that difference to be adjusted, i.e. mobile terminal are needed on the basis of the electricity percentage of interface, adjustment downwards
10% electricity shows numerical value.Certainly, the present invention is not limited to adjust interface electricity percentage downwards, may also include and adjusts upward
Interface electricity percentage.
Step S30, when difference to be adjusted is more than first threshold, between the adjustment that interface electricity is obtained based on difference to be adjusted
Every time and adjustment amplitude;
The first threshold is the threshold value of difference to be adjusted, when difference to be adjusted is more than first threshold, that is, proves to treat
The adjusting range of adjustment difference belongs in adjustable range, and the numerical value for representing difference to be adjusted is rational, and such as numerical value is 5%,
6% and 8% etc..The adjustable range of this difference to be adjusted will not cause Adjustment effect unobvious because of adjustment amplitude is excessive.
So, when difference to be adjusted is more than first threshold, default adjustment in mobile terminal can be obtained according to difference to be adjusted and be spaced
Time and adjustment amplitude, the adjustment interval time refer to that mobile terminal adjusts an interface electricity every some set time
Percentage;The adjustment amplitude refers to that mobile terminal adjusts the numerical value amplitude size of interface electricity percentage every time.
Step S40, the electricity adjustment of amplitude is adjusted every adjustment interval time, by boundary to interface electricity percentage
Face electricity percentage is adjusted to actual electricity percentage.
Because the final display that the difference to be adjusted of different numerical values reciteds adjusts interface electricity percentage to mobile terminal is imitated
Really different therefore different difference to be adjusted is all to that should have the adjustment interval time of respective interface electricity and adjustment width
Degree.Adjustment interval time and adjustment amplitude by different differences to be adjusted, mobile terminal can be with different adjustment modes
Adjust interface electricity percentage.
In the present embodiment, different adjustment interval times, different adjustment amplitudes and different differences to be adjusted are common
Different to the Adjustment effect of interface electricity percentage, any one factor is changed, then Adjustment effect will be produced
Larger change, and user is also different to the perception difference of this Adjustment effect.
Supplemented by assistant solve the technical scheme of the present embodiment, will be explained below by two specific examples:
(1) it is 5% to assume difference A to be adjusted, and the corresponding adjustment interval time got is 1 beat/min, adjusts width
Spend for 1%/time, that is to say, that mobile terminal will be adjusted every 1 minute within 5 minutes to interface electricity percentage, always
Adjust 5 times altogether, 1% is adjusted every time.And the direct feel of user is exactly the reduction of interface electricity percentage or increasing within 5 minutes
Add 5%.User will not generally stare at the interface electricity percent data on mobile terminal always, therefore user will not take notice of very much
Interface electricity percentage, 5% was have adjusted in 5 minutes, will not produce larger hopping sense.
But, if difference A to be adjusted is 5%, and the corresponding adjustment interval time got is 1 beat/min, adjusts width
Spend for 2.5%/time, that is to say, that mobile terminal will be adjusted for each 1 minute within 2 minutes to interface electricity percentage,
Adjust 2 times altogether, 2.5% is adjusted every time, and the direct feel of user is exactly the interface electricity percentage reduction within 2 minutes
Or add 5%.Even if user will not stare at the interface electricity percent data on mobile terminal always, user also can be in short-term
Between within find that interface electricity percent data saltus step is too fast, so as to be produced to the electricity display effect of mobile terminal inadaptable.
(2) assume that difference B to be adjusted is 10%, because 10% difference is excessive, if according to adjustment interval time be 1 time/
Minute, adjustment amplitude is 5%/time is adjusted, then mobile terminal needs to adjust 10% within 2 minutes, and this change is excessively
Substantially, hopping sense is extremely strong, and the saltus step of interface electricity percentage is excessively strong, and user is very easy to find the change of data, causes pair
The inadaptable sense of interface electricity percentage variation tendency.
Two above example illustrates that the adjustment interval time that difference to be adjusted gets and adjustment amplitude are not definitely solid
Fixed numerical value, and need to be changed according to the size variation of difference to be adjusted.Difference to be adjusted is the fixed value calculated,
And adjust interval time and adjustment amplitude then has the trend of relative change according to the difference of difference to be adjusted.During adjustment interval
Between and adjustment amplitude can accordingly be adjusted because of the different of difference to be adjusted, one of them can also not change therebetween, separately
One changes.It is intended that in plenty of time scope and user are difficult to discover, interface electricity percentage is adjusted
To actual electricity percentage.
In technical scheme, the actual electricity percentage of end cell is obtained first, and obtains terminal interface works as
The interface electricity percentage of preceding display;Then the difference of actual electricity percentage and interface electricity percentage is obtained, is set to wait to adjust
Whole difference;Then when difference to be adjusted is more than first threshold, when obtaining the adjustment interval of interface electricity based on difference to be adjusted
Between and adjustment amplitude;The last electricity adjustment for being adjusted amplitude to interface electricity percentage every adjustment interval time, will
Interface electricity percentage is adjusted to actual electricity percentage.The present invention is made by way of repeatedly adjusting interface electricity percentage
The smooth-out gradual change of change of battery electric quantity is obtained, smooth variation and accurate electric quantity change trend is provided the user, movement is prevented
Terminal battery electricity quantity quickly changes in a short time, causes user can not accurately adjust to the frequency of usage of mobile terminal and use
Purpose, so as to improve the usage experience of user.
Further, on the basis of mobile terminal electric quantity display method first embodiment of the present invention, mobile terminal is proposed
Electric quantity display method second embodiment, reference picture 4, the difference between the second embodiment and first embodiment is, described
When difference to be adjusted is more than first threshold, adjustment interval time and the adjustment amplitude of interface electricity are obtained based on difference to be adjusted
The step of include:
Step S31, real-time voltage and real time electrical quantity of the record end cell under different electricity percentage situations, to obtain
Relationship match table;
End cell is different in electricity not in the same time, i.e., electricity percentage not in the same time is different.Without
It is also different with the real-time voltage and real time electrical quantity under electricity percentage.The real-time voltage and real time electrical quantity of end cell make
Show the trend of change always during, mobile terminal will capture this variation tendency, and the variation tendency is recorded
Get off, obtain real-time voltage and the relationship match figure of real time electrical quantity under different electricity percentage situations.
Step S32, obtains the corresponding virtual voltage of actual electricity percentage and actual electricity, and obtain interface electricity percentage
Than corresponding phase boundary potential and interface electricity;
Must there are corresponding virtual voltage and actual electricity under actual electricity percentage detected by present terminal battery, and
Also there are phase boundary potential and interface electricity under current interface electricity percentage.It should be noted that phase boundary potential and interface electricity are
Battery data under the electricity percentage of interface, the battery data is not necessarily accurate, but the numerical values recited of interface electricity percentage is
Because what both phase boundary potential and interface electricity collective effect were produced.
Step S33, when difference to be adjusted is more than first threshold, analysis virtual voltage, actual electricity, phase boundary potential and boundary
Logical relation between the electricity of face, to obtain the first operation values;
When difference to be adjusted is more than first threshold, it was demonstrated that difference to be adjusted belongs to reasonable adjustment range, interface electricity hundred
Divide and be not easy to produce hopping sense by user than the difference Adjustment effect with actual electricity percentage.Now, mobile terminal will be analyzed
Logical relation between virtual voltage, actual electricity, phase boundary potential, four numerical value of interface electricity, the logical relation is referred to
Arithmetic logic between four numerical value of the above, can be linear logic, can be function logics, by the logic for analyzing four
Relation, so as to obtain the first operation values.
For example, the logical relation between virtual voltage, actual electricity, phase boundary potential and interface electricity can be:Actual electricity
1 volt of pressure lifting, actual electricity then lifts 100 MAHs, and phase boundary potential then lifts 0.5 volt, and interface electricity lifts 80 MAHs,
That is, the lifting numerical value of virtual voltage will have influence on the numerical value change of actual electricity, phase boundary potential and interface electricity simultaneously,
Its logical relation can be showed by functional relation.Obtain according to this logical relation, the first fortune between four can be analyzed
Calculation value, first operation values will be crucial as the logic between virtual voltage, actual electricity, phase boundary potential and interface electricity
Numerical value.
The corresponding first voltage of first electricity percentage, the first electricity and the second electricity in step S34, analysis relationship match table
The logical relation between the corresponding second voltage of percentage, the second electricity is measured, to obtain the second operation values, first electricity hundred
Divide than matching with actual electricity percentage, the second electricity percentage matches with interface electricity percentage;
First electricity percentage is the electricity percentage being mutually equal with actual electricity percentage in relationship match table, and this first
There is corresponding first voltage and the first electricity in electricity percentage, end cell is represent respectively in relationship match list
Magnitude of voltage and charge value in the case of one electricity percentage.Equally, the second electricity percentage be in relationship match table with interface
There is corresponding second voltage in relationship match table in the mutually equivalent electricity percentage of electricity percentage, the second electricity percentage
With the second electricity, magnitude of voltage and charge value of the end cell under the bright percentage of second point represent.
Under the first electricity percentage and the second electricity percentage, first voltage, the first electricity, second voltage and the second electricity
Amount may be different with virtual voltage, actual electricity, phase boundary potential and interface electricity, in relationship match table, first voltage,
Equally possible between first electricity, second voltage, the second electricity to survey a kind of logical relation, mobile terminal can pass through various logic point
Analysis method comes out the Logic relationship analysis, obtains the second operation values.
Step S35, when the difference of the first operation values and the second operation values is less than or equal to Second Threshold, based on relation
With the table acquisition adjustment interval time corresponding with difference to be adjusted and adjustment amplitude.
The Second Threshold is the first operation values and the difference threshold both the second operation values, the first operation values and second
The difference of operation values means the difference between the logical relation that is recorded in the actual logical relation of end cell and relation list.
Because the actual logical relation of end cell may change under various circumstances, this variation tendency is influenced whether finally
Adjustment effect.
Second Threshold represents actual logical relation and the line of demarcation for the logical relation concluded in relationship match table, if poor
Value is below line of demarcation, then relationship match table can provide difference to be adjusted corresponding adjustment interval time and adjustment amplitude.First
The difference of operation values and the second operation values is less than or equal to Second Threshold, then proves that the gap of the two meets patrolling in relationship match table
The relation of collecting, although gap, but difference belongs to rationally adjustable field.In the terminal, it can pre-set between adjustment
Every time and adjustment amplitude, this default value can be directly built-in by mobile terminal sound manufacturer, with the inspection based on end cell
It is reference to survey data, and mobile terminal is implanted into by the data looked after and guided in advance, is advised as the adjustment of adjustment interface electricity percentage
Then.
Specifically, reference picture 11, the present invention can provide three functional modules:Detection module, tracking module and study module.
Wherein, detection module is by the actual electricity under the actual electricity percentage detected, virtual voltage, and interface electricity percentage
Under the data such as interface electricity, phase boundary potential be supplied to tracking module, tracking module is according to actual electricity percentage and interface electricity
Amount percentage is adjusted to interface electricity percentage, while the data that detection module is detected are supplied to study module generation pass
It is matching list, and the relationship match table of study module provides data supporting, and base for tracking module adjustment interface electricity percentage
The data in relationship match table are updated in the data point reuse of tracking module.
Further, on the basis of mobile terminal electric quantity display method second embodiment of the present invention, mobile terminal is proposed
Electric quantity display method 3rd embodiment, reference picture 5, the difference between the 3rd embodiment and second embodiment is,
The corresponding first voltage of first electricity percentage, the first electricity and the second electricity hundred in the analysis relationship match table
Point than the logical relation between corresponding second voltage, the second electricity, the step of to obtain the second operation values after also include:
Step S36, when the difference of the first operation values and the second operation values is more than Second Threshold, by relationship match table the
The first voltage of one electricity percentage, the first electricity are updated to the virtual voltage of actual electricity percentage, actual electricity, based on more
The relationship match table acquisition adjustment interval time corresponding with difference to be adjusted and adjustment amplitude after new.
When the difference of the first operation values and the second operation values is more than Second Threshold, then prove the gap of the two in line of demarcation
Outside, occur in that new data parameters.Such case is usually because there is logic caused by cell degradation, or temperature rise
Relation is adjusted.This adjustment is probably temporary, and such as after after temperature reduction, its logical relation will be returned to reasonable adjustable range
It is interior;Or the adjustment is permanent, such as after cell degradation, logical relation by always with new variation tendency keep without
Come back in original adjusting range.Regardless of whether be which kind of situation, voltage and electricity number in all representing in relationship match table
Failed according to possible, therefore mobile terminal is needed the first voltage of the first electricity percentage, the first electricity in relationship match table more
It is newly virtual voltage, the actual electricity of actual electricity percentage, with the real time availability of support relation matching list.
Mobile terminal is reacquired based on the data in relationship match table after renewal corresponding with difference to be adjusted simultaneously
Adjustment interval time and adjustment amplitude.Certainly, adjustment interval time and adjustment amplitude will be produced new based on the data after renewal
Adjustment effect.
Further, on the basis of mobile terminal electric quantity display method 3rd embodiment of the present invention, mobile terminal is proposed
Electric quantity display method fourth embodiment, reference picture 6, the difference between the fourth embodiment and 3rd embodiment is,
When the difference when the first operation values and the second operation values is more than Second Threshold, by the first electricity in relationship match table
Measuring the step of first voltage of percentage, the first electricity are updated to the virtual voltage of actual electricity percentage, actual electricity includes:
Step S361, when the difference of the first operation values and the second operation values is more than Second Threshold and is more than three threshold values,
Reacquire the difference of the first operation values and the second operation values;
Alternatively, when the difference of the first operation values and the second operation values is more than Second Threshold, the is increased on this basis
The qualifications of three threshold values.3rd threshold value refers to the maximum threshold of the difference of the first operation values and the second operation values.
Assuming that the difference of the first operation values and the second operation values is excessive.Such as difference has exceeded 50%, then proves that the difference belongs to abnormal
Data, it is impossible to follow-up step is continued executing with as reference data, and needs to redefine the first operation values and the second operation values
Difference, that is to say, that the abnormal data will be ignored, and be not counted in the reference data in relationship match table.Only secure first
The difference of operation values and the second operation values can be used as the sample number being included in relationship match table in reasonable controlled range
According to.
Step S362, when the difference of the first operation values and the second operation values is more than Second Threshold and less than or equal to the 3rd threshold
During value, the first voltage of the first electricity percentage, the first electricity in relationship match table are updated to actual electricity percentage successively
Virtual voltage, actual electricity.
When the first computing to and operation values difference be more than Second Threshold and be less than or equal to the 3rd threshold value, then prove the difference
Value represents cell degradation or the problems such as temperature is raised, it is necessary to carry out data renewal, and the change of the difference belongs to terminal electricity
The normal mechanical periodicity in pond, is not as unusual condition, for example, crashes, the electric power thus supplied under the abnormal condition such as battery short circuit.
Now the data under the actual electricity percentage situation of end cell can be included in parameter matching list as sample data, therefore move
The first voltage of first electricity percentage, the first electricity in relationship match table can be updated to actual electricity percentage successively by terminal
Virtual voltage, actual electricity.
Further, on the basis of mobile terminal electric quantity display method second embodiment of the present invention, mobile terminal is proposed
The embodiment of electric quantity display method the 5th, the difference between the 5th embodiment and second embodiment is,
First operation values and the second operation values are followed successively by first slope and the second slope, and the first slope is actual
Function slope between voltage, actual electricity, phase boundary potential, interface electricity, second slope is first voltage, the first electricity
Function slope between amount, second voltage, the second electricity.
First operation values and the second operation values can represent various logic relation.Alternatively, the first fortune in the present embodiment
Calculation value and the second operation values are respectively first slope and the second slope.Virtual voltage, actual electricity, phase boundary potential, interface electricity
Between numerical relation can be showed by the form of linear function, by the way that virtual voltage and actual electricity are set to (x1,
Y1), phase boundary potential and interface electricity are set to (x2, y2), two in mathematical algorithm point seek slope formula:K=(y2-
Y1)/(x2-x1), can get first slope k1 numerical values recited, similarly, the logical variable first voltage of the second operation values,
One electricity, second voltage, the second electricity also can ask slope formula to obtain the second slope k 2 by 2 points.By oblique to first
Rate and the second slope intuitively represent the logic difference of the two.
Illustrate the concrete thought of the present embodiment below by way of illustration.Reference picture 12, is arrived by acquisition for mobile terminal
The relationship match figure of voltage and electricity under each electricity percentage, relationship match figure the data obtained can be obtained on data coordinates axle
To data correlation figure substantially.In the case where mobile terminal is normally run, voltage and electricity in end cell can be with certain
Fixed rule is changed, and this change can be directly obtained in data coordinates axle.The logic formed by multiple data is closed
Connection relation, can level off to a straight algebraic function.This straight line can approximately regard linear function as, and in linear function,
If x-axis is voltage, y-axis is electricity, then the functional relation between x-axis and y-axis (i.e. voltage and electricity) can be by the slope of straight line
Calculate and obtain.Its method is, using the numerical value of two in relationship match table different coordinate points, according to two point form formula:K=(y1-
Y0 the numerical value of slope k)/(x1-x0) is obtained.
By the way that with upper type, the present embodiment can get virtual voltage, actual electricity, phase boundary potential and interface electricity institute shape
Into first slope k1, and according to first voltage, the first electricity, second voltage and the second electricity, the second slope k 2 can be got.
Further, on the basis of mobile terminal electric quantity display method first embodiment of the present invention, mobile terminal is proposed
Electric quantity display method sixth embodiment, reference picture 7, the difference between the sixth embodiment and first embodiment is,
It is described when difference to be adjusted be more than first threshold when, based on difference to be adjusted obtain interface electricity adjustment interval when
Between and adjustment amplitude the step of after also include:
Step S50, when difference to be adjusted is less than or equal to first threshold, and mobile terminal is in when ceasing screen state, will
Interface electricity percentage is directly adjusted to actual electricity percentage.
In the present embodiment, if difference to be adjusted is less than or equal to first threshold, prove that the difference to be adjusted is smaller, such as
0.1% to 1.5%, the difference is smaller, and do not adjust typically processing.Certainly, it is the accurate display of guarantee interface electricity percentage,
The difference to be adjusted can be adjusted, because numerical value is smaller, directly can disposably adjusted, in order to not cause data to jump to user
Become too fast sensory experience, simultaneously because without performing the step of repeatedly adjusting, present embodiments providing a kind of adjustment mode.I.e.
When mobile terminal is in breath screen state, interface electricity percentage is disposably directly adjusted to actual electricity percentage.So,
Difference numerical value to be adjusted is small, and it is excessively strong that disposable adjustment is also unlikely to hopping sense, while adjustment can also in breath screen state
The chance being directly observed to user is avoided, the inadaptable experience of user is reduced.
Further, on the basis of mobile terminal electric quantity display method first embodiment of the present invention, mobile terminal is proposed
The embodiment of electric quantity display method the 7th, reference picture 8, the difference between the 7th embodiment and first embodiment is,
Actual electricity percentage is set to the first actual electricity percentage, it is described every adjustment interval time to interface electricity
Percentage is adjusted the electricity adjustment of amplitude, and interface electricity percentage is adjusted to after the step of actual electricity percentage
Also include:
Step S60, during the adjustment of interface electricity percentage, is converted to when detecting the first actual electricity percentage
During the second actual electricity percentage, judge whether the difference of the second actual electricity percentage and the first actual electricity percentage is more than
4th threshold value;
During mobile terminal adjustment interface electricity percentage, end cell is still that mobile terminal provides electricity branch
Hold, it is assumed that in this process, mobile terminal is in high speed operating mode, such as mobile terminal is downloaded at full capacity in networking state
Data file, or mobile terminal are currently running certain large software etc., and this will cause consumption of the mobile terminal to end cell
Electricity is sharply increased so that actual electricity percentage quickly reduces;Or mobile terminal is in quick-charge state, terminal electricity
The voltage electricity fast lifting in pond so that actual electricity percentage quickly increases.And it is now in the adjustment process of interface electricity
In, set-up procedure originally may be no longer desirable for present case, it is therefore desirable to be micro-adjusted.
In the present embodiment, the actual electricity percentage during adjustment is set to the first actual electricity percentage, and adjusts
During the actual electricity percentage that detects when changing of actual electricity percentage be set to the second actual electricity percentage.Namely
Say, be in course of adjustment, the first actual electricity percentage is converted to the second actual electricity percentage, mobile terminal is needed according to the
The numerical value of two actual electricity percentages judges whether that needs are micro-adjusted.Mobile terminal is used as by the 4th threshold value of setting
The Rule of judgment of no adjustment.4th threshold value refers to the difference of the second actual electricity percentage and the first actual electricity percentage
The minimum threshold of value.
Step S70, when the difference for detecting the second actual electricity percentage and the first actual electricity percentage is more than the 4th
During threshold value, it is defined by the second actual electricity percentage and recalculates difference to be adjusted, and interface electricity percentage is adjusted.
Assuming that difference is more than the 4th threshold value, then prove that the variation tendency before and after actual electricity percentage is excessively obvious, such as the
Four threshold values are 5%, and variation tendency is changed into 74% by 80%, has changed 6%, more than the 4th threshold value, then now needs to exchange
Reference data during whole is finely adjusted.
And specific trim process is that the first actual electricity percentage during adjustment is converted into the second actual electricity
Percentage, calculates difference to be adjusted on the basis of the second actual electricity percentage, interface electricity percentage is adjusted again.
Further, on the basis of mobile terminal electric quantity display method first embodiment of the present invention, mobile terminal is proposed
The embodiment of electric quantity display method the 8th, the difference between the 8th embodiment and first embodiment is, the mobile terminal
Electric quantity display method also includes:
When detecting mobile terminal in charged state, interface electricity percentage is adjusted every preset time.
When mobile terminal is in charged state, the cell voltage and battery electric quantity of end cell will change, and real
Respective change will also occur for border electricity percentage and interface electricity percentage.Now, because user uses frequency to mobile terminal
Rate is higher to be possible to determine that the charge function for when disconnecting mobile terminal is provided for user there is provided accurate interface electricity percentage
Advisory opinion.Assuming that in charging process, redirecting for interface electricity percentage changes too fast, then user may suspect mobile whole
Whether the end cell at end occurs short circuit or even occurs the safety problems such as blast.For be supplied to the good usage experience of user and
Accurate capacity prompt, each preset time is an interval time, represents mobile terminal and timing is detected into interface electricity hundred
Divide ratio, detection adjustment is carried out to it.The present embodiment is detected after the interval time of preset time to interface electricity percentage
Adjustment.It adjusts process with reference to the technical scheme in first embodiment, and therefore not to repeat here.
Reference picture 9, Fig. 9 is the device structure schematic diagram for the hardware running environment that present invention method is related to.
Terminal of the embodiment of the present invention can be PC or smart mobile phone, tablet personal computer, E-book reader, MP3
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3)
Player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound
Frequency aspect 4) terminal device such as player, pocket computer.
As shown in figure 9, the mobile terminal can include:Processor 1001, such as CPU, memory 1005, communication bus
1002.Wherein, communication bus 1002 is used to realize the connection communication between processor 1001 and memory 1005.Memory 1005
Can be high-speed RAM memory or stable memory (non-volatile memory), such as magnetic disk storage.
Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Alternatively, the mobile terminal can also include user interface, network interface, camera, RF (Radio
Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..User interface can include display screen
(Display), input block such as keyboard (Keyboard), optional user interface can also include wireline interface, the nothing of standard
Line interface.Network interface can optionally include wireline interface, the wave point (such as WI-FI interfaces) of standard.
It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 9 does not constitute the limit to mobile terminal
It is fixed, it can include than illustrating more or less parts, either combine some parts or different parts arrangement.
As shown in figure 9, leading to as operating system, network can be included in a kind of memory 1005 of computer-readable storage medium
Believe that module and terminal power show program.Operating system is the program of management and control mobile terminal hardware and software resource,
Terminal power is supported to show the operation of program and other softwares and/or program.Network communication module is used to realize memory
Communication between the 1005 each components in inside, and with being communicated in mobile terminal between other hardware and softwares.
In the mobile terminal shown in Fig. 9, the terminal power that processor 1001 is stored for performing in memory 1005 shows
Show program, realize following steps:
The actual electricity percentage of end cell is obtained, and obtains the interface electricity percentage that terminal interface is currently shown;
The difference of actual electricity percentage and interface electricity percentage is obtained, difference to be adjusted is set to;
When difference to be adjusted be more than first threshold when, based on difference to be adjusted obtain interface electricity adjustment interval time and
Adjustment amplitude;
The electricity adjustment of amplitude is adjusted to interface electricity percentage every adjustment interval time, by interface electricity hundred
Divide than adjusting to actual electricity percentage.
Further, it is described when difference to be adjusted is more than first threshold, interface electricity is obtained based on difference to be adjusted
The step of adjustment interval time and adjustment amplitude, includes:
Real-time voltage and real time electrical quantity of the end cell under different electricity percentage situations are recorded, to obtain relationship match
Table;
The corresponding virtual voltage of actual electricity percentage and actual electricity are obtained, and it is corresponding to obtain interface electricity percentage
Phase boundary potential and interface electricity;
When difference to be adjusted is more than first threshold, analysis virtual voltage, actual electricity, phase boundary potential and interface electricity it
Between logical relation, to obtain the first operation values;
Analyze the corresponding first voltage of the first electricity percentage, the first electricity and the second electricity percentage in relationship match table
Logical relation between corresponding second voltage, the second electricity, to obtain the second operation values, the first electricity percentage and reality
Border electricity percentage matches, and the second electricity percentage matches with interface electricity percentage;
When the difference of the first operation values and the second operation values is less than or equal to Second Threshold, obtained based on relationship match table
The adjustment interval time corresponding with difference to be adjusted and adjustment amplitude.
Further, it is described analysis relationship match table in the corresponding first voltage of the first electricity percentage, the first electricity and
Logical relation between the corresponding second voltage of second electricity percentage, the second electricity, the step of to obtain the second operation values it
Also include afterwards:
When the difference of the first operation values and the second operation values is more than Second Threshold, by the first electricity hundred in relationship match table
The first voltage of ratio, the first electricity is divided to be updated to the virtual voltage of actual electricity percentage, actual electricity, based on relation after renewal
The matching list acquisition adjustment interval time corresponding with difference to be adjusted and adjustment amplitude.
Further, it is described when the difference of the first operation values and the second operation values is more than Second Threshold, by relationship match
The first voltage of the first electricity percentage, the first electricity are updated to the virtual voltage of actual electricity percentage, actual electricity in table,
Include based on the adjustment interval time corresponding with difference to be adjusted of relationship match table acquisition after renewal and the step of adjusting amplitude:
When the difference of the first operation values and the second operation values is more than Second Threshold and during more than three threshold values, the is reacquired
The difference of one operation values and the second operation values;
When the difference of the first operation values and the second operation values is more than Second Threshold and is less than or equal to three threshold values, it will close
It is that the first voltage of the first electricity percentage in matching list, the first electricity are updated to the actual electricity of actual electricity percentage successively
Pressure, actual electricity.
Further, first operation values and the second operation values are followed successively by first slope and the second slope, described first
Slope is the function slope between virtual voltage, actual electricity, phase boundary potential, interface electricity, and second slope is the first electricity
Pressure, the function slope between the first electricity, second voltage, the second electricity.
Further, it is described when difference to be adjusted is more than first threshold, interface electricity is obtained based on difference to be adjusted
Also include after the step of adjustment interval time and adjustment amplitude:
When difference to be adjusted is less than or equal to first threshold, and mobile terminal is in when ceasing screen state, by interface electricity
Percentage is directly adjusted to actual electricity percentage.
Further, actual electricity percentage is set to the first actual electricity percentage,
The electricity adjustment for being adjusted amplitude to interface electricity percentage every adjustment interval time, by interface electricity
Amount percentage, which is adjusted to after the step of actual electricity percentage, also to be included:
During the adjustment of interface electricity percentage, the second reality is converted to when detecting the first actual electricity percentage
During electricity percentage, judge whether the difference of the second actual electricity percentage and the first actual electricity percentage is more than the 4th threshold
Value;
When the difference for detecting the second actual electricity percentage and the first actual electricity percentage is more than four threshold values, with
Second actual electricity percentage, which is defined, recalculates difference to be adjusted, and interface electricity percentage is adjusted.
Further, the mobile terminal electric quantity display method also includes:
When detecting mobile terminal in charged state, interface electricity percentage is adjusted every preset time.
The embodiment of mobile terminal of the present invention and the basic phase of above-mentioned each embodiment of mobile terminal electric quantity display method
Together, it will not be repeated here.
Present invention also offers a kind of computer-readable recording medium, the computer-readable recording medium storage has one
Or more than one program, one or more than one program can also by one or more than one computing device with
For:
The actual electricity percentage of end cell is obtained, and obtains the interface electricity percentage that terminal interface is currently shown;
The difference of actual electricity percentage and interface electricity percentage is obtained, difference to be adjusted is set to;
When difference to be adjusted be more than first threshold when, based on difference to be adjusted obtain interface electricity adjustment interval time and
Adjustment amplitude;
The electricity adjustment of amplitude is adjusted to interface electricity percentage every adjustment interval time, by interface electricity hundred
Divide than adjusting to actual electricity percentage.
Computer-readable recording medium embodiment of the present invention and above-mentioned mobile terminal electric quantity display method and movement
Each embodiment of terminal is essentially identical, will not be repeated here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.