CN104796518A - Method for obtaining battery life of terminal and terminal - Google Patents

Method for obtaining battery life of terminal and terminal Download PDF

Info

Publication number
CN104796518A
CN104796518A CN201510232921.5A CN201510232921A CN104796518A CN 104796518 A CN104796518 A CN 104796518A CN 201510232921 A CN201510232921 A CN 201510232921A CN 104796518 A CN104796518 A CN 104796518A
Authority
CN
China
Prior art keywords
terminal
time
user behavior
current value
current
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
CN201510232921.5A
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.)
BEIJING TIANYU LANGTONG COMMUNICATION EQUIPMENT Co Ltd
Original Assignee
BEIJING TIANYU LANGTONG 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 BEIJING TIANYU LANGTONG COMMUNICATION EQUIPMENT Co Ltd filed Critical BEIJING TIANYU LANGTONG COMMUNICATION EQUIPMENT Co Ltd
Priority to CN201510232921.5A priority Critical patent/CN104796518A/en
Publication of CN104796518A publication Critical patent/CN104796518A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method for obtaining battery life of a terminal and the terminal. The method comprises the following steps: collecting the current residual electric quantity of the terminal and basic power consumption current of the terminal; determining first time consumed by the terminal for collecting first data, wherein the first data comprise various user behaviors of users on the terminal and second time corresponding to each user behavior; determining first average current of the terminal according to the first time, each user behavior, the second time corresponding to each user behavior and a preset first mapping relationship, wherein the first mapping relationship comprises each user behavior and a real-time current value corresponding to each user behavior; and determining the battery life of the terminal according to the current residual electric quantity, the first mean current and the basic power consumption current. According to the method provided by the invention, the accurate battery life can be accurately obtained, so that the user experience can be enhanced.

Description

