WO2014206270A1 - Method, apparatus, and device for detecting length of time of use of battery - Google Patents

Method, apparatus, and device for detecting length of time of use of battery Download PDF

Info

Publication number
WO2014206270A1
WO2014206270A1 PCT/CN2014/080584 CN2014080584W WO2014206270A1 WO 2014206270 A1 WO2014206270 A1 WO 2014206270A1 CN 2014080584 W CN2014080584 W CN 2014080584W WO 2014206270 A1 WO2014206270 A1 WO 2014206270A1
Authority
WO
WIPO (PCT)
Prior art keywords
power
function
mobile smart
smart device
status
Prior art date
Application number
PCT/CN2014/080584
Other languages
French (fr)
Chinese (zh)
Inventor
马健
李丁盼
韦航
傅盛
Original Assignee
贝壳网际(北京)安全技术有限公司
北京金山网络科技有限公司
北京金山安全软件有限公司
珠海市君天电子科技有限公司
可牛网络技术(北京)有限公司
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 贝壳网际(北京)安全技术有限公司, 北京金山网络科技有限公司, 北京金山安全软件有限公司, 珠海市君天电子科技有限公司, 可牛网络技术(北京)有限公司 filed Critical 贝壳网际(北京)安全技术有限公司
Publication of WO2014206270A1 publication Critical patent/WO2014206270A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present invention relates to the field of battery power detection technology, and in particular, to a method, device and device for detecting a battery usage time. Background technique
  • mobile smart devices basically provide a battery power detection function, and the battery power detection result is usually displayed as an icon in the status bar of the mobile smart device. For example, there is a small battery icon in the status bar, and the current remaining capacity of the mobile smart device is displayed by the proportion of the color filled in the small icon.
  • the inventors have invented the prior art at least the following problems.
  • the ratio of the remaining power to the total power can be known by the prior art detection method, for example, the current remaining 75% or 1/4, etc., can not know the specific usable time according to the remaining power displayed, and can not let the user arrange the mobile smart device accurately and reasonably.
  • the embodiment of the invention provides a method, a device and a device for detecting the length of use of the battery, so that the user can know the specific available time, so that the user can accurately and reasonably arrange the use mode of the mobile smart device.
  • an embodiment of the present invention provides a method for detecting a battery usage time, which is applied to a mobile smart device, where the method includes:
  • the detecting instruction includes detecting a usable duration of the entire device and/or a duration of a single function. Instructing information; the power parameter includes a 100% power usage duration corresponding to a model of the mobile smart device, and a current remaining power percentage;
  • the calculation result is output.
  • the specified system function status parameter is a sum of the system function consumption coefficients of the specified system
  • the steps of calculating the usable duration of the entire device according to the specified system function status and the power parameter include:
  • the length of time the entire device can be used (100% battery usage time) * Percentage of remaining battery * (1 + specified system function The sum of the consumption coefficients) * the remaining capacity coefficient;
  • the duration of the 100% power usage is the length of time the entire device is used when the mobile smart device has a power of 100%;
  • the remaining battery percentage is a ratio of the current remaining power of the mobile smart device to 100% power
  • the specified system function consumption coefficient is a ratio of power consumption increased when the system function state is specified to be off;
  • the remaining power coefficient is a coefficient corresponding to the remaining power range.
  • the specified system function status parameter may increase the sum of the duration coefficients when the specified system function is closed; and the steps of calculating the length of the single function according to the specified system function status parameter and the power parameter include:
  • the length of the single function can be used (the length of time available when the battery is 100%) * The percentage of remaining battery * (Mobile smart device status coefficient + specify the sum of the length coefficients when the system function is off);
  • the duration of the 100% power usage is the duration of use of the single function when the mobile smart device is 100%;
  • the remaining battery percentage is a ratio of the current remaining power of the mobile smart device to 100% power
  • the specified system function is turned off to increase the duration coefficient, which is an increase in the duration of the system when the system function state is off;
  • the mobile smart device state coefficient is a coefficient value determined empirically according to the number of specified system functions. Before calculating the length of time that a single function can be used, it also includes:
  • the system function status it is judged whether the single function of the available time is currently available. If the single function is currently unavailable, the calculation result of the length of the single function can be recorded as 0. If the single function is currently available, then according to the specified system.
  • the function status parameter and the power parameter calculation can be used for a single function.
  • the step of acquiring the specified system function status parameter of the mobile smart device includes:
  • the step of obtaining the current remaining power percentage of the mobile smart device includes:
  • the percentage of the current remaining capacity of the mobile smart device is obtained according to an application programming interface function provided by the operating system of the mobile smart device.
  • the designated system function includes at least one or any combination of the following: WIFI, 3G, GPS, screen brightness, Bluetooth.
  • the single item includes WIFI Internet access, 3G Internet access, call, 3G call, movie play, online video play, music play, reading articles, 2D games, 3D games, taking photos, recording video, GPS navigation, Fa Ce Time, Bluetooth audio, LED flashlight, voice memo or Siri.
  • the embodiment of the invention further provides a device for detecting the duration of use of the battery, which is applied to the mobile smart device, the device comprising:
  • a receiving unit configured to receive a battery usage duration detection instruction
  • An acquiring unit configured to acquire, according to the battery usage time detection instruction, a specified system function state parameter and a power parameter of the mobile smart device, where the detecting instruction includes detecting a usable duration and/or a single item of the entire device
  • the function may use the indication information of the duration;
  • the power parameter includes a 100% power usage duration corresponding to the model of the mobile smart device, and a current remaining battery percentage;
  • a calculating unit configured to calculate, according to the specified system function state parameter and the power parameter, a usable duration of the entire device and/or a usable duration of the single function
  • the computing unit includes:
  • the entire device can use the duration calculation sub-unit to calculate the length of time that the entire device can be used.
  • the length of time that the entire device can be used (100% battery usage time) * Percentage of remaining battery * (1 + specified system function consumption coefficient) And) * the remaining capacity coefficient; the 100% power usage duration is the duration of use of the entire device when the mobile smart device is 100%; the remaining battery percentage is the current remaining power of the mobile smart device
  • the ratio of the 100% power consumption; the specified system function consumption coefficient is a ratio of the power consumption that is added when the system function state is closed; the remaining power coefficient is a coefficient corresponding to the remaining power range; wherein, the specified system function
  • the status parameter is the sum of the system function consumption coefficients of the specified system
  • the single function can be used to calculate the sub-unit length, which can be used to calculate the available duration of a single function.
  • Length of use (the length of time available when the battery is 100%) * Percentage of remaining battery * (Mobile smart device status coefficient + specify the sum of the length coefficients when the system function is turned off); the 100% battery usage time is the mobile smart device.
  • the duration of the single function when the power is 100%; the percentage of the remaining power is the ratio of the current remaining power of the mobile smart device to the 100% power; the specified system function is turned off to increase the duration coefficient, and the specified system function state is The time ratio of the time when the mobile device is changed according to the number of the specified system functions, wherein the specified system function state parameter increases the length coefficient when the specified system function is closed. Sum.
  • the designated system function includes at least one or any combination of the following: WIFI, 3G, GPS, screen brightness, Bluetooth.
  • the single item includes WIFI Internet access, 3G Internet access, call, 3G call, movie play, online video play, music play, reading articles, 2D games, 3D games, taking photos, recording video, GPS navigation, FaceTime, Bluetooth audio , LED flashlight, voice memo or Siri.
  • An embodiment of the present invention further provides a mobile smart device, where the mobile smart device includes:
  • a memory configured to store a specified system function state and a power parameter of the mobile smart device
  • a processor configured to receive a battery usage time detection instruction; and obtain a specified system function of the mobile smart device according to the battery usage time detection instruction a status parameter and a power parameter
  • the detection instruction includes indication information for detecting a usable duration of the entire device and/or a usable duration of the single function
  • the power parameter includes a model corresponding to the model of the mobile smart device 100% power usage time, and the current remaining battery percentage; Calculate the usable duration of the entire device and/or the length of time that a single function can be used according to the specified system function status parameter and power parameter;
  • a display device configured to output the calculation result.
  • the method, the device and the device for detecting the battery usage time provided by the embodiment of the present invention can be obtained by acquiring the specified system function state and the power parameter of the mobile smart device, according to the obtained specified system function state parameter and the power parameter. Calculate the length of time that the entire device can be used and/or the length of time that a single function can be used.
  • the embodiment of the present invention can calculate and display the usable duration of the entire device and/or the single function in a timed or real time, and display the calculation result output to the user, so that the user can know the specific available time, so that the user can reasonably perform the power.
  • the distribution is used to facilitate the user to accurately and reasonably arrange the use of mobile smart devices.
  • any product or method embodying the present invention necessarily does not necessarily require all of the advantages described above to be achieved at the same time.
  • FIG. 1 is a flow chart of a method for detecting a battery usage time according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for detecting a battery usage time according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for detecting a battery usage time according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for detecting a battery usage time according to an embodiment of the present invention
  • the embodiment is applied to a mobile smart device, and specifically includes:
  • Step 101 Receive a battery usage duration detection instruction.
  • the battery usage detection command may be periodically issued by the mobile smart device, or may be triggered according to the user's instruction.
  • the application does not limit the trigger timing and trigger mode of the detection command, that is, in the present application,
  • the detection operation can be performed periodically or in real time.
  • the above indication information may be represented by different parameters or by different values of the same parameter.
  • the specific expression form of the indication information is limited.
  • Step 102 Acquire a specified system function status parameter and a power quantity parameter of the mobile smart device according to the battery usage time detection instruction.
  • the detecting instruction includes detecting a usable duration and/or a single function of the entire device.
  • the indication information of the duration is used;
  • the power parameter includes a 100% power usage duration corresponding to the model of the mobile smart device, and a current remaining battery percentage;
  • the above specified system functions may include at least one or any combination of the following: WIFI, 3G, GPS, screen brightness, Bluetooth.
  • the designated system function can include the above five system functions simultaneously.
  • the function status of the specified system is the specified system function.
  • the system function status can be expressed by the system function status parameter. For example, for WIFI, the value of parameter A is 0, indicating that the WIFI function is not enabled. A value of 1 indicates that the WIFI function is enabled. For example, for 3G, the value of parameter B is 0, indicating that the 3G function is not enabled, and the value of parameter B is 1 indicating that the 3G function is enabled.
  • Manner 1 Obtain a View view from the mobile smart device status bar, and obtain a specified system function status according to the View view.
  • the status of the WIFI needs to be checked to see if it is turned on.
  • the view view can be obtained from the status bar of the mobile smart device, and the status parameter value of the current WIFI is obtained through the view view.
  • the View view is a virtual table whose contents are defined by a query.
  • the view contains a series of column and row data with names. Row and column data comes from the tables referenced by the query that defines the view, and is dynamically generated when the view is referenced.
  • Method 2 Obtain a specified system function status parameter according to an API function provided by the mobile intelligent device operating system
  • the status of the WIFI needs to be checked to see if it is turned on.
  • the API function of the WIFI usage status provided by the operating system is directly called to obtain the current WIFI status parameter value.
  • the above are two possible implementation manners.
  • the present application does not limit the method for obtaining the specified system function status parameter of the mobile intelligent device. Any method for obtaining the specified system function status parameter can be applied to the present application.
  • the above power parameters include 100% battery usage time and the remaining battery percentage.
  • the above 100% power usage time is related to the hardware model of the mobile smart device. Different devices can be used for different durations.
  • the hardware model of the mobile smart device and the 100% power usage time can be obtained through user data statistics and testing in various environments. Correspondence relationship, and the corresponding relationship is stored in advance.
  • Manner 1 Obtain a view view from the status bar of the mobile smart device, and obtain a power parameter according to the view view.
  • the view view is obtained from the status bar of the mobile smart device, and the percentage of the remaining power of the current mobile smart device is obtained through the view view.
  • Method 2 Obtain the power parameter according to the API function provided by the mobile intelligent device operating system. Specifically, the API function of the remaining power provided by the operating system is used to obtain the remaining power percentage of the current mobile smart device.
  • the present application does not limit the method for obtaining the percentage of remaining power of the mobile smart device. Any method for obtaining the percentage of remaining power can be applied to the present application.
  • Step 103 Calculate, according to the specified system function state parameter and the power parameter, an available duration of the entire device and/or a duration of the single function;
  • the foregoing specified system function state parameter is the sum of the specified system function consumption coefficients.
  • the steps of calculating the usable duration of the entire device include:
  • the length of time the entire device can be used (100% of battery life) * The percentage of remaining battery * (1 + the sum of the system function consumption factors) * the remaining capacity coefficient; (1)
  • the duration of the 100% power usage is the length of time the entire device is used when the mobile smart device has a power of 100%;
  • the remaining battery percentage is a ratio of the current remaining power of the mobile smart device to 100% power
  • the sum of the specified system function consumption coefficients is the sum of the power consumption ratios when the specified system function state is off;
  • the remaining power coefficient is a coefficient corresponding to the remaining power range.
  • the sum of the function consumption coefficients of the specified system is related to the specified system function. If the specified system functions are different, the sum of the coefficients here is also different, for example,
  • the specified system function is WIFI + 3G + Bluetooth
  • the sum of the specified system function consumption coefficients in formula (1) WIFI status parameter + 3G status parameter + Bluetooth status parameter.
  • the foregoing specified system function status parameter may increase the sum of the length coefficients when the specified system function is turned off.
  • the steps for calculating the length of time for the single function include:
  • the length of the single function can be used (the length of time available when the battery is 100%) * The percentage of remaining battery * (Mobile smart device status coefficient + the sum of the length coefficients can be increased when the system function is turned off); (2)
  • the duration of the 100% power usage is the duration of use of the single function when the mobile smart device is 100%;
  • the remaining battery percentage is a ratio of the current remaining power of the mobile smart device to 100% power
  • the duration coefficient may be increased, which is a ratio of the length of time when the specified system function state is off;
  • the above single functions include WIFI Internet access, 3G Internet access, calling, 3G calling, movie playback, online video playback, music playback, reading articles, 2D games, 3D games, taking photos, recording videos, GPS navigation,
  • Step 104 Output the calculation result.
  • the output of the calculation result is displayed to the user to inform the mobile smart terminal of the available duration of the whole or a single function.
  • the usable time of the entire device and/or the single function can be calculated and displayed in a timed or real time, and the calculation result output is displayed to the user, so that the user can know the specific available time, so that the user It can reasonably allocate and use the power, so that users can accurately and reasonably arrange the use of mobile smart devices.
  • the application does not limit the application environment of the embodiment.
  • the embodiment shown in FIG. 1 can be applied to an IOS system or an Android system. It can also be applied to Saipan systems and the like.
  • some implementation steps may only be applied to a certain system.
  • using the view view to obtain the required parameters is usually applied to the IOS system.
  • this does not mean that the overall flow of Figure 1 can only be applied to the IOS system.
  • the API can be used to obtain the required parameters.
  • a single function for the calculation of the length of time that a single function can be used, there are some special treatments. Specifically, before calculating the available time of a single function, it is determined whether the single function of the available time length is currently available according to the system function state, if the single function is currently available. If it is not available, the calculation result of the duration of the single function can be recorded as 0. If the single function is currently available, calculate the duration of the single function according to the specified system function status parameter and the power parameter.
  • WIFI wireless fidelity
  • FaceTime available duration of online video playback.
  • the available duration of the Bluetooth audio it is necessary to calculate the available duration of the Bluetooth audio. At this time, it is first determined whether the Bluetooth function is turned on. If the status is ON, the calculation is performed by using the above formula (2). If the status is not enabled, the Bluetooth audio is available. The duration is 0.
  • the calculation result can be avoided from the fact, and the accuracy of the calculation is improved.
  • the above mobile smart device may be an iOS system device such as an iPhone 4, an iPhone 5, an iPad, or an iTouch, or a device having an android system or a device having a Symbian system.
  • the entire device of the iph 0 ne4 has a 100% power usage time of 15 hours, and the specified system functions include WIFI, 3G, GPS, screen brightness, and Bluetooth;
  • iphone4 Single features of iphone4 include WIFI Internet access, 3G Internet access, calling, 3G calling, movie playback, online video playback, music playback, reading articles, 2D games, 3D games, taking photos, recording video, GPS navigation, FaceTime, Bluetooth audio, LED Flashlight, voice memo and Siri.
  • Table 2 shows the coefficients corresponding to the different remaining power ranges in the iph 0 ne4 device:
  • Table 3 shows the ratio of the duration of each specified system when the function status is off when calculating the available duration of each individual function in the iph 0 ne4 device:
  • Tables 1 to 3 are obtained based on user data and comprehensive statistical analysis of the data obtained in various possible environmental tests, that is, an empirical value.
  • the experience values are different for different devices. of.
  • the specified system function state parameter and the power parameter of the mobile smart device are obtained, and the results obtained in the embodiment are as follows:
  • the iphone4 mobile phone has a 100% battery life of 15 hours, and the current remaining battery percentage is 50%.
  • the WIFI, 3G, and screen brightness system function status parameters of the specified system function are detected as 1, and the system function status parameters of GPS, Bluetooth, and screen brightness are detected. 0, which means that WIFI and 3G are enabled, the screen brightness is the brightest, GPS and Bluetooth are off, then combine Table 1 and Table 2, according to formula (1):
  • the length of time the entire device can be used (100% battery usage time) * Percentage of remaining battery * (1 + specified system function The sum of the consumption coefficients) * the remaining capacity coefficient; (1)
  • the specified system function status parameter and the power parameter of the mobile smart device are obtained, and the result obtained in the embodiment is as follows: iphone4 mobile phone online video playback available time For 8 hours, the current remaining battery percentage is 50%, the mobile smart device status coefficient is fixed by 0.75 according to experience, and the WIFI, 3G and screen brightness system function status parameters in the specified system function are detected as 1, GPS, Bluetooth and screen brightness.
  • the system function status is 0, which means that WIFI and 3G are enabled, the screen brightness is the brightest, GPS and Bluetooth are off, then
  • the length of the single function can be used (the length of time available when the battery is 100%) * The percentage of remaining battery * (Mobile smart device status coefficient + specify the system function to increase the sum of the length coefficients); (2)
  • the total time of the iph 0 ne4 is 6.75 hours, and the online video playback time is 3.44 hours.
  • the system designated function is defined as the above five functions, which can ensure the application.
  • the calculation of the formula provided by the present application can obtain accurate data, and avoids that the calculation formula itself is too complicated to affect the calculation efficiency.
  • the embodiment of the present invention can calculate and display the usable duration of the entire device and/or the single function, and display the calculation result output to the user, so that the user can know the specific available time, so that the user can reasonably allocate the power. It is convenient for users to arrange the use of mobile smart devices accurately and reasonably.
  • FIG. 2 it is a schematic structural diagram of a device 200 for detecting the length of use of a battery according to an embodiment of the invention.
  • the embodiment is applied to the mobile smart device, and specifically includes: a receiving unit 210, an obtaining unit 220, a calculating unit 230, and an output unit 240.
  • the receiving unit 210 is configured to receive a battery usage duration detection instruction
  • the obtaining unit 220 is configured to acquire, according to the battery usage time detection instruction, a specified system function state parameter and a power parameter of the mobile smart device, where the detecting instruction includes detecting a usable duration of the entire device and/or The single function may use the indication information of the duration; the power parameter includes a 100% power usage duration corresponding to the model of the mobile smart device, and a current remaining power percentage;
  • the calculating unit 230 is configured to calculate, according to the specified system function state parameter and the power parameter, a usable duration of the entire device and/or a usable duration of the single function;
  • the output unit 240 is configured to output the calculation result.
  • the power parameter acquisition sub-unit 222 is configured to obtain a power parameter according to an API function provided by the mobile smart device operating system; or, configured to acquire a View view from the mobile electronic device status bar, and obtain a specified system function according to the view view. status.
  • the calculating unit 230 may specifically include:
  • the entire device can use the duration calculation sub-unit (not shown) to calculate the length of time the entire device can be used.
  • the length of the entire device can be used (100% battery usage time) * The remaining battery percentage * (1 + specified The sum of the system function consumption coefficients) * the remaining power factor;
  • the 100% power usage time is the duration of use of the entire device when the mobile smart device is 100%;
  • the remaining battery percentage is the current mobile smart device current
  • the specified system function consumption coefficient is the ratio of the power consumption increased when the specified system function state is off;
  • the remaining power coefficient is the coefficient corresponding to the remaining power range;
  • the specified system function status parameter is the sum of the system function consumption coefficients of the specified system;
  • the single function can be used to calculate the sub-units (not shown), which can be used to calculate the available duration of a single function.
  • the length of the single function can be used (the length of time available when the battery is 100%) * The percentage of remaining battery * (Mobile smart device status coefficient + specified) When the system function is off, the sum of the duration coefficients may be increased); the 100% power usage duration is the duration of the single function when the mobile smart device is 100%; and the remaining battery percentage is the current mobile smart device The ratio of the remaining power to the 100% power; the specified system function is turned off to increase the length coefficient, which is the ratio of the time period when the specified system function state is off; the mobile smart device state coefficient is based on the number of designated system functions A coefficient value determined empirically, wherein the specified system function state parameter increases the sum of the length coefficients when the specified system function is turned off.
  • the specified system function includes at least one or any combination of the following: WIFI, 3G, GPS, screen brightness, Bluetooth.
  • the single function includes WIFI Internet access, 3G Internet access, call, 3G call, movie play, online video broadcast Play, music, read articles, 2D games, 3D games, take photos, record videos, GPS navigation, FaceTime, Bluetooth audio, LED flashlights, voice memos or Siri.
  • the device provided by the embodiment of the present invention can calculate and display the usable duration of the entire device and/or a single function, and display the output of the calculation result to the user, so that the user can know the specific available duration, so that the user can perform the reasonably.
  • the allocation of electricity is used to facilitate the user to accurately and reasonably arrange the use of mobile smart devices.
  • the device 300 of the present embodiment includes: a memory 3 10, a processor 320, and a display device 330.
  • the memory 3 10 is configured to store a specified system function state and a power parameter of the mobile smart device; the processor 320 is configured to receive a battery usage duration detection instruction; and acquire the designated system of the mobile smart device according to the battery usage duration detection instruction. a function status parameter and a power parameter; wherein the detection instruction includes indication information for detecting a usable duration of the entire device and/or a duration of use of the single function; the power parameter includes a model corresponding to the model of the mobile smart device 100% power usage duration, and the current remaining battery percentage; Calculate the usable duration of the entire device and/or the length of time that a single function can be used according to the specified system function status parameter and the power parameter;
  • the display device 330 is for outputting the calculation result.
  • the device provided by the embodiment of the present invention can calculate and display the usable duration of the entire device and/or the single function in a timed or real time, and display the calculation result to the user, so that the user can know the specific available time.
  • the device embodiment is described separately by function into various units.
  • the functions of the various units may be implemented in one or more software and/or hardware in the practice of the invention.
  • the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
  • a computer device which may be a personal computer, server, or network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

