CN105764085A - Abnormal electricity consumption detection method and terminal - Google Patents

Abnormal electricity consumption detection method and terminal Download PDF

Info

Publication number
CN105764085A
CN105764085A CN201610086341.4A CN201610086341A CN105764085A CN 105764085 A CN105764085 A CN 105764085A CN 201610086341 A CN201610086341 A CN 201610086341A CN 105764085 A CN105764085 A CN 105764085A
Authority
CN
China
Prior art keywords
application
service data
preset rules
terminal
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610086341.4A
Other languages
Chinese (zh)
Inventor
魏军
李爵宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201610086341.4A priority Critical patent/CN105764085A/en
Publication of CN105764085A publication Critical patent/CN105764085A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Abstract

The embodiment of the invention discloses an abnormal electricity consumption detection method. An application of abnormal electricity consumption can be detected in advance so that the application can be timely processed, and thus the situation of abnormal consumption of electricity of a terminal can be effectively prevented. The method comprises the steps that the first operating state and first operating data corresponding to a current operating first application are acquired within a preset period, and the first application is not a system application; when the first operating state indicates background operating and the preset period is up, whether the first operating data are matched with preset rules is detected, and the preset rules are criteria for judging abnormal electricity consumption of the first application; and if the first operating data are matched with the preset rules, abnormal electricity consumption of the first application is presented.

Description

