CN106526489A - Method and terminal for displaying battery amount - Google Patents

Method and terminal for displaying battery amount Download PDF

Info

Publication number
CN106526489A
CN106526489A CN201610895688.3A CN201610895688A CN106526489A CN 106526489 A CN106526489 A CN 106526489A CN 201610895688 A CN201610895688 A CN 201610895688A CN 106526489 A CN106526489 A CN 106526489A
Authority
CN
China
Prior art keywords
electricity
dump energy
energy information
terminal
battery
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.)
Withdrawn
Application number
CN201610895688.3A
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201610895688.3A priority Critical patent/CN106526489A/en
Publication of CN106526489A publication Critical patent/CN106526489A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/3644Constructional arrangements
    • G01R31/3646Constructional arrangements for indicating electrical conditions or variables, e.g. visual or audible indicators

Abstract

According to the embodiments of the invention, a method and a terminal for displaying battery amount are disclosed wherein the method comprises: obtaining the corresponding historical remaining power information when the charging current is detected; obtaining the preset coefficient corresponding to the historical remaining power amount; and according to the product of the battery capacity information and the preset coefficient, displaying the remaining power information. The terminal of the invention is capable of making the operation of a system under low battery condition more stable while reminding the user to charge the battery instantly.

Description

A kind of method and terminal for showing battery electric quantity
Technical field
A kind of the present invention relates to electronic technology field, more particularly to method and terminal for showing battery electric quantity.
Background technology
With the progress and development of science and technology, increasing portable type electronic product in the life of people, is occurred in that, Such as electronic product such as the mobile terminal such as notebook computer, panel computer, mobile phone and camera, media player.Due to these Electronic product generally needs by charging to maintain operation, so, the display of the dump energy of electronic product is for a user Critically important, which may remind the user that.
At present, for the display of dump energy, typically shown according to true electricity remaining proportion.And user makes With during, often see that electricity remaining proportion just will can be charged consciously less than certain numerical value (such as 10%).
But some users then seldom may be just charged in electricity remaining proportion, such as 1%.And work as battery electric quantity and exist When 1% or so, because the internal resistance of cell can drag down cell output voltage, so as to easily cause power management integrated circuit (Power Management IC, PMIC) electricity shortage, if easily cause unstable showing with the application of some high currents The inconvenience as, cause the user.
The content of the invention
The embodiment of the present invention provides a kind of method and terminal for showing battery electric quantity, can remind what user charged in time Meanwhile, improve the stability of the system operation in the case of low battery.
In a first aspect, embodiments providing a kind of method for showing battery electric quantity, the method includes:
Obtain the corresponding history dump energy information when charging current is detected;
Determine the corresponding predetermined coefficient of the history dump energy information;
Dump energy information is shown according to product of the battery capacity information with the predetermined coefficient.
On the other hand, a kind of terminal is embodiments provided, the terminal includes:
Acquiring unit, for obtaining the corresponding history dump energy information when charging current is detected;
Determining unit, for determining the corresponding predetermined coefficient of the history dump energy information;
Display unit, shows dump energy information for the product according to battery capacity information with the predetermined coefficient.
The embodiment of the present invention is by obtaining the corresponding history dump energy information when charging current is detected;It is determined that described The corresponding predetermined coefficient of history dump energy information;Dump energy letter is shown according to product of the battery capacity information with predetermined coefficient Breath, as the actual dump energy of terminal is more than currently displaying dump energy, it is to avoid terminal runs one in the case of low battery There is unstable situation in the application of a little high currents such that it is able to while reminding user to charge in time, improves in low battery In the case of system operation stability.
Description of the drawings
In order to be illustrated more clearly that embodiment of the present invention technical scheme, embodiment will be described below needed for it is to be used Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of schematic flow diagram of method for showing battery electric quantity provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram of the method for display battery electric quantity that another embodiment of the present invention is provided;
Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of terminal schematic block diagram that another embodiment of the present invention is provided;
Fig. 5 is a kind of terminal schematic block diagram that yet another embodiment of the invention is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than the embodiment of whole.Based on this Embodiment in bright, the every other enforcement obtained under the premise of creative work is not made by those of ordinary skill in the art Example, belongs to the scope of protection of the invention.
It should be appreciated that when using in this specification and in the appended claims, term " including " and "comprising" are indicated The presence of described feature, entirety, step, operation, element and/or component, but it is not precluded from one or more of the other feature, whole The presence or addition of body, step, operation, element, component and/or its set.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are clearly indicated hereafter, otherwise " one " of singulative, " one " and " being somebody's turn to do " is intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more and be possible to combination being associated in the item listed, and including these combinations.
As in this specification and in the appended claims as use, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In implementing, the terminal described in the embodiment of the present invention including but not limited to such as has touch sensitive surface Other of the mobile phone of (for example, touch-screen display and/or touch pad), laptop computer or tablet PC etc are just Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but have and touch Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, describe to include the terminal of display and touch sensitive surface.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as it is following in one or more:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can be public using at least one of such as touch sensitive surface Physical user-interface device.Can adjust among applications and/or in corresponding application programs and/or change and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal (for example, is touched Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
Fig. 1 is referred to, Fig. 1 is a kind of schematic flow diagram of method for showing battery electric quantity provided in an embodiment of the present invention. Show in the present embodiment battery electric quantity method executive agent be terminal.Terminal can be mobile eventually for mobile phone, panel computer etc. End, but this is not limited to, can also need to charge battery for other maintains the terminal of normal operation.Display as shown in Figure 1 The method of battery electric quantity may include following steps:
S101:Obtain the corresponding history dump energy information when charging current is detected.
When terminal normal work, if terminal reminds user's current electric quantity not enough, terminal is connected charging equipment by user, with Charging equipment is made to be charged the battery in terminal.
Terminal obtains the corresponding history dump energy information when charging current is detected.Wherein, terminal is filled detecting During electric current, mark terminal is in charged state.History dump energy information can be current residual electricity for 8%, 10%, 12%th, 15% or 20% etc..
It is understood that terminal can obtain the history dump energy information of predetermined number, that is, obtain pre-determined number and fill Corresponding history dump energy information when electric;All of history dump energy information can also be obtained, is not limited herein.
S102:Determine the corresponding predetermined coefficient of the history dump energy information.
Terminal is got when charging current is detected after corresponding history dump energy information, according to the remaining electricity of history Amount information and the default corresponding relation of predetermined coefficient, determine the corresponding predetermined coefficient of history dump energy information.
Wherein, history dump energy information is corresponded with predetermined coefficient.Predetermined coefficient is correspondence when being charged according to user Dump energy be configured, the predetermined coefficient is used for the dump energy for causing terminal actual more than currently displaying residue electricity Amount, for ensureing that terminal being capable of stable operation in the case of low battery.
Terminal can determine corresponding default system according to the mean value of the history dump energy information for actually getting Number;The approximation corresponding to the mean value of history dump energy information can also be taken, is determined further according to the approximation corresponding Predetermined coefficient.
S103:Dump energy information is shown according to product of the battery capacity information with the predetermined coefficient.
Terminal acquisition battery capacity information, and the product of battery capacity information and the predetermined coefficient for determining is calculated, obtain battery Total electricity, shows dump energy information according to battery total electricity, actual power consumption amount (electric quantity change amount).Wherein, battery capacity is used In the performance of mark battery, the electricity that (discharge rate, temperature, final voltage etc.) battery is released under certain condition is represented.For example, Battery capacity can include but is not limited to 3000mah.
Terminal (for example, 1% or 5%) real-time can show dump energy information by the default minimum percentage that updates.It is surplus Remaining information about power can be the percentage between dump energy and battery total electricity.
Terminal can be, when it is determined that current dump energy is less than or equal to predetermined threshold value, showing dump energy information. For example, terminal shows dump energy when it is determined that current dump energy is less than or equal to the 20 percent of battery total electricity (dump energy is 20% or is less than 20%);Or terminal it is determined that the business of current dump energy and battery total electricity be less than or During equal to 20%, show dump energy information (dump energy is 20% or is less than 20%).
Such scheme, terminal obtain the corresponding history dump energy information when charging current is detected;It is determined that described go through The corresponding predetermined coefficient of history dump energy information;Dump energy information is shown according to product of the battery capacity information with predetermined coefficient, As the actual dump energy of terminal is more than currently displaying dump energy, it is to avoid it is big that terminal runs some in the case of low battery There is unstable situation in the application of electric current such that it is able to while reminding user to charge in time, improves in low battery situation The stability of lower system operation.
Fig. 2 is referred to, Fig. 2 is a kind of exemplary flow of the method for display battery electric quantity that another embodiment of the present invention is provided Figure.Show in the present embodiment battery electric quantity method executive agent be terminal.Terminal can be mobile for mobile phone, panel computer etc. Terminal, but this is not limited to, can also need to charge battery for other maintains the terminal of normal operation.As shown in Figure 2 is aobvious Show that the method for battery electric quantity may include following steps:
S201:Obtain the corresponding history dump energy information when charging current is detected.
When terminal normal work, if terminal reminds user's current electric quantity not enough, terminal is connected charging equipment by user, with Charging equipment is made to be charged the battery in terminal.
Terminal obtains the corresponding history dump energy information when charging current is detected.Wherein, terminal is filled detecting During electric current, mark terminal is in charged state.History dump energy information can be current residual electricity for 8%, 10%, 12%th, 15% or 20% etc..
It is understood that terminal can obtain the history dump energy information of predetermined number, that is, obtain pre-determined number and fill Corresponding history dump energy information when electric;All of history dump energy information can also be obtained, is not limited herein.
S202:Determine the corresponding predetermined coefficient of the history dump energy information.
Terminal is got when charging current is detected after corresponding history dump energy information, according to the remaining electricity of history Amount information and the default corresponding relation of predetermined coefficient, determine the corresponding predetermined coefficient of history dump energy information.
Wherein, history dump energy information is corresponded with predetermined coefficient.Predetermined coefficient is correspondence when being charged according to user Dump energy be configured, the predetermined coefficient is used for the dump energy for causing terminal actual more than currently displaying residue electricity Amount, for ensureing that terminal being capable of stable operation in the case of low battery.
Terminal can determine corresponding default system according to the mean value of the history dump energy information for actually getting Number;The approximation corresponding to the mean value of history dump energy information can also be taken, is determined further according to the approximation corresponding Predetermined coefficient.
Further, if corresponding history dump energy information corresponds to 10% when charging current is detected, the history is remained The corresponding predetermined coefficient of remaining information about power is 1.05;If the corresponding history dump energy information correspondence when charging current is detected 5%, the corresponding predetermined coefficient of history dump energy information is 0.95.
If corresponding history dump energy information correspondence 20%, the history dump energy information when charging current is detected Corresponding predetermined coefficient can be 1.15.It is understood that when history dump energy information correspondence other values, can be according to upper State method to be configured according to actual needs, do not repeat herein.
S203:Battery total electricity is calculated according to product of the battery capacity information with the predetermined coefficient.
Terminal acquisition battery capacity information, and the product of battery capacity information and the predetermined coefficient for determining is calculated, obtain battery Total electricity.Wherein, battery capacity is used for identifying the performance of battery, represents (discharge rate, temperature, final voltage under certain condition Deng) battery release electricity.For example, battery capacity can include but is not limited to 3000mah.
For example, if battery capacity is 3000mah, predetermined coefficient is 1.05, and battery capacity with the product of predetermined coefficient is 3150mah, i.e. battery total electricity are 3150mah.If battery capacity be 3000mah, predetermined coefficient is 0.95, battery capacity with it is pre- If it is 2850mah that the product of coefficient is 2850mah, i.e. battery total electricity.If battery capacity is 3000mah, predetermined coefficient is 1.15, Battery capacity is that 3450mah, i.e. battery total electricity are 3450mah with the product of predetermined coefficient.
S204:Dump energy information is shown with the battery total electricity according to current residual electricity.
Terminal obtains current electric quantity information, and calculates the percentage between current residual electricity and battery total electricity, and shows Show the percentage between calculated current residual electricity and battery total electricity.Terminal can show current residual electricity in real time Information.It is understood that in originally implementing, the minimum percent that terminal can show is that 1%, i.e. terminal show remaining electricity Corresponding precision is measured for 1%.In other embodiments, it is also possible to be configured according to actual needs, it is not limited herein.
Alternatively, step S204 can include step S2041~S2043 or S2044~S2045.
S2041:The corresponding electricity of default display precision is calculated according to the battery total electricity.
For example, if battery total electricity is 3150mah, default display precision (the corresponding minimum percent of electric quantity change) is 1%, it is 3150/100=31.5mah that terminal calculates the corresponding electricity of default display precision according to battery total electricity.Now, identify The electricity consumed by 1% corresponding reality of terminal residual electricity reduction is 31.5mah.
If battery total electricity is 2850mah, it is 1% to preset display precision (the corresponding minimum percent of electric quantity change), eventually It is 2850/100=28.5mah that end calculates the corresponding electricity of default display precision according to battery total electricity.Now, identify terminal to remain The electricity consumed by 1% corresponding reality of remaining electricity reduction is 28.5mah.
S2042:The current electricity for reducing is calculated according to the battery total electricity and the current residual electricity.
Terminal calculates the current electricity for reducing according to battery total electricity and current residual electricity, and the current electricity for reducing is electricity The difference of pond total electricity and current residual electricity.Whether the electricity that terminal judges are currently reduced is equal to the corresponding electricity of default display precision Amount.
Terminal when the electricity for detecting current reduction is equal to the corresponding electricity of default display precision, execution step S2043, Otherwise, continue executing with step S2042.
S2043:If the electricity for detecting the current reduction is equal to the corresponding electricity of the default display precision, according to institute State default display precision and update current residual electricity percentage.
If terminal detects the electricity of current reduction and is equal to the corresponding electricity of default display precision, according to default display precision Update current residual electricity percentage.Current residual electricity percentage is the percentage between current residual electricity and battery total electricity Than.
For example, if terminal current residual electricity percentage is 100%, terminal is equal in the electricity for detecting current reduction During default display precision (such as 1%) corresponding electricity, current residual electricity percentage is updated to into 99% (current residual electricity The difference of percentage and default display precision).If terminal current residual electricity percentage is 80%, terminal currently subtracts detecting When few electricity is equal to default display precision (such as 1%) corresponding electricity, current residual electricity percentage is updated to into 79% The difference of default display precision (current residual electricity percentage with).
Wherein, when battery capacity is 3000mah, predetermined coefficient is 1.05, and battery total electricity is 3150mah, and end When low battery state, such as less than 10%, the true electricity of terminal is 10%-5%=5%.When terminal works are in low battery shape Under state, user is started to charge up when finding that current residual electricity is 10%, then the electricity that terminal has actually been consumed is 100%- 5%=95%.
When battery capacity is 3000mah, predetermined coefficient is 0.95, and battery total electricity is 2850mah, and terminal is in low electricity During amount state, such as less than 5%, the true electricity of terminal is 5%+5%=10%.When terminal works are under low battery state, use Family is started to charge up when finding that current residual electricity is 5%, then the electricity that terminal has actually been consumed is 100%-10%= 90%.
When terminal uses some big power consumption applications under low electricity, now the voltage of terminal is relative can be higher, it is not easy to Cause unstable shutdown.
Even if terminal power is low to 0%, now user can typically go to charge, even if not charging, terminal also can continue to For a period of time, now actual electricity still has 5%, and some will not occur because unstable caused by high current application for work Phenomenon occurs.
It is understood that in other embodiments, terminal shows essence in the electricity for detecting current reduction more than default Corresponding electricity is spent, and during electricity corresponding less than the default display precision of twice, updates current surplus according to default display precision Remaining electricity percentage.For example, it is when the electricity consumed by 1% corresponding reality of terminal residual electricity reduction is 31.5mah, current aobvious When the dump energy percentage for showing is 90%, terminal is more than 31.5mah in the electricity for detecting current reduction, and is less than 63mah When, currently displaying dump energy percentage is updated to 89% by terminal.
S2044:Judge current residual electricity with the business of the battery total electricity whether less than or equal to predetermined threshold value;Its In, the predetermined threshold value is obtained according to the history dump energy information.
Whether terminal judges current residual electricity is less than or equal to predetermined threshold value with the business of battery total electricity.Current residual electricity Amount can calculate both differences and obtain current residual according to calculated battery total electricity, the total electricity for currently having consumed Electricity, or can also direct access obtain.
Wherein, predetermined threshold value is obtained according to the corresponding history dump energy information when charging current is detected.For example, if The corresponding history dump energy information correspondence 10% when charging current is detected, predetermined threshold value is 0.1 or 10%;If in detection To corresponding history dump energy information correspondence 5% during charging current, predetermined threshold value is 0.05 or 5%;If detecting charging Corresponding history dump energy information correspondence 20% during electric current, predetermined threshold value is 0.2 or 20%.
It is understood that in the present embodiment, the proportion threshold value (dump energy shared by predetermined threshold value correspondence dump energy With the business of battery total electricity), in other embodiments, predetermined threshold value can also be dump energy threshold value.
When predetermined threshold value is dump energy threshold value, terminal is when current residual electricity is got, it can be determined that current surplus Whether remaining electricity is less than or equal to predetermined threshold value.
When terminal is confirming current residual electricity with the business of battery total electricity less than or equal to predetermined threshold value, execution step S2045, or current residual electricity is when being less than or equal to predetermined threshold value, calculates between current residual electricity and battery total electricity Percentage, and show the percentage (showing dump energy information);Step S2044 is continued executing with otherwise.
S2045:If the current residual electricity is less than or equal to predetermined threshold value with the business of the battery total electricity, show surplus Remaining information about power.
Terminal shows current surplus when confirming that business of the current residual electricity with battery total electricity is less than or equal to predetermined threshold value Percentage between remaining electricity and battery total electricity, that is, show dump energy information.For example, terminal is confirming current residual electricity When being less than or equal to predetermined threshold value (0.1 or 10%) with the business of battery total electricity, the dump energy information of display is 10% or little In 10%.
Terminal can be so that according to default display precision, (for example it is 1%) to update dump energy information, example, to preset display precision When such as currently displaying dump energy information is 10%, terminal is calculating the percentage between current residual electricity and battery total electricity Than for 9% when, currently displaying dump energy is updated to into 9%.
When terminal uses some big power consumption applications under low electricity, now the voltage of terminal is relative can be higher, it is not easy to Cause unstable shutdown.
Even if terminal power is low to 0%, now user can typically go to charge, even if not charging, terminal also can continue to For a period of time, now actual electricity still has 5%, and some will not occur because unstable caused by high current application for work Phenomenon occurs.
Such scheme, terminal obtain the corresponding history dump energy information when charging current is detected;It is determined that described go through The corresponding predetermined coefficient of history dump energy information;Dump energy information is shown according to product of the battery capacity information with predetermined coefficient. As the actual dump energy of terminal is more than currently displaying dump energy, it is to avoid it is big that terminal runs some in the case of low battery There is unstable situation in the application of electric current such that it is able to while reminding user to charge in time, improves in low battery situation The stability of lower system operation.
Terminal can calculate battery total electricity according to the product of battery capacity information and predetermined coefficient, and always electric according to battery Amount, current residual electricity show dump energy information according to battery total electricity, the electricity for currently having consumed, even if terminal power It is low to 0% when, even if not charging, it is also possible to work on a period of time, now actual electricity still has 5%, and will not send out Some are given birth to because wild effect occurs caused by high current application.
Referring to Fig. 3, Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.Terminal can be mobile phone, put down The mobile terminals such as plate computer, but this is not limited to, can also be other-end, not be limited herein.The terminal 300 of the present embodiment Including each unit be used for performing each step in the corresponding embodiments of Fig. 1, specifically refer to the corresponding enforcements of Fig. 1 and Fig. 1 Associated description in example, is not repeated herein.The terminal of the present embodiment includes:Acquiring unit 310, determining unit 320 and display Unit 330.
Acquiring unit 310 is used for obtaining the corresponding history dump energy information when charging current is detected.
Such as, acquiring unit 310 obtains the corresponding history dump energy information when charging current is detected.Acquiring unit History dump energy information is sent by 310 to determining unit 320.
Determining unit 320 is used for receiving the history dump energy information of the transmission of acquiring unit 310, determines that the history is remaining The corresponding predetermined coefficient of information about power.Such as, determining unit 320 receives the history dump energy information that acquiring unit 310 sends, Determine the corresponding predetermined coefficient of the history dump energy information.Determining unit 320 will be history dump energy information corresponding pre- If coefficient is sent to display unit 330.
Display unit 330 is used for receiving the corresponding predetermined coefficient of history dump energy information of the transmission of determining unit 320, root Dump energy information is shown according to product of the battery capacity information with the predetermined coefficient.
Such as, display unit 330 receives the corresponding predetermined coefficient of history dump energy information that determining unit 320 sends, Dump energy information is shown according to product of the battery capacity information with the predetermined coefficient.
Such scheme, terminal obtain the corresponding history dump energy information when charging current is detected;It is determined that described go through The corresponding predetermined coefficient of history dump energy information;Dump energy information is shown according to product of the battery capacity information with predetermined coefficient. As the actual dump energy of terminal is more than currently displaying dump energy, it is to avoid it is big that terminal runs some in the case of low battery There is unstable situation in the application of electric current such that it is able to while reminding user to charge in time, improves in low battery situation The stability of lower system operation.
Referring to Fig. 4, Fig. 4 is a kind of schematic block diagram of terminal that another embodiment of the present invention is provided.Terminal can be hand The mobile terminals such as machine, panel computer, but this is not limited to, can also be other-end, not be limited herein.The end of the present embodiment The each unit that end 400 includes is used for each step performed in the corresponding embodiments of Fig. 2, specifically refers to Fig. 2 and Fig. 2 is corresponding Associated description in embodiment, is not repeated herein.The terminal of the present embodiment includes:Acquiring unit 410, determining unit 420 and Display unit 430.Wherein, display unit 430 includes computing unit 431 and electricity display unit 432.Electricity display unit 432 can also include the first computing unit 4321, the second computing unit 4322 and updating block 4323, or including judging unit 4324 and dump energy display unit 4325.
Acquiring unit 410 is used for obtaining the corresponding history dump energy information when charging current is detected.
Such as, acquiring unit 410 obtains the corresponding history dump energy information when charging current is detected.Acquiring unit History dump energy information is sent by 410 to determining unit 420.
Determining unit 420 is used for receiving the history dump energy information of the transmission of acquiring unit 410, determines that the history is remaining The corresponding predetermined coefficient of information about power.Such as, determining unit 420 receives the history dump energy information that acquiring unit 410 sends, Determine the corresponding predetermined coefficient of the history dump energy information.
Further, if history dump energy information correspondence 10%, the history dump energy information is corresponding pre- If coefficient is 1.05;If history dump energy information correspondence 5%, the corresponding predetermined coefficient of the history dump energy information For 0.95.
History dump energy information corresponding predetermined coefficient is sent by determining unit 420 to display unit 430.
The computing unit 431 of display unit 430 is used for receiving the history dump energy information correspondence of the transmission of determining unit 420 Predetermined coefficient, battery total electricity is calculated according to the product of battery capacity information and the predetermined coefficient.
Such as, the computing unit 431 of display unit 430 is used for receiving the history dump energy letter of the transmission of determining unit 420 Corresponding predetermined coefficient is ceased, battery total electricity is calculated according to product of the battery capacity information with the predetermined coefficient.Computing unit 431 Calculated battery total electricity information is sent to electricity display unit 432.
Electricity display unit 432 is used for receiving the battery total electricity information of the transmission of computing unit 431, according to current residual electricity Amount shows dump energy information with the battery total electricity.
Such as, electricity display unit 432 receives the battery total electricity information that computing unit 431 sends, according to current residual Electricity shows dump energy information with the battery total electricity.
Alternatively, when electricity display unit 432 includes the first computing unit 4321, the second computing unit 4322 and updates During unit 4323, the first computing unit 4321 presets the corresponding electricity of display precision for calculating according to the battery total electricity; Second computing unit 4322 is for according to the battery total electricity and the current electricity for reducing of current residual electricity calculating;More If the electricity that new unit 4323 is used for detecting the current reduction is equal to the corresponding electricity of the default display precision, according to institute State default display precision and update current residual electricity percentage.
Alternatively, when electricity display unit 432 includes judging unit 4324 and dump energy display unit 4325, sentence Whether disconnected unit 4324 is used for judging the business of current residual electricity and the battery total electricity less than or equal to predetermined threshold value;Its In, the predetermined threshold value is obtained according to the history dump energy information;If dump energy display unit 4325 is used for described working as Front dump energy is less than or equal to predetermined threshold value with the business of the battery total electricity, shows dump energy information.
Such scheme, terminal obtain the corresponding history dump energy information when charging current is detected;It is determined that described go through The corresponding predetermined coefficient of history dump energy information;Dump energy information is shown according to product of the battery capacity information with predetermined coefficient. As the actual dump energy of terminal is more than currently displaying dump energy, it is to avoid it is big that terminal runs some in the case of low battery There is unstable situation in the application of electric current such that it is able to while reminding user to charge in time, improves in low battery situation The stability of lower system operation.
Terminal can calculate battery total electricity according to the product of battery capacity information and predetermined coefficient, and always electric according to battery Amount, current residual electricity show dump energy information according to battery total electricity, the electricity for currently having consumed, even if terminal power It is low to 0% when, even if not charging, it is also possible to work on a period of time, now actual electricity still has 5%, and will not send out Some are given birth to because wild effect occurs caused by high current application.
Referring to Fig. 5, Fig. 5 is a kind of terminal schematic block diagram that yet another embodiment of the invention is provided.This enforcement as shown in Figure 5 Terminal 500 in example can include:One or more processors 510;One or more input equipments 520, one or more are defeated Go out equipment 530 and memory 540.Above-mentioned processor 510, input equipment 520, output equipment 530 and memory 540 pass through bus 550 connections.
Memory 540 is instructed for storage program.
Processor 510 performs following operation for the programmed instruction stored according to memory 540:
Processor 510 is used for obtaining the corresponding history dump energy information when charging current is detected.
Processor 510 is additionally operable to determine the corresponding predetermined coefficient of the history dump energy information.
Processor 510 is additionally operable to the product according to battery capacity information with the predetermined coefficient and shows dump energy information.
Further, processor 510 is additionally operable to the product according to the battery capacity information with the predetermined coefficient and calculates electricity Pond total electricity;Dump energy information is shown with the battery total electricity according to current residual electricity.
Further, processor 510 is specifically for calculating the corresponding electricity of default display precision according to the battery total electricity Amount;The current electricity for reducing is calculated according to the battery total electricity and the current residual electricity;Described currently subtract if detecting Few electricity is equal to the corresponding electricity of the default display precision, updates current residual electricity hundred according to the default display precision Divide ratio.
Further, whether processor 510 is little with the business of the battery total electricity specifically for judging current residual electricity In or be equal to predetermined threshold value;Wherein, the predetermined threshold value is obtained according to the history dump energy information;
If the current residual electricity is less than or equal to predetermined threshold value with the business of the battery total electricity, dump energy is shown Information.
Further, if history dump energy information correspondence 10%, the history dump energy information is corresponding pre- If coefficient is 1.05;
If history dump energy information correspondence 5%, the corresponding predetermined coefficient of the history dump energy information is 0.95。
Such scheme, terminal obtain the corresponding history dump energy information when charging current is detected;It is determined that described go through The corresponding predetermined coefficient of history dump energy information;Dump energy information is shown according to product of the battery capacity information with predetermined coefficient. As the actual dump energy of terminal is more than currently displaying dump energy, it is to avoid it is big that terminal runs some in the case of low battery There is unstable situation in the application of electric current such that it is able to while reminding user to charge in time, improves in low battery situation The stability of lower system operation.
Terminal can calculate battery total electricity according to the product of battery capacity information and predetermined coefficient, and always electric according to battery Amount, current residual electricity show dump energy information according to battery total electricity, the electricity for currently having consumed, even if terminal power It is low to 0% when, even if not charging, it is also possible to work on a period of time, now actual electricity still has 5%, and will not send out Some are given birth to because wild effect occurs caused by high current application.
It should be appreciated that in embodiments of the present invention, alleged processor 510 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), special IC (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device can also be any conventional processor etc..
Input equipment 520 can include that Trackpad, fingerprint adopt sensor (for gathering the finger print information and fingerprint of user Directional information), microphone etc., output equipment 530 can include display (LCD etc.), loudspeaker etc..
The memory 540 can include read-only storage and random access memory, and to processor 510 provide instruction and Data.The a part of of memory 540 can also include nonvolatile RAM.For example, memory 540 can also be deposited The information of storage device type.
In implementing, processor 510, input equipment 520 described in the embodiment of the present invention, output equipment 530 can Perform the reality described in the first embodiment and second embodiment of the method for showing battery electric quantity provided in an embodiment of the present invention Existing mode, also can perform the implementation of the terminal described by the embodiment of the present invention, will not be described here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Unit and algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware With the interchangeability of software, composition and the step of each example is generally described in the above description according to function.This A little functions actually with hardware or software mode performing, the application-specific and design constraint depending on technical scheme.Specially Industry technical staff can use different methods to realize described function to each specific application, but this realization is not It is considered as beyond the scope of this invention.
Those skilled in the art can be understood that, for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, which can be passed through Its mode is realized.For example, device embodiment described above is only schematically, for example division of the unit, only Only a kind of division of logic function, can have other dividing mode when actually realizing, such as multiple units or component can be tied Close or be desirably integrated into another system, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection, or electricity, machinery or other forms connections.
Step in present invention method can carry out order adjustment according to actual needs, merge and delete.
Unit in embodiment of the present invention terminal can be merged according to actual needs, divides and be deleted.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can local to be located at one, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize embodiment of the present invention scheme Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, or two or more units are integrated in a unit.It is above-mentioned integrated Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part that in other words prior art is contributed, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, use so that a computer including some instructions Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention Portion or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or replacement should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with right The protection domain of requirement is defined.

Claims (10)

1. it is a kind of show battery electric quantity method, it is characterised in that methods described includes:
Obtain the corresponding history dump energy information when charging current is detected;
Determine the corresponding predetermined coefficient of the history dump energy information;
Dump energy information is shown according to product of the battery capacity information with the predetermined coefficient.
2. method according to claim 1, it is characterised in that it is described according to battery capacity information and the predetermined coefficient it Product shows that dump energy information includes:
Battery total electricity is calculated according to product of the battery capacity information with the predetermined coefficient;
Dump energy information is shown with the battery total electricity according to current residual electricity.
3. method according to claim 2, it is characterised in that described according to current residual electricity and the battery total electricity Show that dump energy information includes:
The corresponding electricity of default display precision is calculated according to the battery total electricity;
The current electricity for reducing is calculated according to the battery total electricity and the current residual electricity;
If the electricity for detecting the current reduction is equal to the corresponding electricity of the default display precision, according to the default display Precision updates current residual electricity percentage.
4. method according to claim 2, it is characterised in that described according to current residual electricity and the battery total electricity Show that dump energy information includes:
Judge current residual electricity with the business of the battery total electricity whether less than or equal to predetermined threshold value;Wherein, it is described default Threshold value is obtained according to the history dump energy information;
If the current residual electricity is less than or equal to predetermined threshold value with the business of the battery total electricity, dump energy letter is shown Breath.
5. the method according to any one of Claims 1-4, it is characterised in that
If history dump energy information correspondence 10%, the corresponding predetermined coefficient of the history dump energy information is 1.05;
If history dump energy information correspondence 5%, the corresponding predetermined coefficient of the history dump energy information is 0.95.
6. a kind of terminal, it is characterised in that the terminal includes:
Acquiring unit, for obtaining the corresponding history dump energy information when charging current is detected;
Determining unit, for determining the corresponding predetermined coefficient of the history dump energy information;
Display unit, shows dump energy information for the product according to battery capacity information with the predetermined coefficient.
7. terminal according to claim 6, it is characterised in that the display unit includes:
Computing unit, calculates battery total electricity for the product according to the battery capacity information with the predetermined coefficient;
Electricity display unit, for showing dump energy information according to current residual electricity with the battery total electricity.
8. terminal according to claim 7, it is characterised in that the electricity display unit includes:
First computing unit, for calculating the corresponding electricity of default display precision according to the battery total electricity;
Second computing unit, for calculating the current electricity for reducing according to the battery total electricity and the current residual electricity;
Updating block, if the electricity for detecting the current reduction is equal to the corresponding electricity of the default display precision, root Current residual electricity percentage is updated according to the default display precision.
9. terminal according to claim 7, it is characterised in that the electricity display unit includes:
Whether judging unit, for judging current residual electricity with the business of the battery total electricity less than or equal to predetermined threshold value; Wherein, the predetermined threshold value is obtained according to the history dump energy information;
Dump energy display unit, if be less than or equal to the business of the battery total electricity for the current residual electricity default Threshold value, shows dump energy information.
10. the terminal according to any one of claim 6 to 9, it is characterised in that if history dump energy information correspondence 10%, the corresponding predetermined coefficient of the history dump energy information is 1.05;If the history dump energy information correspondence 5%, The corresponding predetermined coefficient of the history dump energy information is 0.95.
CN201610895688.3A 2016-10-13 2016-10-13 Method and terminal for displaying battery amount Withdrawn CN106526489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610895688.3A CN106526489A (en) 2016-10-13 2016-10-13 Method and terminal for displaying battery amount

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610895688.3A CN106526489A (en) 2016-10-13 2016-10-13 Method and terminal for displaying battery amount

Publications (1)

Publication Number Publication Date
CN106526489A true CN106526489A (en) 2017-03-22

Family

ID=58331751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610895688.3A Withdrawn CN106526489A (en) 2016-10-13 2016-10-13 Method and terminal for displaying battery amount

Country Status (1)

Country Link
CN (1) CN106526489A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108169689A (en) * 2017-12-28 2018-06-15 北京达佳互联信息技术有限公司 terminal power detection method, system and intelligent glasses

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04194689A (en) * 1990-11-27 1992-07-14 Ricoh Co Ltd Detecting device of residual capacity of battery
CN101442574A (en) * 2008-12-22 2009-05-27 深圳华为通信技术有限公司 Prompting method, apparatus and mobile terminal
CN102544607A (en) * 2012-02-13 2012-07-04 北京海博思创科技有限公司 Method and device for obtaining residual electricity value of lithium ion battery and battery system
CN103278707A (en) * 2013-04-25 2013-09-04 北京百纳威尔科技有限公司 Method for acquiring standby time of terminal and terminal
CN104833927A (en) * 2015-05-15 2015-08-12 惠州Tcl移动通信有限公司 Battery capacity display method, system thereof and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04194689A (en) * 1990-11-27 1992-07-14 Ricoh Co Ltd Detecting device of residual capacity of battery
CN101442574A (en) * 2008-12-22 2009-05-27 深圳华为通信技术有限公司 Prompting method, apparatus and mobile terminal
CN102544607A (en) * 2012-02-13 2012-07-04 北京海博思创科技有限公司 Method and device for obtaining residual electricity value of lithium ion battery and battery system
CN103278707A (en) * 2013-04-25 2013-09-04 北京百纳威尔科技有限公司 Method for acquiring standby time of terminal and terminal
CN104833927A (en) * 2015-05-15 2015-08-12 惠州Tcl移动通信有限公司 Battery capacity display method, system thereof and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108169689A (en) * 2017-12-28 2018-06-15 北京达佳互联信息技术有限公司 terminal power detection method, system and intelligent glasses

Similar Documents

Publication Publication Date Title
KR101978007B1 (en) Drag and drop always sum formulas
AU2012209157A1 (en) Formatting data by example
CN106156583A (en) A kind of method of speech unlocking and terminal
CN106933315A (en) A kind of method and terminal of terminal temperature regulation
CN107329647A (en) One kind shows application drawing calibration method and terminal
CN106951057A (en) The control method and mobile terminal of application
CN107181858A (en) A kind of method and terminal for showing notification message
CN106772091B (en) Method and device for updating battery capacity value and terminal
WO2015070671A1 (en) Method and device for generating menu
CN107290674A (en) A kind of calibration method and terminal for showing charge value
CN106650409B (en) A kind of terminal control method and terminal
CN106200976A (en) A kind of motion-activated method and terminal
CN107066326A (en) The method and terminal of a kind of scheduler task
CN106526489A (en) Method and terminal for displaying battery amount
CN106547539A (en) A kind of footmark display packing and terminal
CN106293914A (en) A kind of method of task scheduling and terminal
CN106294051A (en) A kind of motor detecting method and terminal
CN108594124A (en) A kind of detection method and electronic equipment of battery
CN106385704A (en) Group message management method and terminal
CN107843844A (en) A kind of method, terminal and computer-readable recording medium for calibrating charge value
CN107463350A (en) A kind of footmark method of adjustment and terminal
CN107396510A (en) A kind of filming control method and terminal
CN109040467A (en) Interface electricity determines method, apparatus, storage medium and mobile terminal
CN106293460A (en) A kind of method and terminal preventing from touching maloperation
CN107580030A (en) A kind of data managing method, device and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170322