A method for detecting a length of time of use of a battery is applied in a mobile intelligent device and comprises: receiving an instruction for detecting a length of time of use of a battery (101); obtaining a state parameter and electric quantity parameter of a specified system function according to the instruction for detecting a length of time of use of a battery (102); calculating, according to the state parameter and electric quantity parameter of the specified system function, a length of time in which the entire device can be used and/or a length of time in which a single function can be used (103); and outputting a calculation result (104). Also disclosed are an apparatus and a device for detecting a length of time of use of a battery. By means of the method, the apparatus, and the device, a length of time in which an entire device can be used and/or a length of time in which a single function can be used can be calculated in real time according to the remaining capacity of a battery and be displayed, which helps a user to implement appropriate allocation and use of electricity.

Description

一种检测电池使用时长的方法、 装置及设备  Method, device and device for detecting battery use duration
技术领域 Technical field
本发明涉及电池电量检测技术领域, 特别涉及一种检测电池使用时长的方法、 装置及设备。 背景技术  The present invention relates to the field of battery power detection technology, and in particular, to a method, device and device for detecting a battery usage time. Background technique
目前, 移动智能设备基本都提供了电池电量的检测功能, 该电池电量的检测结 果通常在移动智能设备的状态栏以图标的方式显示。 例如, 在状态栏有个电池小图 标, 通过该小图标内所填充颜色的比例来显示该移动智能设备当前的剩余电量。  Currently, mobile smart devices basically provide a battery power detection function, and the battery power detection result is usually displayed as an icon in the status bar of the mobile smart device. For example, there is a small battery icon in the status bar, and the current remaining capacity of the mobile smart device is displayed by the proportion of the color filled in the small icon.
在实施现有技术的过程中, 发明人发明现有技术至少存在以下问题, 对于用户而言, 通过现有技术的检测方法只能获知剩余电量与总电量的比例, 例如, 当前剩余 75% 或 1/4 等, 无法根据所显示的剩余电量获知具体的可使用时长, 不能让用户精准合 理的安排移动智能设备的使用方式。 发明内容  In the process of implementing the prior art, the inventors have invented the prior art at least the following problems. For the user, only the ratio of the remaining power to the total power can be known by the prior art detection method, for example, the current remaining 75% or 1/4, etc., can not know the specific usable time according to the remaining power displayed, and can not let the user arrange the mobile smart device accurately and reasonably. Summary of the invention
本发明实施例提供一种检测电池使用时长的方法、 装置及设备, 让用户能够获 知具体的可用时长, 以便于用户精准合理的安排移动智能设备的使用方式。  The embodiment of the invention provides a method, a device and a device for detecting the length of use of the battery, so that the user can know the specific available time, so that the user can accurately and reasonably arrange the use mode of the mobile smart device.
为达到上述目的, 本发明实施例提供了一种检测电池使用时长的方法, 应用于 移动智能设备中, 所述方法包括:  In order to achieve the above object, an embodiment of the present invention provides a method for detecting a battery usage time, which is applied to a mobile smart device, where the method includes:
接收电池使用时长检测指令;  Receiving a battery usage time detection command;
根据所述电池使用时长检测指令, 获取所述移动智能设备的指定系统功能状态 参数及电量参数; 其中, 所述检测指令中包括检测整台设备的可使用时长和 /或单项 功能可使用时长的指示信息; 所述电量参数包括与所述移动智能设备的型号所对应 的 100%电量使用时长, 以及当前剩余电量百分比;  Obtaining a specified system function status parameter and a power quantity parameter of the mobile smart device according to the battery usage time detection instruction; wherein the detecting instruction includes detecting a usable duration of the entire device and/or a duration of a single function. Instructing information; the power parameter includes a 100% power usage duration corresponding to a model of the mobile smart device, and a current remaining power percentage;
根据所述指定系统功能状态参数及电量参数计算整台设备的可使用时长和 /或 单项功能可使用时长;  Calculating the usable duration of the entire device and/or the length of time that the single function can be used according to the specified system function state parameter and the power parameter;
输出所述计算结果。  The calculation result is output.
其中, 所述指定系统功能状态参数为指定系统功能消耗系数之和;  The specified system function status parameter is a sum of the system function consumption coefficients of the specified system;
根据所述指定系统功能状态及电量参数计算整台设备的可使用时长的步骤包 括:  The steps of calculating the usable duration of the entire device according to the specified system function status and the power parameter include:
整台设备可使用时长 =(100%电量使用时长 )*剩余电量百分比 *(1+指定系统功能 消耗系数之和)*剩余电量系数; The length of time the entire device can be used = (100% battery usage time) * Percentage of remaining battery * (1 + specified system function The sum of the consumption coefficients) * the remaining capacity coefficient;
其中,  among them,
所述 100%电量使用时长, 是所述移动智能设备电量为 100%时整台设备使用时 长;  The duration of the 100% power usage is the length of time the entire device is used when the mobile smart device has a power of 100%;
所述剩余电量百分比, 是所述移动智能设备当前的剩余电量与 100%电量的比 值;  The remaining battery percentage is a ratio of the current remaining power of the mobile smart device to 100% power;
所述指定系统功能消耗系数, 是指定系统功能状态为关闭时所增加的电量消耗 比率;  The specified system function consumption coefficient is a ratio of power consumption increased when the system function state is specified to be off;
所述剩余电量系数为剩余电量范围所对应的系数。  The remaining power coefficient is a coefficient corresponding to the remaining power range.
其中,所述指定系统功能状态参数为指定系统功能关闭时可增加时长系数之和; 根据所述指定系统功能状态参数及电量参数计算单项功能可使用时长的步骤包 括:  The specified system function status parameter may increase the sum of the duration coefficients when the specified system function is closed; and the steps of calculating the length of the single function according to the specified system function status parameter and the power parameter include:
单项功能可使用时长 = (电量 100%时可用时长) *剩余电量百分比 * (移动智能设备状 态系数 +指定系统功能关闭时可增加时长系数之和);  The length of the single function can be used = (the length of time available when the battery is 100%) * The percentage of remaining battery * (Mobile smart device status coefficient + specify the sum of the length coefficients when the system function is off);
其中,  among them,
所述 100%电量使用时长, 是所述移动智能设备电量为 100%时单项功能使用时 长;  The duration of the 100% power usage is the duration of use of the single function when the mobile smart device is 100%;
所述剩余电量百分比, 是所述移动智能设备当前的剩余电量与 100%电量的比 值;  The remaining battery percentage is a ratio of the current remaining power of the mobile smart device to 100% power;
所述指定系统功能关闭可增加时长系数, 是指定系统功能状态为关闭时所增加 的时长比率;  The specified system function is turned off to increase the duration coefficient, which is an increase in the duration of the system when the system function state is off;
所述移动智能设备状态系数, 是根据指定系统功能的个数依据经验确定的系数值。 其中, 在计算单项功能可使用时长之前, 还包括:  The mobile smart device state coefficient is a coefficient value determined empirically according to the number of specified system functions. Before calculating the length of time that a single function can be used, it also includes:
根据系统功能状态判断待计算可用时长的单项功能当前是否可用, 若单项功能 当前不可用, 则将该单项功能可使用时长的计算结果记为 0, 若单项功能当前可用, 再 根据所述指定系统功能状态参数及电量参数计算单项功能可使用时长。  According to the system function status, it is judged whether the single function of the available time is currently available. If the single function is currently unavailable, the calculation result of the length of the single function can be recorded as 0. If the single function is currently available, then according to the specified system. The function status parameter and the power parameter calculation can be used for a single function.
其中, 所述获取移动智能设备的指定系统功能状态参数的步骤包括:  The step of acquiring the specified system function status parameter of the mobile smart device includes:
从所述移动智能设备状态栏获取 View视图, 根据所述 View视图获取指定系统功 能状态;  Obtaining a view view from the mobile smart device status bar, and acquiring a specified system function state according to the view view;
或者,  Or,
根据移动智能设备的操作系统所提供的应用程序编程接口函数来获取指定系统 功能状态; 其中, 所述系统功能状态通过系统功能状态参数表示。 Obtaining a specified system function state according to an application programming interface function provided by an operating system of the mobile smart device; The system function status is represented by a system function status parameter.
其中, 所述获取移动智能设备当前剩余电量百分比的步骤包括:  The step of obtaining the current remaining power percentage of the mobile smart device includes:
从所述移动智能设备的状态栏获取 View视图, 根据所述 View视图获取移动智能 设备当前剩余电量百分比;  Obtaining a view view from a status bar of the mobile smart device, and obtaining a percentage of a current remaining power of the mobile smart device according to the view view;
或者,  Or,
根据移动智能设备的操作系统所提供的应用程序编程接口函数来获取移动智能 设备当前剩余电量百分比。  The percentage of the current remaining capacity of the mobile smart device is obtained according to an application programming interface function provided by the operating system of the mobile smart device.
其中, 所述指定系统功能至少包括以下其中之一或任意组合: WIFI、 3G、 GPS、 屏幕亮度、 蓝牙。  The designated system function includes at least one or any combination of the following: WIFI, 3G, GPS, screen brightness, Bluetooth.
其中, 所述单项功能包括 WIFI上网、 3G上网、 通话、 3G通话、 电影播放、 在线视频 播放、音乐播放、阅读文章、 2D游戏、 3D游戏、拍摄照片、录制视频、 GPS导航、 FaCeTime、 蓝牙音讯、 LED手电筒、 语音备忘录或 Siri。 The single item includes WIFI Internet access, 3G Internet access, call, 3G call, movie play, online video play, music play, reading articles, 2D games, 3D games, taking photos, recording video, GPS navigation, Fa Ce Time, Bluetooth audio, LED flashlight, voice memo or Siri.
本发明实施例还提供了一种检测电池使用时长的装置,应用于移动智能设备中, 所述装置包括:  The embodiment of the invention further provides a device for detecting the duration of use of the battery, which is applied to the mobile smart device, the device comprising:
接收单元, 用于接收电池使用时长检测指令;  a receiving unit, configured to receive a battery usage duration detection instruction;
获取单元, 用于根据所述电池使用时长检测指令, 获取所述移动智能设备的指 定系统功能状态参数及电量参数; 其中, 所述检测指令中包括检测整台设备的可使 用时长和 /或单项功能可使用时长的指示信息; 所述电量参数包括与所述移动智能设 备的型号所对应的 100%电量使用时长, 以及当前剩余电量百分比;  An acquiring unit, configured to acquire, according to the battery usage time detection instruction, a specified system function state parameter and a power parameter of the mobile smart device, where the detecting instruction includes detecting a usable duration and/or a single item of the entire device The function may use the indication information of the duration; the power parameter includes a 100% power usage duration corresponding to the model of the mobile smart device, and a current remaining battery percentage;
计算单元, 用于根据所述指定系统功能状态参数及电量参数计算整台设备的可 使用时长和 /或单项功能可使用时长;  a calculating unit, configured to calculate, according to the specified system function state parameter and the power parameter, a usable duration of the entire device and/or a usable duration of the single function;
输出单元, 用于输出所述计算结果。  And an output unit, configured to output the calculation result.
其中, 所述计算单元包括:  The computing unit includes:
整台设备可使用时长计算子单元, 用于计算整台设备可使用时长, 其中, 整台 设备可使用时长 =(100%电量使用时长 )*剩余电量百分比 *(1+指定系统功能消耗系数 之和) *剩余电量系数; 所述 100%电量使用时长, 是所述移动智能设备电量为 100%时 整台设备使用时长; 所述剩余电量百分比, 是所述移动智能设备当前的剩余电量与 The entire device can use the duration calculation sub-unit to calculate the length of time that the entire device can be used. The length of time that the entire device can be used = (100% battery usage time) * Percentage of remaining battery * (1 + specified system function consumption coefficient) And) * the remaining capacity coefficient; the 100% power usage duration is the duration of use of the entire device when the mobile smart device is 100%; the remaining battery percentage is the current remaining power of the mobile smart device
100%电量的比值; 所述指定系统功能消耗系数, 是指定系统功能状态为关闭时所增 加的电量消耗比率; 所述剩余电量系数为剩余电量范围所对应的系数; 其中, 所述 指定系统功能状态参数为指定系统功能消耗系数之和; The ratio of the 100% power consumption; the specified system function consumption coefficient is a ratio of the power consumption that is added when the system function state is closed; the remaining power coefficient is a coefficient corresponding to the remaining power range; wherein, the specified system function The status parameter is the sum of the system function consumption coefficients of the specified system;
和 /或,  and / or,
单项功能可用时长计算子单元, 用于计算单项功能可用时长, 其中, 单项功能可 使用时长= (电量 100%时可用时长) *剩余电量百分比 * (移动智能设备状态系数 +指定系 统功能关闭时可增加时长系数之和);所述 100%电量使用时长, 是所述移动智能设备 电量为 100%时单项功能使用时长; 所述剩余电量百分比, 是所述移动智能设备当前 的剩余电量与 100%电量的比值; 所述指定系统功能关闭可增加时长系数, 是指定系 统功能状态为关闭时所增加的时长比率; 所述移动智能设备状态系数, 是根据指定系 统功能的个数依据经验确定的系数值, 其中, 所述指定系统功能状态参数为指定系统 功能关闭时可增加时长系数之和。 The single function can be used to calculate the sub-unit length, which can be used to calculate the available duration of a single function. Length of use = (the length of time available when the battery is 100%) * Percentage of remaining battery * (Mobile smart device status coefficient + specify the sum of the length coefficients when the system function is turned off); the 100% battery usage time is the mobile smart device The duration of the single function when the power is 100%; the percentage of the remaining power is the ratio of the current remaining power of the mobile smart device to the 100% power; the specified system function is turned off to increase the duration coefficient, and the specified system function state is The time ratio of the time when the mobile device is changed according to the number of the specified system functions, wherein the specified system function state parameter increases the length coefficient when the specified system function is closed. Sum.
其中, 所述指定系统功能至少包括以下其中之一或任意组合: WIFI、 3G、 GPS、 屏幕亮度、 蓝牙。  The designated system function includes at least one or any combination of the following: WIFI, 3G, GPS, screen brightness, Bluetooth.
其中, 所述单项功能包括 WIFI上网、 3G上网、 通话、 3G通话、 电影播放、 在线 视频播放、 音乐播放、 阅读文章、 2D游戏、 3D游戏、 拍摄照片、 录制视频、 GPS导 航、 FaceTime、 蓝牙音讯、 LED手电筒、 语音备忘录或 Siri。  The single item includes WIFI Internet access, 3G Internet access, call, 3G call, movie play, online video play, music play, reading articles, 2D games, 3D games, taking photos, recording video, GPS navigation, FaceTime, Bluetooth audio , LED flashlight, voice memo or Siri.
本发明实施例还提供了一种移动智能设备, 所述移动智能设备包括:  An embodiment of the present invention further provides a mobile smart device, where the mobile smart device includes:
存储器, 用于存储所述移动智能设备的指定系统功能状态及电量参数; 处理器, 用于接收电池使用时长检测指令; 根据所述电池使用时长检测指令, 获取所述移动智能设备的指定系统功能状态参数及电量参数; 其中, 所述检测指令 中包括检测整台设备的可使用时长和 /或单项功能可使用时长的指示信息; 所述电量 参数包括与所述移动智能设备的型号所对应的 100%电量使用时长, 以及当前剩余电 量百分比; 根据所述指定系统功能状态参数及电量参数计算整台设备的可使用时长 和 /或单项功能可使用时长;  a memory, configured to store a specified system function state and a power parameter of the mobile smart device; a processor, configured to receive a battery usage time detection instruction; and obtain a specified system function of the mobile smart device according to the battery usage time detection instruction a status parameter and a power parameter; wherein the detection instruction includes indication information for detecting a usable duration of the entire device and/or a usable duration of the single function; the power parameter includes a model corresponding to the model of the mobile smart device 100% power usage time, and the current remaining battery percentage; Calculate the usable duration of the entire device and/or the length of time that a single function can be used according to the specified system function status parameter and power parameter;
显示设备, 用于输出所述计算结果。  a display device, configured to output the calculation result.
由上述技术方案可见, 应用本发明实施例所提供的检测电池使用时长的方法、 装置及设备, 通过获取移动智能设备的指定系统功能状态及电量参数, 根据获取的 指定系统功能状态参数及电量参数计算整台设备的可使用时长和 /或单项功能可使 用时长。 本发明实施例能够定时或实时的计算并显示整台设备和 /或单项功能的可使 用时长, 并将计算结果输出显示给用户, 让用户能够获知具体的可用时长, 以使用 户能够合理进行电量的分配使用, 便于用户精准合理的安排移动智能设备的使用方 式。 当然, 实施本发明的任一产品或方法必不一定需要同时达到以上所述的所有优 点。 附图说明  The method, the device and the device for detecting the battery usage time provided by the embodiment of the present invention can be obtained by acquiring the specified system function state and the power parameter of the mobile smart device, according to the obtained specified system function state parameter and the power parameter. Calculate the length of time that the entire device can be used and/or the length of time that a single function can be used. The embodiment of the present invention can calculate and display the usable duration of the entire device and/or the single function in a timed or real time, and display the calculation result output to the user, so that the user can know the specific available time, so that the user can reasonably perform the power. The distribution is used to facilitate the user to accurately and reasonably arrange the use of mobile smart devices. Of course, any product or method embodying the present invention necessarily does not necessarily require all of the advantages described above to be achieved at the same time. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例中所需要使用的 附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附 图获得其他的附图。 In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following needs to be used in the embodiment. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are incorporated in the drawings Other drawings.
图 1是根据本发明实施例的一种检测电池使用时长的方法流程图;  1 is a flow chart of a method for detecting a battery usage time according to an embodiment of the present invention;
图 2是根据本发明实施例的一种检测电池使用时长的装置结构示意图; 图 3是根据本发明实施例的一种检测电池使用时长的设备结构示意图。 具体实施方式  2 is a schematic structural diagram of an apparatus for detecting a battery usage time according to an embodiment of the present invention; and FIG. 3 is a schematic structural diagram of an apparatus for detecting a battery usage time according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实 施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下 所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
参见图 1, 其是根据本发明实施例的一种检测电池使用时长的方法流程图, 本 实施例应用于移动智能设备, 具体包括:  Referring to FIG. 1, which is a flowchart of a method for detecting a battery usage time according to an embodiment of the present invention, the embodiment is applied to a mobile smart device, and specifically includes:
步骤 101, 接收电池使用时长检测指令;  Step 101: Receive a battery usage duration detection instruction.
这里, 电池使用时长检测指令可以是移动智能设备定时发出的, 也可以是根据 用户的指令触发的, 本申请并不对检测指令的触发时机及触发方式做限定, 也就是 说, 在本申请中, 可以定时或实时进行检测操作。  Here, the battery usage detection command may be periodically issued by the mobile smart device, or may be triggered according to the user's instruction. The application does not limit the trigger timing and trigger mode of the detection command, that is, in the present application, The detection operation can be performed periodically or in real time.
上述指示信息既可以通过不同的参数来表示, 也可以通过同一参数的不同数值 来表示, 本申请中并对指示信息的具体表现形式做限定。  The above indication information may be represented by different parameters or by different values of the same parameter. In the present application, the specific expression form of the indication information is limited.
步骤 102, 根据所述电池使用时长检测指令, 获取所述移动智能设备的指定系统 功能状态参数及电量参数; 其中, 所述检测指令中包括检测整台设备的可使用时长 和 /或单项功能可使用时长的指示信息; 所述电量参数包括与所述移动智能设备的型 号所对应的 100%电量使用时长, 以及当前剩余电量百分比;  Step 102: Acquire a specified system function status parameter and a power quantity parameter of the mobile smart device according to the battery usage time detection instruction. The detecting instruction includes detecting a usable duration and/or a single function of the entire device. The indication information of the duration is used; the power parameter includes a 100% power usage duration corresponding to the model of the mobile smart device, and a current remaining battery percentage;
上述指定系统功能可以至少包括以下其中之一或任意组合: WIFI、 3G、 GPS、 屏幕亮度、 蓝牙。 在一个较佳实施例中, 指定系统功能可以同时包括上述五项系统 功能。  The above specified system functions may include at least one or any combination of the following: WIFI, 3G, GPS, screen brightness, Bluetooth. In a preferred embodiment, the designated system function can include the above five system functions simultaneously.
上述指定系统功能状态, 是指定的系统功能是否处于开启状态, 该系统功能状 态可以通过系统功能状态参数来表示, 例如, 对于 WIFI而言, 参数 A的值为 0, 表 示 WIFI功能未开启, 参数 A的值为 1表示 WIFI功能开启; 再例如, 对应 3G而言, 参数 B的值为 0, 表示 3G功能未开启, 参数 B的值为 1表示 3G功能开启。  The function status of the specified system is the specified system function. The system function status can be expressed by the system function status parameter. For example, for WIFI, the value of parameter A is 0, indicating that the WIFI function is not enabled. A value of 1 indicates that the WIFI function is enabled. For example, for 3G, the value of parameter B is 0, indicating that the 3G function is not enabled, and the value of parameter B is 1 indicating that the 3G function is enabled.
对于获取移动智能设备的指定系统功能状态参数的方法, 有以下几种可能的实 现方式: There are several possible ways to obtain the specified system function status parameters of the mobile smart device. Current mode:
方式一: 从所述移动智能设备状态栏获取 View视图, 根据所述 View视图获取 指定系统功能状态。  Manner 1: Obtain a View view from the mobile smart device status bar, and obtain a specified system function status according to the View view.
例如, 需要对 WIFI的状态进行检测, 以确认其是否开启。 此时, 可以从移动智 能设备的状态栏获取 View视图, 通过该 View视图来获取当前 WIFI的状态参数值。 这里, 根据现有技术可知, View视图是一个虚拟表, 其内容由查询定义。 视图包含 一系列带有名称的列和行数据。 行和列数据来自由定义视图的查询所引用的表, 并 且在引用视图时动态生成。  For example, the status of the WIFI needs to be checked to see if it is turned on. At this time, the view view can be obtained from the status bar of the mobile smart device, and the status parameter value of the current WIFI is obtained through the view view. Here, according to the prior art, the View view is a virtual table whose contents are defined by a query. The view contains a series of column and row data with names. Row and column data comes from the tables referenced by the query that defines the view, and is dynamically generated when the view is referenced.
方式二: 根据移动智能设备操作系统内部提供的 API函数来获取指定系统功能 状态参数;  Method 2: Obtain a specified system function status parameter according to an API function provided by the mobile intelligent device operating system;
例如, 需要对 WIFI的状态进行检测, 以确认其是否开启。 通常, 直接调用操作 系统内部提供的 WIFI使用状态的 API函数, 来获取当前 WIFI的状态参数值。  For example, the status of the WIFI needs to be checked to see if it is turned on. Usually, the API function of the WIFI usage status provided by the operating system is directly called to obtain the current WIFI status parameter value.
以上是两种可能的实现方式, 本申请并不对获取移动智能设备的指定系统功能 状态参数的方法做限定, 任何可以获得指定系统功能状态参数的方法都可以应用于 本申请中。  The above are two possible implementation manners. The present application does not limit the method for obtaining the specified system function status parameter of the mobile intelligent device. Any method for obtaining the specified system function status parameter can be applied to the present application.
上述电量参数包括 100%电量使用时长, 以及剩余电量百分比。  The above power parameters include 100% battery usage time and the remaining battery percentage.
上述 100%电量使用时长与移动智能设备的硬件型号相关,不同的设备可用时长 是不同的, 可用通过用户数据统计、 以及在各环境中测试获得移动智能设备的硬件 型号与 100%电量使用时长的对应关系, 并预先存储该对应关系。  The above 100% power usage time is related to the hardware model of the mobile smart device. Different devices can be used for different durations. The hardware model of the mobile smart device and the 100% power usage time can be obtained through user data statistics and testing in various environments. Correspondence relationship, and the corresponding relationship is stored in advance.
对于剩余电量百分比, 有以下几种可能的实现方式:  There are several possible implementations for the remaining battery percentage:
方式一: 从所述移动智能设备状态栏的获取 View视图, 根据所述 View视图获 取电量参数。  Manner 1: Obtain a view view from the status bar of the mobile smart device, and obtain a power parameter according to the view view.
具体的, 从移动智能设备的状态栏获取 View视图, 通过该 View视图来获取当 前当前移动智能设备的剩余电量百分比。  Specifically, the view view is obtained from the status bar of the mobile smart device, and the percentage of the remaining power of the current mobile smart device is obtained through the view view.
方式二: 根据移动智能设备操作系统内部提供的 API函数来获取电量参数; 具体的, 通过调用操作系统内部提供的剩余电量的 API函数, 来获取当前移动 智能设备的剩余电量百分比。  Method 2: Obtain the power parameter according to the API function provided by the mobile intelligent device operating system. Specifically, the API function of the remaining power provided by the operating system is used to obtain the remaining power percentage of the current mobile smart device.
以上是两种可能的实现方式, 本申请并不对获取移动智能设备的剩余电量百分 比的方法做限定, 任何可以获得剩余电量百分比的方法都可以应用于本申请中。  The above are two possible implementation manners. The present application does not limit the method for obtaining the percentage of remaining power of the mobile smart device. Any method for obtaining the percentage of remaining power can be applied to the present application.
步骤 103, 根据所述指定系统功能状态参数及电量参数计算整台设备的可使用 时长和 /或单项功能可使用时长;  Step 103: Calculate, according to the specified system function state parameter and the power parameter, an available duration of the entire device and/or a duration of the single function;
这里, 对计算整台设备的可使用时长和单项功能可使用时长分别进行说明: 在计算整台设备的可使用时长时, 前述指定系统功能状态参数为指定系统功能 消耗系数之和, 具体的, 计算整台设备的可使用时长的步骤包括: Here, the length of use of the entire device and the length of time that a single function can be used are described separately: When calculating the usable duration of the entire device, the foregoing specified system function state parameter is the sum of the specified system function consumption coefficients. Specifically, the steps of calculating the usable duration of the entire device include:
整台设备可使用时长 =(100%电量使用时长 )*剩余电量百分比 *(1+指定系统功能 消耗系数之和)*剩余电量系数; (1 )  The length of time the entire device can be used = (100% of battery life) * The percentage of remaining battery * (1 + the sum of the system function consumption factors) * the remaining capacity coefficient; (1)
上述公式 (1 ) 中,  In the above formula (1),
所述 100%电量使用时长, 是所述移动智能设备电量为 100%时整台设备使用时 长;  The duration of the 100% power usage is the length of time the entire device is used when the mobile smart device has a power of 100%;
所述剩余电量百分比, 是所述移动智能设备当前的剩余电量与 100%电量的比 值;  The remaining battery percentage is a ratio of the current remaining power of the mobile smart device to 100% power;
所述指定系统功能消耗系数之和, 是各指定系统功能状态为关闭时所增加的电 量消耗比率之和;  The sum of the specified system function consumption coefficients is the sum of the power consumption ratios when the specified system function state is off;
所述剩余电量系数为剩余电量范围所对应的系数。  The remaining power coefficient is a coefficient corresponding to the remaining power range.
需要说明的是, 所述指定系统功能消耗系数之和是与指定的系统功能相关的, 如果指定的系统功能不同, 这里的系数之和也不同, 例如,  It should be noted that the sum of the function consumption coefficients of the specified system is related to the specified system function. If the specified system functions are different, the sum of the coefficients here is also different, for example,
如果指定系统功能为 WIFI + 3G + GPS +屏幕亮度状态 +蓝牙, 则公式 (1 ) 中的 指定系统功能消耗系数之和 =WIFI状态参数 + 3G状态参数 + GPS状态参数 +屏幕 亮度状态参数 +蓝牙状态参数;  If the specified system function is WIFI + 3G + GPS + screen brightness status + Bluetooth, then the sum of the specified system function consumption coefficients in formula (1) = WIFI status parameter + 3G status parameter + GPS status parameter + screen brightness status parameter + Bluetooth State parameter
如果指定系统功能为 WIFI + 3G +蓝牙, 则公式 (1 ) 中的指定系统功能消耗系 数之和 =WIFI状态参数 + 3G状态参数 + 蓝牙状态参数。  If the specified system function is WIFI + 3G + Bluetooth, the sum of the specified system function consumption coefficients in formula (1) = WIFI status parameter + 3G status parameter + Bluetooth status parameter.
在计算单项功能可使用时长时, 前述指定系统功能状态参数为指定系统功能关 闭时可增加时长系数之和, 具体的, 计算单项功能可使用时长的步骤包括:  When calculating the length of time that a single function can be used, the foregoing specified system function status parameter may increase the sum of the length coefficients when the specified system function is turned off. Specifically, the steps for calculating the length of time for the single function include:
单项功能可使用时长 = (电量 100%时可用时长) *剩余电量百分比 * (移动智能设备状 态系数 +指定系统功能关闭时可增加时长系数之和); (2)  The length of the single function can be used = (the length of time available when the battery is 100%) * The percentage of remaining battery * (Mobile smart device status coefficient + the sum of the length coefficients can be increased when the system function is turned off); (2)
上述公式 (2) 中,  In the above formula (2),
所述 100%电量使用时长, 是所述移动智能设备电量为 100%时单项功能使用时 长;  The duration of the 100% power usage is the duration of use of the single function when the mobile smart device is 100%;
所述剩余电量百分比, 是所述移动智能设备当前的剩余电量与 100%电量的比 值;  The remaining battery percentage is a ratio of the current remaining power of the mobile smart device to 100% power;
所述指定系统功能关闭时可增加时长系数, 是指定系统功能状态为关闭时所增 加的时长比率;  When the designated system function is turned off, the duration coefficient may be increased, which is a ratio of the length of time when the specified system function state is off;
所述移动智能设备状态系数, 是根据指定系统功能的个数依据经验确定的系数值。 需要说明的是, 所述指定系统功能关闭时可增加时长系数之和是与指定的系统功 能相关的, 如果指定的系统功能不同, 这里的系数之和也不同, 例如, 如果指定系统功能为 WIFI + 3G + GPS +屏幕亮度状态 +蓝牙, 则公式 (2) 中的 指定系统功能关闭时可增加时长系数之和 =WIFI状态参数 + 3G状态参数 + GPS状 态参数 +屏幕亮度状态参数 +蓝牙状态参数; The mobile smart device state coefficient is a coefficient value determined empirically according to the number of specified system functions. It should be noted that when the specified system function is turned off, the sum of the duration coefficients can be increased with the specified system function. Corresponding, if the specified system functions are different, the sum of the coefficients here is also different. For example, if the specified system function is WIFI + 3G + GPS + screen brightness status + Bluetooth, the specified system function in formula (2) is turned off. The sum of the length coefficients can be increased = WIFI state parameter + 3G state parameter + GPS state parameter + screen brightness state parameter + Bluetooth state parameter;
如果指定系统功能为 3G +屏幕亮度状态 +蓝牙, 则公式 (2) 中的指定系统功能 关闭时可增加时长系数之和 =3G状态参数 +屏幕亮度状态参数 +蓝牙状态参数。  If the specified system function is 3G + screen brightness status + Bluetooth, the specified system function in equation (2) can be added to increase the sum of the length coefficients = 3G status parameter + screen brightness status parameter + Bluetooth status parameter.
上述单项功能包括 WIFI上网、 3G上网、 通话、 3G通话、 电影播放、 在线视频播放、 音 乐播放、 阅读文章、 2D游戏、 3D游戏、 拍摄照片、 录制视频、 全球定位系统(GPS )导航、 The above single functions include WIFI Internet access, 3G Internet access, calling, 3G calling, movie playback, online video playback, music playback, reading articles, 2D games, 3D games, taking photos, recording videos, GPS navigation,
FaceTime、 蓝牙音讯、 LED手电筒、 语音备忘录或 Siri。 FaceTime, Bluetooth audio, LED flashlight, voice memo or Siri.
步骤 104, 输出所述计算结果。  Step 104: Output the calculation result.
具体的, 将计算结果输出显示给用户, 以告知移动智能终端整体或某个单项功 能的可用时长。  Specifically, the output of the calculation result is displayed to the user to inform the mobile smart terminal of the available duration of the whole or a single function.
可见, 应用本发明实施例, 能够定时或实时的计算并显示整台设备和 /或单项功 能的可使用时长, 并将计算结果输出显示给用户, 让用户能够获知具体的可用时长, 以使用户能够合理进行电量的分配使用, 便于用户精准合理的安排移动智能设备的 使用方式。  It can be seen that, by applying the embodiment of the present invention, the usable time of the entire device and/or the single function can be calculated and displayed in a timed or real time, and the calculation result output is displayed to the user, so that the user can know the specific available time, so that the user It can reasonably allocate and use the power, so that users can accurately and reasonably arrange the use of mobile smart devices.
需要说明的是, 无论当前是否有应用正在运行中, 都可以应用图 1所示流程计算 整台设备的可用时长。  It should be noted that, regardless of whether an application is currently running, the process shown in Figure 1 can be applied to calculate the available time of the entire device.
需要说明的是, 对于图 1所示实施例, 本申请并不限定该实施例的应用环境, 例如, 图 1所示实施例既可以应用于 IOS系统, 也可以应用于安卓 (android )系统, 还可以应用于塞班系统等。 当然, 对于某些实施步骤可能仅能应用于某个系统, 例 如, 利用 view视图来获得所需的参数通常应用于 IOS系统, 但是, 这并不意味着图 1整体流程只能应用于 IOS系统, 例如, 当图 1所示的整体流程应用于 android系统 时, 完全可以采用 API的方式来获得所需的参数。  It should be noted that, for the embodiment shown in FIG. 1 , the application does not limit the application environment of the embodiment. For example, the embodiment shown in FIG. 1 can be applied to an IOS system or an Android system. It can also be applied to Saipan systems and the like. Of course, some implementation steps may only be applied to a certain system. For example, using the view view to obtain the required parameters is usually applied to the IOS system. However, this does not mean that the overall flow of Figure 1 can only be applied to the IOS system. For example, when the overall process shown in Figure 1 is applied to the android system, the API can be used to obtain the required parameters.
需要说明的是, 对于单项功能可使用时长的计算, 有一些特殊处理, 具体为, 在 计算单项功能可用时长之前, 根据系统功能状态判断待计算可用时长的单项功能当 前是否可用, 若单项功能当前不可用, 则将该单项功能可使用时长的计算结果记为 0, 若单项功能当前可用,再根据所述指定系统功能状态参数及电量参数计算单项功能可 使用时长。  It should be noted that, for the calculation of the length of time that a single function can be used, there are some special treatments. Specifically, before calculating the available time of a single function, it is determined whether the single function of the available time length is currently available according to the system function state, if the single function is currently available. If it is not available, the calculation result of the duration of the single function can be recorded as 0. If the single function is currently available, calculate the duration of the single function according to the specified system function status parameter and the power parameter.
例如, 需要计算 WIFI的可用时长, 或 FaceTime的可用时长, 或在线视频播放的可用 时长, 此时, 先判断 WIFI功能是否为开启状态, 若其状态为开启, 再利用上述公式 (2) 进行计算, 若其状态未开启, 则上述单项功能的可用时长均为 0。 再例如, 需要计算 3G上网或 3G通话的可用时长, 此时, 先判断 3G功能是否为开启 状态, 若其状态为开启, 再利用上述公式 (2) 进行计算, 若其状态未开启, 则 3G上网或 3G通话的可用时长都为 0。 For example, you need to calculate the available duration of WIFI, or the available duration of FaceTime, or the available duration of online video playback. In this case, first determine whether the WIFI function is on. If the status is on, use the above formula (2) to calculate. If the status is not enabled, the available duration of the above single function is 0. For another example, it is necessary to calculate the available duration of the 3G Internet access or the 3G call. In this case, first determine whether the 3G function is enabled. If the status is ON, use the formula (2) to calculate, if the status is not enabled, then 3G. The available time for Internet or 3G calls is 0.
再例如, 需要计算蓝牙音讯的可用时长, 此时, 先判断蓝牙功能是否为开启状态, 若 其状态为开启, 再利用上述公式 (2)进行计算, 若其状态未开启, 则蓝牙音讯的可用时长 为 0。  For another example, it is necessary to calculate the available duration of the Bluetooth audio. At this time, it is first determined whether the Bluetooth function is turned on. If the status is ON, the calculation is performed by using the above formula (2). If the status is not enabled, the Bluetooth audio is available. The duration is 0.
通过上述对单项功能可用时长的与判断, 可避免计算结果与事实不符, 提高了计算的 准确性。  By judging the length of time available for a single function, the calculation result can be avoided from the fact, and the accuracy of the calculation is improved.
上述移动智能设备可以是 iPhone4, iPhone5, iPad, iTouch等具有 ios系统的设备, 也可 是具有 android系统的设备, 或具有塞班系统的设备。  The above mobile smart device may be an iOS system device such as an iPhone 4, an iPhone 5, an iPad, or an iTouch, or a device having an android system or a device having a Symbian system.
下面以 iPh0ne4为例对本发明实施例的技术方案再做详细说明。 The technical solution of the embodiment of the present invention will be further described in detail below by taking iPh 0 ne4 as an example.
本实施例中, iph0ne4的整台设备 100%电量使用时长为 15小时, 指定系统功能包 括 WIFI、 3G、 GPS、 屏幕亮度和蓝牙; 由此可知, In this embodiment, the entire device of the iph 0 ne4 has a 100% power usage time of 15 hours, and the specified system functions include WIFI, 3G, GPS, screen brightness, and Bluetooth;
公式 (1 ) 中的指定系统功能消耗系数之和 =WIFI 状态参数 + 3G 状态参数 + GPS状态参数 +屏幕亮度状态参数 +蓝牙状态参数。  The sum of the specified system function consumption factors in formula (1) = WIFI status parameter + 3G status parameter + GPS status parameter + screen brightness status parameter + Bluetooth status parameter.
公式 (2) 中的指定系统功能关闭时可增加时长系数之和 =WIFI状态参数 + 3G 状态参数 + GPS状态参数 +屏幕亮度状态参数 +蓝牙状态参数。  The sum of the length coefficients can be increased when the specified system function in formula (2) is turned off = WIFI status parameter + 3G status parameter + GPS status parameter + screen brightness status parameter + Bluetooth status parameter.
iphone4的单项功能包括 WIFI上网、 3G上网、 通话、 3G通话、 电影播放、 在线 视频播放、 音乐播放、 阅读文章、 2D 游戏、 3D 游戏、 拍摄照片、 录制视频、 GPS 导航、 FaceTime、 蓝牙音讯、 LED手电筒、 语音备忘录和 Siri。  Single features of iphone4 include WIFI Internet access, 3G Internet access, calling, 3G calling, movie playback, online video playback, music playback, reading articles, 2D games, 3D games, taking photos, recording video, GPS navigation, FaceTime, Bluetooth audio, LED Flashlight, voice memo and Siri.
参见表 1, 其是在 iphone4设备中各指定系统功能状态为关闭时所增加的电量消耗 比率: See Table 1, which is the increased power consumption ratio when the specified system function status is off in the ipho ne 4 device:
表 1  Table 1
Figure imgf000011_0001
蓝牙 10% 当 蓝牙 关闭时, 则增
Figure imgf000011_0001
Bluetooth 10% when Bluetooth is off, then increase
加 10%使用时长  Plus 10% duration
表 2是在 iph0ne4设备中不同剩余电量范围所对应的系数: Table 2 shows the coefficients corresponding to the different remaining power ranges in the iph 0 ne4 device:
表 2  Table 2
Figure imgf000012_0001
Figure imgf000012_0001
表 3是在计算 iph0ne4设备中各单项功能可用时长时, 各指定系统功能状态为关闭时 所增加的时长比率: Table 3 shows the ratio of the duration of each specified system when the function status is off when calculating the available duration of each individual function in the iph 0 ne4 device:
表 3  table 3
Figure imgf000012_0002
表 1-表 3中的数据, 都是根据用户数据, 以及在各种可能的环境测试中得到的数据进 行综合统计分析后获得的, 也即, 是个经验值, 不同的设备该经验值是不同的。
Figure imgf000012_0002
The data in Tables 1 to 3 are obtained based on user data and comprehensive statistical analysis of the data obtained in various possible environmental tests, that is, an empirical value. The experience values are different for different devices. of.
当 iph0ne4接收到检测整台设备的可使用时长的计算指令后, 获取移动智能设备 的指定系统功能状态参数及电量参数, 假设本实施例中获取的结果如下: After the iph 0 ne4 receives the calculation instruction for detecting the usable duration of the entire device, the specified system function state parameter and the power parameter of the mobile smart device are obtained, and the results obtained in the embodiment are as follows:
iphone4手机 100%电量使用时长为 15小时, 当前剩余电量百分比为 50%, 检测到 指定系统功能中的 WIFI、 3G和屏幕亮度系统功能状态参数为 1, GPS、 蓝牙和屏幕亮度 的系统功能状态参数为 0, 也就是说 WIFI和 3G启用, 屏幕亮度为最亮, GPS和蓝牙关闭, 则结合表 1和表 2, 根据公式 (1 ):  The iphone4 mobile phone has a 100% battery life of 15 hours, and the current remaining battery percentage is 50%. The WIFI, 3G, and screen brightness system function status parameters of the specified system function are detected as 1, and the system function status parameters of GPS, Bluetooth, and screen brightness are detected. 0, which means that WIFI and 3G are enabled, the screen brightness is the brightest, GPS and Bluetooth are off, then combine Table 1 and Table 2, according to formula (1):
整台设备可使用时长 =(100%电量使用时长 )*剩余电量百分比 *(1+指定系统功能 消耗系数之和)*剩余电量系数; (1 ) The length of time the entire device can be used = (100% battery usage time) * Percentage of remaining battery * (1 + specified system function The sum of the consumption coefficients) * the remaining capacity coefficient; (1)
进行如下计算: 其中, 指定系统功能消耗系数之和 =WIFI状态参数 + 3G状态参 数 + GPS状态参数 +屏幕亮度状态参数 +蓝牙状态参数。  Perform the following calculations: where, specify the sum of the system function consumption coefficients = WIFI status parameter + 3G status parameter + GPS status parameter + screen brightness status parameter + Bluetooth status parameter.
具体的,  specific,
iphone4的可用时长 =15*50%* ( 1+0+0+10%+10%+0) *0.75=6.75小时。  The available duration of iphone4 = 15 * 50% * ( 1 + 0 + 0 + 10% + 10% + 0) * 0.75 = 6.75 hours.
当 iph0ne4 接收到检测在线视频播放的可使用时长的计算指令后, 获取移动智 能设备的指定系统功能状态参数及电量参数, 假设本实施例中获取的结果如下: iphone4手机在线视频播放可用时长为 8小时, 当前剩余电量百分比为 50%, 移动智能 设备状态系数根据经验定位固定的 0.75, 检测到指定系统功能中的 WIFI、 3G和屏幕亮度 系统功能状态参数为 1, GPS、 蓝牙和屏幕亮度系统功能状态为 0, 也就是说 WIFI和 3G 启用, 屏幕亮度为最亮, GPS和蓝牙关闭, 则 After the iph 0 ne4 receives the calculation instruction for detecting the available duration of the online video playback, the specified system function status parameter and the power parameter of the mobile smart device are obtained, and the result obtained in the embodiment is as follows: iphone4 mobile phone online video playback available time For 8 hours, the current remaining battery percentage is 50%, the mobile smart device status coefficient is fixed by 0.75 according to experience, and the WIFI, 3G and screen brightness system function status parameters in the specified system function are detected as 1, GPS, Bluetooth and screen brightness. The system function status is 0, which means that WIFI and 3G are enabled, the screen brightness is the brightest, GPS and Bluetooth are off, then
先判断在线视频播放的功能是否可用, 具体的, 判断 WIFI功能是否开启, 本实施 例中判断结果为开启, 则结合表 3, 再利用公式 (2)  First, determine whether the function of online video playback is available. Specifically, determine whether the WIFI function is enabled. In this embodiment, the judgment result is on, and in combination with Table 3, the formula (2) is used again.
单项功能可使用时长 = (电量 100%时可用时长) *剩余电量百分比 * (移动智能设备状 态系数 +指定系统功能可增加时长系数之和); (2)  The length of the single function can be used = (the length of time available when the battery is 100%) * The percentage of remaining battery * (Mobile smart device status coefficient + specify the system function to increase the sum of the length coefficients); (2)
进行如下计算:其中,指定系统功能关闭时可增加时长系数之和 =WIFI状态参数 + 3G状态参数 + GPS状态参数 +屏幕亮度状态参数 +蓝牙状态参数;  Perform the following calculations: where the specified system function is turned off, the sum of the length coefficients can be increased = WIFI status parameter + 3G status parameter + GPS status parameter + screen brightness status parameter + Bluetooth status parameter;
具体的,  specific,
iphone4在线视频播放时长 =8*50%* (0.75+ (5%+0+4%+2%+0)) =3.44小时。  Iphone4 online video playback time = 8 * 50% * (0.75 + (5% + 0 + 4% + 2% + 0)) = 3.44 hours.
这样, 计算出该 iph0ne4的整台设备可用时长为 6.75小时, 在线视频播放时长为 3.44 小时。 In this way, the total time of the iph 0 ne4 is 6.75 hours, and the online video playback time is 3.44 hours.
经过实验分析可知, WIFI、 3G、 GPS、 屏幕亮度和蓝牙的开关状态对电池的可 使用时长影响较大, 而本申请实施例中, 将系统指定功能定义为上述五种功能, 既 可以保证应用本申请所提供的公式进行计算能够获得准确的数据, 又避免了计算公 式本身过于复杂影响计算效率。  The experimental analysis shows that the WIFI, 3G, GPS, screen brightness and Bluetooth switching state have a great influence on the usable duration of the battery. In the embodiment of the present application, the system designated function is defined as the above five functions, which can ensure the application. The calculation of the formula provided by the present application can obtain accurate data, and avoids that the calculation formula itself is too complicated to affect the calculation efficiency.
经试验对比可知, 应用本发明实施例所提供的计算方法所获得的最终数据, 比 采用现有技术所获得的最终数据的准确性, 能够提高 20%-50%, 因而采用本发明实 施例所提供的计算方法具体现有技术所不可比拟的优越性。  It can be seen from the experimental comparison that the final data obtained by using the calculation method provided by the embodiment of the present invention can be improved by 20%-50% compared with the accuracy of the final data obtained by using the prior art, and thus the embodiment of the present invention is adopted. The calculation method provided is superior to the prior art.
应用本发明实施例, 能够计算并显示整台设备和 /或单项功能的可使用时长, 并 将计算结果输出显示给用户, 让用户能够获知具体的可用时长, 以使用户能够合理 进行电量的分配使用, 便于用户精准合理的安排移动智能设备的使用方式。  The embodiment of the present invention can calculate and display the usable duration of the entire device and/or the single function, and display the calculation result output to the user, so that the user can know the specific available time, so that the user can reasonably allocate the power. It is convenient for users to arrange the use of mobile smart devices accurately and reasonably.
参见图 2, 其是根据本发明实施例的一种检测电池使用时长装置 200的结构示意 图, 本实施例应用于移动智能设备, 具体包括: 接收单元 210、 获取单元 220、 计算 单元 230和输出单元 240。 Referring to FIG. 2, it is a schematic structural diagram of a device 200 for detecting the length of use of a battery according to an embodiment of the invention. The embodiment is applied to the mobile smart device, and specifically includes: a receiving unit 210, an obtaining unit 220, a calculating unit 230, and an output unit 240.
接收单元 210, 用于接收电池使用时长检测指令;  The receiving unit 210 is configured to receive a battery usage duration detection instruction;
获取单元 220, 用于根据所述电池使用时长检测指令, 获取所述移动智能设备的 指定系统功能状态参数及电量参数; 其中, 所述检测指令中包括检测整台设备的可 使用时长和 /或单项功能可使用时长的指示信息; 所述电量参数包括与所述移动智能 设备的型号所对应的 100%电量使用时长, 以及当前剩余电量百分比;  The obtaining unit 220 is configured to acquire, according to the battery usage time detection instruction, a specified system function state parameter and a power parameter of the mobile smart device, where the detecting instruction includes detecting a usable duration of the entire device and/or The single function may use the indication information of the duration; the power parameter includes a 100% power usage duration corresponding to the model of the mobile smart device, and a current remaining power percentage;
计算单元 230,用于根据所述指定系统功能状态参数及电量参数计算整台设备的 可使用时长和 /或单项功能可使用时长;  The calculating unit 230 is configured to calculate, according to the specified system function state parameter and the power parameter, a usable duration of the entire device and/or a usable duration of the single function;
输出单元 240, 用于输出所述计算结果。 电量参数获取子单元 222用于根据移动 智能设备操作系统内部提供的 API函数来获取电量参数; 或者, 用于从所述移动电子 设备状态栏的获取 View视图, 根据所述 View视图获取指定系统功能状态。  The output unit 240 is configured to output the calculation result. The power parameter acquisition sub-unit 222 is configured to obtain a power parameter according to an API function provided by the mobile smart device operating system; or, configured to acquire a View view from the mobile electronic device status bar, and obtain a specified system function according to the view view. status.
上述计算单元 230可以具体包括:  The calculating unit 230 may specifically include:
整台设备可使用时长计算子单元 (图未示), 用于计算整台设备可使用时长, 其 中, 整台设备可使用时长 =(100%电量使用时长 )*剩余电量百分比 *(1+指定系统功能 消耗系数之和 )*剩余电量系数; 所述 100%电量使用时长, 是所述移动智能设备电量 为 100%时整台设备使用时长; 所述剩余电量百分比, 是所述移动智能设备当前的剩 余电量与 100%电量的比值; 所述指定系统功能消耗系数, 是指定系统功能状态为关 闭时所增加的电量消耗比率; 所述剩余电量系数为剩余电量范围所对应的系数; 其 中, 所述指定系统功能状态参数为指定系统功能消耗系数之和;  The entire device can use the duration calculation sub-unit (not shown) to calculate the length of time the entire device can be used. The length of the entire device can be used = (100% battery usage time) * The remaining battery percentage * (1 + specified The sum of the system function consumption coefficients) * the remaining power factor; the 100% power usage time is the duration of use of the entire device when the mobile smart device is 100%; the remaining battery percentage is the current mobile smart device current The ratio of the remaining power to the 100% power; the specified system function consumption coefficient is the ratio of the power consumption increased when the specified system function state is off; the remaining power coefficient is the coefficient corresponding to the remaining power range; The specified system function status parameter is the sum of the system function consumption coefficients of the specified system;
和 /或,  and / or,
单项功能可用时长计算子单元 (图未示), 用于计算单项功能可用时长, 其中, 单项功能可使用时长 = (电量 100%时可用时长) *剩余电量百分比 * (移动智能设备状态系 数 +指定系统功能关闭时可增加时长系数之和); 所述 100%电量使用时长, 是所述移 动智能设备电量为 100%时单项功能使用时长; 所述剩余电量百分比, 是所述移动智 能设备当前的剩余电量与 100%电量的比值; 所述指定系统功能关闭可增加时长系 数, 是指定系统功能状态为关闭时所增加的时长比率; 所述移动智能设备状态系数, 是根据指定系统功能的个数依据经验确定的系数值,其中,所述指定系统功能状态参数 为指定系统功能关闭时可增加时长系数之和。  The single function can be used to calculate the sub-units (not shown), which can be used to calculate the available duration of a single function. The length of the single function can be used = (the length of time available when the battery is 100%) * The percentage of remaining battery * (Mobile smart device status coefficient + specified) When the system function is off, the sum of the duration coefficients may be increased); the 100% power usage duration is the duration of the single function when the mobile smart device is 100%; and the remaining battery percentage is the current mobile smart device The ratio of the remaining power to the 100% power; the specified system function is turned off to increase the length coefficient, which is the ratio of the time period when the specified system function state is off; the mobile smart device state coefficient is based on the number of designated system functions A coefficient value determined empirically, wherein the specified system function state parameter increases the sum of the length coefficients when the specified system function is turned off.
所述指定系统功能至少包括以下其中之一或任意组合: WIFI、 3G、 GPS、 屏幕 亮度、 蓝牙。  The specified system function includes at least one or any combination of the following: WIFI, 3G, GPS, screen brightness, Bluetooth.
所述单项功能包括 WIFI上网、 3G上网、 通话、 3G通话、 电影播放、 在线视频播 放、音乐播放、阅读文章、 2D游戏、 3 D游戏、拍摄照片、录制视频、 GPS导航、 FaceTime、 蓝牙音讯、 LED手电筒、 语音备忘录或 Siri。 The single function includes WIFI Internet access, 3G Internet access, call, 3G call, movie play, online video broadcast Play, music, read articles, 2D games, 3D games, take photos, record videos, GPS navigation, FaceTime, Bluetooth audio, LED flashlights, voice memos or Siri.
应用本发明实施例提供的装置, 能够计算并显示整台设备和 /或单项功能的可使 用时长, 并将计算结果输出显示给用户, 让用户能够获知具体的可用时长, 以使用 户能够合理进行电量的分配使用, 便于用户精准合理的安排移动智能设备的使用方 式。  The device provided by the embodiment of the present invention can calculate and display the usable duration of the entire device and/or a single function, and display the output of the calculation result to the user, so that the user can know the specific available duration, so that the user can perform the reasonably. The allocation of electricity is used to facilitate the user to accurately and reasonably arrange the use of mobile smart devices.
参见图 3, 其是根据本发明实施例的一种检测电池使用时长设备 300的结构示意 图, 本实施例设备 300, 包括: 存储器 3 10、 处理器 320和显示设备 330。  Referring to FIG. 3, which is a schematic structural diagram of a battery life monitoring device 300 according to an embodiment of the present invention, the device 300 of the present embodiment includes: a memory 3 10, a processor 320, and a display device 330.
存储器 3 10用于存储所述移动智能设备的指定系统功能状态及电量参数; 处理器 320用于接收电池使用时长检测指令; 根据所述电池使用时长检测指令, 获取所述移动智能设备的指定系统功能状态参数及电量参数; 其中, 所述检测指令 中包括检测整台设备的可使用时长和 /或单项功能可使用时长的指示信息; 所述电量 参数包括与所述移动智能设备的型号所对应的 100%电量使用时长, 以及当前剩余电 量百分比; 根据所述指定系统功能状态参数及电量参数计算整台设备的可使用时长 和 /或单项功能可使用时长;  The memory 3 10 is configured to store a specified system function state and a power parameter of the mobile smart device; the processor 320 is configured to receive a battery usage duration detection instruction; and acquire the designated system of the mobile smart device according to the battery usage duration detection instruction. a function status parameter and a power parameter; wherein the detection instruction includes indication information for detecting a usable duration of the entire device and/or a duration of use of the single function; the power parameter includes a model corresponding to the model of the mobile smart device 100% power usage duration, and the current remaining battery percentage; Calculate the usable duration of the entire device and/or the length of time that a single function can be used according to the specified system function status parameter and the power parameter;
显示设备 330用于输出所述计算结果。  The display device 330 is for outputting the calculation result.
可见, 应用本发明实施例提供的设备, 能够定时或实时的计算并显示整台设备 和 /或单项功能的可使用时长, 并将计算结果输出显示给用户, 让用户能够获知具体 的可用时长, 以使用户能够合理进行电量的分配使用, 便于用户精准合理的安排移 动智能设备的使用方式。  It can be seen that the device provided by the embodiment of the present invention can calculate and display the usable duration of the entire device and/or the single function in a timed or real time, and display the calculation result to the user, so that the user can know the specific available time. In order to enable users to properly allocate and use the power, it is convenient for the user to arrange the use of the mobile smart device accurately and reasonably.
需要说明的是, 对于装置和设备实施例而言, 由于其基本相似于方法实施例, 所以描述的比较简单, 相关之处参见方法实施例的部分说明即可。  It should be noted that, for the device and the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
为了描述的方便, 装置实施例中是以功能分为各种单元分别描述。 当然, 在实 施本发明时可以把各单元的功能在同一个或多个软件和 /或硬件中实现。  For convenience of description, the device embodiment is described separately by function into various units. Of course, the functions of the various units may be implemented in one or more software and/or hardware in the practice of the invention.
通过以上的实施方式的描述可知, 本领域的技术人员可以清楚地了解到本发明 可借助软件加必需的通用硬件平台的方式来实现。 基于这样的理解, 本发明的技术 方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该 计算机软件产品可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干 指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 执 行本发明各个实施例或者实施例的某些部分所述的方法。  From the description of the above embodiments, it will be apparent to those skilled in the art that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅仅用来将一个 实体或者操作与另一个实体或操作区分开来, 而不一定要求或者暗示这些实体或操 作之间存在任何这种实际的关系或者顺序。 而且, 术语 "包括"、 "包含" 或者其任 何其他变体意在涵盖非排他性的包含, 从而使得包括一系列要素的过程、 方法、 物 品或者设备不仅包括那些要素, 而且还包括没有明确列出的其他要素, 或者是还包 括为这种过程、 方法、 物品或者设备所固有的要素。 在没有更多限制的情况下, 由 语句 "包括一个…… " 限定的要素, 并不排除在包括所述要素的过程、 方法、 物品 或者设备中还存在另外的相同要素。 It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is any such actual relationship or order between the work. Furthermore, the terms "including", "comprising" or "comprising" or "comprising" or "includes" or "includes" or "includes" Other elements, or elements that are inherent to such a process, method, item, or device. An element defined by the phrase "comprising a ..." does not exclude the presence of additional elements in the process, method, item, or device that comprises the element.
以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明的保护范围。 凡 在本发明的精神和原则之内所作的任何修改、 等同替换、 改进等, 均包含在本发明 的保护范围内。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 claims
1、 一种检测电池使用时长的方法, 其特征在于, 应用于移动智能设备中, 所述 方法包括: 1. A method for detecting battery usage time, which is characterized in that it is applied to mobile smart devices. The method includes:
接收电池使用时长检测指令; Receive battery life detection instructions;
根据所述电池使用时长检测指令, 获取所述移动智能设备的指定系统功能状态 参数及电量参数; 其中, 所述检测指令中包括检测整台设备的可使用时长和 /或单项 功能可使用时长的指示信息; 所述电量参数包括与所述移动智能设备的型号所对应 的 100%电量使用时长, 以及当前剩余电量百分比; According to the battery usage time detection instruction, the specified system function status parameters and power parameters of the mobile smart device are obtained; wherein, the detection instruction includes detection of the usable duration of the entire device and/or the usable duration of a single function. Instruction information; The power parameters include the 100% power usage time corresponding to the model of the mobile smart device, and the current remaining power percentage;
根据所述指定系统功能状态参数及电量参数计算整台设备的可使用时长和 /或 单项功能可使用时长; Calculate the usable duration of the entire device and/or the usable duration of a single function based on the designated system function status parameters and power parameters;
输出所述计算结果。 Output the calculation results.
2、 根据权利要求 1所述的方法, 其特征在于, 2. The method according to claim 1, characterized in that,
所述指定系统功能状态参数为指定系统功能消耗系数之和; The specified system function status parameter is the sum of the specified system function consumption coefficients;
根据所述指定系统功能状态及电量参数计算整台设备的可使用时长的步骤包 括: The steps to calculate the usable duration of the entire device based on the specified system functional status and power parameters include:
整台设备可使用时长 =(100%电量使用时长 )*剩余电量百分比 *(1+指定系统功能 消耗系数之和)*剩余电量系数; The usable time of the entire device = (100% power usage time) * remaining power percentage * (1 + sum of specified system function consumption coefficients) * remaining power coefficient;
其中, in,
所述 100%电量使用时长, 是所述移动智能设备电量为 100%时整台设备使用时 长; The 100% power usage time is the usage time of the entire device when the mobile smart device power is 100%;
所述剩余电量百分比, 是所述移动智能设备当前的剩余电量与 100%电量的比 值; The remaining power percentage is the ratio of the current remaining power of the mobile smart device to 100% power;
所述指定系统功能消耗系数, 是指定系统功能状态为关闭时所增加的电量消耗 比率; The specified system function consumption coefficient is the increased power consumption ratio when the specified system function state is turned off;
所述剩余电量系数为剩余电量范围所对应的系数。 The remaining power coefficient is a coefficient corresponding to the remaining power range.
3、 根据权利要求 1所述的方法, 其特征在于, 3. The method according to claim 1, characterized in that,
所述指定系统功能状态参数为指定系统功能关闭时可增加时长系数之和; 根据所述指定系统功能状态参数及电量参数计算单项功能可使用时长的步骤包 括: The specified system function status parameter is the sum of the time duration coefficients that can be increased when the specified system function is turned off; the steps for calculating the usable duration of a single function based on the specified system function status parameter and power parameter include:
单项功能可使用时长 = (电量 100%时可用时长) *剩余电量百分比 * (移动智能设备状 态系数 +指定系统功能关闭时可增加时长系数之和); The usable time of a single function = (the usable time when the battery is 100%) * the remaining battery percentage * (the mobile smart device status coefficient + the sum of the time coefficients that can be increased when the specified system function is turned off);
其中, 所述 100%电量使用时长, 是所述移动智能设备电量为 100%时单项功能使用时 长; in, The 100% power usage time is the usage time of a single function when the mobile smart device power is 100%;
所述剩余电量百分比, 是所述移动智能设备当前的剩余电量与 100%电量的比 值; The remaining power percentage is the ratio of the current remaining power of the mobile smart device to 100% power;
所述指定系统功能关闭可增加时长系数, 是指定系统功能状态为关闭时所增加 的时长比率; The specified system function shutdown can increase the duration coefficient, which is the duration ratio increased when the specified system function status is closed;
所述移动智能设备状态系数, 是根据指定系统功能的个数依据经验确定的系数值。 The mobile smart device status coefficient is a coefficient value determined based on experience based on the number of designated system functions.
4、 根据权利要求 3所述的方法, 其特征在于, 在计算单项功能可使用时长之前, 还包括: 4. The method according to claim 3, characterized in that, before calculating the usable duration of a single function, it further includes:
根据系统功能状态判断待计算可用时长的单项功能当前是否可用, 若单项功能 当前不可用, 则将该单项功能可使用时长的计算结果记为 0, 若单项功能当前可用, 再 根据所述指定系统功能状态参数及电量参数计算单项功能可使用时长。 Determine whether the individual function to be calculated for available duration is currently available based on the system function status. If the individual function is currently unavailable, record the calculation result of the available duration of the individual function as 0. If the individual function is currently available, specify the system as described Function status parameters and power parameters are used to calculate the usable time of a single function.
5、 根据权利要求 1-4任一所述的方法, 其特征在于, 所述获取移动智能设备的 指定系统功能状态参数的步骤包括: 5. The method according to any one of claims 1 to 4, characterized in that the step of obtaining the designated system functional status parameters of the mobile smart device includes:
从所述移动智能设备状态栏获取 View视图, 根据所述 View视图获取指定系统功 能状态; Obtain the View view from the status bar of the mobile smart device, and obtain the specified system function status according to the View view;
或者, or,
根据移动智能设备的操作系统所提供的应用程序编程接口函数来获取指定系统 功能状态; Obtain the specified system functional status according to the application programming interface function provided by the operating system of the mobile smart device;
其中, 所述系统功能状态通过系统功能状态参数表示。 Wherein, the system functional status is represented by system functional status parameters.
6、 根据权利要求 1-5任一所述的方法, 其特征在于, 所述获取移动智能设备当 前剩余电量百分比的步骤包括: 6. The method according to any one of claims 1 to 5, characterized in that the step of obtaining the current remaining power percentage of the mobile smart device includes:
从所述移动智能设备的状态栏获取 View视图, 根据所述 View视图获取移动智能 设备当前剩余电量百分比; Obtain the View view from the status bar of the mobile smart device, and obtain the current remaining power percentage of the mobile smart device according to the View view;
或者, or,
根据移动智能设备的操作系统所提供的应用程序编程接口函数来获取移动智能 设备当前剩余电量百分比。 Obtain the current remaining power percentage of the mobile smart device according to the application programming interface function provided by the operating system of the mobile smart device.
7、 根据权利要求 1-6任一所述的方法, 其特征在于, 所述指定系统功能至少包 括以下其中之一或任意组合: WIFI、 3G、 GPS、 屏幕亮度、 蓝牙。 7. The method according to any one of claims 1 to 6, characterized in that the specified system function includes at least one or any combination of the following: WIFI, 3G, GPS, screen brightness, and Bluetooth.
8、 根据权利要求 1-7任一所述的方法, 其特征在于, 所述单项功能包括 WIFI上网、 8. The method according to any one of claims 1-7, characterized in that the single function includes WIFI Internet access,
3G上网、 通话、 3G通话、 电影播放、 在线视频播放、 音乐播放、 阅读文章、 2D游戏、 3D 游戏、 拍摄照片、 录制视频、 GPS导航、 FaCeTime、 蓝牙音讯、 LED手电筒、 语音备忘录 或 Siri。 3G Internet access, calls, 3G calls, movie playback, online video playback, music playback, reading articles, 2D games, 3D games, taking photos, recording videos, GPS navigation, FaCe Time, Bluetooth audio, LED flashlight, voice memo Or Siri.
9、 一种检测电池使用时长的装置, 其特征在于, 应用于移动智能设备中, 所述 装置包括: 9. A device for detecting battery usage time, characterized in that it is used in mobile smart devices. The device includes:
接收单元, 用于接收电池使用时长检测指令; The receiving unit is used to receive battery life detection instructions;
获取单元, 用于根据所述电池使用时长检测指令, 获取所述移动智能设备的指 定系统功能状态参数及电量参数; 其中, 所述检测指令中包括检测整台设备的可使 用时长和 /或单项功能可使用时长的指示信息; 所述电量参数包括与所述移动智能设 备的型号所对应的 100%电量使用时长, 以及当前剩余电量百分比; An acquisition unit configured to acquire specified system function status parameters and power parameters of the mobile smart device according to the battery usage time detection instruction; wherein, the detection instruction includes detection of the usable duration and/or individual items of the entire device. Indication information of the usable duration of the function; The power parameters include the 100% power usage time corresponding to the model of the mobile smart device, and the current remaining power percentage;
计算单元, 用于根据所述指定系统功能状态参数及电量参数计算整台设备的可 使用时长和 /或单项功能可使用时长; The calculation unit is used to calculate the usable duration of the entire device and/or the usable duration of a single function based on the designated system function status parameters and power parameters;
输出单元, 用于输出所述计算结果。 An output unit is used to output the calculation results.
10、 根据权利要求 9所述的装置, 其特征在于, 10. The device according to claim 9, characterized in that,
所述计算单元包括: The computing unit includes:
整台设备可使用时长计算子单元, 用于计算整台设备可使用时长, 其中, 整台 设备可使用时长 =(100%电量使用时长 )*剩余电量百分比 *(1+指定系统功能消耗系数 之和) *剩余电量系数; 所述 100%电量使用时长, 是所述移动智能设备电量为 100%时 整台设备使用时长; 所述剩余电量百分比, 是所述移动智能设备当前的剩余电量与 The calculation subunit of the usable time of the entire device is used to calculate the usable time of the entire device. Among them, the usable time of the entire device = (100% power usage time) * remaining power percentage * (1 + specified system function consumption coefficient and) *Remaining power coefficient; The 100% power usage time is the usage time of the entire device when the mobile smart device power is 100%; The remaining power percentage is the current remaining power of the mobile smart device and
100%电量的比值; 所述指定系统功能消耗系数, 是指定系统功能状态为关闭时所增 加的电量消耗比率; 所述剩余电量系数为剩余电量范围所对应的系数; 其中, 所述 指定系统功能状态参数为指定系统功能消耗系数之和; The ratio of 100% power; The designated system function consumption coefficient is the increased power consumption ratio when the designated system function state is turned off; The remaining power coefficient is the coefficient corresponding to the remaining power range; wherein, the designated system function The status parameter is the sum of the consumption coefficients of the specified system functions;
和 /或, and / or,
单项功能可用时长计算子单元, 用于计算单项功能可用时长, 其中, 单项功能可 使用时长= (电量 100%时可用时长) *剩余电量百分比 * (移动智能设备状态系数 +指定系 统功能关闭时可增加时长系数之和);所述 100%电量使用时长, 是所述移动智能设备 电量为 100%时单项功能使用时长; 所述剩余电量百分比, 是所述移动智能设备当前 的剩余电量与 100%电量的比值; 所述指定系统功能关闭可增加时长系数, 是指定系 统功能状态为关闭时所增加的时长比率; 所述移动智能设备状态系数, 是根据指定系 统功能的个数依据经验确定的系数值, 其中, 所述指定系统功能状态参数为指定系统 功能关闭时可增加时长系数之和。 The available time calculation subunit of a single function is used to calculate the available time of a single function, where, the available time of a single function = (the available time when the battery is 100%) * the remaining battery percentage * (the mobile smart device status coefficient + the specified system function is turned off The sum of increasing duration coefficients); the 100% power usage time is the usage time of a single function when the mobile smart device is 100%; the remaining power percentage is the current remaining power of the mobile smart device and 100% The ratio of electric power; the time duration coefficient that can be increased by turning off the specified system function is the ratio of the time duration that is increased when the specified system function status is turned off; the mobile smart device status coefficient is a coefficient determined based on experience based on the number of designated system functions value, wherein the specified system function status parameter is the sum of the increaseable duration coefficients when the specified system function is turned off.
11、 根据权利要求 9或 10所述的装置, 其特征在于, 所述指定系统功能至少包括 以下其中之一或任意组合: WIFI、 3G、 GPS、 屏幕亮度、 蓝牙。 11. The device according to claim 9 or 10, characterized in that the specified system function includes at least one or any combination of the following: WIFI, 3G, GPS, screen brightness, and Bluetooth.
12、 根据权利要求 9- 11任一所述的装置, 其特征在于, 所述单项功能包括 WIFI 上网、 3G上网、 通话、 3G通话、 电影播放、 在线视频播放、 音乐播放、 阅读文章、 2D游戏、 3D游戏、 拍摄照片、 录制视频、 GPS导航、 FaceTime、 蓝牙音讯、 LED手 电筒、 语音备忘录或 Siri。 12. The device according to any one of claims 9 to 11, characterized in that the single function includes WIFI Internet access, 3G Internet access, calls, 3G calls, movie playback, online video playback, music playback, reading articles, 2D games, 3D games, taking photos, recording videos, GPS navigation, FaceTime, Bluetooth audio, LED flashlight, voice memo or Siri .
13、 一种移动智能设备, 其特征在于, 所述移动智能设备包括: 13. A mobile intelligent device, characterized in that the mobile intelligent device includes:
存储器, 用于存储所述移动智能设备的指定系统功能状态及电量参数; 处理器, 用于接收电池使用时长检测指令; 根据所述电池使用时长检测指令, 获取所述移动智能设备的指定系统功能状态参数及电量参数; 其中, 所述检测指令 中包括检测整台设备的可使用时长和 /或单项功能可使用时长的指示信息; 所述电量 参数包括与所述移动智能设备的型号所对应的 100%电量使用时长, 以及当前剩余电 量百分比; 根据所述指定系统功能状态参数及电量参数计算整台设备的可使用时长 和 /或单项功能可使用时长; Memory, used to store the designated system function status and power parameters of the mobile smart device; Processor, used to receive battery life detection instructions; According to the battery life detection instructions, obtain the designated system functions of the mobile smart device Status parameters and power parameters; wherein, the detection instructions include indication information for detecting the usable duration of the entire device and/or the usable duration of a single function; the power parameters include information corresponding to the model of the mobile smart device The usage time of 100% power, and the current remaining power percentage; Calculate the usable time of the entire device and/or the usable time of a single function based on the designated system function status parameters and power parameters;
显示设备, 用于输出所述计算结果。 Display device, used to output the calculation results.
PCT/CN2014/080584 2013-06-24 2014-06-24 Method, apparatus, and device for detecting length of time of use of battery WO2014206270A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310251736.1A CN103323786B (en) 2013-06-24 2013-06-24 Method, device and equipment for detecting service life of battery
CN201310251736.1 2013-06-24

Publications (1)

Publication Number Publication Date
WO2014206270A1 true WO2014206270A1 (en) 2014-12-31

Family

ID=49192650

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/080584 WO2014206270A1 (en) 2013-06-24 2014-06-24 Method, apparatus, and device for detecting length of time of use of battery

Country Status (2)

Country Link
CN (1) CN103323786B (en)
WO (1) WO2014206270A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103323786B (en) * 2013-06-24 2016-04-20 贝壳网际(北京)安全技术有限公司 Method, device and equipment for detecting service life of battery
CN104849664A (en) * 2014-02-17 2015-08-19 中国移动通信集团公司 Method for determining residual use duration of terminal, and terminal
CN104049217B (en) * 2014-06-30 2019-02-15 努比亚技术有限公司 Battery dump energy uses the detection method and device of time
CN104502854B (en) * 2014-12-18 2017-08-04 青岛海信移动通信技术股份有限公司 A kind of terminal residual electric quantity display method and device
CN105812587B (en) * 2014-12-29 2020-02-14 北京奇虎科技有限公司 Method and device for acquiring data network mode
CN105100429B (en) * 2015-06-08 2018-03-06 北京金山安全软件有限公司 Method and device for determining use time of residual electric quantity of mobile terminal
CN105718356B (en) * 2016-01-21 2018-07-13 努比亚技术有限公司 Electricity uses the statistic device and method of duration
CN105828424B (en) * 2016-03-11 2019-12-13 北京奇虎科技有限公司 Intelligent terminal and energy consumption quantitative control method thereof
CN107566624B (en) * 2017-08-25 2020-09-11 维沃移动通信有限公司 Display method for power consumption and temperature of terminal, terminal and computer readable storage medium
CN107843857A (en) * 2017-12-18 2018-03-27 广州亚美信息科技有限公司 A kind of measuring method of the automobile storage battery dump energy usage time based on OBD equipment
CN108932048B (en) * 2018-06-11 2021-06-01 Oppo(重庆)智能科技有限公司 Method for determining usable time of battery and related product
KR102097512B1 (en) 2018-08-09 2020-04-06 주식회사 테크아이 Notching press
CN109376678A (en) * 2018-11-02 2019-02-22 深圳壹账通智能科技有限公司 Anti-addiction method, apparatus, equipment and storage medium based on recognition of face
CN109884543B (en) * 2019-01-25 2021-12-14 努比亚技术有限公司 Method and equipment for predicting remaining service life of battery

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002320336A (en) * 2001-04-20 2002-10-31 Toshitaka Takei Battery driving apparatus for displaying battery residual time
WO2006032168A1 (en) * 2004-09-24 2006-03-30 Zte Corporation A method of measuring the talking time length of mobile terminal in cdma system
CN101009883A (en) * 2006-12-26 2007-08-01 华为技术有限公司 Mobile terminal and its information prompt method
CN101063705A (en) * 2006-04-27 2007-10-31 环达电脑(上海)有限公司 Method for enquiring electric quantity of power supply
CN101388924A (en) * 2008-10-11 2009-03-18 深圳华为通信技术有限公司 Method and mobile terminal for prompting residue working time
EP2133706A1 (en) * 2008-06-11 2009-12-16 Postech Academy-Industry Foundation Method for predicting available time remaining on battery in mobile devices based on usage patterns
CN101860623A (en) * 2010-06-12 2010-10-13 北京大学 Method and system for indicating service time of intelligent phone battery by sensing system context
CN101903845A (en) * 2007-12-20 2010-12-01 诺基亚公司 Method, apparatus and computer program product for providing power consumption notification and management
CN102014213A (en) * 2010-12-22 2011-04-13 深圳市五巨科技有限公司 Method and device for prompting remaining time of mobile terminal battery
CN102075633A (en) * 2011-02-11 2011-05-25 华为终端有限公司 Information prompt method and mobile terminal
CN103323786A (en) * 2013-06-24 2013-09-25 贝壳网际(北京)安全技术有限公司 Method, device and equipment for detecting service life of battery

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2694637B1 (en) * 1992-08-05 1994-10-07 Merlin Gerin Method for determining the autonomy time of a battery.
CN101009394A (en) * 2006-01-25 2007-08-01 明基电通股份有限公司 Power management device and method of the electronic system
KR101134894B1 (en) * 2006-06-28 2012-04-13 엘지전자 주식회사 Apparatus and method for detecting and displaying the remains of battery capacity
CN101477178A (en) * 2009-02-06 2009-07-08 上海华勤通讯技术有限公司 Detection method and detection system for battery service time
JP4963715B2 (en) * 2009-06-10 2012-06-27 レノボ・シンガポール・プライベート・リミテッド Electronic device, method for displaying battery usable time, and computer-executable program
CN101853166B (en) * 2010-06-07 2013-04-10 北京大学 Application-oriented method and system for indicating use time of intelligent mobile phone battery

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002320336A (en) * 2001-04-20 2002-10-31 Toshitaka Takei Battery driving apparatus for displaying battery residual time
WO2006032168A1 (en) * 2004-09-24 2006-03-30 Zte Corporation A method of measuring the talking time length of mobile terminal in cdma system
CN101063705A (en) * 2006-04-27 2007-10-31 环达电脑(上海)有限公司 Method for enquiring electric quantity of power supply
CN101009883A (en) * 2006-12-26 2007-08-01 华为技术有限公司 Mobile terminal and its information prompt method
CN101903845A (en) * 2007-12-20 2010-12-01 诺基亚公司 Method, apparatus and computer program product for providing power consumption notification and management
EP2133706A1 (en) * 2008-06-11 2009-12-16 Postech Academy-Industry Foundation Method for predicting available time remaining on battery in mobile devices based on usage patterns
CN101388924A (en) * 2008-10-11 2009-03-18 深圳华为通信技术有限公司 Method and mobile terminal for prompting residue working time
CN101860623A (en) * 2010-06-12 2010-10-13 北京大学 Method and system for indicating service time of intelligent phone battery by sensing system context
CN102014213A (en) * 2010-12-22 2011-04-13 深圳市五巨科技有限公司 Method and device for prompting remaining time of mobile terminal battery
CN102075633A (en) * 2011-02-11 2011-05-25 华为终端有限公司 Information prompt method and mobile terminal
CN103323786A (en) * 2013-06-24 2013-09-25 贝壳网际(北京)安全技术有限公司 Method, device and equipment for detecting service life of battery