The detection method of a kind of abnormal power consumption and terminal
Technical field
The present invention relates to the alarm detection technology in the communications field, particularly relate to detection method and the terminal of a kind of abnormal power consumption.
Background technology
Along with developing rapidly of electronic technology, terminal has had more and more intelligent and hommization design, and accordingly, the application that terminal is installed also gets more and more, and the power consumption of terminal also can be very big, and therefore, the stand-by time of terminal is also the problem needing to pay close attention to.
In prior art, the power consumption detection to application in terminal is all that statistics power consumption realizes.When not using certain to apply user, terminal detects that the power consumption of certain application is excessive, then it is assumed that this certain application is the situation applying or having abnormal power consumption of power consumption.At this moment, user can pass through to close this certain consumption that should be used for keeping the electricity of terminal.
But, adopt existing techniques in realizing scheme, owing to being after occurring in that the fact that certain application produces a large amount of abnormal power consumption, terminal just detects, then terminal or user again to this certain application close, at this moment, terminal, already consumed by electricity, is now closed this certain application and can only be mended the fold after the sheep is lost.
Summary of the invention
For solving above-mentioned technical problem, embodiment of the present invention expectation provides detection method and the terminal of a kind of abnormal power consumption, the application of abnormal power consumption can be detected in advance so that in time this application is processed, thus effectively preventing the abnormal consumption situation of the electricity of terminal.
The technical scheme is that and be achieved in that:
Embodiments provide the detection method of a kind of abnormal power consumption, including:
In predetermined period, obtaining the first running status corresponding to the first currently running application and the first service data, described first application is applied for nonsystematic;
When described first running status is running background, and when described predetermined period arrives, detecting whether described first service data mates with preset rules, described preset rules is differentiate the described first criterion applying abnormal power consumption;
If described first service data is mated with described preset rules, then present described first and apply abnormal power consumption.
In such scheme, described first service data includes: global position system GPS uses state, WAKELOCK held state and audio frequency to use state;Described preset rules is that described audio frequency uses state for not using, described GPS uses state for having used and described WAKELOCK held state is not for hold.
In such scheme, described first service data includes: central processor CPU occupancy, WAKELOCK held state and network data make consumption, and audio frequency uses state;Described preset rules is that described audio frequency uses state for not use, and described WAKELOCK held state is not for hold, and described CPU usage is more than the first predetermined threshold value, and described network data makes consumption less than the second predetermined threshold value.
In such scheme, described first service data includes: CPU usage, WAKELOCK held state and network data make consumption, and audio frequency uses state;Described preset rules is when in the sleeping state, and described audio frequency uses state for not use, and described WAKELOCK held state is for holding, and described CPU usage is less than the first predetermined threshold value, and described network data makes consumption less than the second predetermined threshold value.
In such scheme, before the first running status of the first application correspondence that described acquisition is currently running and the first service data, described method also includes:
Detect currently running whole application;
Described first application into nonsystematic application is selected from described currently running whole application.
In such scheme, after whether described first service data of described detection mates with preset rules, described method also includes:
If described first service data is not mated with described preset rules, then do not present described first and apply abnormal power consumption.
Embodiments provide a kind of terminal, including:
Acquiring unit, for, in predetermined period, obtaining the first running status corresponding to the first currently running application and the first service data, described first application is applied for nonsystematic;
Detection unit, described first running status for obtaining when described acquiring unit is running background, and during described predetermined period arrival, whether described first service data detecting the acquisition of described acquiring unit mates with preset rules, and described preset rules is differentiate the described first criterion applying abnormal power consumption;
Display unit, if detecting that described first service data is mated with described preset rules for described detection unit, then presents described first and applies abnormal power consumption.
In above-mentioned terminal, described first service data that described acquiring unit obtains includes: global position system GPS uses state, WAKELOCK held state and audio frequency to use state;Described preset rules is that described audio frequency uses state for not using, described GPS uses state for having used and described WAKELOCK held state is not for hold.
In above-mentioned terminal, described first service data that described acquiring unit obtains includes: central processor CPU occupancy, WAKELOCK held state and network data make consumption, and audio frequency uses state;Described preset rules is that described audio frequency uses state for not use, and described WAKELOCK held state is not for hold, and described CPU usage is more than the first predetermined threshold value, and described network data makes consumption less than the second predetermined threshold value.
In above-mentioned terminal, described first service data that described acquiring unit obtains includes: CPU usage, WAKELOCK held state and network data make consumption, and audio frequency uses state;Described preset rules is when in the sleeping state, and described audio frequency uses state for not use, and described WAKELOCK held state is for holding, and described CPU usage is less than the first predetermined threshold value, and described network data makes consumption less than the second predetermined threshold value.
In above-mentioned terminal, described terminal also includes: select unit;
Described detection unit, before being additionally operable to the first running status and the first service data that described acquiring unit obtains the first currently running application correspondence, detects currently running whole application;
Select unit, described currently running for what detect from described detection unit
Application is all selected described first application into nonsystematic application.
In above-mentioned terminal, described display unit, it is additionally operable to described detection unit and detects after whether described first service data mate with preset rules, if described detection unit detects that described first service data is not mated with described preset rules, then do not present the described first abnormal power consumption of application.
Embodiments providing detection method and the terminal of a kind of abnormal power consumption, by, in predetermined period, obtaining the first running status corresponding to the first currently running application and the first service data, this first application is applied for nonsystematic;When the first running status is running background, and when predetermined period arrives, detecting whether the first service data mates with preset rules, this preset rules is the criterion differentiating the first abnormal power consumption of application;If the first service data is mated with preset rules, then present the first abnormal power consumption of application.Adopt above-mentioned technic relization scheme, owing to terminal is in predetermined period, just by the first first running status of application and mating of the first service data and preset rules, judge whether this first application is abnormal, thus causing abnormal power consumption, so, terminal just just can be found by terminal before a certain application in a large number abnormal power consumption and process in time, namely the application of abnormal power consumption can be detected in advance, so that in time this application is processed, thus effectively prevent the abnormal consumption situation of the electricity of terminal.
Accompanying drawing explanation
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the communication system that the mobile terminal of the present invention is operable to;
The flow chart one of the detection method of a kind of abnormal power consumption that Fig. 3 provides for the embodiment of the present invention;
The exemplary display figure presenting abnormal power consumption application that Fig. 4 provides for the embodiment of the present invention;
The flowchart 2 of the detection method of a kind of abnormal power consumption that Fig. 5 provides for the embodiment of the present invention;
The flow chart 3 of the detection method of a kind of abnormal power consumption that Fig. 6 provides for the embodiment of the present invention;
The structural representation one of a kind of terminal that Fig. 7 provides for the embodiment of the present invention;
The structural representation two of a kind of terminal that Fig. 8 provides for the embodiment of the present invention;
The structural representation three of a kind of terminal that Fig. 9 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for being conducive to the explanation of the present invention, itself do not have specific meaning.Therefore, " module " and " parts " can mixedly use.
It should be noted that a kind of focus acquisition device that the embodiment of the present invention provides can be terminal, for instance computer or mobile terminal etc. can use the electronic equipment of browser.
Wherein, mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include the mobile terminal of such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA), panel computer (PAD), portable media player (PMP), guider etc. and the fixed terminal of such as numeral TV, desk computer etc..Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for the element of mobile purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 1 can include wireless communication unit 110, audio/video (A/V) input block 120, user input unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 etc..Fig. 1 illustrates the mobile terminal with various assembly, it should be understood that be not required for implementing all assemblies illustrated.Can alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 1 and wireless communication system or network.Such as, wireless communication unit can include at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 manages server via broadcast channel from external broadcasting and receives broadcast singal and/or broadcast related information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or broadcast singal that reception is previously created and/or broadcast related information and send it to the server of terminal.Broadcast singal can include TV broadcast singal, radio signals, data broadcasting signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information can also provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the electronic program guides (EPG) of DMB (DMB), the form of the electronic service guidebooks (ESG) etc. of digital video broadcast-handheld (DVB-H).Broadcast reception module 111 can be passed through to use various types of broadcast systems to receive signal broadcast.Especially, broadcast reception module 111 can be passed through to use such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), DVB-hand-held (DVB-H), forward link media (MediaFLO) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receive digital broadcasting.Broadcast reception module 111 may be constructed such that the various broadcast systems and above-mentioned digit broadcasting system that are adapted to provide for broadcast singal.The broadcast singal and/or the broadcast related information that receive via broadcast reception module 111 can be stored in memorizer 160 (or other type of storage medium).
Mobile communication module 112 sends radio signals at least one in base station (such as, access point, node B etc.), exterior terminal and server and/or receives from it radio signal.Such radio signal can include voice call signal, video calling signal or the various types of data sending according to text and/or Multimedia Message and/or receiving.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can internally or externally be couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include bluetoothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Positional information module 115 is the module of positional information for checking or obtain mobile terminal.The typical case of positional information module is global positioning system (GPS) module.According to current technology, GPS module calculates from the range information of three or more satellites and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude with highly accurately calculate three-dimensional current location information.Currently, the method for calculating position and temporal information uses three satellites and the error by the position using an other satellite correction to calculate and temporal information.Additionally, GPS module can calculate velocity information by Continuous plus current location information in real time.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include camera 121 and mike 122, and the view data of the camera 121 static images to being obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in memorizer 160 (or other storage medium) or be transmitted via wireless communication unit 110, it is possible to provide two or more cameras 121 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by mike 122.Audio frequency (voice) data after process can be converted to the form output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Mike 122 can implement various types of noise elimination (or suppression) algorithm to eliminate (or suppression) in the noise received and produce in the process of transmission audio signal or interference.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electric capacity etc. the sensitive component of change), roller, rocking bar etc..Especially, when touch pad is superimposed upon on display unit 151 as a layer, it is possible to form touch screen.
Sensing unit 140 detects the current state of mobile terminal 1, (such as, mobile terminal 1 open or close state), the position of mobile terminal 1, user for mobile terminal 1 contact (namely, touch input) presence or absence, the orientation of mobile terminal 1, mobile terminal 1 acceleration or deceleration move and direction etc., and generate the order of operation for controlling mobile terminal 1 or signal.Such as, when mobile terminal 1 is embodied as sliding-type mobile phone, sensing unit 140 can sense this sliding-type phone and open or close.It addition, sensing unit 140 can detect power subsystem 190 and whether provide whether electric power or interface unit 170 couple with external device (ED).Sensing unit 140 can include proximity transducer 141 and below in conjunction with touch screen, this will be described.
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 1, the interface that can pass through.Such as, external device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port of the device with identification module, audio frequency input/output (I/O) port, video i/o port, ear port etc..Identification module can be that storage is for verifying that user uses the various information of mobile terminal 1 and can include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc..It addition, the device (hereinafter referred to " identification device ") with identification module can take the form of smart card, therefore, identify that device can be connected with mobile terminal 1 via port or other connecting device.Interface unit 170 may be used for receiving from the input (such as, data message, electric power etc.) of external device (ED) and the one or more elements being transferred in mobile terminal 1 by the input received or may be used for transmission data between mobile terminal and external device (ED).
Additionally, when mobile terminal 1 is connected with external base, interface unit 170 can serve as and allows to provide the path of mobile terminal 1 or can serve as to allow to be transferred to the path of mobile terminal from the various command signals of base input by it from base electric power by it.May serve as whether identification mobile terminal is accurately fitted within the signal base from the various command signals of base input or electric power.Output unit 150 is configured to provide output signal (such as, audio signal, video signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can include display unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1.Such as, when mobile terminal 1 is in telephone calling model, display unit 151 can show the user interface (UI) relevant with call or other communicate (such as, text messaging, multimedia file download etc.) or graphic user interface (GUI).When being in video calling pattern or image capture mode when mobile terminal 1, display unit 151 can show the image of image and/or the reception caught, UI or GUI illustrating video or image and correlation function etc..
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch screen time, display unit 151 can serve as input equipment and output device.Display unit 151 can include at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc..Some in these display may be constructed such that transparence, and to allow user to watch from outside, this is properly termed as transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc..According to the specific embodiment wanted, mobile terminal 1 can include two or more display units (or other display device), such as, mobile terminal can 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.
Dio Output Modules 152 can mobile terminal be in call signal receive under the isotype such as pattern, call mode, logging mode, speech recognition mode, broadcast reception mode time, that wireless communication unit 110 is received or storage in memorizer 160 voice data transducing audio signal and be output as sound.And, dio Output Modules 152 can provide the audio frequency output (such as, call signal receive sound, message sink sound etc.) relevant to the specific function of mobile terminal 1 execution.Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output so that event to inform mobile terminal 1.Typical event can include calling reception, message sink, key signals input, touch input etc..Except audio or video exports, alarm unit 153 can provide in a different manner and export the generation with notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receiving calling, message or some other entrance communication (incomingcommunication), alarm unit 153 can provide sense of touch output (that is, vibration) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also is able to identify the generation of various event.Alarm unit 153 can also provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can temporarily store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output.And, memorizer 160 can store the vibration about the various modes exported when touching and being applied to touch screen and the data of audio signal.
Memorizer 160 can include the storage medium of at least one type, described storage medium includes flash memory, hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access memory (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 can be connected the network storage device cooperation of the storage function performing memorizer 160 with by network.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.It addition, controller 180 can include the multi-media module 181 for reproducing (or playback) multi-medium data, multi-media module 181 can construct in controller 180, or it is so structured that separates with controller 180.Controller 180 can perform pattern recognition process, so that the handwriting input performed on the touchscreen or picture drafting input are identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides the suitable electric power operated needed for each element and assembly.
Various embodiment described herein can to use such as computer software, hardware or its any combination of computer-readable medium to implement.Hardware is implemented, embodiment described herein can pass through to use application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, at least one that is designed to perform in the electronic unit of function described herein to implement, in some cases, such embodiment can be implemented in controller 180.Implementing for software, the embodiment of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memorizer 160 and be performed by controller 180.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, by the slide type mobile terminal in the various types of mobile terminals describing such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
Mobile terminal 1 as shown in Figure 1 may be constructed such that utilization operates via such as wired and wireless communication system and the satellite-based communication system of frame or packet transmission data.
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, the air interface used by communication system includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and UMTS (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, as explained below relates to cdma communication system, but such instruction is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also structured to and the BSC275 formation interface that can be couple to BS270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC2750.
Each BS270 can service one or more subregion (or region), by each subregion of multidirectional antenna or the antenna covering pointing to specific direction radially away from BS270.Or, each subregion can be covered by two or more antennas for diversity reception.Each BS270 may be constructed such that support multiple frequencies distribution, and the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver subsystem (BTS) or other equivalent terms.In this case, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be referred to as multiple cellular station.
As shown in Figure 2, broadcast singal is sent in system the mobile terminal 1 of operation by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 1 and sentences the broadcast singal that reception is sent by BT295.In fig. 2 it is shown that several global positioning systems (GPS) satellite 300, satellite 300 helps to position at least one in multiple mobile terminals 1.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtains useful location information.GPS module as the positional information module 115 shown in Fig. 1 is generally configured to coordinate the location information wanted with acquisition with satellite 300.Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other technology of the position of mobile terminal can be followed the tracks of.It addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminals 1.Mobile terminal 1 generally participates in call, information receiving and transmitting communicates with other type of.Each reverse link signal that specific BS270 receives is processed in specific BS270.The data obtained are forwarded to relevant BSC275.BSC provides call resource distribution and the mobile management function of the coordination of soft switching process included between BS270.The data received also are routed to MSC280 by BSC275, and it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly controls BS270 so that forward link signals to be sent to mobile terminal 1.
Based on above-mentioned mobile terminal hardware configuration and communication system, it is proposed to each embodiment of the inventive method.
Embodiment one
The method embodiments provides the detection method of a kind of abnormal power consumption, as it is shown on figure 3, may include that
S101, in predetermined period, obtain the first running status corresponding to currently running first application and the first service data, this first application is nonsystematic application.
It should be noted that terminal in embodiments of the present invention being mounted with, multiple application, the plurality of application include system application and nonsystematic application.System application is the application for maintaining normal operation of terminal, and therefore system can not be applied random process and closedown.The embodiment of the present invention is aiming at nonsystematic and is applied in backstage and carries out the detection of abnormal power consumption.
Optionally, the first application can be chat application, game application and shopping application etc., and the embodiment of the present invention is not limited as.
Optionally, the terminal in the embodiment of the present invention can be the intelligent terminal being provided with multiple application, for instance, smart mobile phone, flat board etc..
Especially, the detection method of a kind of abnormal power consumption that the embodiment of the present invention proposes is periodically to carry out, this cycle is unsuitable long, so, terminal just just can detect whether this certain application has had the situation of abnormal power consumption before a large amount of abnormal power consumption occurs in the application of certain nonsystematic, thus reminding user timely or closing voluntarily, to avoid the situation of a large amount of power consumption of follow-up appearance.
Optionally, predetermined period can be 10 minutes, and the restriction of concrete predetermined period can set according to practical situation or experimental data, and the embodiment of the present invention is not limited as.
It should be noted that in predetermined period, terminal is obtaining the first service data of the first application, say, that when predetermined period arrives always, terminal obtains the service data of first application of the time period of predetermined period, i.e. the first service data.
Optionally, the first running status in the embodiment of the present invention may include that running background and front stage operation.
It should be noted that the first corresponding service data of each first application can be different, the embodiment of the present invention is that example illustrates with regard to following the first service data enumerated.
Optionally, first service data may include that global positioning system (GPS, GlobalPositioningSystem) state, WAKELOCK held state, audio frequency is used to use state, central processing unit (CPU, CentralProcessingUnit) occupancy and network data to make consumption etc..
It should be noted that GPS uses state include using and do not use, WAKELOCK held state includes holding and does not hold, and audio frequency uses state include using and do not use.
Concrete, a lot of application in present terminal can obtain the location information that terminal is current, operation sound or interface sound accordingly can be produced, and by the application etc. carrying out applying of networking, therefore, the first service data in the embodiment of the present invention uses state, WAKELOCK held state, audio frequency to use state, CPU usage and network data to make consumption as judging the first parameter and standard applying whether abnormal power consumption mainly through GPS.
It should be noted that WAKELOCK held state is specific to the terminal of Android system, therefore, the terminal in the embodiment of the present invention is have the electronic equipment of Android operation system.
Especially, terminal can acquire the present terminal the first running status in the predetermined period in past and the first service data by the interface of Android.
S102, when the first running status be running background, and predetermined period arrive time, detect whether the first service data mates with preset rules, this preset rules be differentiate first apply abnormal power consumption criterion.
After terminal obtains the first running status corresponding to the first currently running application and the first service data, owing to the first currently running application in this terminal is probably the application at front stage operation, it is also likely to be the application at running background, and when the first running status of the first application is running background and arrival predetermined period point, this terminal just can open whether the first service data being to detect aforementioned acquisition meets preset rules, thus differentiating the situation of the first application whether abnormal power consumption of this running background.
It should be noted that in predetermined period, terminal is obtaining the first service data of the first application, and when predetermined period arrives, the first service data got and preset rules just be have matched by this terminal always.
Exemplary, assume that in the first application of running background be chat application, smart mobile phone obtains the relevant service data 10 minutes interior chat application, such as, the CPU usage that flow consumption (network data makes consumption), message alert tone are opened, this chat application takies, and now corresponding WAKELOCK held state, then when within 10 minutes, arriving, the data of above-mentioned acquisition are just mated by this smart mobile phone with preset rules, to judge that whether abnormal this chat application is.
It should be noted that preset rules can have three kinds in embodiments of the present invention, terminal can according to the type of the acquisition data of the first service data, and the first service data can be mated by this terminal with corresponding preset rules.
Wherein, preset rules specifically can be such that
(1), the first service data includes: GPS uses state, WAKELOCK held state and audio frequency to use state;Preset rules is that audio frequency uses state for not using, GPS uses state for having used and WAKELOCK held state is not for hold.
(2), the first service data includes: CPU usage, WAKELOCK held state and network data make consumption, and audio frequency uses state;Preset rules is that audio frequency uses state for not use, and WAKELOCK held state is not for hold, and CPU usage is more than the first predetermined threshold value, and network data makes consumption less than the second predetermined threshold value.
(3), the first service data includes: CPU usage, WAKELOCK held state and network data make consumption, and audio frequency uses state;Preset rules is when in the sleeping state, and audio frequency uses state for not use, and WAKELOCK held state is for holding, and CPU usage is less than the first predetermined threshold value, and network data makes consumption less than the second predetermined threshold value.
Optionally, when predetermined period is 10 minutes, the first predetermined threshold value in the embodiment of the present invention can be 5%-8%, second predetermined threshold value can be between 10kb-30kb, the first concrete predetermined threshold value is relevant to predetermined period with the setting of the second predetermined threshold value, predetermined period is more long, the data of the first predetermined threshold value and the second predetermined threshold value are also more big, therefore, the setting of the first predetermined threshold value specifically, the second predetermined threshold value and predetermined period needs to be set according to actually used and experimental data, and the embodiment of the present invention is not limited as.
It is understood that the first service data in the embodiment of the present invention can extend according to the change of practical situation, concrete preset rules is also made and is changed accordingly.
If S103 the first service data is mated with preset rules, then present the first abnormal power consumption of application.
Terminal detects after whether the first service data mate with preset rules, this terminal detects when the first service data is mated with preset rules, namely when this first service data meets some preset rules in above-mentioned three kinds of preset rules, show this first service data corresponding first application abnormal, the situation of abnormal power consumption can be caused, at this moment, this terminal will present this abnormal power consumption of the first application, to inform that the first application is processed by user, or terminal directly closes the first application, and present the result of the first abnormal power consumption of application to user, the embodiment of the present invention is not intended to terminal and presents mode and the result of the first abnormal power consumption of application.
Concrete, first service data is mated by terminal with three kinds of situations in (1), (2) and (3) in S102, if this first service data meets any one situation in (1), (2) and (3), the first application then characterizing this first service data corresponding is abnormal, can cause the situation of abnormal power consumption.
nullExemplary,Assume that in smart mobile phone, current just application the first of running background is application of calling a taxi,Predetermined period is 10 minutes,This smart mobile phone is in 10: 10 timesharing,The relevant service data of the application of calling a taxi started within 10 o'clock 10 minutes this time from 10 o'clock obtained is that GPS uses state for use、Audio frequency uses state for not using and WAKELOCK held state is not for hold,This above-mentioned service data calling a taxi application is carried out mating known by this smart mobile phone with preset rules,This service data calling a taxi application meets preset rules (1),Therefore,Although smart mobile phone just detected this application user that calls a taxi and do not employ,But or use GPS on backstage stealthily,It is likely to consume the electricity of smart mobile phone,Therefore,As shown in Figure 4,After reaching at 10 minutes,Whole application (including application of calling a taxi) detected as abnormal power consumption that these 10 minutes interior are presented on the display interface of smart mobile phone by smart mobile phone,Process for user,Or this smart mobile phone is directly by this application positive closing of calling a taxi,Present this application of calling a taxi for abnormal power consumption and buttoned-up result.
Further, as it is shown in figure 5, after S102, the detection method of a kind of abnormal power consumption that the embodiment of the present invention provides can also include: S104.Specific as follows:
If S104 the first service data is not mated with preset rules, then do not present the first abnormal power consumption of application.
Terminal detects after whether the first service data mate with preset rules, this terminal detects after whether the first service data mate with preset rules, this terminal detects when the first service data is not mated with preset rules, namely when this first service data does not meet each preset rules in above-mentioned three kinds of preset rules, show this first service data corresponding first application be absent from exception, do not result in the situation of abnormal power consumption, at this moment, this terminal would not present this abnormal power consumption of the first application, do not inform that the first application is processed by user yet, or the first application is not processed by this terminal.
Concrete, first service data is mated by terminal with three kinds of situations in (1), (2) and (3) in S102, if this first service data does not meet each situation in (1), (2) and (3), the first application then characterizing this first service data corresponding is absent from exception, does not result in the situation of abnormal power consumption.
nullExemplary,Assume that in smart mobile phone, current just application the first of running background is application of calling a taxi,Predetermined period is 10 minutes,This smart mobile phone is in 10: 10 timesharing,The relevant service data of the application of calling a taxi started within 10 o'clock 10 minutes this time from 10 o'clock obtained is that GPS uses state for not use、Audio frequency uses state for not using and WAKELOCK held state is not for hold,This above-mentioned service data calling a taxi application is carried out mating known by this smart mobile phone with preset rules,This service data calling a taxi application does not meet preset rules (1)、And (3) (2),Therefore,Smart mobile phone just detected this application of calling a taxi for normal service condition,Therefore,It is that abnormal power consumption is on the display interface of smart mobile phone that this smart mobile phone does not just present application of calling a taxi,Namely this application of calling a taxi is not processed by this smart mobile phone.
It should be noted that S103 and S104 is optional step after S102, namely after S102, it is possible to perform S103, it is also possible to performing S104, concrete can select according to actual match result, and the embodiment of the present invention is not limited as.
The detection method of a kind of abnormal power consumption that the embodiment of the present invention provides, by, in predetermined period, obtaining the first running status corresponding to the first currently running application and the first service data, this first application is applied for nonsystematic;When the first running status is running background, and when predetermined period arrives, detecting whether the first service data mates with preset rules, this preset rules is the criterion differentiating the first abnormal power consumption of application;If the first service data is mated with preset rules, then present the first abnormal power consumption of application.Adopt above-mentioned technic relization scheme, owing to terminal is in predetermined period, just by the first first running status of application and mating of the first service data and preset rules, judge whether this first application is abnormal, thus causing abnormal power consumption, so, terminal just just can be found by terminal before a certain application in a large number abnormal power consumption and process in time, namely the application of abnormal power consumption can be detected in advance, so that in time this application is processed, thus effectively prevent the abnormal consumption situation of the electricity of terminal.
Embodiment two
Embodiments providing the detection method of a kind of abnormal power consumption, as shown in Figure 6, the method may include that
S201, in predetermined period, detect currently running whole application.
S202, from currently running whole application, select the first application into nonsystematic application.
Optionally, the terminal in the embodiment of the present invention can be the intelligent terminal being provided with multiple application, for instance, smart mobile phone, flat board etc..
It should be noted that terminal in embodiments of the present invention being mounted with, multiple application, the plurality of application include system application and nonsystematic application.System application is the application for maintaining normal operation of terminal, and therefore system can not be applied random process and closedown.The embodiment of the present invention is aiming at nonsystematic and is applied in backstage and carries out the detection of abnormal power consumption.
Especially, the detection method of a kind of abnormal power consumption that the embodiment of the present invention proposes is periodically to carry out, this cycle is unsuitable long, so, terminal just just can detect whether this certain application has had the situation of abnormal power consumption before a large amount of abnormal power consumption occurs in the application of certain nonsystematic, thus reminding user timely or closing voluntarily, to avoid the situation of a large amount of power consumption of follow-up appearance.
Optionally, predetermined period can be 10 minutes, and the restriction of concrete predetermined period can set according to practical situation or experimental data, and the embodiment of the present invention is not limited as.
First, terminal is in predetermined period, all application that detection is currently running, because which application is terminal detect when being currently running, the result of detection is the fair shaping situation of all application, therefore, necessarily includes system application in the application that this terminal detects, at this moment, this terminal is accomplished by selecting the first application into nonsystematic application from currently running whole application.
It should be noted that the first applicable value in the embodiment of the present invention must be a class application, it it is not the meaning of an application.It is to say, terminal can select a class of nonsystematic application from the whole application being currently running.The application of each nonsystematic can be the first application, and the nonsystematic application that each is selected by terminal can carry out the detection process of the identical abnormal power consumption of the first application.
Optionally, the first application can be chat application, game application and shopping application etc., and the embodiment of the present invention is not limited as.
S203, the first running status obtaining the first currently running application correspondence and the first service data.
Terminal is selected as after the first application of nonsystematic application from currently running whole application, this terminal can obtain running status and the service data of all the first currently running application, and this terminal can therefrom select the first running status corresponding to the first application and the first service data.
It should be noted that in predetermined period, terminal is obtaining the first service data of the first application, say, that when predetermined period arrives always, terminal obtains the service data of first application of the time period of predetermined period, i.e. the first service data.
Optionally, the first running status in the embodiment of the present invention may include that running background and front stage operation.
It should be noted that the first corresponding service data of each first application can be different, the embodiment of the present invention is that example illustrates with regard to following the first service data enumerated.
Optionally, the first service data may include that GPS uses state, WAKELOCK held state, audio frequency to use state, CPU usage and network data to make consumption etc..
It should be noted that GPS uses state include using and do not use, WAKELOCK held state includes holding and does not hold, and audio frequency uses state include using and do not use.
Concrete, a lot of application in present terminal can obtain the location information that terminal is current, operation sound or interface sound accordingly can be produced, and by the application etc. carrying out applying of networking, therefore, the first service data in the embodiment of the present invention uses state, WAKELOCK held state, audio frequency to use state, CPU usage and network data to make consumption as judging the first parameter and standard applying whether abnormal power consumption mainly through GPS.
It should be noted that WAKELOCK held state is specific to the terminal of Android system, therefore, the terminal in the embodiment of the present invention is have the electronic equipment of Android operation system.
Especially, terminal can acquire the present terminal the first running status in the predetermined period in past and the first service data by the interface of Android.
S204, when the first running status be running background, and predetermined period arrive time, detect whether the first service data mates with preset rules, this preset rules be differentiate first apply abnormal power consumption criterion.
After terminal obtains the first running status corresponding to the first currently running application and the first service data, owing to the first currently running application in this terminal is probably the application at front stage operation, it is also likely to be the application at running background, and when the first running status of the first application is running background and arrival predetermined period point, this terminal just can open whether the first service data being to detect aforementioned acquisition meets preset rules, thus differentiating the situation of the first application whether abnormal power consumption of this running background.
It should be noted that in predetermined period, terminal is obtaining the first service data of the first application, and when predetermined period arrives, the first service data got and preset rules just be have matched by this terminal always.
Exemplary, assume that in the first application of running background be chat application, smart mobile phone obtains the relevant service data 10 minutes interior chat application, such as, the CPU usage that flow consumption (network data makes consumption), message alert tone are opened, this chat application takies, and now corresponding WAKELOCK held state, then when within 10 minutes, arriving, the data of above-mentioned acquisition are just mated by this smart mobile phone with preset rules, to judge that whether abnormal this chat application is.
It should be noted that preset rules can have three kinds in embodiments of the present invention, terminal can according to the type of the acquisition data of the first service data, and the first service data can be mated by this terminal with corresponding preset rules.
Wherein, preset rules specifically can be such that
(1), the first service data includes: GPS uses state, WAKELOCK held state and audio frequency to use state;Preset rules is that audio frequency uses state for not using, GPS uses state for having used and WAKELOCK held state is not for hold.
(2), the first service data includes: CPU usage, WAKELOCK held state and network data make consumption, and audio frequency uses state;Preset rules is that audio frequency uses state for not use, and WAKELOCK held state is not for hold, and CPU usage is more than the first predetermined threshold value, and network data makes consumption less than the second predetermined threshold value.
(3), the first service data includes: CPU usage, WAKELOCK held state and network data make consumption, and audio frequency uses state;Preset rules is when in the sleeping state, and audio frequency uses state for not use, and WAKELOCK held state is for holding, and CPU usage is less than the first predetermined threshold value, and network data makes consumption less than the second predetermined threshold value.
Optionally, when predetermined period is 10 minutes, the first predetermined threshold value in the embodiment of the present invention can be 5%-8%, second predetermined threshold value can be between 10kb-30kb, the first concrete predetermined threshold value is relevant to predetermined period with the setting of the second predetermined threshold value, predetermined period is more long, the data of the first predetermined threshold value and the second predetermined threshold value are also more big, therefore, the setting of the first predetermined threshold value specifically, the second predetermined threshold value and predetermined period needs to be set according to actually used and experimental data, and the embodiment of the present invention is not limited as.
It is understood that the first service data in the embodiment of the present invention can extend according to the change of practical situation, concrete preset rules is also made and is changed accordingly.
If S205 the first service data is mated with preset rules, then present the first abnormal power consumption of application.
Terminal detects after whether the first service data mate with preset rules, this terminal detects when the first service data is mated with preset rules, namely when this first service data meets some preset rules in above-mentioned three kinds of preset rules, show this first service data corresponding first application abnormal, the situation of abnormal power consumption can be caused, at this moment, this terminal will present this abnormal power consumption of the first application, to inform that the first application is processed by user, or terminal directly closes the first application, and present the result of the first abnormal power consumption of application to user, the embodiment of the present invention is not intended to terminal and presents mode and the result of the first abnormal power consumption of application.
Concrete, first service data is mated by terminal with three kinds of situations in (1), (2) and (3) in S102, if this first service data meets any one situation in (1), (2) and (3), the first application then characterizing this first service data corresponding is abnormal, can cause the situation of abnormal power consumption.
nullExemplary,Assume that in smart mobile phone, current just application the first of running background is application of calling a taxi,Predetermined period is 10 minutes,This smart mobile phone is in 10: 10 timesharing,The relevant service data of the application of calling a taxi started within 10 o'clock 10 minutes this time from 10 o'clock obtained is that GPS uses state for use、Audio frequency uses state for not using and WAKELOCK held state is not for hold,This above-mentioned service data calling a taxi application is carried out mating known by this smart mobile phone with preset rules,This service data calling a taxi application meets preset rules (1),Therefore,Although smart mobile phone just detected this application user that calls a taxi and do not employ,But or use GPS on backstage stealthily,It is likely to consume the electricity of smart mobile phone,Therefore,As shown in Figure 4,After reaching at 10 minutes,Whole application (including application of calling a taxi) detected as abnormal power consumption that these 10 minutes interior are presented on the display interface of smart mobile phone by smart mobile phone,Process for user,Or this smart mobile phone is directly by this application positive closing of calling a taxi,Present this application of calling a taxi for abnormal power consumption and buttoned-up result.
If S206 the first service data is not mated with preset rules, then do not present the first abnormal power consumption of application.
Terminal detects after whether the first service data mate with preset rules, this terminal detects after whether the first service data mate with preset rules, this terminal detects when the first service data is not mated with preset rules, namely when this first service data does not meet each preset rules in above-mentioned three kinds of preset rules, show this first service data corresponding first application be absent from exception, do not result in the situation of abnormal power consumption, at this moment, this terminal would not present this abnormal power consumption of the first application, do not inform that the first application is processed by user yet, or the first application is not processed by this terminal.
Concrete, first service data is mated by terminal with three kinds of situations in (1), (2) and (3) in S102, if this first service data does not meet each situation in (1), (2) and (3), the first application then characterizing this first service data corresponding is absent from exception, does not result in the situation of abnormal power consumption.
nullExemplary,Assume that in smart mobile phone, current just application the first of running background is application of calling a taxi,Predetermined period is 10 minutes,This smart mobile phone is in 10: 10 timesharing,The relevant service data of the application of calling a taxi started within 10 o'clock 10 minutes this time from 10 o'clock obtained is that GPS uses state for not use、Audio frequency uses state for not using and WAKELOCK held state is not for hold,This above-mentioned service data calling a taxi application is carried out mating known by this smart mobile phone with preset rules,This service data calling a taxi application does not meet preset rules (1)、And (3) (2),Therefore,Smart mobile phone just detected this application of calling a taxi for normal service condition,Therefore,It is that abnormal power consumption is on the display interface of smart mobile phone that this smart mobile phone does not just present application of calling a taxi,Namely this application of calling a taxi is not processed by this smart mobile phone.
It should be noted that S205 and S206 is optional step after S204, namely after S204, it is possible to perform S205, it is also possible to performing S206, concrete can select according to actual match result, and the embodiment of the present invention is not limited as.
The detection method of a kind of abnormal power consumption that the embodiment of the present invention provides, by, in predetermined period, obtaining the first running status corresponding to the first currently running application and the first service data, this first application is applied for nonsystematic;When the first running status is running background, and when predetermined period arrives, detecting whether the first service data mates with preset rules, this preset rules is the criterion differentiating the first abnormal power consumption of application;If the first service data is mated with preset rules, then present the first abnormal power consumption of application.Adopt above-mentioned technic relization scheme, owing to terminal is in predetermined period, just by the first first running status of application and mating of the first service data and preset rules, judge whether this first application is abnormal, thus causing abnormal power consumption, so, terminal just just can be found by terminal before a certain application in a large number abnormal power consumption and process in time, namely the application of abnormal power consumption can be detected in advance, so that in time this application is processed, thus effectively prevent the abnormal consumption situation of the electricity of terminal.
Embodiment three
As it is shown in fig. 7, embodiments provide a kind of terminal 1, this terminal 1 may include that
Acquiring unit 10, for, in predetermined period, obtaining the first running status corresponding to the first currently running application and the first service data, described first application is applied for nonsystematic.
Detection unit 11, described first running status for obtaining when described acquiring unit 10 is running background, and during described predetermined period arrival, whether described first service data detecting the acquisition of described acquiring unit 10 mates with preset rules, and described preset rules is differentiate the described first criterion applying abnormal power consumption.
Display unit 12, if detecting that described first service data is mated with described preset rules for described detection unit 11, then presents described first and applies abnormal power consumption.
Optionally, described first service data that described acquiring unit 10 obtains includes: GPS uses state, WAKELOCK held state and audio frequency to use state;Described preset rules is that described audio frequency uses state for not using, described GPS uses state for having used and described WAKELOCK held state is not for hold.
Optionally, described first service data that described acquiring unit 10 obtains includes: CPU usage, WAKELOCK held state and network data make consumption, and audio frequency uses state;Described preset rules is that described audio frequency uses state for not use, and described WAKELOCK held state is not for hold, and described CPU usage is more than the first predetermined threshold value, and described network data makes consumption less than the second predetermined threshold value.
Optionally, described first service data that described acquiring unit 10 obtains includes: CPU usage, WAKELOCK held state and network data make consumption, and audio frequency uses state;Described preset rules is when in the sleeping state, and described audio frequency uses state for not use, and described WAKELOCK held state is for holding, and described CPU usage is less than the first predetermined threshold value, and described network data makes consumption less than the second predetermined threshold value.
Optionally, as shown in Figure 8, described terminal 1 also includes: select unit 13.
Described detection unit 11, before being additionally operable to the first running status and the first service data that described acquiring unit 10 obtains the first currently running application correspondence, detects currently running whole application.
Select unit 13, for selecting described first application into nonsystematic application from described currently running whole application that described detection unit 11 detects.
Optionally, described display unit 12, it is additionally operable to described detection unit 11 and detects after whether described first service data mate with preset rules, if described detection unit 11 detects that described first service data is not mated with described preset rules, then do not present described first and apply abnormal power consumption.
It should be noted that owing to the unit 13 that selects that the first application is terminal chooses, therefore, acquiring unit 10 and display unit 12 are all connected with this selection unit 13.
Optionally, the terminal in the embodiment of the present invention can be the intelligent terminal being provided with multiple application, for instance, smart mobile phone, flat board etc..
As shown in Figure 9, in actual applications, above-mentioned acquiring unit 10, detection unit 11, select unit 13 can be realized by the processor 14 being positioned in terminal 1, it is specially central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA) etc. realize, display unit 12 can be realized by display 15, terminal 1 also includes: memorizer 16, this memorizer 16, display 15 can pass through system bus 17 and be connected with processor 14, wherein, memorizer 16 is used for storing executable program code, this program code includes computer-managed instruction, memorizer is likely to comprise high-speed RAM memorizer, it is likely to and also includes nonvolatile memory, such as, at least one disk memory.
A kind of terminal that the embodiment of the present invention provides, by, in predetermined period, obtaining the first running status corresponding to the first currently running application and the first service data, this first application is applied for nonsystematic;When the first running status is running background, and when predetermined period arrives, detecting whether the first service data mates with preset rules, this preset rules is the criterion differentiating the first abnormal power consumption of application;If the first service data is mated with preset rules, then present the first abnormal power consumption of application.Adopt above-mentioned technic relization scheme, owing to terminal is in predetermined period, just by the first first running status of application and mating of the first service data and preset rules, judge whether this first application is abnormal, thus causing abnormal power consumption, so, terminal just just can be found by terminal before a certain application in a large number abnormal power consumption and process in time, namely the application of abnormal power consumption can be detected in advance, so that in time this application is processed, thus effectively prevent the abnormal consumption situation of the electricity of terminal.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of hardware embodiment, software implementation or the embodiment in conjunction with software and hardware aspect.And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory and optical memory etc.) wherein including computer usable program code.
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe.It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
The above, be only presently preferred embodiments of the present invention, is not intended to limit protection scope of the present invention.

Claims (12)

1. the detection method of an abnormal power consumption, it is characterised in that including:
In predetermined period, obtaining the first running status corresponding to the first currently running application and the first service data, described first application is applied for nonsystematic;
When described first running status is running background, and when described predetermined period arrives, detecting whether described first service data mates with preset rules, described preset rules is differentiate the described first criterion applying abnormal power consumption;
If described first service data is mated with described preset rules, then present described first and apply abnormal power consumption.
2. method according to claim 1, it is characterised in that described first service data includes: global position system GPS uses state, WAKELOCK held state and audio frequency to use state;Described preset rules is that described audio frequency uses state for not using, described GPS uses state for having used and described WAKELOCK held state is not for hold.
3. method according to claim 1, it is characterised in that described first service data includes: central processor CPU occupancy, WAKELOCK held state and network data make consumption, and audio frequency uses state;Described preset rules is that described audio frequency uses state for not use, and described WAKELOCK held state is not for hold, and described CPU usage is more than the first predetermined threshold value, and described network data makes consumption less than the second predetermined threshold value.
4. method according to claim 1, it is characterised in that described first service data includes: CPU usage, WAKELOCK held state and network data make consumption, and audio frequency uses state;Described preset rules is when in the sleeping state, and described audio frequency uses state for not use, and described WAKELOCK held state is for holding, and described CPU usage is less than the first predetermined threshold value, and described network data makes consumption less than the second predetermined threshold value.
5. the method according to any one of Claims 1-4, it is characterised in that before the first running status of the first application correspondence that described acquisition is currently running and the first service data, described method also includes:
Detect currently running whole application;
Described first application into nonsystematic application is selected from described currently running whole application.
6. method according to claim 1, it is characterised in that after whether described first service data of described detection mates with preset rules, described method also includes:
If described first service data is not mated with described preset rules, then do not present described first and apply abnormal power consumption.
7. a terminal, it is characterised in that including:
Acquiring unit, for, in predetermined period, obtaining the first running status corresponding to the first currently running application and the first service data, described first application is applied for nonsystematic;
Detection unit, described first running status for obtaining when described acquiring unit is running background, and during described predetermined period arrival, whether described first service data detecting the acquisition of described acquiring unit mates with preset rules, and described preset rules is differentiate the described first criterion applying abnormal power consumption;
Display unit, if detecting that described first service data is mated with described preset rules for described detection unit, then presents described first and applies abnormal power consumption.
8. terminal according to claim 7, it is characterised in that
Described first service data that described acquiring unit obtains includes: global position system GPS uses state, WAKELOCK held state and audio frequency to use state;Described preset rules is that described audio frequency uses state for not using, described GPS uses state for having used and described WAKELOCK held state is not for hold.
9. terminal according to claim 7, it is characterised in that
Described first service data that described acquiring unit obtains includes: central processor CPU occupancy, WAKELOCK held state and network data make consumption, and audio frequency uses state;Described preset rules is that described audio frequency uses state for not use, and described WAKELOCK held state is not for hold, and described CPU usage is more than the first predetermined threshold value, and described network data makes consumption less than the second predetermined threshold value.
10. terminal according to claim 7, it is characterised in that
Described first service data that described acquiring unit obtains includes: CPU usage, WAKELOCK held state and network data make consumption, and audio frequency uses state;Described preset rules is when in the sleeping state, and described audio frequency uses state for not use, and described WAKELOCK held state is for holding, and described CPU usage is less than the first predetermined threshold value, and described network data makes consumption less than the second predetermined threshold value.
11. according to the terminal described in any one of claim 7 to 10, it is characterised in that described terminal also includes: select unit;
Described detection unit, before being additionally operable to the first running status and the first service data that described acquiring unit obtains the first currently running application correspondence, detects currently running whole application;
Select unit, for selecting described first application into nonsystematic application from described currently running whole application that described detection unit detects.
12. terminal according to claim 7, it is characterised in that
Described display unit, it is additionally operable to described detection unit and detects after whether described first service data mate with preset rules, if described detection unit detects that described first service data is not mated with described preset rules, then do not present described first and apply abnormal power consumption.
CN201610086341.4A 2016-02-15 2016-02-15 Abnormal electricity consumption detection method and terminal Pending CN105764085A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610086341.4A CN105764085A (en) 2016-02-15 2016-02-15 Abnormal electricity consumption detection method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610086341.4A CN105764085A (en) 2016-02-15 2016-02-15 Abnormal electricity consumption detection method and terminal

Publications (1)

Publication Number Publication Date
CN105764085A true CN105764085A (en) 2016-07-13

Family

ID=56329796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610086341.4A Pending CN105764085A (en) 2016-02-15 2016-02-15 Abnormal electricity consumption detection method and terminal

Country Status (1)

Country Link
CN (1) CN105764085A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372543A (en) * 2016-08-31 2017-02-01 上海摩软通讯技术有限公司 Resource control method and device based on mobile terminal
CN106775685A (en) * 2016-12-01 2017-05-31 北京奇虎科技有限公司 Wake up lock method for releasing and device, mobile terminal
CN107908527A (en) * 2017-11-16 2018-04-13 维沃移动通信有限公司 A kind of application icon display methods and device
CN108566471A (en) * 2018-04-18 2018-09-21 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN108566472A (en) * 2018-04-20 2018-09-21 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
WO2019218299A1 (en) * 2018-05-17 2019-11-21 华为技术有限公司 Power consumption anomaly prompting method, server, and terminal
CN110908851A (en) * 2018-09-14 2020-03-24 中兴通讯股份有限公司 Abnormal application detection and control method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2749988A1 (en) * 2011-08-25 2014-07-02 Tencent Technology (Shenzhen) Company Limited Method and device for application program operation, mobile terminal
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN104732139A (en) * 2015-02-04 2015-06-24 深圳市中兴移动通信有限公司 Internal storage monitoring method and terminal
CN104881346A (en) * 2015-04-30 2015-09-02 努比亚技术有限公司 Mobile terminal and detection method and device of power consumption of applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2749988A1 (en) * 2011-08-25 2014-07-02 Tencent Technology (Shenzhen) Company Limited Method and device for application program operation, mobile terminal
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN104732139A (en) * 2015-02-04 2015-06-24 深圳市中兴移动通信有限公司 Internal storage monitoring method and terminal
CN104881346A (en) * 2015-04-30 2015-09-02 努比亚技术有限公司 Mobile terminal and detection method and device of power consumption of applications

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372543A (en) * 2016-08-31 2017-02-01 上海摩软通讯技术有限公司 Resource control method and device based on mobile terminal
CN106775685A (en) * 2016-12-01 2017-05-31 北京奇虎科技有限公司 Wake up lock method for releasing and device, mobile terminal
CN107908527A (en) * 2017-11-16 2018-04-13 维沃移动通信有限公司 A kind of application icon display methods and device
CN108566471A (en) * 2018-04-18 2018-09-21 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN108566472A (en) * 2018-04-20 2018-09-21 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
WO2019218299A1 (en) * 2018-05-17 2019-11-21 华为技术有限公司 Power consumption anomaly prompting method, server, and terminal
CN110945896A (en) * 2018-05-17 2020-03-31 华为技术有限公司 Power consumption abnormity prompting method, server and terminal
CN110945896B (en) * 2018-05-17 2021-10-01 华为技术有限公司 Power consumption abnormity prompting method, server and terminal
US11422605B2 (en) 2018-05-17 2022-08-23 Huawei Technologies Co., Ltd. Power consumption exception prompt method, server, and terminal
CN110908851A (en) * 2018-09-14 2020-03-24 中兴通讯股份有限公司 Abnormal application detection and control method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN105159533A (en) Mobile terminal and automatic verification code input method thereof
CN105718027A (en) Management method of background application programs and mobile terminal
CN105764085A (en) Abnormal electricity consumption detection method and terminal
CN104834517A (en) Mobile terminal power-saving method and mobile terminal
CN105979095A (en) Mobile terminal and application power consumption control method
CN104768198A (en) Mobile terminal and intelligent switching method and device for terminal network of mobile terminal
CN104883430A (en) Mobile terminal, processing method of unread superscripts of mobile terminal, and processing device of unread superscripts of mobile terminal
CN106304037A (en) The management method of virtual SIM card and device
CN105760057A (en) Screenshot device and method
CN105138400B (en) Application program self-starting management method and device
CN104968033A (en) Terminal network processing method and apparatus
CN104821990A (en) Intelligent terminal power-off alarm clock realization method and intelligent terminal
CN106803860A (en) The storage processing method and device of a kind of terminal applies
CN105100416A (en) Event reminding method and wearable device
CN104993180A (en) Terminal charging method and device
CN104980549A (en) Information processing method and mobile terminal
CN104968027A (en) Wi-Fi control method and apparatus
CN105975052A (en) Screen switching method and device
CN105897995A (en) Contact person information adding method and apparatus
CN104735254B (en) terminal screen locking method and system
CN104780278B (en) Route generation method based on communication data and device
CN106445830A (en) Application program running environment detection method and mobile terminal
CN105872997A (en) Short message merging method and terminal equipment
CN104918308A (en) Method, apparatus and system for saving terminal power
CN105100408B (en) A kind of method and apparatus controlling mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160713