Obtain method and the terminal in end cell cruising time
Technical field
The present invention relates to the communication technology, particularly relate to a kind of method and the terminal that obtain end cell cruising time.
Background technology
Along with the development of the communication technology, the requirement of user to mobile terminal is more and more higher, for mobile phone, the development of mobile phone from function machine to intelligent machine, the application demand of user is met, but along with the continuous renewal of intelligent machine, large-screen mobile phone, and the applied business on mobile phone gets more and more, the power consumption of battery of mobile phone is increasing, therefore mobile phone battery endurance test becomes the bottleneck of intelligent machine development gradually, and determination mobile phone being remained to cruising time also becomes the problem that current research staff endeavours research.
In prior art, the battery life that mobile terminal calculates is substantially all theoretical value, such as can draw theoretical cruising time with theoretical remaining battery power divided by the standby current of theory, but the cruising time of theory did not conform to the cruising time that in fact user can use, namely the battery life of mobile terminal determined of prior art is inaccurate.
Summary of the invention
The invention provides a kind of method and the terminal that obtain end cell cruising time, determine the inaccurate technical problem of the battery life of terminal in order to solve in prior art.
The invention provides a kind of method obtaining end cell cruising time, comprising:
The basic power consumption electric current of acquisition terminal current residual electricity and described terminal; Wherein, the basic power consumption electric current of described terminal is the electric current after the module closedown of all non-maintenance terminal operating system runnings in described terminal;
Determine that described terminal gathers the very first time spent by the first data; Wherein, described first data comprise each user behavior in described terminal of user and the second time corresponding to each described user behavior;
Second time corresponding according to the described very first time, each described user behavior, each described user behavior and the first default mapping relations, determine the first average current of described terminal; Described first mapping relations comprise each described user behavior real-time current value corresponding with each described user behavior;
According to described current residual electricity, described first average current and described basic power consumption electric current, determine the battery life of described terminal.
Further, described second time corresponding according to the described very first time, each described user behavior, each described user behavior and the first default mapping relations determine the first average current of described terminal, comprising:
According to described user behavior and described first mapping relations, determine the real-time current value that described user behavior is corresponding;
The real-time current value corresponding according to described user behavior and the second time corresponding to described user behavior, obtain the first total current value that described user behavior produces within described second time;
According to the first total current value that described user behavior each in described terminal produces within described second time, obtain the second total current value;
According to described second total current value and the described very first time, obtain described first average current.
Further, the described real-time current value corresponding according to described user behavior and the second time corresponding to described user behavior, obtain the first total current value that described user behavior produces within described second time, specifically comprise:
The first total current value that the product be multiplied the second corresponding with described user behavior for real-time current value corresponding for described user behavior time produces within described second time as described user behavior;
Then described the first total current value produced within described second time according to described user behavior each in described terminal, obtains the second total current value, specifically comprises:
Described user behavior each in described terminal is produced within described second time first total current value be added and as described second total current value;
Then described according to described second total current value and the described very first time, obtain described first average current, specifically comprise:
By the quotient of described second total current value divided by the described very first time, as described first average current.
Further, described according to described current residual electricity, described first average current and described basic power consumption electric current, determine the battery life of described terminal, specifically comprise:
Determine the second average current of described terminal equal described first average current and described basic power consumption electric current and;
Determine that the battery life of described terminal equals the quotient of described current residual electricity divided by described second average current.
Further, described before the basic power consumption electric current of acquisition terminal current residual electricity and described terminal, described method also comprises:
Obtain described first data, and record described first data.
The invention provides a kind of terminal, comprising:
Acquisition module, for the basic power consumption electric current of acquisition terminal current residual electricity and described terminal; Wherein, the basic power consumption electric current of described terminal is the electric current after the module closedown of all non-maintenance terminal operating system runnings in described terminal;
First determination module, for determining that described terminal gathers the very first time spent by the first data; Wherein, described first data comprise each user behavior in described terminal of user and the second time corresponding to each described user behavior;
Second determination module, for according to the second time corresponding to the described very first time, each described user behavior, each described user behavior and the first default mapping relations, determines the first average current of described terminal; Described first mapping relations comprise each described user behavior real-time current value corresponding with each described user behavior;
3rd determination module, for according to described current residual electricity, described first average current and described basic power consumption electric current, determines the battery life of described terminal.
Further, described second determination module, comprising:
First determining unit, for according to described user behavior and described first mapping relations, determines the real-time current value that described user behavior is corresponding;
First acquiring unit, for according to real-time current value corresponding to described user behavior and the second time corresponding to described user behavior, obtains the first total current value that described user behavior produces within described second time;
Second acquisition unit, for the first total current value produced within described second time according to described user behavior each in described terminal, obtains the second total current value;
3rd acquiring unit, for according to described second total current value and the described very first time, obtains described first average current.
Further, described first acquiring unit, the first total current value that the product specifically for being multiplied the second corresponding with described user behavior for real-time current value corresponding for described user behavior time produces within described second time as described user behavior;
Described second acquisition unit, specifically for described user behavior each in described terminal is produced within described second time first total current value be added and as described second total current value;
Described 3rd acquiring unit, for by the quotient of described second total current value divided by the described very first time, as described first average current.
Further, described 3rd determination module, comprising:
Second determining unit, for determine the second average current of described terminal equal described first average current and described basic power consumption electric current and;
3rd determining unit, for determining that the battery life of described terminal equals the quotient of described current residual electricity divided by described second average current.
Further, described acquisition module, also for before the basic power consumption electric current of acquisition terminal current residual electricity and described terminal, obtains described first data, and records described first data.
The invention provides a kind of method and the terminal that obtain end cell cruising time, by the basic power consumption electric current of acquisition terminal current residual electricity and described terminal, and determine that described terminal gathers the very first time spent by the first data, afterwards according to the described very first time, each described user behavior, the second time that each described user behavior is corresponding and the first mapping relations preset, determine the first average current of described terminal, last according to described current residual electricity, described first average current and described basic power consumption electric current, determine the battery life of described terminal.The method in acquisition end cell provided by the invention cruising time, based on be user's actual use terminal time the average current value that produces, therefore the cruising time of the battery determined is not rely on merely the power consumption condition of dump energy and each physical device to calculate to get, but the use habit that combines particular user comes out simultaneously, therefore adopt method of the present invention can obtain battery life accurately, and then the experience of user can be strengthened.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the embodiment of the method one in acquisition end cell provided by the invention cruising time;
Fig. 2 is the schematic flow sheet of the embodiment of the method two in acquisition end cell provided by the invention cruising time;
Fig. 3 is the schematic flow sheet of the embodiment of the method three in acquisition end cell provided by the invention cruising time;
Fig. 4 is the structural representation of terminal embodiment one provided by the invention;
Fig. 5 is the structural representation of terminal embodiment two provided by the invention;
Fig. 6 is the structural representation of terminal embodiment three provided by the invention.
Embodiment
The executive agent of the method that the present invention relates to can be terminal, this terminal can include but not limited to mobile phone, personal digital assistant (Personal Digital Assistant, PDA), panel computer, portable equipment are (such as, portable computer) etc. mobile communication equipment, also ATM (Automatic Teller Machine can be comprised, the equipment such as ATM), the form of the embodiment of the present invention to terminal does not limit.
The method that the embodiment of the present invention relates to, specifically can solve in prior art and determine the inaccurate technical problem of the battery life of mobile terminal.
With embodiment particularly, technical scheme of the present invention is described in detail below.These specific embodiments can be combined with each other below, may repeat no more for same or analogous concept or process in some embodiment.
Fig. 1 is the schematic flow sheet of the embodiment of the method one in acquisition end cell provided by the invention cruising time.What the present embodiment related to is the detailed process of terminal according to the battery life of terminal power consumption current value determination terminal during user's actual use terminal.As shown in Figure 1, the method comprises:
S101: the basic power consumption electric current of acquisition terminal current residual electricity and described terminal; Wherein, the basic power consumption electric current of described terminal is the electric current after the module closedown of all non-maintenance terminal operating system runnings in described terminal.
Concrete, acquisition terminal current residual electricity can be the current dump energy of Real-time Collection terminal, can also be the current dump energy at predetermined period due in acquisition terminal; The basic power consumption electric current of acquisition terminal can be the basic power consumption electric current of Real-time Collection terminal, and gets an average current value, or, can also be the basic power consumption electric current of acquisition terminal in predetermined period due in.It should be noted that, the basic power consumption electric current of terminal can be the electric current after the module closedown of all non-maintenance terminal operating system runnings in described terminal, and namely this basic power consumption electric current is the minimum current that can maintain terminal operating system running, such as, when terminal is mobile phone, in above-mentioned terminal, the module of all non-maintenance terminal operating system runnings can comprise bluetooth module, Wireless Fidelity (Wireless-Fidelity, be called for short WiFi) module, GPS module, loud speaker, display screen lights module, all APP etc. in wireless communication module and terminal, therefore, in such cases, above-mentioned basic power consumption electric current is exactly that bluetooth module is closed, WiFi module is closed, GPS module is closed, loud speaker cuts out, display screen is lighted module and is closed, wireless communication module is closed (such as, SIM card does not insert draw-in groove) and terminal on the electric current of the terminal of all APP when all closing.
Optionally, the basic power consumption electric current of terminal can be tested out by testing current instrument (being applicable to developer).
S102: determine that described terminal gathers the very first time spent by the first data; Wherein, described first data comprise each user behavior in described terminal of user and the second time corresponding to each described user behavior.
Concrete, terminal self has the function of self study, the various user behavior of user in terminal and the second time corresponding to each user behavior can be gathered, second time corresponding to this user behavior can for when user performs this user behavior in terminal the second time of continuing, thus when the various user behavior of collected user in terminal and user being performed in terminal user behavior the second time of continuing as under the first data record.
Optionally, it can be Real-time Collection that terminal gathers the first data, can also be gather in predetermined period, if terminal is Real-time Collection, then when terminal needs the step performing following S103, it is free that the very first time that terminal is determined is exactly the institute that collects spent by above-mentioned first data of terminal, and optionally, this very first time can be several hours, one day, more than one day; If terminal gathers in predetermined period and gathers the first ED when predetermined period arrives, then when terminal needs to perform following S103 step, the very first time that terminal is determined is exactly the cycle that this is preset, optionally, this cycle of presetting can be any one time period of several hours, one day, more than one day.Preferably, above-mentioned first data of terminal Real-time Collection.
S103: second time corresponding according to the described very first time, each described user behavior, each described user behavior and the first default mapping relations, determines the first average current of described terminal; Described first mapping relations comprise each described user behavior real-time current value corresponding with each described user behavior.
Concrete, terminal is getting the first data and after the very first time, and second time corresponding according to this very first time, each user behavior, each user behavior and the first default mapping relations, determine the first average current of terminal.This first average current is the current value relevant to user behavior that terminal is determined according to the actual service condition of user, and that is this first average current more can embody the actual service condition of electricity of terminal.Optionally, the second time that terminal can continue in terminal according to any one user behavior, above-mentioned first mapping relations and this user behavior, determine total current value that this user behavior produces in terminal, thus total current value that each user behavior produces in terminal can be determined, and the total current value produced in terminal according to all user behaviors and the above-mentioned very first time, determine the first average current in the terminal in this very first time.
Optionally, above-mentioned first mapping relations can comprise each described user behavior real-time current value corresponding with each described user behavior, it should be noted that, when the above-mentioned very first time be with " hour " for unit time, the real-time current value that then in these first mapping relations, each described user behavior is corresponding also with " hour " for unit, namely this real-time current value is exactly the current value that described user behavior produces for each hour in described terminal; When the above-mentioned very first time be with " minute " for unit time, the real-time current value that then in these first mapping relations, each described user behavior is corresponding also with " minute " for unit, namely this real-time current value is exactly the described user behavior current value produced in described terminal per minute; When the above-mentioned very first time be with " second " for unit time, the real-time current value that then in these first mapping relations, each described user behavior is corresponding also with " second " for unit, namely this real-time current value is exactly the described user behavior current value produced in described terminal per second, the like etc.Such as, see the first mapping relations shown in following table 1, wherein, suppose that terminal is just bought, user only employs 24 hours, then the first data gathered are exactly the second time corresponding to user behavior in these 24 hours and user behavior, therefore, the very first time gathered spent by the first data is exactly 24 hours, then in table 1 the real-time current value that different user behavior is corresponding unit by hour in units of.See table 1:
Table 1
Certainly, above-mentioned the first default mapping relations are not limited to form, as long as can embody the corresponding relation between user behavior and the real-time current value corresponding with user behavior, the form of the present invention to the first mapping relations does not limit.
S104: according to described current residual electricity, described first average current and described basic power consumption electric current, determine the battery life of described terminal.
Concrete, after terminal determines the first average current of the above-mentioned terminal relevant to user behavior, in conjunction with the basic power consumption electric current of terminal itself and the current dump energy of terminal, calculate the cruising time of battery.Optionally, can be the current dump energy of terminal between this battery durable divided by the quotient of above-mentioned first average current and basic power consumption electric current sum, also can be the current dump energy of terminal divided by the quotient of above-mentioned first average current and basic power consumption electric current weighting sum, this weight coefficient a can be the coefficient that accurately can obtain terminal actual current value that developer sets.
The method in acquisition end cell provided by the invention cruising time, by the basic power consumption electric current of acquisition terminal current residual electricity and described terminal, and determine that described terminal gathers the very first time spent by the first data, afterwards according to the second time corresponding to the described very first time, each described user behavior, each described user behavior and the first default mapping relations, determine the first average current of described terminal, last according to described current residual electricity, described first average current and described basic power consumption electric current, determine the battery life of described terminal.The method in acquisition end cell provided by the invention cruising time, based on be user's actual use terminal time the average current value that produces, therefore the cruising time of the battery determined is not rely on merely the power consumption condition of dump energy and each physical device to calculate to get, but the use habit that combines particular user comes out simultaneously, therefore adopt method of the present invention can obtain battery life accurately, and then the experience of user can be strengthened.
Fig. 2 is the schematic flow sheet of the embodiment of the method two in acquisition end cell provided by the invention cruising time.What the present embodiment related to is the detailed process that terminal determines the first average current.On the basis of above-described embodiment, further, above-mentioned S103 specifically comprises:
S201: according to described user behavior and described first mapping relations, determines the real-time current value that described user behavior is corresponding.
S202: the real-time current value corresponding according to described user behavior and the second time corresponding to described user behavior, obtain the first total current value that described user behavior produces within described second time.
Concrete, terminal after determining according to user behavior and above-mentioned first mapping relations the real-time current value that this user behavior is corresponding, according to real-time current value corresponding to this user behavior and this user behavior in terminal the second time of continuing determine the first total current value that this user behavior produces within this second time in terminal.Optionally, can be terminal by the second corresponding with this user behavior for real-time current value corresponding for user behavior time is multiplied, the first total current value that the product obtained produces within this second time as this user behavior in terminal; The setting of the weight coefficient b that can also be terminal by being multiplied by a weight coefficient b preset again or presetting divided by after being multiplied the second corresponding with this user behavior for real-time current value corresponding for user behavior time, this weight coefficient b is to make the first total current value of determining more accurate; It can also be the arbitrary distortion after terminal was multiplied by the second time that the real-time current value corresponding to user behavior is corresponding with this user behavior, such as obtained product is multiplied by after A again divided by A, can also be deduct A etc. again after adding A, A is an arbitrary natural number, as long as the product finally obtained equals the result that real-time current value corresponding to user behavior second time corresponding with this user behavior is multiplied.Preferably, the first total current value that the product that the second corresponding with this user behavior for real-time current value corresponding for above-mentioned user behavior time is multiplied by terminal produces within described second time as this user behavior.
S203: the first total current value produced within described second time according to described user behavior each in described terminal, obtains the second total current value.
Optionally, the first total current value that all user behaviors that terminal can get in above-mentioned first data according to the mode of above-mentioned S202 are corresponding, then the first corresponding for each user behavior total current value is carried out the superposition of certain form, it can be direct addition, it can be weighting summation, can also be the addition of other modes, last terminal can using after this addition and as the second total current value.Preferably, terminal the first total current value that described user behavior each in described terminal produces within described second time directly can be added and as described second total current value.
Such as, continue to join the example be shown in Table 1, suppose that mobile phone inserts upper network (the registration Cellular Networks in table 1 of phonecard registration, corresponding real-time current value is 1.2A), within WIFI24 hour, open and (in table 1, open lan device, corresponding real-time current value is 1.5A), and use WIFI to surf the Net 2 hours (use local network transport data in table 1, corresponding real-time current value is 2.8A), to converse (the call in table 1 in 1 hour, corresponding real-time current value is 2.5A), screen accumulation unlatching 4 hours (lights screen in table 1, corresponding real-time current value is 2.1A), according to the first mapping relations shown in table 1, the the second total current value then calculated is:
(1.2A*24h+1.5A*24h+2.8A*2h+2.5A*1h+2.1A*4h)/24h=3.3A
S204: according to described second total current value and the described very first time, obtains described first average current.
Concrete, terminal can by the quotient of described second total current value divided by the described very first time, as the first average current.And optional, the first average current can also be the value by obtaining after carrying out arbitrary distortion to above-mentioned second total current value divided by the described very first time, as long as this value equals the quotient of the second total current value divided by the described very first time.
Fig. 3 is the schematic flow sheet of the embodiment of the method three in acquisition end cell provided by the invention cruising time.What the present embodiment related to is the basic power consumption electric current of terminal according to above-mentioned current residual electricity, the first average current and terminal, determines the detailed process of the battery life of terminal.On the basis of above-described embodiment, further, above-mentioned S104 specifically comprises:
S301: determine the second average current of described terminal equal described first average current and described basic power consumption electric current and.
Preferably, the basic power consumption electric current of terminal to the first average current obtained in above-mentioned S204 and above-mentioned terminal is sued for peace, the electric current obtained and be namely exactly the second average current of the current reality of terminal, is also the current value pressing close to terminal real use state most.
S302: determine that the battery life of described terminal equals the quotient of described current residual electricity divided by described second average current.
Optionally, before the basic power consumption electric current of above-mentioned terminal acquisition terminal current residual electricity and described terminal, need to gather above-mentioned first data in advance, and the first data are recorded in the memory of terminal inner.
The method in acquisition end cell provided by the invention cruising time, by the basic power consumption electric current of acquisition terminal current residual electricity and described terminal, and determine that described terminal gathers the very first time spent by the first data, afterwards according to the second time corresponding to the described very first time, each described user behavior, each described user behavior and the first default mapping relations, determine the first average current of described terminal, last according to described current residual electricity, described first average current and described basic power consumption electric current, determine the battery life of described terminal.The method in acquisition end cell provided by the invention cruising time, based on be user's actual use terminal time the average current value that produces, therefore the cruising time of the battery determined is not rely on merely the power consumption condition of dump energy and each physical device to calculate to get, but the use habit that combines particular user comes out simultaneously, therefore adopt method of the present invention can obtain battery life accurately, and then enhance the experience of user.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Fig. 4 is the structural representation of terminal embodiment one provided by the invention.As shown in Figure 4, this terminal comprises: acquisition module 10, first determination module 11, second determination module 12 and the 3rd determination module 13.
Wherein, acquisition module 10, for the basic power consumption electric current of acquisition terminal current residual electricity and described terminal; Wherein, the basic power consumption electric current of described terminal is the electric current after the module closedown of all non-maintenance terminal operating system runnings in described terminal;
First determination module 11, for determining that described terminal gathers the very first time spent by the first data; Wherein, described first data comprise each user behavior in described terminal of user and the second time corresponding to each described user behavior;
Second determination module 12, for according to the second time corresponding to the described very first time, each described user behavior, each described user behavior and the first default mapping relations, determines the first average current of described terminal; Described first mapping relations comprise each described user behavior real-time current value corresponding with each described user behavior;
3rd determination module 13, for according to described current residual electricity, described first average current and described basic power consumption electric current, determines the battery life of described terminal.
Terminal provided by the invention, can embodiment to perform the above method, and it realizes principle and technique effect is similar, does not repeat them here.
Fig. 5 is the structural representation of terminal embodiment two provided by the invention.On above-mentioned basis embodiment illustrated in fig. 4, as shown in Figure 5, further, above-mentioned second determination module 12, comprising: the first determining unit 121, first acquiring unit 122, second acquisition unit 123 and the 3rd acquiring unit 124.
Wherein, the first determining unit 121, for according to described user behavior and described first mapping relations, determines the real-time current value that described user behavior is corresponding;
First acquiring unit 122, for according to real-time current value corresponding to described user behavior and the second time corresponding to described user behavior, obtains the first total current value that described user behavior produces within described second time;
Second acquisition unit 123, for the first total current value produced within described second time according to described user behavior each in described terminal, obtains the second total current value;
3rd acquiring unit 124, for according to described second total current value and the described very first time, obtains described first average current.
Further, described first acquiring unit 122, the first total current value that the product specifically for being multiplied the second corresponding with described user behavior for real-time current value corresponding for described user behavior time produces within described second time as described user behavior;
Described second acquisition unit 123, specifically for described user behavior each in described terminal is produced within described second time first total current value be added and as described second total current value;
Described 3rd acquiring unit 124, for by the quotient of described second total current value divided by the described very first time, as described first average current.
Terminal provided by the invention, can embodiment to perform the above method, and it realizes principle and technique effect is similar, does not repeat them here.
Fig. 6 is the structural representation of terminal embodiment two provided by the invention.On above-mentioned basis embodiment illustrated in fig. 5, as shown in Figure 6, described 3rd determination module 13, comprising: the second determining unit 131 and the 3rd determining unit 132.
Wherein, the second determining unit 131, for determine the second average current of described terminal equal described first average current and described basic power consumption electric current and;
3rd determining unit 132, for determining that the battery life of described terminal equals the quotient of described current residual electricity divided by described second average current.
Optionally, described acquisition module 10, also for before the basic power consumption electric current of acquisition terminal current residual electricity and described terminal, obtains described first data, and records described first data.
Terminal provided by the invention, can embodiment to perform the above method, and it realizes principle and technique effect is similar, does not repeat them here.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. obtain the method in end cell cruising time, it is characterized in that, comprising:
The basic power consumption electric current of acquisition terminal current residual electricity and described terminal; Wherein, the basic power consumption electric current of described terminal is the electric current after the module closedown of all non-maintenance terminal operating system runnings in described terminal;
Determine that described terminal gathers the very first time spent by the first data; Wherein, described first data comprise each user behavior in described terminal of user and the second time corresponding to each described user behavior;
Second time corresponding according to the described very first time, each described user behavior, each described user behavior and the first default mapping relations, determine the first average current of described terminal; Described first mapping relations comprise each described user behavior real-time current value corresponding with each described user behavior;
According to described current residual electricity, described first average current and described basic power consumption electric current, determine the battery life of described terminal.
2. method according to claim 1, it is characterized in that, described second time corresponding according to the described very first time, each described user behavior, each described user behavior and the first default mapping relations determine the first average current of described terminal, comprising:
According to described user behavior and described first mapping relations, determine the real-time current value that described user behavior is corresponding;
The real-time current value corresponding according to described user behavior and the second time corresponding to described user behavior, obtain the first total current value that described user behavior produces within described second time;
According to the first total current value that described user behavior each in described terminal produces within described second time, obtain the second total current value;
According to described second total current value and the described very first time, obtain described first average current.
3. method according to claim 1 and 2, it is characterized in that, the described real-time current value corresponding according to described user behavior and the second time corresponding to described user behavior, obtain the first total current value that described user behavior produces within described second time, specifically comprise:
The first total current value that the product be multiplied the second corresponding with described user behavior for real-time current value corresponding for described user behavior time produces within described second time as described user behavior;
Then described the first total current value produced within described second time according to described user behavior each in described terminal, obtains the second total current value, specifically comprises:
Described user behavior each in described terminal is produced within described second time first total current value be added and as described second total current value;
Then described according to described second total current value and the described very first time, obtain described first average current, specifically comprise:
By the quotient of described second total current value divided by the described very first time, as described first average current.
4. the method according to any one of claim 1-3, is characterized in that, described according to described current residual electricity, described first average current and described basic power consumption electric current, determines the battery life of described terminal, specifically comprises:
Determine the second average current of described terminal equal described first average current and described basic power consumption electric current and;
Determine that the battery life of described terminal equals the quotient of described current residual electricity divided by described second average current.
5. method according to claim 4, is characterized in that, described before the basic power consumption electric current of acquisition terminal current residual electricity and described terminal, described method also comprises:
Obtain described first data, and record described first data.
6. a terminal, is characterized in that, comprising:
Acquisition module, for the basic power consumption electric current of acquisition terminal current residual electricity and described terminal; Wherein, the basic power consumption electric current of described terminal is the electric current after the module closedown of all non-maintenance terminal operating system runnings in described terminal;
First determination module, for determining that described terminal gathers the very first time spent by the first data; Wherein, described first data comprise each user behavior in described terminal of user and the second time corresponding to each described user behavior;
Second determination module, for according to the second time corresponding to the described very first time, each described user behavior, each described user behavior and the first default mapping relations, determines the first average current of described terminal; Described first mapping relations comprise each described user behavior real-time current value corresponding with each described user behavior;
3rd determination module, for according to described current residual electricity, described first average current and described basic power consumption electric current, determines the battery life of described terminal.
7. terminal according to claim 6, is characterized in that, described second determination module, comprising:
First determining unit, for according to described user behavior and described first mapping relations, determines the real-time current value that described user behavior is corresponding;
First acquiring unit, for according to real-time current value corresponding to described user behavior and the second time corresponding to described user behavior, obtains the first total current value that described user behavior produces within described second time;
Second acquisition unit, for the first total current value produced within described second time according to described user behavior each in described terminal, obtains the second total current value;
3rd acquiring unit, for according to described second total current value and the described very first time, obtains described first average current.
8. the terminal according to claim 6 or 7, it is characterized in that, described first acquiring unit, the first total current value that the product specifically for being multiplied the second corresponding with described user behavior for real-time current value corresponding for described user behavior time produces within described second time as described user behavior;
Described second acquisition unit, specifically for described user behavior each in described terminal is produced within described second time first total current value be added and as described second total current value;
Described 3rd acquiring unit, for by the quotient of described second total current value divided by the described very first time, as described first average current.
9. the terminal according to any one of claim 6-8, is characterized in that, described 3rd determination module, comprising:
Second determining unit, for determine the second average current of described terminal equal described first average current and described basic power consumption electric current and;
3rd determining unit, for determining that the battery life of described terminal equals the quotient of described current residual electricity divided by described second average current.
10. terminal according to claim 9, is characterized in that, described acquisition module, also for before the basic power consumption electric current of acquisition terminal current residual electricity and described terminal, obtains described first data, and records described first data.
CN201510232921.5A 2015-05-08 2015-05-08 Method for obtaining battery life of terminal and terminal Pending CN104796518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510232921.5A CN104796518A (en) 2015-05-08 2015-05-08 Method for obtaining battery life of terminal and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510232921.5A CN104796518A (en) 2015-05-08 2015-05-08 Method for obtaining battery life of terminal and terminal