Also Published As

Publication number Publication date
CN103323786B (en) 2016-04-20
CN103323786A (en) 2013-09-25

Similar Documents

Publication Publication Date Title
WO2014206270A1 (en) Method, apparatus, and device for detecting length of time of use of battery
KR101743192B1 (en) Recording method, playing method, device, terminal, system, program and recording medium
US7853813B2 (en) Anticipatory power management for battery-powered electronic device
WO2018072083A1 (en) Method and device for limiting charging current, and electronic device
EP2500822A1 (en) Control method and control apparatus for releasing memory
TWI566177B (en) Application management system and method thereof
WO2016095396A1 (en) Charging management method and device
WO2012149738A1 (en) Power management method and device for mobile terminal
CN107562539B (en) Application program processing method and device, computer equipment and storage medium
WO2017032079A1 (en) Information browsing method and mobile terminal
WO2015027882A1 (en) Method, apparatus and terminal for image processing
WO2016008260A1 (en) Setup method, device and apparatus for terminal and non-volatile computer storage medium
KR20160141827A (en) Method and system for collecting statistics on streaming media data, and related apparatus
CN105681648A (en) Picture viewing method and device and electronic equipment
CN108777330A (en) charging management method, device and terminal
CN108965042B (en) Network delay obtaining method and device, terminal equipment and storage medium
CN108965606A (en) Determine the method and device of environment temperature
CN113439435A (en) Video playing method and device, storage medium and electronic equipment
WO2020206690A1 (en) Application cleaning method and apparatus, storage medium and electronic device
CN112422632A (en) File uploading control method and device, electronic equipment and storage medium
JP2017528743A (en) Method and apparatus for realizing cooling of a cooling fan of a projector device
CN111525645A (en) Intelligent charging method, system and related equipment
CN104360270A (en) Battery charging curve acquiring device and method of portable electronic equipment
CN110493857B (en) Battery using method, device, terminal and storage medium
US20150051722A1 (en) Method, apparatus and system for providing content

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14818244

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11/04/2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14818244

Country of ref document: EP

Kind code of ref document: A1