CN106201820B - Using the prediction meanss and method to operation duration - Google Patents

Using the prediction meanss and method to operation duration Download PDF

Info

Publication number
CN106201820B
CN106201820B CN201610497058.0A CN201610497058A CN106201820B CN 106201820 B CN106201820 B CN 106201820B CN 201610497058 A CN201610497058 A CN 201610497058A CN 106201820 B CN106201820 B CN 106201820B
Authority
CN
China
Prior art keywords
application
operation duration
electricity
measured
section
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610497058.0A
Other languages
Chinese (zh)
Other versions
CN106201820A (en
Inventor
郭梦茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610497058.0A priority Critical patent/CN106201820B/en
Publication of CN106201820A publication Critical patent/CN106201820A/en
Application granted granted Critical
Publication of CN106201820B publication Critical patent/CN106201820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/3644Constructional arrangements
    • G01R31/3648Constructional arrangements comprising digital calculation means, e.g. for performing an algorithm
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/396Acquisition or processing of data for testing or for monitoring individual cells or groups of cells within a battery
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • 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

Abstract

The invention discloses the prediction meanss that a kind of application waits for operation duration, the application waits for that the prediction meanss of operation duration include:Module is obtained, for obtaining the corresponding operation duration of application to be measured in the current remaining capacity of mobile terminal and each default electricity section, wherein each default electricity section is that mobile terminal has currently consumed the corresponding multiple electricity sections of electricity;Computing module, for according to the corresponding operation duration in each default electricity section, calculate the application to be measured under current residual electricity to operation duration.The invention also discloses the prediction techniques that a kind of application waits for operation duration.The present invention improves prediction and applies the accuracy to operation duration under current residual electricity.

Description

Using the prediction meanss and method to operation duration
Technical field
The present invention relates to mobile terminal control technology field more particularly to a kind of application wait for operation duration prediction meanss and Method.
Background technique
With the development of science and technology, the mobile terminals such as smart phone, PAD (tablet computer) have become in user's daily life not The equipment that can or lack.During using mobile terminal, the power consumption situation of application is always that user compares concern, Many times user wishes to know that how long mobile terminal current residual electricity can support some application operation to be measured.Usual feelings Under condition, be by read mobile terminal electric quantity consumption historical record come estimate it is to be measured apply it is right under mobile terminal remaining capacity The operation duration answered, since historical record is the record of the whole electricity of the application consumption to all operations of mobile terminal, root The accuracy to operation duration to be measured applied under current residual electricity estimated according to the historical record is not high.
Summary of the invention
It is a primary object of the present invention to propose that a kind of application waits for the prediction meanss and method of operation duration, it is intended to solve existing The technical problem for thering is prediction to apply the accuracy to operation duration under current residual electricity not high.
To achieve the above object, a kind of application provided by the invention waits for the prediction meanss of operation duration, and the application is to be shipped The prediction meanss of row duration include:
Module is obtained, for obtaining to be measured in the current remaining capacity of mobile terminal and each default electricity section answer With corresponding operation duration, wherein each default electricity section is that currently to have consumed electricity corresponding multiple for mobile terminal Electricity section;
Computing module, for calculating current residual electricity according to the corresponding operation duration in each default electricity section Under the application to be measured to operation duration.
Optionally, when current residual electricity corresponds to the electricity section of multiple arranged in sequence, the computing module includes:
First computing unit is calculated for obtaining the current electric quantity section where current residual electricity, and using gray prediction Method calculates current electric quantity section pair according to the operation duration of the application to be measured in each electricity section before current electric quantity section The operation duration answered;And using next electricity section in current electric quantity section as current electric quantity section, and continue to execute institute State the operation duration meter using Grey Prediction Algorithm according to the application to be measured in each electricity section before current electric quantity section The corresponding operation duration in current electric quantity section is calculated, until calculating described in the corresponding each electricity section of current residual electricity The operation duration of application to be measured;
Second computing unit, each operation duration for that will calculate are added, and are obtained described under current residual electricity Application to be measured to operation duration.
Optionally, the computing module further includes:
Comparing unit, for the application to be measured in the current electric quantity section of contrast conting operation duration with it is described The size of the actual motion duration of the application to be measured in current electric quantity section;
Updating unit, the operation duration for the application to be measured described in the current electric quantity section of calculating are worked as with described When the absolute difference of the actual motion duration of the application to be measured is greater than default time difference threshold value in preceding electricity section, worked as according to described The actual motion duration of the application to be measured in preceding electricity section, update current residual electricity under the application to be measured wait run Duration.
Optionally, the application waits for that the prediction meanss of operation duration further include:
Display module, for showing that current residual electricity is corresponding each in the current display interface of the mobile terminal The operation duration of the application to be measured in electricity section.
Optionally, the application waits for that the prediction meanss of operation duration further include:
Reminding module, it is pre- for being less than to operation duration for the application to be measured described under the current residual electricity of calculating If when duration threshold value, sending corresponding prompting message.
In addition, to achieve the above object, the present invention also proposes that a kind of application waits for the prediction technique of operation duration, the application Prediction technique to operation duration includes the following steps:
When obtaining the corresponding operation of application to be measured in the current remaining capacity of mobile terminal and each default electricity section It is long, wherein each default electricity section is that mobile terminal has currently consumed the corresponding multiple electricity sections of electricity;
According to the corresponding operation duration in each default electricity section, the application to be measured under current residual electricity is calculated To operation duration.
Optionally, described according to each described pre- when current residual electricity corresponds to the electricity section of multiple arranged in sequence If the corresponding operation duration in electricity section, the application to be measured wraps to the step of operation duration under calculating current residual electricity It includes:
The current electric quantity section where current residual electricity is obtained, and using Grey Prediction Algorithm according to current electric quantity section The operation duration of the application to be measured in each electricity section before calculates the corresponding operation duration in current electric quantity section;
Using next electricity section in current electric quantity section as current electric quantity section, and continue to execute described using grey Prediction algorithm calculates current electric quantity according to the operation duration of the application to be measured in each electricity section before current electric quantity section The step of corresponding operation duration in section, until calculating described to be measured in the corresponding each electricity section of current residual electricity The operation duration of application;
Each operation duration of calculating is added, obtain the application to be measured under current residual electricity when running It is long.
Optionally, described that the operation duration of the application to be measured in current electric quantity section is calculated using Grey Prediction Algorithm After step, further include:
The operation duration of the application to be measured and the current electric quantity section in the current electric quantity section of contrast conting The size of the actual motion duration of the interior application to be measured;
In the current electric quantity section of calculating in the operation duration of the application to be measured and the current electric quantity section When the absolute difference of the actual motion duration of the application to be measured is greater than default time difference threshold value, according in the current electric quantity section The actual motion duration of the application to be measured, update current residual electricity under the application to be measured to operation duration.
Optionally, the operation for calculating the application to be measured in the corresponding each electricity section of current residual electricity After the step of duration, further include:
Institute in the corresponding each electricity section of current residual electricity is shown in the current display interface of the mobile terminal State the operation duration of application to be measured.
Optionally, described according to the corresponding operation duration in each default electricity section, it calculates under current residual electricity The application to be measured to operation duration the step of after, further include:
Under the current residual electricity of calculating the application to be measured when operation duration be less than preset duration threshold value when, Send corresponding prompting message.
Application proposed by the present invention waits for the prediction meanss and method of operation duration, and computing module is obtained according to acquisition module It is to be measured in each default electricity section that electricity is greater than current residual electricity to apply corresponding operation duration, using gray prediction Algorithm calculate current residual electricity under the application to be measured to operation duration, namely by Grey Prediction Algorithm to multiple default electricity Corresponding actual motion duration is analyzed and processed to obtain the Fluctuation of operation duration in amount section, so that prediction is in movement Under terminal current residual electricity the application to be measured to operation duration, improve that prediction is to be measured to apply under current residual electricity The accuracy of operation duration.
Detailed description of the invention
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is module diagram of the present invention application to the prediction meanss first embodiment of operation duration;
Fig. 4 is module diagram of the present invention application to computing module in the prediction meanss second embodiment of operation duration;
Fig. 5 is flow diagram of the present invention application to the prediction technique first embodiment of operation duration.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, output unit 150, controller 180 and power supply unit 190 etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that It is, it is not required that implement all components shown.More or fewer components can alternatively be implemented.It will be discussed in more detail below The element of mobile terminal.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication device Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module 112, at least one of wireless Internet module 113.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB) Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcasters.Particularly, broadcasting reception module 111 It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video It broadcasts-holds (DVB-H), forward link media (MediaFLO@) data broadcasting device, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digital broadcast apparatus receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcasters and above-mentioned digital broadcast apparatus of signal.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera Microphone 122, camera 121 is to the static images obtained in video acquisition mode or image capture mode by image capture apparatus Or the image data of video is handled.Treated, and picture frame may be displayed on display unit 151.Microphone 122 can be with Sound (audio number is received via microphone in telephone calling model, logging mode, speech recognition mode etc. operational mode According to), and can be audio data by such acoustic processing.Audio that treated (voice) data can be in telephone relation mould The format output that mobile communication base station can be sent to via mobile communication module 112 is converted in the case where formula.Microphone 122 can (or inhibition) algorithm is eliminated to implement various types of noises to eliminate (or inhibition) in the process for sending and receiving audio signal The noise of middle generation or interference.
Output unit 150 is configured to provide output signal with vision, audio and/or tactile manner (for example, audio is believed Number, vision signal, alarm signal, vibration signal etc.).Output unit 150 may include display unit 151, audio output mould Block 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.
Audio output (example relevant to the specific function that mobile terminal 100 executes that audio output module 152 can be provided Such as, call signal receives sound, message sink sound etc.).Audio output module 152 may include sound pick-up, buzzer etc. Deng.
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication device and satellite-based communication device operate.
Referring now to Fig. 2 description communication device that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication device.For example, used by communication device Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications dress Set (UMTS) (particularly, long term evolution (LTE)), global mobile communication device (GSM) etc..As non-limiting example, under The description in face is related to cdma communication device, but such introduction is equally applicable to other types of device.
With reference to Fig. 2, cdma wireless communication device may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that device may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver Device (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in the device by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global pick device (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, but it is understood that, it can use any number of satellite and obtain Useful location information.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication device, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti- It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, propose that present invention application is filled to the prediction of operation duration Set each embodiment.
As shown in figure 3, in the first embodiment, which includes to the prediction meanss of operation duration:
Module 10 is obtained, it is to be measured in the current remaining capacity of mobile terminal and each default electricity section for obtaining Using corresponding operation duration, wherein each default electricity section is that currently to have consumed electricity corresponding more for mobile terminal A electricity section;
With the development of science and technology, the mobile terminals such as smart phone, PAD (tablet computer) have become in user's daily life not The equipment that can or lack.User is during using mobile terminal, the service condition of mobile terminal electricity and the power consumption of application Situation the problem of being always user's comparison is measured, especially when user's inconvenient the case where charging to mobile terminal outside Under, predict that can the remaining capacity of mobile terminal support the remaining capacity of some application operation or mobile terminal that can support to apply How long operation is just particularly important.Therefore, in the present embodiment, propose that a kind of application waits for that the prediction technique of operation duration is come Predict application to be measured can operation duration.Specifically, in the present embodiment, multiple default electricity sections are previously provided with.For example, Electricity section namely default electricity section are divided using ten percentage points of mobile terminal electricity as mobile terminal electricity 100%-90%, 90%-80%, 80%-70% ... 10%-0% etc..In the use process of mobile terminal, module 10 is obtained Mobile terminal current residual electricity is obtained, and obtains each default electricity area that mobile terminal is greater than current residual electricity in electricity The corresponding operation duration of interior application to be measured, namely obtain module 10 to obtain the electricity that mobile terminal has consumed corresponding multiple pre- If the operation duration of application to be measured in electricity section.Wherein, application to be measured can be certain a application loaded in mobile terminal, It may be a plurality of applications.
Specifically, it in the use process of mobile terminal, in real time or periodically to calculate mobile terminal and consume electricity and remained Remaining electricity, so that it is determined that mobile terminal be presently in default electricity section.Mobile terminal has consumed electricity general-purpose computations side Formula is exactly Coulomb meter (coulomb counter), and Coulomb meter is to be designed to lead in measuring circuit according to Faraday's law Cross the device of electricity, it is simple for, an electric quantity metering chip of connecting on the protection circuit of battery, wherein concatenated is one A integrated sample resistance, the size of current flowed through by resistance test unit time inner looping, if electric current is to become at any time Change, and generate different pressure differences after flowing through different electric currents, is integrated by the electric current that this is changed, that is, in this section Time, distance etc. add up electric current, finally obtain in mobile terminal use and consumed electricity.Coulomb meter passes through two types Design obtain the remaining capacity of mobile terminal.One is A/D analog-to-digital conversions, usually 12 precision, and voltage value is converted For the interval time after the binary digit of 12 precision multiplied by sampling;Second is intergration model, utilizes RC integrating circuit The integrated value of current versus time is obtained, obtains the remaining capacity of mobile terminal.By the remaining capacity of mobile terminal divided by volume Determine electricity, the percentage being calculated, by the percentage be can determine mobile terminal be presently in default electricity section.
For example, fully charged since mobile terminal and test pulling out the charging cables such as USB line, record the electricity of mobile terminal from During 100% is consumed to 90%, the operation duration x of application to be measured(0) (1), mobile terminal electricity be consumed to from 90% During 80%, the operation duration x of application to be measured(0) (2), mobile terminal electricity from 80% be consumed to 70% during, The operation duration x of application to be measured(0) (3)Etc..
Computing module 20, for calculating current residual electricity according to the corresponding operation duration in each default electricity section The application to be measured to operation duration under amount.
In the present embodiment, during running of mobile terminal, if user wants to know that mobile terminal current residual electricity can prop up Hold the operation duration of application to be measured, computing module 20 is worked as according to being greater than in mobile terminal remaining capacity of obtaining that module 10 gets It is to be measured in each default electricity section of preceding remaining capacity to apply corresponding operation duration, it calculates in mobile terminal current residual electricity Measure the lower application to be measured to operation duration.For example, computing module 20 is corresponding according to application to be measured in each default electricity section Operation duration, using Grey Prediction Algorithm calculate under current residual electricity the application to be measured to operation duration.
Gray prediction is a kind of method predicted the system containing uncertain factor, if a system has layer Secondary, structural relation ambiguity, the randomness of dynamic change, achievement data it is incomplete or uncertain, then claim these specially for Grey majorized model.System with grey majorized model is known as gray system.Study gray system important content first is that how from one not Be abstracted and set up a model in very specific, the insufficient system of Global Information, the model can make the factor of gray system by Indefinite arrive defines, by the more offer Research foundation for developing to and knowing of knowing little about it.Gray system theory is cybernatic viewpoint The product of society, economic field is extended to method, and automatically controls the result that science is combined with mathematics of operations research method. In gray system theory, after the less or inapt original data sequence transformation for indicating gray system behavioural characteristic It establishes, to describe the model of things consecutive variations process inside gray system, referred to as gray model, abbreviation GM (Grey Model) model.
Gray prediction is associated analysis, and to original by the different degree of development trend between identification system factor Beginning data carry out generation processing and carry out the rule that searching system changes, and generate the data sequence for having stronger regularity, then establish phase The Differential Equation Model answered, to predict the situation of things future developing trend.Its response prediction pair observed with even time interval As a series of quantitative values construction grey forecasting model of feature, the characteristic quantity at the prediction following a certain moment, or reach a certain feature The time of amount.
In the present embodiment, specifically, when current residual electricity corresponds to the electricity section of multiple arranged in sequence, the calculating Module 20 includes:
First computing unit is calculated for obtaining the current electric quantity section where current residual electricity, and using gray prediction Method calculates current electric quantity section pair according to the operation duration of the application to be measured in each electricity section before current electric quantity section The operation duration answered;And using next electricity section in current electric quantity section as current electric quantity section, and continue to execute institute State the operation duration meter using Grey Prediction Algorithm according to the application to be measured in each electricity section before current electric quantity section The corresponding operation duration in current electric quantity section is calculated, until calculating described in the corresponding each electricity section of current residual electricity The operation duration of application to be measured;
Second computing unit, each operation duration for that will calculate are added, and are obtained described under current residual electricity Application to be measured to operation duration.
It is greater than each default electricity area of current residual electricity in mobile terminal remaining capacity when obtaining module 10 and getting After the corresponding operation duration of interior application to be measured, it is current that the first computing unit using Grey Prediction Algorithm calculates separately mobile terminal The operation duration of application to be measured in the corresponding each electricity section of remaining capacity.
Firstly, the electricity section where mobile terminal current residual electricity is obtained, by mobile terminal current residual electricity institute Electricity section as current electric quantity section, the first computing unit is using Grey Prediction Algorithm according to each default electricity of acquisition Measure the operation duration of application to be measured in the electricity section where the corresponding operation duration in section calculates current residual electricity.
Specifically, it is greater than each of current residual electricity in mobile terminal remaining capacity according to what acquisition module 10 was got It is to be measured in default electricity section to apply corresponding operation duration, generate an original data series x(0) (i):x(0) (i)=[x(0) (1), x(0) (2), x(0) (3),…x(0) (n)].Then, according to original data series x generated(0) (i)=[x(0) (1), x(0) (2)... x(0) (k),…x(0) (n)], Original data series progress one-accumulate is generated to obtain and generates ordered series of numbers x(1) (i)=[x(1) (1), x(1) (2)... x(1) (k),…x(1) (n)], Wherein, x(1) (k)=∑k I=1x(0) (k), k=1,2,3 ... n.For example, if original data series x(0) (i)=[32,38,36,35,40, 42], then obtain generating ordered series of numbers x(1) (i)=[32,70,106,141,181,223].According to GM (1,1) albefaction equation dx(1)/dt+ ax(1)The solution x of=b(1) (k+1)=(x(1) (0)-b/a)e-ak+ b/a, k=1,2,3 ... n.Wherein, GM (1,1) represents a variable First-order equation, a are development coefficient, and b is grey actuating quantity.Take x(1) (0)=x(0) (1), then x is calculated(1) (k+1)=(x(0) (1)-b/a) e-ak+ b/a, k=1,2,3 ... n.It is original data series by one-accumulate generation due to generating ordered series of numbers, x can be obtained in reduction(0) (k+1)=x(1) (k+1)-x(1) (k), the x that will be calculated(1) (k+1)=(x(0) (1)-b/a)e-ak+ b/a brings the formula of above formula reduction into x(0) (k+1)=x(1) (k+1)-x(1) (k)In, obtain x(0) (k+1)=(x(0) (1)-b/a)e-ak+b/a-x(1) (k)=(x(0) (1)-b/a)e-ak+ b/a-(x(0) (1)+x(0) (2)+…+x(0) (k)), the operation duration of application to be measured in current electric quantity section is calculated, namely calculate The operation duration of the application to be measured in the electricity section where mobile terminal current residual electricity is arrived.
First computing unit is calculating in current electric quantity section after the operation duration of application to be measured, by current electric quantity section Next electricity section as current electric quantity section, also i.e. will be under the electricity section where mobile terminal current residual electricity One electricity section is as current electric quantity section.First computing unit according to get be greater than in mobile terminal remaining capacity it is current The electricity to be measured applied before corresponding operation duration and current electric quantity section in each default electricity section of remaining capacity The operation duration of application to be measured in section, namely be calculated in the electricity section where mobile terminal current residual electricity The operation duration of application to be measured, using the operation duration of application to be measured in Grey Prediction Algorithm calculating current electric quantity section.It will meter The obtained operation duration of application to be measured in the electricity section where mobile terminal current residual electricity is as original data series x(0) (i)In a data, update original data series x(0) (i), according still further to aforesaid way according to the original data series x of update(0) (i)It calculates The operation duration of application to be measured in current electric quantity section, namely calculate the electricity section where mobile terminal current residual electricity Next electricity section in application to be measured operation duration.
In this manner, the first computing unit is calculating in current electric quantity section after the operation duration of application to be measured, will Next electricity section in current electric quantity section is big in mobile terminal remaining capacity according to what is got as current electric quantity section Before the corresponding operation duration of application to be measured in each default electricity section of current residual electricity and current electric quantity section Each electricity section in application to be measured operation duration, application to be measured in current electric quantity section is calculated using Grey Prediction Algorithm Operation duration.Until calculating the operation duration of application to be measured in the corresponding each electricity section of mobile terminal current residual electricity Afterwards, the second computing unit is by the operation duration phase of application to be measured in the corresponding each electricity section of mobile terminal current residual electricity Add, obtain application to be measured under current residual electricity to operation duration.
The scheme that the present embodiment proposes is greater than current residual electricity by obtaining the mobile terminal electricity that module 10 obtains It is to be measured in each default electricity section to apply corresponding operation duration, the mobile end that computing module 20 is obtained according to module 10 is obtained Remaining capacity operation duration corresponding greater than application to be measured in each default electricity section of current residual electricity is held, using grey Prediction algorithm calculates the operation duration of the application to be measured under current residual electricity, namely by Grey Prediction Algorithm to multiple default Corresponding actual motion duration is analyzed and processed to obtain the Fluctuation of operation duration in electricity section, so that prediction is moving Under dynamic terminal current residual electricity the application to be measured to operation duration, improve that prediction is to be measured to apply under current residual electricity Operation duration accuracy.
Further, as shown in figure 4, proposing prediction meanss the of the present invention application to operation duration based on first embodiment Two embodiments.Using the implementation of prediction meanss first of prediction meanss second embodiment and application to operation duration to operation duration The difference of example is that in prediction meanss second embodiment of the application to operation duration, the computing module 20 further includes:
Comparing unit 21, operation duration and institute for the application to be measured in the current electric quantity section of contrast conting State the size of the actual motion duration of the application to be measured in current electric quantity section;
Updating unit 22, for the application to be measured described in the current electric quantity section of calculating operation duration with it is described When the absolute difference of the actual motion duration of the application to be measured is greater than default time difference threshold value in current electric quantity section, according to described The actual motion duration of the application to be measured in current electric quantity section, update current residual electricity under the application to be measured it is to be shipped Row duration.
In the present embodiment, further the operation duration of application to be measured under the current residual electricity of calculating is verified.Tool Body, in the present embodiment, it is previously provided with a default time difference threshold value, the specific value of the default time difference threshold value can be according to practical feelings Condition carries out flexible setting, and this is not restricted.When the practical fortune for obtaining module 10 and getting application to be measured in current electric quantity section It the operation duration of application to be measured and obtains module 10 when row duration, in the current electric quantity section of 21 contrast conting of comparing unit and obtains The size of the actual motion duration of application to be measured in current electric quantity section.When application to be measured under the current residual electricity of calculating Operation duration is less than with the absolute difference for obtaining module 10 and getting the actual motion duration of application to be measured in current electric quantity section When default time difference threshold value, namely illustrate the operation duration calculated and actual motion duration is matched.When the current residual of calculating The operation duration of application to be measured and when obtaining module 10 and getting the actual motion of application to be measured in current electric quantity section under electricity When long absolute difference is greater than default time difference threshold value, namely illustrate the operation duration of application to be measured under the current residual electricity calculated It is wrong, at this point, actual motion duration of the updating unit 22 according to application to be measured in the current electric quantity section got, using grey Prediction algorithm recalculates the operation duration of application to be measured in each electricity section after current electric quantity section, before updating The operation duration of application to be measured in each electricity section calculated.Then, according to application to be measured in each electricity section of update Operation duration, calculate application to be measured under current residual electricity to operation duration, to the current residual electricity calculated before Application to be measured is updated to operation duration under amount.
Further, in this embodiment the application waits for that the prediction meanss of operation duration further include:
Display module, for showing that current residual electricity is corresponding each in the current display interface of the mobile terminal The operation duration of the application to be measured in electricity section.
In order to allow user know it is to be measured apply it is right in the corresponding each electricity section of mobile terminal current residual electricity The operation duration answered, in the present embodiment, when computing module 20 calculates each electricity corresponding in mobile terminal current residual electricity It measures in section after the operation duration of the application to be measured, display module shows calculating in the current display interface of mobile terminal The operation duration of the application to be measured in the corresponding each electricity section of mobile terminal current residual electricity out.When user looks into The current display interface of mobile terminal is seen you can learn that be measured apply the corresponding operation duration in each electricity section, to mention High user experience.
Further, in this embodiment the application waits for that the prediction meanss of operation duration further include:
Reminding module, it is pre- for being less than to operation duration for the application to be measured described under the current residual electricity of calculating If when duration threshold value, sending corresponding prompting message.
Further, in this embodiment it is also previously provided with a preset duration threshold value, the specific number of the preset duration threshold value Value can carry out flexible setting according to the actual situation, and this is not restricted.It is currently remained when computing module 20 is calculated in mobile terminal Under remaining electricity application to be measured to operation duration after, if calculated application to be measured under mobile terminal current residual electricity Be less than preset duration threshold value to operation duration, namely explanation application to be measured can operation duration it is very short, at this point, reminding module is sent Corresponding prompting message.For example, sending, the tinkle of bells is reminded, indicator light flashes prompting etc..When user receives prompting message, i.e., Corresponding measure can be taken, such as charging in time, close the application to be measured etc., to prevent the data of application to be measured in operation from losing It loses, to further improve user experience.
The scheme that the present embodiment proposes, the operation duration and current electric quantity of application to be measured in the current electric quantity section of calculating When the absolute difference of the actual motion duration of application to be measured is greater than default time difference threshold value in section, updating unit is according to current electric quantity The actual motion duration of application to be measured in section updates the operation duration of application to be measured under current residual electricity, thus further Improve the prediction accuracy to operation duration to be measured applied under current residual electricity.
The present invention further provides the prediction techniques that a kind of application waits for operation duration.
It is flow diagram of the present invention application to the prediction technique first embodiment of operation duration referring to Fig. 5, Fig. 5, In first embodiment, which includes the following steps to the prediction technique of operation duration:
It is corresponding to obtain application to be measured in the current remaining capacity of mobile terminal and each default electricity section by step S10 Operation duration, wherein each default electricity section be mobile terminal currently consumed the corresponding multiple electricity areas of electricity Between;
With the development of science and technology, the mobile terminals such as smart phone, PAD (tablet computer) have become in user's daily life not The equipment that can or lack.User is during using mobile terminal, the service condition of mobile terminal electricity and the power consumption of application Situation the problem of being always user's comparison is measured, especially when user's inconvenient the case where charging to mobile terminal outside Under, predict that can the remaining capacity of mobile terminal support the remaining capacity of some application operation or mobile terminal that can support to apply How long operation is just particularly important.Therefore, in the present embodiment, propose that a kind of application waits for that the prediction technique of operation duration is come Predict application to be measured can operation duration.Specifically, in the present embodiment, multiple default electricity sections are previously provided with.For example, Electricity section namely default electricity section are divided using ten percentage points of mobile terminal electricity as mobile terminal electricity 100%-90%, 90%-80%, 80%-70% ... 10%-0% etc..In the use process of mobile terminal, obtain mobile whole Current residual electricity is held, and obtains mobile terminal and to be measured is answered in each default electricity section that electricity is greater than current residual electricity With corresponding operation duration, namely obtain application to be measured in the corresponding multiple default electricity sections of electricity that mobile terminal has consumed Operation duration.Wherein, application to be measured can be certain a application loaded in mobile terminal, or a plurality of applications.
Specifically, it in the use process of mobile terminal, in real time or periodically to calculate mobile terminal and consume electricity and remained Remaining electricity, so that it is determined that mobile terminal be presently in default electricity section.Mobile terminal has consumed electricity general-purpose computations side Formula is exactly Coulomb meter (coulomb counter), and Coulomb meter is to be designed to lead in measuring circuit according to Faraday's law Cross the device of electricity, it is simple for, an electric quantity metering chip of connecting on the protection circuit of battery, wherein concatenated is one A integrated sample resistance, the size of current flowed through by resistance test unit time inner looping, if electric current is to become at any time Change, and generate different pressure differences after flowing through different electric currents, is integrated by the electric current that this is changed, that is, in this section Time, distance etc. add up electric current, finally obtain in mobile terminal use and consumed electricity.Coulomb meter passes through two types Design obtain the remaining capacity of mobile terminal.One is A/D analog-to-digital conversions, usually 12 precision, and voltage value is converted For the interval time after the binary digit of 12 precision multiplied by sampling;Second is intergration model, utilizes RC integrating circuit The integrated value of current versus time is obtained, obtains the remaining capacity of mobile terminal.By the remaining capacity of mobile terminal divided by volume Determine electricity, the percentage being calculated, by the percentage be can determine mobile terminal be presently in default electricity section.
For example, fully charged since mobile terminal and test pulling out the charging cables such as USB line, record the electricity of mobile terminal from During 100% is consumed to 90%, the operation duration x of application to be measured(0) (1), mobile terminal electricity be consumed to from 90% During 80%, the operation duration x of application to be measured(0) (2), mobile terminal electricity from 80% be consumed to 70% during, The operation duration x of application to be measured(0) (3)Etc..To be measured the multiple default electricity consumed in mobile terminal are applied according to collected Corresponding multiple operation durations in section are measured, an original data series x is produced(0) (i)=[x(0) (1), x(0) (2), x(0) (3),…x(0) (n)]。
Step S20 is calculated described under current residual electricity according to the corresponding operation duration in each default electricity section Application to be measured to operation duration.
In the present embodiment, during running of mobile terminal, if user wants to know that mobile terminal current residual electricity can prop up The operation duration of application to be measured is held, mobile terminal is greater than current residual electricity in mobile terminal remaining capacity according to what is got The corresponding operation duration of application to be measured in each default electricity section calculates under mobile terminal current residual electricity this and to be measured answers To operation duration.For example, mobile terminal is used according to the corresponding operation duration of application to be measured in each default electricity section Grey Prediction Algorithm calculate under current residual electricity the application to be measured to operation duration.
Gray prediction is a kind of method predicted the system containing uncertain factor, if a system has layer Secondary, structural relation ambiguity, the randomness of dynamic change, achievement data it is incomplete or uncertain, then claim these specially for Grey majorized model.System with grey majorized model is known as gray system.Study gray system important content first is that how from one not Be abstracted and set up a model in very specific, the insufficient system of Global Information, the model can make the factor of gray system by Indefinite arrive defines, by the more offer Research foundation for developing to and knowing of knowing little about it.Gray system theory is cybernatic viewpoint The product of society, economic field is extended to method, and automatically controls the result that science is combined with mathematics of operations research method. In gray system theory, after the less or inapt original data sequence transformation for indicating gray system behavioural characteristic It establishes, to describe the model of things consecutive variations process inside gray system, referred to as gray model, abbreviation GM (Grey Model) model.
Gray prediction is associated analysis, and to original by the different degree of development trend between identification system factor Beginning data carry out generation processing and carry out the rule that searching system changes, and generate the data sequence for having stronger regularity, then establish phase The Differential Equation Model answered, to predict the situation of things future developing trend.Its response prediction pair observed with even time interval As a series of quantitative values construction grey forecasting model of feature, the characteristic quantity at the prediction following a certain moment, or reach a certain feature The time of amount.
In the present embodiment, specifically, when current residual electricity corresponds to the electricity section of multiple arranged in sequence, the step S20 includes:
Step a obtains the current electric quantity section where current residual electricity, and using Grey Prediction Algorithm according to current electricity The operation duration of the application to be measured calculates the corresponding operation duration in current electric quantity section in each electricity section before measuring section;
Step b using next electricity section in current electric quantity section as current electric quantity section, and continues to execute described adopt Worked as with Grey Prediction Algorithm according to the calculating of the operation duration of the application to be measured in each electricity section before current electric quantity section The step of corresponding operation duration in preceding electricity section, until calculating the institute in the corresponding each electricity section of current residual electricity State the operation duration of application to be measured;
Each operation duration of calculating is added by step c, obtain the application to be measured under current residual electricity to Operation duration.
It to be measured is answered in each default electricity section that mobile terminal remaining capacity is greater than current residual electricity when getting After corresponding operation duration, it is corresponding that mobile terminal uses Grey Prediction Algorithm to calculate separately mobile terminal current residual electricity The operation duration of application to be measured in each electricity section.
Firstly, the electricity section where mobile terminal current residual electricity is obtained, by mobile terminal current residual electricity institute Electricity section as current electric quantity section, mobile terminal is using Grey Prediction Algorithm according to each default electricity area of acquisition Between corresponding operation duration calculate the operation duration of application to be measured in the electricity section where current residual electricity.
Specifically, it is greater than each default electricity area of current residual electricity in mobile terminal remaining capacity according to what is got The corresponding operation duration of interior application to be measured, generates an original data series x(0) (i):x(0) (i)=[x(0) (1), x(0) (2), x(0) (3),…x(0) (n)].Then, according to original data series x generated(0) (i)=[x(0) (1), x(0) (2)... x(0) (k),…x(0) (n)], this is original Ordered series of numbers carries out one-accumulate and generates to obtain generation ordered series of numbers x(1) (i)=[x(1) (1), x(1) (2)... x(1) (k),…x(1) (n)], wherein x(1) (k)=∑k I=1x(0) (k), k=1,2,3 ... n.For example, if original data series x(0) (i)=[32,38,36,35,40,42], then To generation ordered series of numbers x(1) (i)=[32,70,106,141,181,223].According to GM (1,1) albefaction equation dx(1)/dt+ax(1)=b's Solve x(1) (k+1)=(x(1) (0)-b/a)e-ak+ b/a, k=1,2,3 ... n.Wherein, GM (1,1) represents the first-order equation of a variable, A is development coefficient, and b is grey actuating quantity.Take x(1) (0)=x(0) (1), then x is calculated(1) (k+1)=(x(0) (1)-b/a)e-ak+ b/a, k =1,2,3 ... n.It is original data series by one-accumulate generation due to generating ordered series of numbers, x can be obtained in reduction(0) (k+1)=x(1) (k+1)-x(1) (k), by x(1) (k+1)=(x(0) (1)-b/a)e-ak+ b/a brings x into(0) (k+1)=x(1) (k+1)-x(1) (k)In, obtain x(0) (k+1)=(x(0) (1)-b/a)e-ak+b/a-x(1) (k)=(x(0) (1)-b/a)e-ak+b/a-(x(0) (1)+x(0) (2)+…+x(0) (k)), meter The operation duration of application to be measured in current electric quantity section is calculated, namely has been calculated where mobile terminal current residual electricity Electricity section in application to be measured operation duration.
It is calculating in current electric quantity section after the operation duration of application to be measured, by next electricity in current electric quantity section Section is as current electric quantity section, also i.e. by next electricity section in the electricity section where mobile terminal current residual electricity As current electric quantity section.Mobile terminal is each pre- greater than current residual electricity in mobile terminal remaining capacity according to getting If application to be measured in the electricity section in electricity section before the corresponding operation duration of application to be measured and current electric quantity section Operation duration, namely be calculated in the electricity section where mobile terminal current residual electricity when the operation of application to be measured It is long, using the operation duration of application to be measured in Grey Prediction Algorithm calculating current electric quantity section.It will be calculated mobile whole Hold the operation duration of application to be measured in the electricity section where current residual electricity as original data series x(0) (i)In a number According to update original data series x(0) (i), according still further to aforesaid way according to the original data series x of update(0) (i)It calculates in current electric quantity section The operation duration of application to be measured, namely calculate next electricity area in the electricity section where mobile terminal current residual electricity The operation duration of interior application to be measured.
In this manner, mobile terminal is calculating in current electric quantity section after the operation duration of application to be measured, will be current Worked as according to being greater than in mobile terminal remaining capacity of getting as current electric quantity section in next electricity section in electricity section It is each before the corresponding operation duration of application to be measured and current electric quantity section in each default electricity section of preceding remaining capacity The operation duration of application to be measured in electricity section calculates the operation of application to be measured in current electric quantity section using Grey Prediction Algorithm Duration.Until calculate in the corresponding each electricity section of mobile terminal current residual electricity after the operation duration of application to be measured, The operation duration of application to be measured in the corresponding each electricity section of mobile terminal current residual electricity is added, current residual is obtained Application to be measured to operation duration under electricity.
The scheme that the present embodiment proposes obtains each default electricity section that mobile terminal electricity is greater than current residual electricity The corresponding operation duration of interior application to be measured, is then greater than each of current residual electricity according to the mobile terminal remaining capacity of acquisition It is to be measured to calculate under current residual electricity this using Grey Prediction Algorithm for the corresponding operation duration of application to be measured in default electricity section The operation duration of application, namely actual motion duration corresponding in multiple default electricity sections is carried out by Grey Prediction Algorithm Analysis handles to obtain the Fluctuation of operation duration, thus prediction application to be measured under mobile terminal current residual electricity To operation duration, the prediction accuracy to be measured for applying the operation duration under current residual electricity is improved.
Further, prediction technique second embodiment of the present invention application to operation duration is proposed based on first embodiment. Using the difference of prediction technique second embodiment and application to the prediction technique first embodiment of operation duration to operation duration It is, in prediction technique second embodiment of the application to operation duration, after the step a, further includes:
Step d, the operation duration of the application to be measured and the current electricity in the current electric quantity section of contrast conting Measure the size of the actual motion duration of the application to be measured in section;
Step e, the operation duration Yu the current electric quantity of the application to be measured in the current electric quantity section of calculating When the absolute difference of the actual motion duration of the application to be measured is greater than default time difference threshold value in section, according to the current electric quantity The actual motion duration of the application to be measured in section, update current residual electricity under the application to be measured to operation duration.
In the present embodiment, further the operation duration of application to be measured under the current residual electricity of calculating is verified.Tool Body, in the present embodiment, it is previously provided with a default time difference threshold value, the specific value of the default time difference threshold value can be according to practical feelings Condition carries out flexible setting, and this is not restricted.When the actual motion of application to be measured in acquisition for mobile terminal to current electric quantity section When duration, in the current electric quantity section of contrast conting the operation duration of application to be measured with it is to be measured in the current electric quantity section got The size of the actual motion duration of application.When the operation duration of application to be measured under the current residual electricity of calculating is worked as with what is got When the absolute difference of the actual motion duration of application to be measured is less than default time difference threshold value in preceding electricity section, namely illustrate to calculate Operation duration is matched with actual motion duration.When the operation duration and acquisition of application to be measured under the current residual electricity of calculating When the absolute difference of the actual motion duration of application to be measured is greater than default time difference threshold value in the current electric quantity section arrived, namely explanation The operation duration of application to be measured is wrong under the current residual electricity of calculating, at this point, mobile terminal is according to the current electric quantity got The actual motion duration of application to be measured, each electricity after current electric quantity section is recalculated using Grey Prediction Algorithm in section The operation duration of application to be measured in section is measured, with the operation duration of application to be measured in each electricity section for calculating before updating. Then, according to the operation duration of application to be measured in each electricity section of update, application to be measured under current residual electricity is calculated To operation duration, to be updated to application to be measured under the current residual electricity calculated before to operation duration.
Further, in this embodiment further including after the step S20:
Step f shows the corresponding each electricity area of current residual electricity in the current display interface of the mobile terminal The operation duration of the interior application to be measured.
In order to allow user know it is to be measured apply it is right in the corresponding each electricity section of mobile terminal current residual electricity The operation duration answered, in the present embodiment, when calculating the institute in the corresponding each electricity section of mobile terminal current residual electricity After the operation duration for stating application to be measured, shown in the current display interface of mobile terminal calculated current in mobile terminal The operation duration of the application to be measured in the corresponding each electricity section of remaining capacity.When user checks the current aobvious of mobile terminal Show interface you can learn that be measured apply the corresponding operation duration in each electricity section, to improve user experience.
Further, in this embodiment further including after the step S20:
Step g, the application to be measured is less than preset duration to operation duration under the current residual electricity of calculating When threshold value, corresponding prompting message is sent.
Further, in this embodiment it is also previously provided with a preset duration threshold value, the specific number of the preset duration threshold value Value can carry out flexible setting according to the actual situation, and this is not restricted.It is to be measured under mobile terminal current residual electricity when calculating Application to operation duration after, if calculated application to be measured under mobile terminal current residual electricity is small to operation duration In preset duration threshold value, namely explanation application to be measured can operation duration it is very short, at this point, mobile terminal sends and corresponding reminds letter Breath.For example, sending, the tinkle of bells is reminded, indicator light flashes prompting etc..When user receives prompting message, it can take and accordingly arrange It applies, such as charging in time, closes the application to be measured etc., to prevent the loss of data of application to be measured in operation, thus into one Step improves user experience.
The scheme that the present embodiment proposes, the operation duration and current electric quantity of application to be measured in the current electric quantity section of calculating When the absolute difference of the actual motion duration of application to be measured is greater than default time difference threshold value in section, mobile terminal is according to current electric quantity The actual motion duration of application to be measured in section, update application to be measured under current residual electricity to operation duration, thus into one Step improves the prediction accuracy to be measured for applying the operation duration under current residual electricity.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a mobile terminal device (can be mobile phone, calculate Machine, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. the prediction meanss that a kind of application waits for operation duration, which is characterized in that the application waits for the prediction meanss packet of operation duration It includes:
Module is obtained, for obtaining application pair to be measured in the current remaining capacity of mobile terminal and each default electricity section The operation duration answered, wherein each default electricity section is that mobile terminal has currently consumed the corresponding multiple electricity of electricity Section;
Computing module, for calculating institute under current residual electricity according to the corresponding operation duration in each default electricity section State application to be measured to operation duration;
The computing module includes:
First computing unit for obtaining the current electric quantity section where current residual electricity, and uses Grey Prediction Algorithm root It is corresponding that current electric quantity section is calculated according to the operation duration of the application to be measured in each electricity section before current electric quantity section Operation duration;And using next electricity section in current electric quantity section as current electric quantity section, and continue to execute described adopt Worked as with Grey Prediction Algorithm according to the calculating of the operation duration of the application to be measured in each electricity section before current electric quantity section The corresponding operation duration in preceding electricity section, until calculating described to be measured in the corresponding each electricity section of current residual electricity The operation duration of application;
Second computing unit, each operation duration for that will calculate are added, obtain described to be measured under current residual electricity Application to operation duration.
2. prediction meanss of the application as described in claim 1 to operation duration, which is characterized in that the computing module also wraps It includes:
Comparing unit, for the operation duration of the application to be measured in the current electric quantity section of contrast conting and described current The size of the actual motion duration of the application to be measured in electricity section;
Updating unit, operation duration and the current electricity for the application to be measured described in the current electric quantity section of calculating When measuring the absolute difference of the actual motion duration of the application to be measured in section greater than default time difference threshold value, according to the current electricity Measure section in the application to be measured actual motion duration, update current residual electricity under the application to be measured when running It is long.
3. prediction meanss of the application as described in claim 1 to operation duration, which is characterized in that the application waits for operation duration Prediction meanss further include:
Display module, for showing the corresponding each electricity of current residual electricity in the current display interface of the mobile terminal The operation duration of the application to be measured in section.
4. the prediction meanss that application as described in any one of claims 1-3 waits for operation duration, which is characterized in that the application waits for The prediction meanss of operation duration further include:
Reminding module, for the application to be measured described under the current residual electricity of calculating when operation duration is less than default When long threshold value, corresponding prompting message is sent.
5. the prediction technique that a kind of application waits for operation duration, which is characterized in that the application waits for the prediction technique packet of operation duration Include following steps:
It is to be measured in the acquisition current remaining capacity of mobile terminal and each default electricity section to apply corresponding operation duration, Wherein, each default electricity section is that mobile terminal has currently consumed the corresponding multiple electricity sections of electricity;
According to the corresponding operation duration in each default electricity section, calculate the application to be measured under current residual electricity to Operation duration;
It is described according to each default electricity section pair when current residual electricity corresponds to the electricity section of multiple arranged in sequence The operation duration answered, calculating the application to be measured under current residual electricity to the step of operation duration includes:
Obtain current residual electricity where current electric quantity section, and using Grey Prediction Algorithm according to current electric quantity section before Each electricity section in the operation duration of the application to be measured calculate the corresponding operation duration in current electric quantity section;
Using next electricity section in current electric quantity section as current electric quantity section, and continue to execute described using gray prediction Algorithm calculates current electric quantity section according to the operation duration of the application to be measured in each electricity section before current electric quantity section The step of corresponding operation duration, until calculating the application to be measured in the corresponding each electricity section of current residual electricity Operation duration;
Each operation duration of calculating is added, obtain the application to be measured under current residual electricity to operation duration.
6. prediction technique of the application as claimed in claim 5 to operation duration, which is characterized in that described to be calculated using gray prediction After method calculates the step of operation duration of the application to be measured in current electric quantity section, further include:
The operation duration of the application to be measured and institute in the current electric quantity section in the current electric quantity section of contrast conting State the size of the actual motion duration of application to be measured;
It is described in the operation duration of the application to be measured and the current electric quantity section in the current electric quantity section of calculating When the absolute difference of the actual motion duration of application to be measured is greater than default time difference threshold value, according to described in the current electric quantity section The actual motion duration of application to be measured, update current residual electricity under the application to be measured to operation duration.
7. prediction technique of the application as claimed in claim 5 to operation duration, which is characterized in that described calculate remains currently In the corresponding each electricity section of remaining electricity the step of the operation duration of the application to be measured after, further include:
Shown in the current display interface of the mobile terminal in the corresponding each electricity section of current residual electricity it is described to Survey the operation duration of application.
8. as the described in any item applications of claim 5-7 wait for the prediction technique of operation duration, which is characterized in that the basis is each The corresponding operation duration in a default electricity section, calculate the application to be measured under current residual electricity to operation duration After step, further include:
Under the current residual electricity of calculating the application to be measured when operation duration be less than preset duration threshold value when, send Corresponding prompting message.
CN201610497058.0A 2016-06-29 2016-06-29 Using the prediction meanss and method to operation duration Active CN106201820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610497058.0A CN106201820B (en) 2016-06-29 2016-06-29 Using the prediction meanss and method to operation duration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610497058.0A CN106201820B (en) 2016-06-29 2016-06-29 Using the prediction meanss and method to operation duration

Publications (2)

Publication Number Publication Date
CN106201820A CN106201820A (en) 2016-12-07
CN106201820B true CN106201820B (en) 2018-11-20

Family

ID=57463513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610497058.0A Active CN106201820B (en) 2016-06-29 2016-06-29 Using the prediction meanss and method to operation duration

Country Status (1)

Country Link
CN (1) CN106201820B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462627B (en) * 2017-09-06 2022-01-28 中国移动通信有限公司研究院 Electric quantity management method and system for terminal of Internet of things
CN113673080B (en) * 2021-07-15 2023-08-18 北京奇艺世纪科技有限公司 Method, device, equipment and medium for predicting duration of application and training model

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477178A (en) * 2009-02-06 2009-07-08 上海华勤通讯技术有限公司 Detection method and detection system for battery service time
CN102928763A (en) * 2012-11-28 2013-02-13 杭州广立微电子有限公司 Addressing testing circuit for transistor key parameters and testing method thereof
CN103455126A (en) * 2013-09-16 2013-12-18 贝壳网际(北京)安全技术有限公司 Method and client device for determining residual service life of battery and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8375134B2 (en) * 2009-06-08 2013-02-12 Microsoft Corporation Determining an efficient keep-alive interval for a network connection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477178A (en) * 2009-02-06 2009-07-08 上海华勤通讯技术有限公司 Detection method and detection system for battery service time
CN102928763A (en) * 2012-11-28 2013-02-13 杭州广立微电子有限公司 Addressing testing circuit for transistor key parameters and testing method thereof
CN103455126A (en) * 2013-09-16 2013-12-18 贝壳网际(北京)安全技术有限公司 Method and client device for determining residual service life of battery and mobile terminal

Also Published As

Publication number Publication date
CN106201820A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN104899062B (en) Using startup method and device
CN105718027B (en) The management method and mobile terminal of background application
CN105094531B (en) A kind of icon ordering system and method
CN105939416A (en) Mobile terminal and application prestart method thereof
CN106302385B (en) A kind of message distribution device and method
CN105553036B (en) A kind of device and method of quick charge
EP3598726A1 (en) Method for adjusting precision level of positioning, device, storage medium and electronic device
CN105159533A (en) Mobile terminal and automatic verification code input method thereof
CN105824537B (en) Screenshot method and device
CN104881346B (en) The detection method and device of a kind of mobile terminal and its application program power consumption
CN110658961B (en) Information display method and device and electronic equipment
CN105099870A (en) Message pushing method and device
CN104899814A (en) Method for intelligently reminding healthy diet and terminal
CN105303398A (en) Information display method and system
CN106231130B (en) The screen method and device of notification message
CN106657611A (en) Device and method for changing application theme
CN106201820B (en) Using the prediction meanss and method to operation duration
CN105975052A (en) Screen switching method and device
CN111290819A (en) Method and device for displaying operation prompt and electronic equipment
CN104834473B (en) The method and device of input
CN104810033B (en) Audio frequency playing method and device
CN108829267A (en) A kind of vocabulary recommended method, equipment and computer can storage mediums
CN105897436B (en) Flow monitoring device and method
CN105611059B (en) Show the method, device and mobile terminal of application availability
CN104731508A (en) Audio playing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant