CN110177171A - Mobile terminal and its electric quantity display method and computer readable storage medium - Google Patents

Mobile terminal and its electric quantity display method and computer readable storage medium Download PDF

Info

Publication number
CN110177171A
CN110177171A CN201910367201.8A CN201910367201A CN110177171A CN 110177171 A CN110177171 A CN 110177171A CN 201910367201 A CN201910367201 A CN 201910367201A CN 110177171 A CN110177171 A CN 110177171A
Authority
CN
China
Prior art keywords
electricity
practical
mobile terminal
display
practical electricity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910367201.8A
Other languages
Chinese (zh)
Inventor
陈伊春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910367201.8A priority Critical patent/CN110177171A/en
Publication of CN110177171A publication Critical patent/CN110177171A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements

Abstract

The invention discloses a kind of electric quantity display method of mobile terminal, the electric quantity display method of the mobile terminal is the following steps are included: obtain the practical electricity of power supply in mobile terminal;Obtain the corresponding display electricity of the practical electricity, wherein when the practical electricity meets preset condition, the display electricity is greater than the practical electricity;Show the corresponding information about power of the display electricity.Invention additionally discloses a kind of mobile terminal and computer readable storage mediums.The power supply of mobile terminal electricity of the present invention is durable.

Description

Mobile terminal and its electric quantity display method and computer readable storage medium
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of mobile terminal and its electric quantity display method and calculating Machine readable storage medium storing program for executing.
Background technique
Mobile terminal has become essential smart machine in people's daily life.
User can generally be configured the electricity of mobile terminal, so that mobile terminal shows electric quantity of power supply percentage number Value.
Summary of the invention
A kind of electric quantity display method of mobile terminal provided by the invention, the electric quantity display method of the mobile terminal include Following steps:
Obtain the practical electricity of power supply in mobile terminal;
Obtain the corresponding display electricity of the practical electricity, wherein described when the practical electricity meets preset condition Show that electricity is greater than the practical electricity;
Show the corresponding information about power of the display electricity.
In one embodiment, when the practical electricity is satisfied with preset condition, the display electricity is the default item Maximum electricity in the corresponding electricity section of part.
In one embodiment, described the step of obtaining the practical electricity corresponding display electricity, includes:
Judge whether the practical electricity meets preset condition;
When the practical electricity meets preset condition, the maximum electricity in the corresponding electricity section of the preset condition is made To show electricity;
When the practical electricity is unsatisfactory for preset condition, the practical electricity section where the practical electricity is determined, and According to the practical corresponding correction value amendment in the electricity section practical electricity, to obtain display electricity, wherein the reality Electricity section is determined by one or more jump electricity, when the practical electricity is unsatisfactory for preset condition, the display electricity More than or equal to the practical electricity.
In one embodiment, the quantity of the jump electricity and jump electricity is by between display electricity and practical electricity Mapping relations, and default practical electricity determine, described when the practical electricity is greater than or equal to the default practical electricity Practical electricity meets the preset condition.
In one embodiment, described the step of obtaining the practical electricity corresponding display electricity, includes:
According to the mapping table between practical electricity and display electricity, the corresponding display electricity of the practical electricity is obtained Amount.
In one embodiment, the preset condition includes:
Practical electricity, which is greater than or equal to, presets practical electricity;
Alternatively, practical electricity, which is in, presets practical electricity section.
The present invention also provides a kind of mobile terminal, the mobile terminal includes:
Module is obtained, for obtaining the practical electricity of power supply in mobile terminal;
The acquisition module is also used to obtain the corresponding display electricity of the practical electricity, wherein in the practical electricity When meeting preset condition, the display electricity is greater than the practical electricity;
Display module, for showing the corresponding information about power of the display electricity.
The present invention also provides a kind of mobile terminal, the mobile terminal includes memory, processor and is stored in described On memory and the electricity of mobile terminal that can run on the processor shows program, and the electricity of the mobile terminal is shown The electric quantity display method of mobile terminal as described above is realized when program is executed by processor.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has mobile whole The electricity at end shows program, and the electricity of the mobile terminal, which is shown, realizes movement as described above eventually when program is executed by processor The electric quantity display method at end.
Mobile terminal and its electric quantity display method and computer readable storage medium provided by the invention obtain mobile terminal The practical electricity of middle power supply determines the display electricity for being greater than practical electricity, and show when practical electricity meets preset condition Show the corresponding information about power of electricity;When meeting preset condition due to the practical electricity of power supply in mobile terminal, mobile terminal is aobvious Show that electricity is greater than practical electricity, so that under the electricity that mobile terminal is shown in the duration that practical electricity persistently meets preset condition Reduction of speed rate is less than the fall off rate of practical electricity, has built the durable sensory feel of mobile terminal power supply for user.
Detailed description of the invention
Fig. 1 be the present embodiments relate to mobile terminal hardware architecture schematic diagram;
Fig. 2 is the flow diagram that the electricity of first embodiment of the invention mobile terminal is shown;
Fig. 3 is discharge capacity/charge volume calculating schematic diagram of power supply of the embodiment of the present invention;
Fig. 4 is practical electricity/display electricity and time relational graph of power supply in one embodiment of the invention mobile terminal;
Fig. 5 is practical electricity/display electricity and time relational graph of power supply in another embodiment of the present invention mobile terminal;
Fig. 6 is practical electricity/display electricity and time relational graph of power supply in further embodiment of this invention mobile terminal;
Fig. 7 is practical electricity/display electricity and time relational graph of power supply in yet another embodiment of the invention mobile terminal;
Fig. 8 is the flow diagram of the electric quantity display method of second embodiment of the invention mobile terminal.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific 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.
The primary solutions of the embodiment of the present invention are: obtaining the practical electricity of power supply in mobile terminal;Obtain the reality The corresponding display electricity of border electricity, wherein when the practical electricity meets preset condition, the display electricity is greater than the reality Border electricity;Show the corresponding information about power of the display electricity.
When meeting preset condition due to the practical electricity of power supply in mobile terminal, mobile terminal shows that electricity is greater than practical electricity Amount, so that the electricity fall off rate that mobile terminal is shown in the duration that practical electricity persistently meets preset condition is less than practical electricity The fall off rate of amount has built the durable sensory feel of mobile terminal power supply for user.
As a kind of implementation, mobile terminal can be as shown in Figure 1.
For the embodiment of the present invention what is involved is mobile terminal, mobile terminal includes: processor 1001, such as CPU, storage Device 1002, communication bus 1003.Wherein, communication bus 1003 is for realizing the connection communication between these components.
Memory 1002 can be high speed RAM memory, be also possible to stable memory (non- ), such as magnetic disk storage volatilememory.As shown in Figure 1, as in a kind of memory 1003 of computer storage medium It may include the electricity display program of mobile terminal;And processor 1001 can be used for calling the movement stored in memory 1002 The electricity of terminal shows program, and executes following operation:
Obtain the practical electricity of power supply in mobile terminal;
Obtain the corresponding display electricity of the practical electricity, wherein described when the practical electricity meets preset condition Show that electricity is greater than the practical electricity;
Show the corresponding information about power of the display electricity.
In one embodiment, processor 1001 can be used for calling the electricity of the mobile terminal stored in memory 1002 aobvious Show program, and execute following operation:
When the practical electricity is satisfied with preset condition, the display electricity is the corresponding electricity area of the preset condition Between in maximum electricity.
In one embodiment, processor 1001 can be used for calling the electricity of the mobile terminal stored in memory 1002 aobvious Show program, and execute following operation:
Judge whether the practical electricity meets preset condition;
When the practical electricity meets preset condition, the maximum electricity in the corresponding electricity section of the preset condition is made To show electricity;
When the practical electricity is unsatisfactory for preset condition, the practical electricity section where the practical electricity is determined, and According to the practical corresponding correction value amendment in the electricity section practical electricity, to obtain display electricity, wherein the reality Electricity section is determined by one or more jump electricity, when the practical electricity is unsatisfactory for preset condition, the display electricity More than or equal to the practical electricity.
In one embodiment, processor 1001 can be used for calling the electricity of the mobile terminal stored in memory 1002 aobvious Show program, and execute following operation:
It is described jump electricity and jump electricity quantity by the mapping relations between display electricity and practical electricity, and Default practical electricity determines, when the practical electricity is greater than or equal to the default practical electricity, the practical electricity meets The preset condition.
In one embodiment, processor 1001 can be used for calling the electricity of the mobile terminal stored in memory 1002 aobvious Show program, and execute following operation:
According to the mapping table between practical electricity and display electricity, the corresponding display electricity of the practical electricity is obtained Amount.
In one embodiment, processor 1001 can be used for calling the electricity of the mobile terminal stored in memory 1002 aobvious Show program, and execute following operation:
Practical electricity, which is greater than or equal to, presets practical electricity;
Alternatively, practical electricity, which is in, presets practical electricity section.
The present embodiment obtains the practical electricity of power supply in mobile terminal according to above scheme, meets in advance when practical electricity If when condition, determining the display electricity for being greater than practical electricity, and show the corresponding information about power of display electricity;Due to mobile terminal When the practical electricity of middle power supply meets preset condition, mobile terminal shows that electricity is greater than practical electricity, so that mobile terminal is in reality Border electricity persistently meets the fall off rate that the electricity fall off rate shown in the duration of preset condition is less than practical electricity, is user The durable sensory feel of mobile terminal power supply is built.
Based on above-mentioned hardware architecture, the embodiment of the electric quantity display method of mobile terminal of the present invention is proposed.
It is the first embodiment of the electric quantity display method of mobile terminal of the present invention referring to Fig. 2, Fig. 2, the mobile terminal Electric quantity display method the following steps are included:
Step S10 obtains the practical electricity of power supply in mobile terminal;
In the present invention, executing subject is mobile terminal, and mobile terminal can be the portable intelligent devices such as mobile phone, iPad. Mobile terminal is equipped with voltameter, and voltameter is used to detect the practical electricity of power supply in mobile terminal.Voltameter can be for examining The voltage check device of supply voltage is surveyed, the voltage of power supply can characterize the voltage of the current practical electricity of power supply namely power supply There are mapping relations between practical electricity, therefore, power supply can be calculated according to the voltage and mapping relations of detection Practical electricity.
In addition, voltameter can be the current detection means of discharge current and charging current for detecting power supply.Electricity During discharge, the discharge current in a period of time is equal in source.Therefore, when power supply starts electric discharge, at interval of first Preset duration detects a discharge current, and the first preset duration can be determined by calculus principle, also i.e. by first it is default when Length is arranged sufficiently small, so that discharge current of the power supply in the first preset duration is equal.And the first preset duration is smaller, then The practical electricity for the power supply being calculated is also more accurate, but the first preset duration is got over hour, and the calculation amount of practical electricity is also got over Greatly, therefore, when the first preset duration is arranged, need to take into account the computational efficiency and accuracy of practical electricity, in this regard, can be by One preset duration is set as 200ms.Since voltameter carries out the detection of multiple discharge electric current to the electric discharge duration of power supply, each Discharge current corresponds to a duration, and the sum of each duration is the current electric discharge duration of power supply.Discharge current multiplies discharge current pair The duration answered is kwh loss of the power supply in the duration.Power supply can be obtained by the corresponding kwh loss of each duration Electricity total losses.By electricity total losses and the maximum electricity of power supply, the current practical electricity of power supply can be obtained.It is understood that , the maximum electricity of power supply is 100% electricity.Referring to Fig. 3, Fig. 3 is that mobile terminal uses calculus mode to calculate charging The schematic diagram of amount or discharge capacity, dt is the first preset duration.
Step S20 obtains the corresponding display electricity of the practical electricity, wherein meets default item in the practical electricity When part, the display electricity is greater than the practical electricity of the power supply.
The practical electricity that preset condition can be power supply, which is greater than or equal to, presets practical electricity, presets practical electricity by user The practical electricity point of sensitivity determine, for example, default practical electricity is 98% or 97%.Sensitive practical electricity point by server very It statisticallys analyze to obtain according to electricity focus of each user to mobile terminal.
It is greater than practical electricity in the electricity that when practical electricity meets preset condition, mobile terminal is shown, so that moving The fall off rate for the electricity that dynamic terminal is shown is less than the fall off rate of practical electricity.For example, being 99% when practical electricity, the reality Border electricity, which is greater than, presets practical electricity 98%, at this point, the electricity that mobile terminal is shown can be 100%.
Step S30 shows the corresponding information about power of the display electricity.
Mobile terminal electricity can be shown in the form of numerical value, icon, text etc. namely information about power include numerical value, icon, At least one of text, the form that electricity is shown is by user setting, for example, the electricity display format of user setting is percentage Electricity then display electricity is converted into percentage, and is rounded to be shown, if the electricity display format of user setting is electricity Pond icon, then it is determined that the corresponding electricity icon of display electricity, to be shown to the electricity icon.
In technical solution provided in this embodiment, the practical electricity of power supply in mobile terminal is obtained, when practical electricity When meeting preset condition, the display electricity for being greater than practical electricity is determined, and show the corresponding information about power of display electricity;Due to moving When the practical electricity of power supply meets preset condition in dynamic terminal, mobile terminal shows that electricity is greater than practical electricity, so that mobile whole The electricity fall off rate shown in the duration that practical electricity persistently meets preset condition is held to be less than the fall off rate of practical electricity, The durable sensory feel of mobile terminal power supply has been built for user.
In one embodiment, when practical electricity meets preset condition, mobile terminal shows that electricity can be preset condition Maximum electricity in corresponding practical electricity section.For example, the corresponding practical electricity section of preset condition is [100%, 98%], When practical electricity is in [100%, 98%], the display electricity of mobile terminal is 100%.
It is practical electricity/display electricity and time relationship of power supply in mobile terminal in the present embodiment referring to Fig. 4, Fig. 4 Figure.Wherein, the practical electricity of each point characterization power supply on L1 curve, and the display electricity of each point characterization power supply on L2 curve Amount, soc are electricity, and t is the power consumption time of power supply.The present embodiment obtain 100% electricity that L2 sees user persistently more Long.In order to which the minimum display electricity in L2 curve is overlapped with the practical electricity of minimum of L1, since 98%, shown under electricity in L2 The rate of practical electricity decline is slightly fast in the speed ratio L1 of drop, until display electricity is equal with practical electricity at 0%.It needs Illustrate, electricity/practical electricity measurement condition condition is shown in relational graph shown in Fig. 4 are as follows: the power supply in the unit time Kwh loss is fixed value.
Referring to Fig. 5, practical electricity/display electricity of power supply is corresponding with the relational graph of time in mobile terminal shown in fig. 5 Display electricity/practical electricity measurement condition condition are as follows: in the unit time electric quantity of power supply loss be changing value.Wherein, L3 The practical electricity of each point characterization power supply on curve, and the display electricity of each point characterization power supply on L4 curve, soc are electricity Amount, t are the power consumption time of power supply.
In the present embodiment, by using the maximum electricity in the corresponding practical electricity section of preset condition as display electricity, Can the durable sensory feel of mobile terminal power supply be built for user to greatest extent.
In one embodiment, when practical electricity meets preset condition, the electricity that mobile terminal is shown be can be gradually Reduce, and shows that the reduction amplitude of electricity is less than the reduction amplitude of practical electricity.For example, in practical electricity by 99% decline When 97%, the display electricity of mobile terminal drops to 98% by 99%.
It is practical electricity/display electricity and time relationship of power supply in mobile terminal in the present embodiment referring to Fig. 6, Fig. 6 Figure.Wherein, the practical electricity of each point characterization power supply on L5 curve, and the display electricity of each point characterization power supply on L6 curve Amount, soc are electricity, and t is the power consumption time of power supply.Electricity/practical electricity measurement condition item is shown in relational graph shown in fig. 6 Part are as follows: the electric quantity of power supply loss in the unit time is fixed value.
In the present embodiment, by the reduction that the reduction amplitude of the display electricity of mobile terminal is set smaller than to practical electricity Amplitude builds the durable sensory feel of mobile terminal power supply for user.
Display electricity remains unchanged can no doubt build the durable sensory feel of mobile terminal to the greatest extent, but this When, if the kwh loss of power supply is smaller, meet preset condition since practical electricity, is unsatisfactory for presetting to practical electricity Interval duration between condition is also longer, namely mobile terminal can be made to show fixed electricity for a long time, to can make User generates the doubt whether mobile terminal generates failure.In this regard, in the present embodiment, settable second preset duration, When the duration for persistently meeting preset condition when practical electricity reaches the second preset duration, it is gradually reduced the electricity that mobile terminal is shown Amount, namely the electricity that composition mobile terminal is shown are constant for a period of time, are separately to reduce for a period of time.In addition, in practical electricity When meeting preset condition, it may be determined that the practical kwh loss of the unit time of power supply, it is mobile whole if practical kwh loss is smaller The electricity of end display can be constant;If practical kwh loss is larger, the electricity that mobile terminal is shown is gradually reduced.
It is practical electricity/display electricity and time relationship of power supply in mobile terminal in the present embodiment referring to Fig. 7, Fig. 7 Figure.Wherein, the practical electricity of each point characterization power supply on L7 curve, and the display electricity of each point characterization power supply on L8 curve Amount, soc are electricity, and t is the power consumption time of power supply.Electricity/practical electricity measurement condition item is shown in relational graph shown in Fig. 7 Part are as follows: the electric quantity of power supply loss in the unit time is fixed value.
In the present embodiment, mobile terminal determines the electricity display side of mobile terminal according to the practical kwh loss amount of power supply Case is building mobile terminal so that the electricity of mobile terminal shows the actual use situation for meeting mobile terminal power supply for user While power supply durable sensory feel, user is avoided to take for the case where power supply breaks down.
In one embodiment, preset condition is that practical electricity is in default practical electricity section, presets practical electricity section For the practical electricity section of user's sensitivity, for example, default practical electricity section can be [30%, 20%].Preset practical electricity area Between interval analysis can be paid close attention to the electricity of mobile terminal by each user by server and obtain.
In one embodiment, display electricity can be determined by formula 1, formula 1 are as follows:
Wherein, ui_soc is display electricity, and gauge_soc is practical electricity, and n is to preset practical electricity, and m is practical electricity Maximum electricity in practical electricity section corresponding more than or equal to default practical electricity.
Electricity percentage is being shown when mobile terminal, then the display electricity in above-mentioned formula 1 is integer, namely each A display electricity is discrete, and when practical electricity is less than and presets practical electricity, display electricity can be obtained by formula 2, formula 2 Are as follows:
Wherein, defining x is pairDownward rounding, definition y be m, thenIt is then min { x, y } that the minimum value in x and y is min { x, y }.
By taking n is 98% as an example, by formula 1 and formula 2, obtains practical electricity and show the first mapping between electricity Relation table, the first mapping table as shown in Table-1:
Table -1:
Practical electricity is integer in above-mentioned first mapping table, and by formula 2 it is found that being when practical electricity 97%, display electricity is 97% × 100% ÷ 98%=98.98%, is rounded downwards, and display electricity is 98%.And practical electricity When being 98%, display electricity is 100%.It follows that showing electricity by 100% when practical electricity drops to 97% by 98% Become 98%, mobile terminal does not show 99%, so that the problem of electricity jump occurs in mobile terminal.
Similarly, by formula 2 it is found that display electricity is 48% × 100% ÷ 98%=when practical electricity is 48% 48.98%, it is rounded downwards, display electricity is 48%.And practical electricity be 49% when, display electricity be 50%.It is found that in reality When electricity drops to 48% by 49%, there is the problem of electricity jump in mobile terminal.
In order to guarantee flatness that mobile terminal electricity is shown, need to 100% to 0% this 101 integers successively into Row display.By the first mapping table it is found that when showing electricity is 97% and 48%, there is asking for display electricity jump Topic.In this regard, needing to handle the problem of display electricity jump.
Specifically, display electricity is first changed into 99% by 100%, then again will when practical electricity is 97% 99% is converted to 98%.And electricity is shown by 99% fast transition to 98%, so that 99% and 98% correspondence that user sees The 1% of electric quantity of power supply, so the 99% of user's sense organ and 98% only accounts for the 21 percent of electric quantity of power supply respectively.Therefore, exist When practical electricity is 97%, and when power supply be in discharge condition, it will first show that electricity is converted to 99% by 100%, counts simultaneously The discharge capacity of power supply is calculated, the calculation that above-mentioned calculus can be used in discharge capacity obtains, and this is no longer going to repeat them, if electric discharge When amount is greater than C/200, then converting 98%, C by 99% for display electricity is power supply capacity.Further, it is in and fills in power supply Electricity condition, and when practical electricity is 97%, it is first 98% by display electricity conversion, while calculating the charge volume of power supply, charges The calculation that above-mentioned calculus can be used in amount obtains, if charge volume is less than-C/200, then electricity will be shown by 98% turn Turn to 99%.
Similarly, when practical electricity is 48%, and when power supply be in discharge condition, first display electricity is converted by 50% It is 49%, while calculates the discharge capacity of power supply, if discharge capacity is greater than C/200, then converts display electricity to by 49% 48%.Further, when practical electricity is 48%, and when power supply be in charged state, it will first show that electricity conversion is 49%, while the charge volume of power supply is calculated, if fill charge volume less than-C/200, then convert display electricity to by 49% 50%.
Mobile terminal, can be according to the first mapping relations of display electricity and practical electricity when it needs to be determined that showing electricity Table determines the corresponding display electricity of practical electricity.
In technical solution provided in this embodiment, mobile terminal is established between display electricity and practical electricity by formula Mapping table, and handled for the electricity jump problem in mapping table, ensure that the electricity of mobile terminal is aobvious The flatness shown.
In one embodiment, presetting practical electricity can be 97%.According to above-mentioned formula 1, formula 2 and preset practical electricity It is 97%, obtains the practical electricity of the present embodiment and show the second mapping table between electricity, the second mapping table such as table- Shown in 2:
Table -2:
Practical electricity is integer in above-mentioned second mapping table, and by formula 2 it is found that being when practical electricity 96%, display electricity is 96% × 100% ÷ 97%=98.96%, is rounded downwards, and display electricity is 98%.And practical electricity When being 97%, display electricity is 100%.It follows that showing electricity by 100% when practical electricity drops to 96% by 97% Become 98%, mobile terminal does not show 99%, so that the problem of electricity jump occurs in mobile terminal.
Similarly, by formula 2 it is found that display electricity is 64% × 100% ÷ 97%=when practical electricity is 64% 65.97%, it is rounded downwards, display electricity is 65%.And practical electricity be 65% when, display electricity be 67%.It is found that in reality When electricity drops to 64% by 65%, mobile terminal does not show 66%, and the problem of electricity jump occurs in mobile terminal.
Further, when practical electricity is 32%, display electricity is 32% × 100% ÷ 97%=32.98%, downwards It is rounded, display electricity is 32%.And practical electricity be 33% when, display electricity be 34%.It is found that in the case where practical electricity is by 33% When being down to 32%, mobile terminal does not show 33%, and the problem of electricity jump occurs in mobile terminal.
Default practical electricity be 97% when, practical electricity by 97% drop to 96%, 65% drop to 64% and 33%, which drops to 32%, will appear the problem of electricity jumps.The process flow of electricity jump problem can refer in the present embodiment The process flow of electricity jump problem in embodiment is stated, this is no longer going to repeat them.In another embodiment, practical electricity is preset It is 98%, practical electricity, which by 98% drops to 97% and 49% and drops to 48%, will appear jump problem.It is found that jumping The quantity of change problem, jump electricity and the quantity for jumping electricity, by the mapping relations between practical electricity and display electricity with And default practical electricity determines.The quantity of jump problem is the quantity for jumping electricity actually, and each jump electricity is by entire electricity Section is divided into multiple practical electricity sections.For example, when default practical electricity is 97%, jump electricity is 3, respectively 96%, 64% and 32%, entire electricity section is divided into four practical electricity sections by 3 jump electricity, respectively [100%, 97%], [96%, 65%], [64%, 33%] and [32%, 0%].
Mobile terminal, can be according to the second mapping relations of display electricity and practical electricity when it needs to be determined that showing electricity Table determines the corresponding display electricity of practical electricity.
It is the second embodiment of the electric quantity display method of mobile terminal of the present invention referring to Fig. 8, Fig. 8, based on the above embodiment, The step S20 includes:
Step S21, judges whether the practical electricity meets preset condition;
Step S22, when the practical electricity meets preset condition, most by the corresponding electricity section of the preset condition Big electricity is as the display electricity;
Step S23 determines the practical electricity where the practical electricity when the practical electricity is unsatisfactory for preset condition Section, and according to the practical corresponding correction value amendment in the electricity section practical electricity, to obtain display electricity, wherein The practical electricity section is determined by one or more jump electricity, described when the practical electricity is unsatisfactory for preset condition Show that electricity is greater than or equal to the practical electricity.
In one embodiment, when practical electricity meets preset condition, mobile terminal determines and reality according to mapping table The corresponding display electricity of border electricity.And in the present embodiment, jump electricity and jump can determine by above-mentioned mapping table The quantity of electricity obtains multiple practical electricity sections thus according to jump electricity and the data for jumping electricity.To jump electricity For 97% and 48%, entire electricity section is divided into [100%, 98%], [97%, 49%] and [48%, 0%]. When practical electricity section is [100%, 98%], display electricity is 100%;Practical electricity section is [97%, 49%], the reality The corresponding correction value in border electricity section is 1%, then display electricity=practical electricity+1%;Practical electricity section be [48%, 0%], the corresponding correction value in the practical electricity section is 0%, namely display electricity is equal to practical electricity.
In this regard, mobile terminal first can determine whether practical electricity meets preset condition, if meeting, then with preset condition pair The maximum electricity in the electricity section answered is as display electricity;If not satisfied, then determining the practical electricity section where practical electricity Corresponding correction value, to be modified to obtain display electricity to practical electricity according to amendment.In addition, being unsatisfactory in practical electricity pre- If when condition, display electricity is greater than or equal to practical electricity.
The present invention also provides a kind of mobile terminal, mobile terminal includes:
Module is obtained, for obtaining the practical electricity of power supply in mobile terminal;
In the present invention, executing subject is mobile terminal, and mobile terminal can be the portable intelligent devices such as mobile phone, iPad. Mobile terminal is equipped with voltameter, and voltameter is used to detect the practical electricity of power supply in mobile terminal.Voltameter can be for examining The voltage check device of supply voltage is surveyed, the voltage of power supply can characterize the voltage of the current practical electricity of power supply namely power supply There are mapping relations between practical electricity, therefore, power supply can be calculated according to the voltage and mapping relations of detection Practical electricity.
In addition, voltameter can be the current detection means of discharge current and charging current for detecting power supply.Electricity During discharge, the discharge current in a period of time is equal in source.Therefore, when power supply starts electric discharge, at interval of first Preset duration detects a discharge current, and the first preset duration can be determined by calculus principle, also i.e. by first it is default when Length is arranged sufficiently small, so that discharge current of the power supply in the first preset duration is equal.And the first preset duration is smaller, then The practical electricity for the power supply being calculated is also more accurate, but the first preset duration is got over hour, and the calculation amount of practical electricity is also got over Greatly, therefore, when the first preset duration is arranged, need to take into account the computational efficiency and accuracy of practical electricity, in this regard, can be by One preset duration is set as 200ms.Since voltameter carries out the detection of multiple discharge electric current to the electric discharge duration of power supply, each Discharge current corresponds to a duration, and the sum of each duration is the current electric discharge duration of power supply.Discharge current multiplies discharge current pair The duration answered is kwh loss of the power supply in the duration.Power supply can be obtained by the corresponding kwh loss of each duration Electricity total losses.By electricity total losses and the maximum electricity of power supply, the current practical electricity of power supply can be obtained.It is understood that , the maximum electricity of power supply is 100% electricity.Referring to Fig. 3, Fig. 3 is that mobile terminal uses calculus mode to calculate charging The schematic diagram of amount or discharge capacity, dt is preset duration.
The acquisition module is also used to obtain the corresponding display electricity of the practical electricity, wherein in the practical electricity When meeting preset condition, the display electricity is greater than the practical electricity of the power supply.
The practical electricity that preset condition can be power supply is greater than or equal to first and presets practical electricity, the first default practical electricity Amount is determined by the practical electricity point of sensitivity of user, for example, the first default practical electricity is 98% or 97%.Sensitive practical electricity Point obtains electricity concern point analysis of each user to mobile terminal by server.
Practical electricity is greater than or equal to the first default practical electricity when practical electricity meets preset condition, mobile terminal The electricity of display is greater than practical electricity, so that the fall off rate for the electricity that mobile terminal is shown is less than the decline of practical electricity Rate.For example, the practical electricity, which is greater than, presets practical electricity 98%, at this point, mobile terminal is shown being 99% when practical electricity Electricity can be 100%.
Display module, for showing the corresponding information about power of the display electricity.
Mobile terminal electricity can be shown in the form of numerical value, icon, text etc. namely information about power include numerical value, icon, At least one of text, the form that electricity is shown is by user setting, for example, the electricity display format of user setting is percentage Electricity then display electricity is converted into percentage, and is rounded to be shown, if the electricity display format of user setting is electricity Pond icon, then it is determined that the corresponding electricity icon of display electricity, to be shown to the electricity icon.
In technical solution provided in this embodiment, the practical electricity of power supply in mobile terminal is obtained, when practical electricity When meeting preset condition, the display electricity for being greater than practical electricity is determined, and show the corresponding information about power of display electricity;Due to moving When the practical electricity of power supply meets preset condition in dynamic terminal, mobile terminal shows that electricity is greater than practical electricity, so that mobile whole The electricity fall off rate shown in the duration that practical electricity persistently meets preset condition is held to be less than the fall off rate of practical electricity, The durable sensory feel of mobile terminal power supply has been built for user.
The present invention also provides a kind of mobile terminal, the mobile terminal further includes processor, memory and is stored in described On memory and the electricity of mobile terminal that can run on the processor shows program, and the electricity of the mobile terminal is shown Program realizes the electric quantity display method of mobile terminal described in embodiment as above when being executed by the processor.
The present invention also provides a kind of computer readable storage medium, the computer readable storage medium includes mobile terminal Electricity show program, the electricity of the mobile terminal shows and realizes described in embodiment as above when program is executed by the processor Mobile terminal electric quantity display method.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, mobile terminal or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (9)

1. a kind of electric quantity display method of mobile terminal, which is characterized in that the electric quantity display method of the mobile terminal include with Lower step:
Obtain the practical electricity of power supply in mobile terminal;
Obtain the corresponding display electricity of the practical electricity, wherein when the practical electricity meets preset condition, the display Electricity is greater than the practical electricity;
Show the corresponding information about power of the display electricity.
2. the electric quantity display method of mobile terminal as described in claim 1, which is characterized in that be satisfied in the practical electricity When preset condition, the display electricity is the maximum electricity in the corresponding electricity section of the preset condition.
3. the electric quantity display method of mobile terminal as described in claim 1, which is characterized in that described to obtain the practical electricity The step of corresponding display electricity includes:
Judge whether the practical electricity meets preset condition;
When the practical electricity meets preset condition, using the maximum electricity in the corresponding electricity section of the preset condition as aobvious Show electricity;
When the practical electricity is unsatisfactory for preset condition, the practical electricity section where the practical electricity is determined, and according to The corresponding correction value amendment in the practical electricity section practical electricity, to obtain display electricity, wherein the practical electricity Section determines that, when the practical electricity is unsatisfactory for preset condition, the display electricity is greater than by one or more jump electricity Or it is equal to the practical electricity.
4. the electric quantity display method of mobile terminal as claimed in claim 3, which is characterized in that the jump electricity and jump The quantity of electricity is by the mapping relations between display electricity and practical electricity, and default practical electricity determines, in the reality When electricity is greater than or equal to the default practical electricity, the practical electricity meets the preset condition.
5. the electric quantity display method of mobile terminal as described in claim 1, which is characterized in that described to obtain the practical electricity The step of corresponding display electricity includes:
According to the mapping table between practical electricity and display electricity, the corresponding display electricity of the practical electricity is obtained.
6. the electric quantity display method of mobile terminal as described in any one in claim 1-5, which is characterized in that the preset condition Include:
Practical electricity, which is greater than or equal to, presets practical electricity;
Alternatively, practical electricity, which is in, presets practical electricity section.
7. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Module is obtained, for obtaining the practical electricity of power supply in mobile terminal;
The acquisition module is also used to obtain the corresponding display electricity of the practical electricity, wherein meets in the practical electricity When preset condition, the display electricity is greater than the practical electricity;
Display module, for showing the corresponding information about power of the display electricity.
8. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the storage On device and the electricity of mobile terminal that can run on the processor shows program, and the electricity of the mobile terminal shows program The electric quantity display method of mobile terminal as claimed in any one of claims 1 to 6 is realized when being executed by processor.
9. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has mobile terminal Control program, the electricity of the mobile terminal shows and realizes when program is executed by processor such as any one of claim 1-6 institute The electric quantity display method for the mobile terminal stated.
CN201910367201.8A 2019-04-30 2019-04-30 Mobile terminal and its electric quantity display method and computer readable storage medium Pending CN110177171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910367201.8A CN110177171A (en) 2019-04-30 2019-04-30 Mobile terminal and its electric quantity display method and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910367201.8A CN110177171A (en) 2019-04-30 2019-04-30 Mobile terminal and its electric quantity display method and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110177171A true CN110177171A (en) 2019-08-27

Family

ID=67690524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910367201.8A Pending CN110177171A (en) 2019-04-30 2019-04-30 Mobile terminal and its electric quantity display method and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110177171A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103018676A (en) * 2012-11-30 2013-04-03 苏州佳世达电通有限公司 Electronic equipment as well as device and method for displaying electric quantity of battery
WO2013170804A1 (en) * 2012-09-21 2013-11-21 中兴通讯股份有限公司 Method and mobile terminal for revising power level of mobile terminal
CN105866499A (en) * 2015-01-23 2016-08-17 宇龙计算机通信科技(深圳)有限公司 Power display method and device
WO2016177239A1 (en) * 2015-10-13 2016-11-10 中兴通讯股份有限公司 Electric quantity display method and device
CN107249085A (en) * 2017-07-28 2017-10-13 努比亚技术有限公司 Mobile terminal electric quantity display method, mobile terminal and computer-readable recording medium
CN109149701A (en) * 2018-09-17 2019-01-04 广东小天才科技有限公司 Portable device recharges display methods, device, equipment and the storage medium of electricity
CN109596989A (en) * 2018-12-29 2019-04-09 出门问问信息科技有限公司 Display methods, device and the electronic equipment of electric quantity for electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013170804A1 (en) * 2012-09-21 2013-11-21 中兴通讯股份有限公司 Method and mobile terminal for revising power level of mobile terminal
CN103685706A (en) * 2012-09-21 2014-03-26 中兴通讯股份有限公司 Method for correcting electric quantity of mobile terminal and mobile terminal
CN103018676A (en) * 2012-11-30 2013-04-03 苏州佳世达电通有限公司 Electronic equipment as well as device and method for displaying electric quantity of battery
CN105866499A (en) * 2015-01-23 2016-08-17 宇龙计算机通信科技(深圳)有限公司 Power display method and device
WO2016177239A1 (en) * 2015-10-13 2016-11-10 中兴通讯股份有限公司 Electric quantity display method and device
CN107249085A (en) * 2017-07-28 2017-10-13 努比亚技术有限公司 Mobile terminal electric quantity display method, mobile terminal and computer-readable recording medium
CN109149701A (en) * 2018-09-17 2019-01-04 广东小天才科技有限公司 Portable device recharges display methods, device, equipment and the storage medium of electricity
CN109596989A (en) * 2018-12-29 2019-04-09 出门问问信息科技有限公司 Display methods, device and the electronic equipment of electric quantity for electronic equipment

Similar Documents

Publication Publication Date Title
CN103760939B (en) Power source supply method, power-supplying circuit, power supply and terminal device
KR101924935B1 (en) Method and apparatus for electric energy dispatch, and, method and apparatus for power management
EP3262734A1 (en) Load allocation for multi-battery devices
EP3700002B1 (en) Electronic device and state determination method of electronic device
CN103792490B (en) The method measured and calculate system battery electricity
KR20170048537A (en) Method and apparatus for displaying electricity quantity of battery, and electronic device
CN105264710A (en) Storage battery pack and charger
CN109462260A (en) A kind of charging method, charging equipment and electronic equipment
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
US8082116B2 (en) Method for estimating life status of lithium battery
CN110554945A (en) electric quantity control method, electronic equipment and computer readable storage medium
CN105580235A (en) Storage battery control device, control method, control program, and electricity storage system
CN103035968B (en) Mobile terminal charging method and system
US20140100802A1 (en) Method and computer system for measuring remaining battery capacity
JP6848475B2 (en) Storage control device, server, storage control method and program
CN1890671A (en) Method and apparatus for use with a portable power source
CN108199433A (en) Computational methods, terminal and the computer readable storage medium of battery charge time
CN202759507U (en) A smart phone
US7602150B2 (en) Battery device for electronic apparatus with rechargeable secondary battery, fuel cell and run time computing unit
CN114204631A (en) Discharging control method, charging control method and device
CN106131342B (en) A kind of method and system of control mobile terminal shutdown
CN110177171A (en) Mobile terminal and its electric quantity display method and computer readable storage medium
CN103278707B (en) Obtain method and the terminal of terminal standby time
CN109596989B (en) Method and device for displaying electric quantity of electronic equipment and electronic equipment
CN110336355A (en) A kind of charging method, charging unit and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190827

RJ01 Rejection of invention patent application after publication