Publications (1)

Publication Number Publication Date
CN104796518A true CN104796518A (en) 2015-07-22

Family

ID=53561025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510232921.5A Pending CN104796518A (en) 2015-05-08 2015-05-08 Method for obtaining battery life of terminal and terminal

Country Status (1)

Country Link
CN (1) CN104796518A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108376028A (en) * 2018-01-09 2018-08-07 北京大学 The method for predicting mobile device battery durable based on user behavior and system mode
CN108896927A (en) * 2018-07-20 2018-11-27 深圳市道通智能航空技术有限公司 Evaluation method, device, battery and the aircraft of aircraft residual non-uniformity
CN108958696A (en) * 2018-07-02 2018-12-07 Oppo广东移动通信有限公司 Principal and subordinate's earphone method for handover control and Related product
CN111239613A (en) * 2018-11-29 2020-06-05 宏碁股份有限公司 Battery power estimation method and electronic device
CN113268131A (en) * 2020-02-14 2021-08-17 北京小米移动软件有限公司 Method, apparatus and medium for predicting endurance information

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009883A (en) * 2006-12-26 2007-08-01 华为技术有限公司 Mobile terminal and its information prompt method
CN101808165A (en) * 2010-04-12 2010-08-18 中兴通讯股份有限公司 Method and device for constructing power model of mobile terminal
CN102508761A (en) * 2011-11-17 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Management method for terminal electric quantity and terminal
CN103181150A (en) * 2011-01-14 2013-06-26 株式会社Ntt都科摩 Device and method for calculating battery standby time of mobile device
US8832486B2 (en) * 2007-06-25 2014-09-09 Nederlandse Organisatie Voor Toegepast-Natuurwetenschappelijk Onderzoek Tno Method and system for predicting the power consumption of a mobile terminal
CN104237789A (en) * 2013-06-09 2014-12-24 腾讯科技(深圳)有限公司 Battery endurance time forecasting method and device
CN104601822A (en) * 2015-02-04 2015-05-06 上海斐讯数据通信技术有限公司 Power consumption calculation system and method of mobile terminal application

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009883A (en) * 2006-12-26 2007-08-01 华为技术有限公司 Mobile terminal and its information prompt method
US8832486B2 (en) * 2007-06-25 2014-09-09 Nederlandse Organisatie Voor Toegepast-Natuurwetenschappelijk Onderzoek Tno Method and system for predicting the power consumption of a mobile terminal
CN101808165A (en) * 2010-04-12 2010-08-18 中兴通讯股份有限公司 Method and device for constructing power model of mobile terminal
CN103181150A (en) * 2011-01-14 2013-06-26 株式会社Ntt都科摩 Device and method for calculating battery standby time of mobile device
CN102508761A (en) * 2011-11-17 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Management method for terminal electric quantity and terminal
CN104237789A (en) * 2013-06-09 2014-12-24 腾讯科技(深圳)有限公司 Battery endurance time forecasting method and device
CN104601822A (en) * 2015-02-04 2015-05-06 上海斐讯数据通信技术有限公司 Power consumption calculation system and method of mobile terminal application

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108376028A (en) * 2018-01-09 2018-08-07 北京大学 The method for predicting mobile device battery durable based on user behavior and system mode
CN108376028B (en) * 2018-01-09 2019-10-22 北京大学 Method based on user behavior and system mode prediction mobile device battery durable
CN108958696A (en) * 2018-07-02 2018-12-07 Oppo广东移动通信有限公司 Principal and subordinate's earphone method for handover control and Related product
US11102697B2 (en) 2018-07-02 2021-08-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling earphone switching and earphone
CN108896927A (en) * 2018-07-20 2018-11-27 深圳市道通智能航空技术有限公司 Evaluation method, device, battery and the aircraft of aircraft residual non-uniformity
CN111239613A (en) * 2018-11-29 2020-06-05 宏碁股份有限公司 Battery power estimation method and electronic device
CN111239613B (en) * 2018-11-29 2022-07-05 宏碁股份有限公司 Battery power estimation method and electronic device
CN113268131A (en) * 2020-02-14 2021-08-17 北京小米移动软件有限公司 Method, apparatus and medium for predicting endurance information
CN113268131B (en) * 2020-02-14 2024-01-09 北京小米移动软件有限公司 Method, device and medium for predicting endurance information

