CN104866058A - Method and apparatus for determining battery endurance of electronic device - Google Patents

Method and apparatus for determining battery endurance of electronic device Download PDF

Info

Publication number
CN104866058A
CN104866058A CN201510266405.4A CN201510266405A CN104866058A CN 104866058 A CN104866058 A CN 104866058A CN 201510266405 A CN201510266405 A CN 201510266405A CN 104866058 A CN104866058 A CN 104866058A
Authority
CN
China
Prior art keywords
electronic equipment
power consumption
time
unit interval
application
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
CN201510266405.4A
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 CN201510266405.4A priority Critical patent/CN104866058A/en
Publication of CN104866058A publication Critical patent/CN104866058A/en
Pending legal-status Critical Current

Links

Landscapes

  • Secondary Cells (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The present invention provides a method and apparatus for determining battery endurance of an electronic device. The method comprises: acquiring first power at a current charging completion time within each charging cycle of an electronic device and second power at start of next charging; calculating consumed battery power of the electronic device within the charging cycle; obtaining power consumption of the electronic device in unit time according to a ratio of the consumed battery power to the charging cycle, such that the power consumption of the electronic device in unit time in each charging cycle is more accurate. Further, an average power consumption of the electronic device in unit time is calculated according to the power consumption in unit time of the electronic device within multiple charging cycles, such that the power consumption in unit time become more and more close to a practical value, thereby ensuring that the calculated battery endurance is more accurate.

Description

The determination method and apparatus in the cruising time of electronic equipment
Technical field
The present invention relates to electronic device technology, particularly relate to the determination method and apparatus in a kind of cruising time of electronic equipment.
Background technology
Along with the development of the communication technology, electronic equipment is more and more universal, becomes the part that people's daily life is indispensable gradually, and the cruising time of electronic equipment is one of its performance index, is also the major issue that user is concerned about.
In prior art, cruising time of electronic equipment calculates fairly simple, generally adopts theoretical value, such as, can draw theoretical cruising time with the current dump energy of electronic equipment divided by the standby current of theory.Because the network environment, the signal of electronic equipment, the custom of user's use etc. at electronic equipment place are widely different, the current difference of theoretical current and electronic equipment reality may be very large, and therefore, the cruising time calculated is also inaccurate.The inaccurate meeting in cruising time of electronic equipment brings a lot of inconvenience to user, such as, user can not be battery charging in time, when user is in communication process or when using other functions, unexpected electronic device prompts electricity is not enough, makes user have to terminate as early as possible to converse or close the function used.
Summary of the invention
The invention provides the determination method and apparatus in a kind of cruising time of electronic equipment, the cruising time of electronic equipment can be determined accurately.
First aspect present invention provides the defining method in a kind of cruising time of electronic equipment, comprising:
Obtain first electricity of electronic equipment in current charging finish time, and described electronic equipment is at second electricity of next one charging start time;
Difference according to described first electricity and described second electricity obtains the battery power consumption of described electronic equipment in a charge cycle, and the difference according to described next one charging start time and described current charging finish time obtains described charge cycle;
Ratio according to described battery power consumption and described charge cycle obtains the unit interval power consumption of described electronic equipment in described charge cycle;
The unit interval average power consumption of described electronic equipment is calculated according to the unit interval power consumption of described electronic equipment in multiple charge cycle;
Product according to the dump energy of described unit interval average power consumption and described electronic equipment obtains cruising time.
Optionally, after the product of the described dump energy according to the average power consumption in the described unit interval and described electronic equipment obtains cruising time, described method also comprises:
Show described cruising time.
Optionally, described method also comprises: if described cruising time is less than default time threshold, then export information, and described information carries out charging and/or close the application being in opening for pointing out user.
Optionally, described method also comprises: if be less than default time threshold described cruising time, then close at least one application be in the application of opening.
Optionally, described closedown is at least one application in the application of opening, comprising:
The application that in the application of opening, unit interval power consumption is larger is in described in closedown.
Second aspect present invention provides the determining device in a kind of cruising time of electronic equipment, comprising:
Acquisition module, for obtaining first electricity of electronic equipment in current charging finish time, and described electronic equipment is at second electricity of next one charging start time;
Computing module, for obtaining the battery power consumption of described electronic equipment in a charge cycle according to the difference of described first electricity and described second electricity, the difference according to described next one charging start time and described current charging finish time obtains described charge cycle;
Described computing module, also for obtaining the unit interval power consumption of described electronic equipment in described charge cycle according to the ratio of described battery power consumption and described charge cycle;
Described computing module, also for calculating the unit interval average power consumption of described electronic equipment according to the unit interval power consumption of described electronic equipment in multiple charge cycle;
Described computing module, the product also for the dump energy according to described unit interval average power consumption and described electronic equipment obtains cruising time.
Optionally, described device also comprises: display module, for showing described cruising time.
Optionally, described device also comprises: reminding module, if be less than default time threshold for described cruising time, then exports information, and described information carries out charging and/or close the application being in opening for pointing out user.
Optionally, described device also comprises: closing module, if be less than default time threshold for described cruising time, then closes at least one application be in the application of opening.
Optionally, described closing module specifically for:
The application that in the application of opening, unit interval power consumption is larger is in described in closedown.
The determination method and apparatus in the cruising time of electronic equipment provided by the invention, by obtaining first electricity of electronic equipment in the current charging finish time of each charge cycle, and the next one charging start time the second electricity, the battery power consumption of calculating electronic equipment in charge cycle, ratio according to battery power consumption and charge cycle obtains electronic equipment at unit interval power consumption, make the unit interval power consumption of electronic equipment in each charge cycle more accurate, further, according to the unit interval average power consumption of the unit interval power consumption calculating electronic equipment of electronic equipment in multiple charge cycle, unit interval power consumption can be made more and more close to actual value, thus guarantee that the cruising time calculated is more accurate
Accompanying drawing explanation
The process flow diagram of the defining method in the cruising time of the electronic equipment that Fig. 1 provides for the embodiment of the present invention one;
The structural representation of the determining device in the cruising time of the electronic equipment that Fig. 2 provides for the embodiment of the present invention two.
Embodiment
The process flow diagram of the defining method in the cruising time of the electronic equipment that Fig. 1 provides for the embodiment of the present invention one.The method can be applicable in electronic equipment, such as: mobile phone, personal digital assistant (personal digitalassistant is called for short PAD), MP3, MP4 etc.The executive agent of the method that the present embodiment provides is above-mentioned electronic equipment, specifically can be realized by the module or chip in above-mentioned electronic equipment with processing capacity, such as: CPU (central processing unit) (central process unit is called for short CPU) etc.As shown in Figure 1, the method for the present embodiment comprises the following steps:
Step 101, acquisition electronic equipment are at first electricity of current charging finish time, and electronic equipment is at second electricity of next one charging start time.
In the present embodiment, be a charge cycle with current charging finish time to the next time of charging start time, then, obtain first electricity of the current charging finish time of electronic equipment in each charge cycle, and electronic equipment is at second electricity of next one charging start time.Wherein, current charging finish time is the moment that the finger charging device of electronic equipment disconnects, charging start time refers to the moment that charging device connects, electronic equipment can detect the connection status of charging device, determine current charging finish time and next charging start time, and record current charging finish time and the first electricity, and next start time and the second electricity of charging.
Step 102, obtain the battery power consumption of electronic equipment in a charge cycle according to the difference of the first electricity and the second electricity, the difference according to next one charging start time and current charging finish time obtains charge cycle.
Deduct electricity difference that the second electricity obtains as battery power consumption with the first electricity, the time difference deducting current charging finish time with next one charging start time obtains charge cycle.
Step 103, obtain the unit interval power consumption of electronic equipment in charge cycle according to the ratio of battery power consumption and charge cycle.
In the present embodiment, the unit of electricity and time is not fixing, and such as, the unit of electricity can be number percent, and also can be every MAH or every ampere-hour, the unit of time can be hour, minute, day etc.Such as, when user the morning 8, during disconnection charging device, the first electricity is 80%, during 20 connection charging devices in afternoon, the second electricity is 20%, then charge cycle is 20-8=12 (hour), battery power consumption in charge cycle is 80%-20%=60%, and the cruising time that can calculate every 1% electricity is thus: (20-8)/(80-20)=0.2 hour.
Step 104, unit interval average power consumption according to the unit interval power consumption calculating electronic equipment of electronic equipment in multiple charge cycle.
Concrete, the unit interval power consumption in multiple charge cycle can be added the total power consumption obtained in the unit interval, then, obtain unit interval average power consumption with the total power consumption in the unit interval divided by the number of charge cycle.
Step 105, obtain cruising time according to the product of the dump energy of unit interval average power consumption and electronic equipment.
Such as, the unit interval average power consumption of electronic equipment is the cruising time of every 1% electricity is 0.2 hour, then cruising time of dump energy of 100% is 0.2*100=20 hour, and the cruising time of the dump energy of 40% is 0.2*40=8 hour.
In the present embodiment, a unit interval power consumption can be calculated in each charge cycle, by the unit interval average power consumption according to the unit interval power consumption calculating electronic equipment in multiple charge cycle, unit interval power consumption can be made more and more close to actual value, thus guarantee that the cruising time calculated is more accurate.
Optionally, after the product of the dump energy according to unit interval average power consumption and electronic equipment obtains cruising time, the method of the present embodiment can also comprise the following steps: show cruising time, so that user can understand the charge condition of electronic equipment timely, the demand according to oneself is charged.
Optionally, the method for the present embodiment can also comprise the following steps: if institute is less than default time threshold cruising time, then export information, and information carries out charging and/or close the application being in opening for pointing out user.The current unit interval power consumption being in all application of opening can be comprised, so that user selects to close the high application of time per electricity according to information in information.Can store the unit interval power consumption of all application in electronic equipment internal, the unit interval power consumption of these application can be measured in advance by electronic equipment and obtain.
Optionally, if be less than default time threshold cruising time, then electronic equipment also can cut out at least one application be in the application of opening voluntarily.Concrete, electronic equipment according to the unit interval power consumption of each application, can cut out and be in the application that in the application of opening, unit interval power consumption is larger.
In the present embodiment, by obtaining first electricity of electronic equipment in the current charging finish time of each charge cycle, and the next one charging start time the second electricity, the battery power consumption of calculating electronic equipment in charge cycle, ratio according to battery power consumption and charge cycle obtains electronic equipment at unit interval power consumption, make the unit interval power consumption of electronic equipment in each charge cycle more accurate, further, according to the unit interval average power consumption of the unit interval power consumption calculating electronic equipment of electronic equipment in multiple charge cycle, unit interval power consumption can be made more and more close to actual value, thus guarantee that the cruising time calculated is more accurate.
The structural representation of the determining device in the cruising time of the electronic equipment that Fig. 2 provides for the embodiment of the present invention two, as shown in Figure 2, the device that the present embodiment provides comprises: acquisition module 11 and computing module 12.
Wherein, acquisition module 11, for obtaining first electricity of electronic equipment in current charging finish time, and described electronic equipment is at second electricity of next one charging start time;
Computing module 12, for obtaining the battery power consumption of described electronic equipment in a charge cycle according to the difference of described first electricity and described second electricity, the difference according to described next one charging start time and described current charging finish time obtains described charge cycle;
Described computing module 12, also for obtaining the unit interval power consumption of described electronic equipment in described charge cycle according to the ratio of described battery power consumption and described charge cycle;
Described computing module 12, also for calculating the unit interval average power consumption of described electronic equipment according to the unit interval power consumption of described electronic equipment in multiple charge cycle;
Described computing module 12, the product also for the dump energy according to described unit interval average power consumption and described electronic equipment obtains cruising time.
Optionally, the device of the present embodiment can also comprise: display module, for showing described cruising time.
Optionally, the device of the present embodiment can also comprise: reminding module, if be less than default time threshold for described cruising time, then exports information, and described information carries out charging and/or close the application being in opening for pointing out user.
Optionally, the device of the present embodiment can also comprise: closing module, if be less than default time threshold for described cruising time, then closes at least one application be in the application of opening.Optionally, described closing module specifically for: be in the application that in the application of opening, unit interval power consumption is larger described in closedown.
In the present embodiment, display module, reminding module and closing module are not shown in Figure 2.
The device of the present embodiment, can be used for performing the method for embodiment one, specific implementation and technique effect similar, repeat no more here.
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 programmed instruction 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.
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. the defining method in the cruising time of electronic equipment, is characterized in that, comprising:
Obtain first electricity of electronic equipment in current charging finish time, and described electronic equipment is at second electricity of next one charging start time;
Difference according to described first electricity and described second electricity obtains the battery power consumption of described electronic equipment in a charge cycle, and the difference according to described next one charging start time and described current charging finish time obtains described charge cycle;
Ratio according to described battery power consumption and described charge cycle obtains the unit interval power consumption of described electronic equipment in described charge cycle;
The unit interval average power consumption of described electronic equipment is calculated according to the unit interval power consumption of described electronic equipment in multiple charge cycle;
Product according to the dump energy of described unit interval average power consumption and described electronic equipment obtains cruising time.
2. method according to claim 1, is characterized in that, after the product of the described dump energy according to the average power consumption in the described unit interval and described electronic equipment obtains cruising time, described method also comprises:
Show described cruising time.
3. method according to claim 1 and 2, is characterized in that, described method also comprises:
If described cruising time is less than default time threshold, then export information, described information carries out charging and/or close the application being in opening for pointing out user.
4. method according to claim 1 and 2, is characterized in that, described method also comprises:
If described cruising time is less than default time threshold, then close at least one application be in the application of opening.
5. method according to claim 4, is characterized in that, described closedown is at least one application in the application of opening, comprising:
The application that in the application of opening, unit interval power consumption is larger is in described in closedown.
6. the determining device in the cruising time of electronic equipment, is characterized in that, comprising:
Acquisition module, for obtaining first electricity of electronic equipment in current charging finish time, and described electronic equipment is at second electricity of next one charging start time;
Computing module, for obtaining the battery power consumption of described electronic equipment in a charge cycle according to the difference of described first electricity and described second electricity, the difference according to described next one charging start time and described current charging finish time obtains described charge cycle;
Described computing module, also for obtaining the unit interval power consumption of described electronic equipment in described charge cycle according to the ratio of described battery power consumption and described charge cycle;
Described computing module, also for calculating the unit interval average power consumption of described electronic equipment according to the unit interval power consumption of described electronic equipment in multiple charge cycle;
Described computing module, the product also for the dump energy according to described unit interval average power consumption and described electronic equipment obtains cruising time.
7. device according to claim 6, is characterized in that, also comprises:
Display module, for showing described cruising time.
8. the device according to claim 6 or 7, is characterized in that, also comprises:
Reminding module, if be less than default time threshold for described cruising time, then exports information, and described information carries out charging and/or close the application being in opening for pointing out user.
9. the device according to claim 6 or 7, is characterized in that, also comprises:
Closing module, if be less than default time threshold for described cruising time, then closes at least one application be in the application of opening.
10. device according to claim 9, is characterized in that, described closing module specifically for:
The application that in the application of opening, unit interval power consumption is larger is in described in closedown.
CN201510266405.4A 2015-05-22 2015-05-22 Method and apparatus for determining battery endurance of electronic device Pending CN104866058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510266405.4A CN104866058A (en) 2015-05-22 2015-05-22 Method and apparatus for determining battery endurance of electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510266405.4A CN104866058A (en) 2015-05-22 2015-05-22 Method and apparatus for determining battery endurance of electronic device

Publications (1)

Publication Number Publication Date
CN104866058A true CN104866058A (en) 2015-08-26

Family

ID=53911946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510266405.4A Pending CN104866058A (en) 2015-05-22 2015-05-22 Method and apparatus for determining battery endurance of electronic device

Country Status (1)

Country Link
CN (1) CN104866058A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279039A (en) * 2015-11-30 2016-01-27 联想(北京)有限公司 Information processing method and device
CN106502867A (en) * 2016-10-31 2017-03-15 广东欧珀移动通信有限公司 Information sends and cruising time determines method, device, terminal and server
CN106887890A (en) * 2017-03-30 2017-06-23 维沃移动通信有限公司 A kind of discharge and recharge based reminding method and mobile terminal
CN108376028A (en) * 2018-01-09 2018-08-07 北京大学 The method for predicting mobile device battery durable based on user behavior and system mode
CN108407740A (en) * 2018-01-31 2018-08-17 惠州华阳通用电子有限公司 A kind of T-BOX standby battery controls and method
CN108429312A (en) * 2018-03-28 2018-08-21 北京小米移动软件有限公司 Charge control method and device
CN109494833A (en) * 2018-11-19 2019-03-19 珠海市微半导体有限公司 A kind of electricity planing method, robot and chip based on robot work electricity consumption
CN113391692A (en) * 2021-06-11 2021-09-14 上海明略人工智能(集团)有限公司 Electric quantity prompting method, device and system of recording equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100834958B1 (en) * 2006-12-29 2008-06-03 삼성전자주식회사 Method for displaying current consumption of battery thereof in terminal
CN103455126A (en) * 2013-09-16 2013-12-18 贝壳网际(北京)安全技术有限公司 Method and client device for determining residual service life of battery and mobile terminal
CN103941841A (en) * 2014-04-21 2014-07-23 可牛网络技术(北京)有限公司 Method and device for acquiring remaining available time of equipment
CN104090240A (en) * 2014-06-30 2014-10-08 深圳市中兴移动通信有限公司 Method and device for updating left service time of battery and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100834958B1 (en) * 2006-12-29 2008-06-03 삼성전자주식회사 Method for displaying current consumption of battery thereof in terminal
CN103455126A (en) * 2013-09-16 2013-12-18 贝壳网际(北京)安全技术有限公司 Method and client device for determining residual service life of battery and mobile terminal
CN103941841A (en) * 2014-04-21 2014-07-23 可牛网络技术(北京)有限公司 Method and device for acquiring remaining available time of equipment
CN104090240A (en) * 2014-06-30 2014-10-08 深圳市中兴移动通信有限公司 Method and device for updating left service time of battery and mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279039A (en) * 2015-11-30 2016-01-27 联想(北京)有限公司 Information processing method and device
CN105279039B (en) * 2015-11-30 2019-04-23 联想(北京)有限公司 Information processing method and device
CN106502867A (en) * 2016-10-31 2017-03-15 广东欧珀移动通信有限公司 Information sends and cruising time determines method, device, terminal and server
CN106887890A (en) * 2017-03-30 2017-06-23 维沃移动通信有限公司 A kind of discharge and recharge based reminding method and mobile terminal
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
CN108407740A (en) * 2018-01-31 2018-08-17 惠州华阳通用电子有限公司 A kind of T-BOX standby battery controls and method
CN108429312A (en) * 2018-03-28 2018-08-21 北京小米移动软件有限公司 Charge control method and device
CN109494833A (en) * 2018-11-19 2019-03-19 珠海市微半导体有限公司 A kind of electricity planing method, robot and chip based on robot work electricity consumption
CN109494833B (en) * 2018-11-19 2020-09-15 珠海市一微半导体有限公司 Electric quantity planning method based on robot working power consumption, robot and chip
CN113391692A (en) * 2021-06-11 2021-09-14 上海明略人工智能(集团)有限公司 Electric quantity prompting method, device and system of recording equipment

Similar Documents

Publication Publication Date Title
CN104866058A (en) Method and apparatus for determining battery endurance of electronic device
CN110729790B (en) Charging method and device, computer equipment and storage medium
CN110492572A (en) A kind of the fast charge method and fast charge control system of lithium battery
CN102854471A (en) Method and device for metering electric quantity of battery
CN104112878A (en) Method and device for determining charging time and electronic device
TW201133985A (en) Predicting method of remaining capacity and remaining run-time of a battery device
CN106249168B (en) A kind of battery curve modification method and device
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
WO2019119326A1 (en) Charging method, device, terminal apparatus, and computer readable storage medium
CN103460063B (en) Battery voltage measurement
CN110456277A (en) Method for managing power supply, terminal, computer installation and readable storage medium storing program for executing
WO2023029753A1 (en) Device power supply method and apparatus, terminal device and storage medium
CN110879361A (en) Method and device for estimating residual capacity of battery and electronic equipment
CN106160108A (en) A kind of charging method and charging device
CN104914381A (en) Mobile terminal battery capacity smooth display method and system
US11165269B2 (en) Electronic apparatus, charging method, and non-transitory computer readable recording medium
CN112014749A (en) Method and device for determining battery display electric quantity, chip and storage medium
US20210215763A1 (en) Method for improving accuracy of capacity measurement
CN108881630B (en) Reverse charging management method and device and terminal
CN103278707B (en) Obtain method and the terminal of terminal standby time
CN105491208A (en) Method for storing electric quantity information of mobile terminal, and mobile terminal
CN108471476B (en) Reverse charging management method for mobile terminal and mobile terminal
CN107221989A (en) A kind of method for suppressing temperature rise, computer-readable recording medium, communication equipment
CN114844084A (en) Electric quantity control method and device, storage medium, processor and electronic device
CN108303650A (en) A kind of measuring method and system based on the rechargeable battery remaining charging time

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150826

WD01 Invention patent application deemed withdrawn after publication