Similar Documents

Publication Publication Date Title
CN104796518A (en) Method for obtaining battery life of terminal and terminal
CN103338461B (en) Based on network plan method and the device of Traffic prediction
Paiano et al. A critical analysis of the sustainability of mobile phone use
EP2605489B1 (en) System and method for calculating battery standby time of mobile device
Moldovan et al. Energy-aware mobile learning: Opportunities and challenges
EP2790143B1 (en) Terminal device
CN102377462B (en) Method and system for interactively selecting auxiliary cell
CN102609348A (en) Method and system for displaying capacity remaining time of Bluetooth device based on Bluetooth terminal
CN104301499B (en) Battery capacity of mobile terminal log analysis methodology, device, platform and mobile terminal
CN101808165A (en) Method and device for constructing power model of mobile terminal
CN104659881B (en) Charging method and device for mobile terminal
CN103702404A (en) Power consumption mode switching method and device
CN104866058A (en) Method and apparatus for determining battery endurance of electronic device
CN102752429A (en) Automatic mobile phone battery endurance test method based on Android system
CN105262890B (en) The information update control system and method for portable electronic device application program
CN103278707B (en) Obtain method and the terminal of terminal standby time
CN107463240A (en) Open method, device and the mobile terminal of battery saving mode
CN104202478A (en) Method for automatically synchronizing data of smart phone
CN108736084A (en) Charging method and terminal
CN102957572A (en) Method and device for evaluating performance of system
CN103607731A (en) Method and device for processing measurement reports
CN105636155A (en) Method and device for controlling wireless access point
CN111025068B (en) Ammeter load curve data reading method and device and electronic equipment
CN108471476B (en) Reverse charging management method for mobile terminal and mobile terminal
CN105376379B (en) A kind of automatic test realization method and system of converse power consumption and stand-by power consumption

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150722

RJ01 Rejection of invention patent application after publication