CN107145425B - Information processing method, device and mobile terminal - Google Patents

Information processing method, device and mobile terminal Download PDF

Info

Publication number
CN107145425B
CN107145425B CN201710318082.8A CN201710318082A CN107145425B CN 107145425 B CN107145425 B CN 107145425B CN 201710318082 A CN201710318082 A CN 201710318082A CN 107145425 B CN107145425 B CN 107145425B
Authority
CN
China
Prior art keywords
mobile terminal
wake
application program
power consumption
lock
Prior art date
Application number
CN201710318082.8A
Other languages
Chinese (zh)
Other versions
CN107145425A (en
Inventor
姚发权
吴培建
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN201710318082.8A priority Critical patent/CN107145425B/en
Publication of CN107145425A publication Critical patent/CN107145425A/en
Application granted granted Critical
Publication of CN107145425B publication Critical patent/CN107145425B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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
    • 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 present invention relates to a kind of information processing method, device and mobile terminals.The above method includes: to receive putting out for mobile terminal to shield instruction, records the number that application program under mobile terminal in standby state holds the duration and the application triggers wake-up alarm that wake up lock;The bright screen instruction for receiving mobile terminal, the stand-by power consumption information of the application program is obtained according to the number that application program holds duration and the application triggers wake-up alarm that wake-up is locked.The above method can monitor power consumption type in standby power consumption.

Description

Information processing method, device and mobile terminal

Technical field

The present invention relates to field of computer technology, more particularly to a kind of information processing method, device and mobile terminal.Tool Body is related to a kind of standby power consumption monitoring method, device and mobile terminal.

Background technique

With the development of intelligent mobile terminal, intelligent mobile terminal is gradually popularized in people's daily life.In intelligent sliding In the use process of dynamic terminal, the operation behavior of application program can consume a large amount of electricity in intelligent mobile terminal, such as in intelligence Application program is frequently initiated Wi-Fi to wake operation, the application program of intelligent mobile terminal and is swept under mobile terminal in standby state Retouching request etc. can all cause intelligent mobile terminal power consumption to accelerate, and the stand-by power consumption of intelligent mobile terminal increases.

Summary of the invention

The embodiment of the present invention provides a kind of information processing method, device and mobile terminal, can monitor mobile terminal standby Power consumption type in power consumption.

A kind of information processing method, comprising:

Receive mobile terminal puts out screen instruction, records application program under mobile terminal in standby state and holds the duration for waking up lock With the number of the application triggers wake-up alarm;

The bright screen instruction for receiving mobile terminal, the duration and the application triggers for waking up lock are held according to application program The number of wake-up alarm obtains the stand-by power consumption information of the application program.

The stand-by power consumption information of the application program includes: in one of the embodiments,

The duration that the application program holds wake-up lock accounts for all application programs and holds the ratio for the total duration for waking up lock, institute State application triggers wake-up alarm number account for all application triggers wake-up alarms total degree ratio, according to The application program that the number that application program holds the duration and the application triggers wake-up alarm that wake up lock obtains Power consumption index.

In one of the embodiments, the method also includes:

According to the stand-by power consumption information of the application program by the corresponding application program identification of the application program in movement Terminal interface sequence is shown.

Hold the duration and application program touching for waking up lock according to application program described in one of the embodiments, Before the number of hair wake-up alarm obtains the stand-by power consumption information of the application program, the method also includes:

Whether the current value consumed under detection mobile terminal in standby state reaches designated value;If so, according to application program The number of the duration and the application triggers wake-up alarm of holding wake-up lock obtains the stand-by power consumption letter of the application program Breath.

Hold the duration and application program touching for waking up lock according to application program described in one of the embodiments, Before the number of hair wake-up alarm obtains the stand-by power consumption information of the application program, the method also includes:

Whether the standby time of detection mobile terminal reaches preset duration;If so, holding wake-up lock according to application program Duration and the number of the application triggers wake-up alarm obtain the stand-by power consumption information of the application program.

A kind of information processing unit, comprising:

Logging modle, the screen that puts out for receiving mobile terminal instruct, record application program under mobile terminal in standby state and hold There is the number for waking up the duration and the application triggers wake-up alarm locked;

Module is obtained, the bright screen for receiving mobile terminal instructs, and duration and the institute for waking up lock are held according to application program The number for stating application triggers wake-up alarm obtains the stand-by power consumption information of the application program.

Described device in one of the embodiments, further include:

Display module, it is for the stand-by power consumption information according to the application program that the application program is corresponding using journey Sequence mark sorts in interface of mobile terminal to be shown.

Described device in one of the embodiments, further include:

First detection module, for detecting whether the current value consumed under mobile terminal in standby state reaches designated value;If It is that then the acquisition module, which is used to be held according to application program, wakes up the duration and the application triggers wake-up alarm locked Number obtains the stand-by power consumption information of the application program.

Described device in one of the embodiments, further include:

Whether the second detection module, the standby time for detecting mobile terminal reach preset duration;If so, described obtain Modulus block is used to hold according to application program the duration for waking up lock and the number of the application triggers wake-up alarm obtains institute State the stand-by power consumption information of application program.

A kind of mobile terminal, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, the processor realize method described in any of the above item when executing described program.

Detailed description of the invention

Fig. 1 is the application environment schematic diagram of information processing method in one embodiment;

Fig. 2 is the flow chart of information processing method in one embodiment;

Fig. 3 is the flow chart that mobile terminal uploads standby current exception information in one embodiment;

Fig. 4 is that Wi-Fi wake source counts schematic diagram in one embodiment;

Fig. 5 is the flow chart of information processing method in another embodiment;

Fig. 6 is the flow chart of monitoring and processing center operation in one embodiment;

Fig. 7 is the flow chart without service scenarios detection in one embodiment;

Fig. 8 is the flow chart of the frequent gravity treatment scene detection of cell in one embodiment;

Fig. 9 is that data frequently activate in one embodiment and short message frequently retransmits the flow chart of scene detection;

Figure 10 is the schematic diagram of data sharing method in one embodiment;

Figure 11 is the flow chart of information processing method in another embodiment;

Figure 12 is the flow chart of information processing method in another embodiment;

Figure 13 is the flow chart of information processing method in another embodiment;

Figure 14 is the flow chart of information processing method in another embodiment;

Figure 15 is the flow chart of information processing method in another embodiment;

Figure 16 is the flow chart of information processing method in another embodiment;

Figure 17 is the flow chart of information processing method in another embodiment;

Figure 18 is the structural block diagram of information processing unit in one embodiment;

Figure 19 is the structural block diagram of information processing unit in another embodiment;

Figure 20 is the structural block diagram of information processing unit in another embodiment;

Figure 21 is the structural block diagram of information processing unit in another embodiment;

Figure 22 is the structural block diagram of information processing unit in another embodiment;

Figure 23 is the structural block diagram of information processing unit in another embodiment;

Figure 24 is the structural block diagram of information processing unit in another embodiment;

Figure 25 is the structural block diagram of information processing unit in another embodiment;

Figure 26 is the structural block diagram of information processing unit in another embodiment;

Figure 27 is the block diagram of the part-structure of mobile phone relevant to mobile terminal provided in an embodiment of the present invention.

Specific embodiment

In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.

It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, without departing from the scope of the invention, the first determination module can be known as the second determination module, and similarly, Second determination module can be known as the first determination module.First determination module and the second determination module both determination module, But it is not same determination module.

Fig. 1 is the application environment schematic diagram of information processing method in one embodiment.As shown in Figure 1, being wrapped in mobile terminal Include monitoring module 102, information storage module 104, branch center anomalous identification module 106 and feedback module 108.Monitoring module 102 It include program function pair under monitoring and processing center and standby mode in monitoring module 102 for monitoring mobile terminal in standby state The current value inventory answered.Monitoring and processing center can obtain the second current value according to standby interval sequence function and corresponding current value, And compare the first current value and the second current value, whether detection has high current consumption, and root in mobile terminal in standby state The nodal information and Map information provided according to branch center anomalous identification module 106, which consumes high current, to be qualitatively judged, and judgement is tied Crucial subregion in information storage module 104 is written in fruit.Information storage module 104 is supervised in the standby state for memory mobile terminal Control obtain information, including BSP module (Board Support Package, board suppot package) stored in the form of Node to Under machine state the wake-up times of each wake source, Wi-Fi (Wireless-Fidelity, Wireless Fidelity) module and Modem module with The corresponding current value of each scene, monitoring and processing center are stored in the mobile end of crucial subregion under the standby mode of Map form storage The power consumption type at end and it is stored in the data that Block module reads for tool after sale.Branch center anomalous identification module 106 is used In counting data under mobile terminal in standby state, including each sub- wake-up in driving layer identifies and counts wake source, Wi-Fi module Wake-up identification and Wi-Fi module in the power consumption statistics of known power consumption type, in Modem module each sub- wake source wake-up identification With Modem module known to power consumption type power consumption statistics etc..Feedback module 108 is used to mention in interface of mobile terminal pop-up prompting frame User's upload information of waking up is to server.

Fig. 2 is the flow chart of information processing method in one embodiment.As shown in Fig. 2, a kind of information processing method, including Step S202 to step S204.Wherein:

S202, if detecting, the difference of mobile terminal the first current value in the standby state and the second current value is greater than first Whether the difference of threshold value, the third current value of detection the first current value and mobile terminal in the standby state is greater than second threshold.Its In, the first current value is the average current value of mobile terminal actual consumption in the standby state, and the second current value is mobile terminal Reference current value in the standby state, third current value are the scene current value of mobile terminal in the standby state.

Mobile terminal in the standby state when, can detect whether mobile terminal current idle state meets preset condition;If Meet preset condition, then determines whether the difference of the first current value and the second current value is greater than the first threshold under mobile terminal in standby state Value.Wherein, preset condition can include: whether the standby time of mobile terminal reaches preset duration, mobile terminal in standby state is No is preset standby mode etc..Preset standby mode can include: Background music plays, backstage is downloaded, mobile terminal is opened Modem Log etc..If mobile terminal in standby state is preset standby mode, current consumption value is larger in mobile terminal, is not necessarily to Current consumption value in mobile terminal is monitored, then does not obtain the first current value and the second current value of mobile terminal.Determine mobile whole Hold whether standby mode is preset standby mode can include: if detecting in mobile terminal in standby state there is audio output, It detects there is audio output in mobile terminal again after the specified time of interval, then determines mobile terminal current idle state for backstage Music;If detecting, in mobile terminal in standby state, Wi-Fi flow is more than 30M/h (MByte/hour, million/hour), Or data network flux is more than 20M/h, then determines mobile terminal current idle state to download from the background.

First current value can be obtained according to the total current value consumed in the stand-by time and stand-by time of mobile terminal;Second Current value can be obtained according to the corresponding current value of program function and program function that mobile terminal is opened in the standby state.It moves The corresponding current value of program function under standby mode is prestored in dynamic terminal, according to the application opened under mobile terminal in standby state Program function can the corresponding current value of search program function, the second electric current can be calculated further according to the corresponding current value of program function Value.Wherein, the corresponding current value of function of application is the operation data of mobile terminal hardware state, can be by application program function The existing power consumption type file of mobile terminal is written in the corresponding current value of energy, such as: vendor/oppo/overlay/ item designation/ In frameworks/base/core/res/res/xml/power_profile.xml file.It as shown in table 1, is a certain batch The corresponding current range of program function and current value in mobile terminal can calculate second according to the corresponding current value In of program function Current value I=∑ (I1+I2+···In).For example, mobile terminal single deck tape-recorder is standby and connection Wi-Fi no data, then mobile terminal The second current value I=4.5+4+2.6=11.1mA (milli-Ampere, milliampere).

1 program function of table and corresponding current value inventory

Program function Current range (mA) Current value (mA) Bottom electric current 4~5 4.5 Single deck tape-recorder 2~4 4 Double card 4~6 6 It is not connected to open Wi-Fi 0.4~0.6 0.5 Connect Wi-Fi no data 2.6 2.6 It is not connected to open bluetooth 1.1 1.1 Connect bluetooth no data 1.6~2 1.7 Wi-Fi and bluetooth are opened, is not connected with 0.8 0.8 Wi-Fi Hotspot is connected, bluetooth equipment is not connected with 3.2 3.2 Not connected Wi-Fi Hotspot, connects bluetooth equipment 1.3~1.6 1.5 Wi-Fi Hotspot is connected, bluetooth equipment is connected 4 4

In different mobile terminal hardware, system, version, the difference of voltameter can lead to function of application it is corresponding to electricity Flow valuve difference, therefore, the corresponding current value of program function is different in different mobile terminal.According to the corresponding current value of program function The second current value calculated has float value.The factor for influencing the float value of the second current value includes: standby time T, the second electricity Flow valuve I, battery capacity C and voltameter error amount n%.The float value Δ T of second current value and the functional relation of the above-mentioned factor Are as follows:

For example, battery capacity C is 3000mAh (milli-Ampere-hour, milliampere hour), standby time T is 5 hours, Second current value I is 12mA, and voltameter error amount is 1%, then the float value of the second current value is Δ T=(3000*1%)/5= 6mA.When the difference for detecting the first current value of mobile terminal and the second current value is greater than float value, i.e., judgement mobile terminal first is electric Flow valuve and the difference of the second current value are greater than first threshold, obtain mobile terminal third current value in the standby state, detection first Whether the difference of current value and third current value is greater than second threshold.For example, the first current value is 20mA when mobile terminal standby, the Two current values are 12mA, and the float value of the second current value is 6mA, then the difference of the first current value and the second current value is 8mA, then the The difference of one current value and the second current value is greater than the float value of the second current value, obtains the third current value of mobile terminal.

Third current value refers to the scene current value of mobile terminal in the standby state, mobile terminal field in the standby state Scape can include: group key interaction times, Wi-Fi re-rent number, short message sending times etc. in Wi-Fi scanning times, Wi-Fi, no It is limited to this.Mobile terminal can obtain corresponding current value according to the scene under standby mode, by each scene pair under standby mode The current value answered is cumulative to can be obtained third current value.For example, Wi-Fi scanning times are 10 to mobile terminal in the standby state Secondary, corresponding scene current value is 1mA;Mobile terminal in the standby state Wi-Fi re-rent number be 5 times, corresponding field Scape current value is 1mA;Then third current value is 2mA to mobile terminal in the standby state.

S204, if the difference of the first current value and third current value is greater than second threshold, according to mobile terminal in standby mode The wake-up times of lower wake source, the sleeping time of mobile terminal determine the power consumption type of mobile terminal.

Second threshold can be set as needed.In one embodiment, second threshold can be the second current value, the second electric current The sum of float value and designated value.It is the first current value and third that the difference of first current value and third current value, which is greater than second threshold, The difference of current value is greater than the sum of the second current value, the second current floating value and designated value.For example, the first current value is 25mA, the Two current values are 12mA, and the float value of the second current value is 6mA, and third current value is 3mA, designated value 3mA, the first current value And the difference of third current value is 22mA, and the sum of the second current value, the float value of the second current value and designated value are 21mA, the first electricity Flow valuve and the difference of third current value are greater than second threshold, then according to mobile terminal in the standby state the wake-up times of wake source, Power consumption type of the sleeping time of mobile terminal than determining mobile terminal.It in another embodiment, can also be according to mobile whole Hold the wake-up times of wake source, the power consumption type of the sleep duration of mobile terminal judgement mobile terminal under standby shape body.

Wake source includes AP (Wireless Access Point, wireless access points) under mobile terminal in standby state Wake-up, Wi-Fi wake up, Modem wakes up, power key wakes up etc., without being limited thereto.Mobile terminal can be recorded in real time under standby mode The wake-up times of each wake source and the application program for waking up each wake source.As shown in table 2, for wake source in mobile terminal and its Definition.

2 wake source of table and definition

Wake source Title power_key Power button wakes up wcnss_wlan Wi-Fi wakes up Modem Modem wakes up qpnp_rtc_alarm Modem wakes up

The data that mobile terminal records in real time are stored in the memory module of mobile terminal.Above-mentioned memory module includes key Partitioned storage module, interim mutual files node and wake source count interface.Crucial partitioned storage module has been identified for storing Power consumption type and unidentified power consumption type.Interim mutual files node is used to store calling out for each wake source in the standby state The application program for number and each wake source of wake-up of waking up.Interim mutual files node is used for temporary memory mobile terminal standby mode Lower data, when detecting the bright screen of mobile terminal, data are emptied in interim mutual files node.Wake source statistics interface is for uniting The wake-up times of each wake source are counted, and mobile terminal is supplied to by system interface and is read.When acquisition for mobile terminal refers to screen is put out When enabling, the wake-up times of each wake source of wake source statistics interface record are reset;When detecting that mobile terminal is waken up, It identifies corresponding wake source, and the wake-up times for recording wake source is added 1, the most wake source of wake-up times is supplied to shifting Dynamic terminal is read.Wherein, the node of wake source statistics interface can be/sys/kernel/wakeup_reasons/ap_ resume_reason_stastics.It as shown in table 3, is the power consumption type of crucial partitioned storage module record.

3 mobile terminal power consumption type of table and definition

The sleeping time of mobile terminal is than referring to that duration of sleeping under mobile terminal in standby state accounts for the ratio of standby time.Root According to mobile terminal, the most wake source of wake-up times, the sleeping time ratio of mobile terminal and the first current value can in the standby state Determine the power consumption type of mobile terminal.

Information processing method in the embodiment of the present invention passes through the current value of actual consumption under detection mobile terminal in standby state It is whole further according to the wake-up times of wake source, movement under mobile terminal in standby state with the difference of reference current value, scene current value Power consumption type of the sleeping time at end than determining mobile terminal, can easily monitor the power consumption type of mobile terminal.

In one embodiment, mobile terminal can be by the power consumption type upload server of the mobile terminal of judgement.

Data can be uploaded to server by Log uploading tools Stethoscope by mobile terminal, and every part of Log is with defect Mode is submitted to database and corresponds to item area.When mobile terminal detects power consumption exception, mobile terminal can determine that mobile terminal Power consumption type and pop up prompting frame in interface of mobile terminal, for prompting SCN subscriber connection network and uploading Log automatically.When automatic When uploading more failures of Log, mobile terminal only uploads key message automatically, such as the power consumption type and corresponding power consumption of mobile terminal Amount, and the power consumption type information of mobile terminal is uploaded manually in interface of mobile terminal pop-up prompt user.Log is in mobile terminal Journal file can record the operation information of operating system and application program in mobile terminal;In the present embodiment, it can be recorded in Log The power consumption type information of mobile terminal.Mobile terminal uploads the power consumption type of mobile terminal according to the preset time interval, such as moves Dynamic terminal uploaded the power consumption type for the mobile terminal that primary monitoring obtains every 24 hours.Mobile terminal can also be prompted by pop-up Remind customer mobile terminal power consumption abnormal.Wherein, mobile when key partitioned storage module Log switch is closed in mobile terminal Terminal not pop-up is reminded;When mobile terminal system version is Release version, i.e. Log switch is opened, mobile terminal also not bullet Window is reminded;When mobile terminal system version is to send to survey version or special version, mobile terminal not pop-up is reminded.As shown in table 4, It is sent for mobile terminal and surveys version and special version and identification feature.

4 mobile terminal version identification feature of table

Version Identify Feature CTA oppo.cta.support Mobile custom protocol/field is surveyed oppo.cmcc.test Connection the whole network is logical to send survey oppo.all.cutest Telecommunications send survey oppo.allnet.cttest It is logical that the whole network is surveyed in the library telecommunications C agreement/field oppo.all.cttest Mobile the whole network is logical oppo.all.cmcctest Send survey in four library mould A of telecommunications oppo.ct.test Aging version persist.version.ageing

Fig. 3 is the flow chart that mobile terminal uploads standby current exception information in one embodiment.As shown in Figure 3, comprising:

S302 detects standby current exception.If detecting that the current value consumed under mobile terminal in standby state is greater than to refer to Definite value enters step S304.

S304, pop-up window prompt user to upload data.It is abnormal that power consumption is uploaded in interface of mobile terminal pop-up prompt user Data.

S306 closes Log switch and compressed data.Modem Log is switched in turning-off mobile terminal, and it is different to record power consumption The Log compressing file of normal information.

S308, if Wi-Fi connection.Whether detection mobile terminal connects Wi-Fi;If so, entering step S310;If it is not, Enter step S312.

S310 uploads Log.The Log file upload services device of power consumption exception information will be recorded, upload is successfully entered step S318;Upload unsuccessfully enters step S314.

S312 prompts user to connect Wi-Fi.After detecting mobile terminal connection Wi-Fi, Log is uploaded.

Whether S314 uploads fail again.If so, entering step S316.If it is not, entering step S318.

S316 only uploads key message, prompts to upload manually.Key message, such as power consumption in Log are uploaded by data network Exception Type is hardware power consumption, power consumption 10mA.

S318 terminates.

Information processing method in the embodiment of the present invention will determine the consumption of the mobile terminal obtained under mobile terminal in standby state Electric type upload server is conducive to the stand-by power consumption information that developer easily obtains mobile terminal from server, favorably It is for statistical analysis in the stand-by power consumption information to mobile terminal.

In one embodiment, in Fig. 2 step S204 according to mobile terminal in the standby state the wake-up times of wake source, The sleeping time of mobile terminal determines that the power consumption type of mobile terminal includes: whether the wake-up times of detection wake source reach specified Value;If so, determining the power consumption type of mobile terminal according to the most wake source of wake-up times;If it is not, detection the first current value and Whether the sleeping time of mobile terminal than meets preset rules;If meeting preset rules, the power consumption type for recording mobile terminal is Hardware anomalies power consumption.

Under the standby mode of mobile terminal, if the wake-up times of wake source reach designated value in mobile terminal, according to calling out The most wake source of number of waking up determines the power consumption type of mobile terminal.Under mobile terminal in standby state, Wi-Fi in mobile terminal Wake-up times are 16 times/hour, Modem wake-up times reach 15 times/hour, AP wake-up times reach 10 times/hour, Wi-Fi It wakes up and the number of Modem wake-up is more than 15 times/hour, then waken up according to the most Wi-Fi of wake-up times and determine mobile terminal Power consumption type be Wi-Fi wake up power consumption.If the wake-up times of wake source are not up to designated value, detection first in mobile terminal Whether the sleeping time of current value and mobile terminal than meets preset rules, and whether such as the first current value is more than 22mA, when sleep Between ratio whether more than 99% etc..If the first current value is more than 22mA, and mobile terminal sleeps ratio in standby mode more than 99%, Then determine the power consumption type of mobile terminal for hardware anomalies power consumption.If the wake-up times of wake source are not up to specified in mobile terminal Value, and be not hardware anomalies power consumption type, then it is determined as unknown power consumption type.

In one embodiment, the above-mentioned wake source most according to wake-up times determines the power consumption type packet of mobile terminal It includes: obtaining the application program of the wake-up times of each sub- wake source and each sub- wake source of wake-up in the most wake source of wake-up times; The power consumption type of mobile terminal is determined according to the wake-up times of each sub- wake source and the application program for waking up each sub- wake source.

It include sub- wake source in each wake source in mobile terminal.As included that data packet wakes up wlan_ in Wi-Fi wake source Wakeup_src_count [DATA_TYPE_STASTIC], management packet wake up wlan_wakeup_src_count [MGMT_ TYPE_STASTIC], firmware wake up wlan_wakeup_src_count [EVENT_TYPE_STASTIC] and other types wake-up wlan_wakeup_src_count[UNKNOWN_TYPE_STASTIC].As shown in figure 4, putting out screen when mobile terminal receives and referring to When enabling, mobile terminal calls wlan interface wlan_clear_wakesrc_count () by sub- wake source each in Wi-Fi wake source Wake-up times reset.Under the standby mode of mobile terminal, when Wi-Fi wake source wakes up mobile terminal, mobile terminal can Detection wakes up corresponding sub- wake source in the Wi-Fi wake source of mobile terminal, and the wake-up times of sub- wake source are corresponded to and add 1. When mobile terminal receives the instruction of bright screen, will temporarily be handed in the wake-up times write-in memory module of sub- wake source each in wake source Mutual file node/sys/kernel/wakeup_reasons/conn_resume_reason_stastics, and pass through Wake source statistics interface is supplied to mobile terminal reading.

After mobile terminal detects the most wake source of wake-up times in the standby state, wake-up times are further obtained The application program of the wake-up times of each sub- wake source and the sub- wake source of wake-up in most wake sources, calls out each sub- wake source Wake up number and wake up sub- wake source application program it is for statistical analysis, and by statistic analysis result upload server.For example, moving Dynamic terminal in the standby state the most wake source of wake-up times be Wi-Fi wake source, wake-up times be 30 times, further obtain Getting data packet in Wi-Fi wake source and waking up is 15 times, and it is 5 times that management packet, which wakes up, and it is 5 times that firmware, which wakes up, and other types wake up It is 5 times.Obtaining the data packet under mobile terminal in standby state and waking up corresponding application program is QQ, microblogging.Then determine mobile whole The power consumption type at end is that Wi-Fi wakes up power consumption, specifically application program QQ and microblogging frequent progress data packet in mobile terminal Power consumption caused by wake-up.

In one embodiment, above- mentioned information processing method further include: if detecting the first current value and third current value Difference be less than second threshold, according to third current value determine mobile terminal power consumption type.

When the difference of the first current value and third current value is less than second threshold, the i.e. difference of the first current value and third current value Less than the sum of the second current value, the float value of the second current value and designated value, i.e. the difference of the first current value and third current value exists In floating range, then the power consumption type of mobile terminal is determined according to third current value.For example, under mobile terminal in standby state One current value is 22mA, and the second current value is 12mA, and the float value of the second current value is 6mA, and third current value is 3mA, is specified Value is 3mA, then the difference of the first current value and third current value is 19mA, the second current value, the float value of the second current value and finger The sum of definite value is 21mA, then the difference of the first current value and third current value is less than second threshold, then it is right in third current value to obtain The current value for each scene answered, if third current value 3mA includes that Wi-Fi scanning times 10 1mA, Wi-Fi are re-rented number 5 times 1mA, group key interaction 10 1mA, then determine the power consumption type of mobile terminal for Wi-Fi scanning frequently, Wi-Fi re-rent frequently and Group key interaction is frequent.The power consumption type information of the mobile terminal of judgement can be recorded in the key point of partition holding by mobile terminal Area's memory module and upload server.If the power consumption type of mobile terminal is that Wi-Fi scanning is frequent, Wi-Fi scanning times are 10 Secondary, corresponding power consumption is 1mA.

Information processing method in the embodiment of the present invention determines the power consumption class of mobile terminal according to known scene power consumption Type, the power consumption condition of scene, is conducive to carry out mobile terminal according to statistic analysis result known to statistics available analysis mobile terminal It improves.

In one embodiment, above- mentioned information processing method further include: it is pre- to detect that the standby time of mobile terminal is greater than If duration, the first current value and the second current value are obtained.

Screen instruction is put out when mobile terminal receives, mobile terminal starts to monitor the power consumption of mobile terminal under standby mode; If mobile terminal receives the instruction of bright screen in preset time interval, mobile terminal removes the number recorded in the standby state According to, i.e., when the standby time of mobile terminal is greater than preset duration, data under mobile terminal monitoring record standby mode, and to acquisition Data analyzed, determine the power consumption type of mobile terminal.For example, preset duration can be 5 hours, it is standby when mobile terminal When duration is greater than 5 hours, the data that mobile terminal obtains detection are analyzed, and determine the power consumption type of mobile terminal.

Under mobile terminal in standby state power consumption according to battery drain percentage calculate, and in mobile terminal battery electricity Nonlinear attenuation calculates mobile terminal according to the percentage of battery drain when not having voltameter in mobile terminal to amount at any time There are biggish errors, such as 0.5%~1% for power consumption under standby mode.

Information processing method in the embodiment of the present invention needs preset duration to be achieved, Ke Yiyou by setting standby time The error of the control current value of effect, improves the accuracy of calculating.

Fig. 5 is the flow chart of information processing method in another embodiment.As shown in figure 5, a kind of information processing method, packet Step S502 is included to step S510.Wherein:

Do are S502, A not less than B? first state and the second state can calculate the first electricity when bright screen when putting out screen according to mobile terminal Flow valuve A;The second current value B can be calculated according to program function and corresponding current value inventory.Judge whether the first current value A is not less than Second current value B;If so, entering step S504;If it is not, entering step S510.

S504 excludes known scene current value.According to Modem monitoring and Wi-Fi monitoring record known scene in Map Power consumption can obtain third current value.Judge whether it is known scene power consumption in third current value.In the consumption for excluding known scene After electricity, mobile terminal power consumption is more than designated value, enters step S506.

S506 determines mobile terminal power consumption type.Determined according to the BSP wake source monitoring data recorded in Node mobile whole The power consumption type at end, enters step S508.

S508, upload server.The power consumption type of the mobile terminal of judgement is written key Log and uploads clothes by mobile terminal Business device.The power consumption type information of mobile terminal also can be obtained by reading key Log information in tool after sale.

S510 terminates.

Information processing method in the embodiment of the present invention can efficiently monitor the power consumption type of mobile terminal.

Fig. 6 is the flow chart of monitoring and processing center operation in one embodiment.As shown in fig. 6, in monitoring module in Fig. 1 The flow chart of monitoring and processing center operation, including step S602 to step S620.Wherein:

S602 puts out screen record first state.Mobile terminal receive put out screen instruction when, record put out screen the time, battery capacity Deng.

S604, bright screen record the second state.Mobile terminal receives bright screen instruction, records bright screen time, battery capacity etc..

Whether S606, mobile terminal in standby state are preset standby mode.If so, entering step S608;If it is not, into Step S610.Whether the standby time of detection mobile terminal reaches preset duration, whether the standby mode of mobile terminal is not pre- If standby mode, mobile terminal Modem Log whether close.

S608 reads wake source wake-up times, each sub- wake source wake-up times, scene power consumption information, first state information With the second status information.The information that mobile terminal is recorded in the standby state is read, S612 is entered step.

S610 terminates.

S612 calculates the first current value A, the second current value B, third current value C.

S614, A are not less than B.Judge whether the first current value A is not less than the second current value B;If so, entering step S610; If it is not, entering step S616.

Whether S616, A subtract third current value C up to standard.If so, entering step S610;If it is not, entering step S618.

S618 determines mobile terminal power consumption type and crucial subregion is written.Determine the power consumption type of mobile terminal, and will sentence Crucial subregion in the power consumption type information write-in memory module of fixed mobile terminal.

S620, Alarm sequence extremely play frame prompt.Alarm is in android system for completing alarm clock type timed task Class, the achievable disposable timed task of Alarm class or circulation timing task.When detecting mobile terminal power consumption exception, lead to It crosses Alarm sequence extremely and plays frame prompt user, and by mobile terminal power consumption type information upload server.

It frequently activates in mobile terminal power consumption type without service time, frequent gravity treatment, data and short message is frequently retransmitted to lead to Cross Modem module monitoring.

As shown in fig. 7, for the flow chart without service scenarios detection in one embodiment.When in mobile terminal being double card, If two cards simultaneously without service, individually calculate the every time of card without service and add up be used as mobile terminal without service time again, But mobile terminal is not more than the mobile terminal standby time without service time.

S702, booting.Start Telephony process after mobile terminal-opening and monitors service state.Wherein, in mobile terminal In ServiceStateTracker class GSMServiceStateTracker subclass can monitor mobile card and connection card whether without Service;CDMAServiceStateTracker subclass can monitor telecommunications card whether without service.

S704 monitors service state.Specifically, service state can be monitored in mobile terminal updateSpnDisplay. It monitors that mobile terminal has service, enters step S706;Monitor that mobile terminal without service, enters step S720.

S706, more cards judge and are handled differently.It detects in mobile terminal with the presence or absence of multiple cards, and if it exists, while listening for The service state of every card.

S708 records current time.

Do not are not S710, no service start time 0? whether detection is 0 without service start time, if so, entering step S712; If it is not, return step S704.

Does S712, no service start time, which is greater than, put out the screen time? whether detection is greater than without service start time is put out the screen time, if It is to enter step S716;If it is not, entering step S714.

S714, no service time=without service time+(current time-puts out the screen time).

S716, no service time=without service time+(current time-is without service start time).

S718, no service start time are set as 0.Return step S704.

S720, more cards judge and are handled differently.If mobile terminal there are multiple cards, calculates when adding up without service of multiple cards Between as mobile terminal without service time;If there is only a cards for mobile terminal, calculates being used as without service time for the card and move Dynamic terminal without service time.

S722 records current time.

Do are S724, no service start time 0? whether detection is 0 without service start time, if so, entering step S726;If It is no, return step S704.

S726, no service start time=current time.Return step S704.

S728 monitors screen state.Screen state can be monitored in mobile terminal handleMessage, judged mobile whole End, which is presently at, puts out screen state and is in bright screen state.When receive put out screen instruction when, enter step S730;When receiving When the instruction of bright screen, S734 is entered step.

S730, record put out the screen time.

S732, no service time reset.When mobile terminal, which receives, puts out screen instruction, will be reset without service time.

S734 records the bright screen time.

Do not are not S736, no service start time 0? if so, entering step S738;If it is not, return step S728.

S738, no service time=without service time+(m- no service start time when bright screen).Return step S728.

Method without service scenarios detection in the embodiment of the present invention, can efficiently monitor the service state of mobile terminal, It detects in mobile terminal without service time.

As shown in figure 8, for the flow chart of the frequent gravity treatment scene detection of cell in one embodiment.When mobile terminal is by no clothes When the business state entering signal area of coverage, mobile terminal can search all base station signals that can be connected, and select one of base It stands connection.Wherein, the range of base station signal covering is cell.When mobile terminal connects a certain base station signal, i.e. mobile terminal Reside in the corresponding cell in the base station.When mobile terminal is in the intersection of multiple base stations, mobile terminal can frequent gravity treatment company The base station connect causes mobile terminal power consumption abnormal.

S802, booting.Start to monitor the cell ID that mobile terminal connects after mobile terminal-opening.

S804 monitors current persistent district number.The ID of current persistent district is monitored, if changing, enters step S806;If It is unchanged, persistently monitor current persistent district number.

S806, reselection frequency is from increasing 1 during bright screen.The frequent reselection frequency of cell is added 1 and is recorded.It is mobile whole when listening to The ID of persistent district is held to change 1 time, the frequent reselection frequency of the corresponding cell by record adds 1.

S808 monitors screen state.If monitoring to put out screen, S810 is entered step;If monitoring bright screen, enter step S816。

S810, record put out the screen time.

S812, reselection frequency/(putting out m- bright screen time when screen) during reselection frequency=bright screen.According to the gravity treatment of record time Number puts out screen time and calculating of bright screen time cell reselection frequency.

S814, reselection frequency is reset during suspend mode.After calculating reselection frequency, reselection frequency is reset, return step S808 Again screen state is monitored.

S816 records the bright screen time.

S818, reselection frequency=reselection frequency * (m- when bright screen to put out the screen time) during suspend mode.

S820, reselection frequency is reset, reselection frequency is reset during bright screen.Return step S808 monitors screen state.

In mobile terminal sleep, Modem layers of cell reselection event can not be received for Telephony layers in mobile terminal, That is the Telephony layers of message that can not receive current area ID information reporting.The heavy Selected Inspection survey side of intermediate frequency of the embodiment of the present invention Method, cell reselection frequency can reduce the power consumption of mobile terminal as cell reselection frequency when putting out screen when by recording bright screen.

As shown in figure 9, frequently activating the flow chart for frequently retransmitting scene detection with short message for data in one embodiment.Number Refer to that under mobile terminal in standby state, data transport behavior wakes up mobile terminal according to frequent activation, short message repeating transmission refers to movement Terminal retries transmission after sending short message failure, under the standby mode of mobile terminal, frequent data activation in mobile terminal Electricity can be consumed with short message repeating transmission.

S902, booting.Start to monitor data in mobile terminal activation after mobile terminal-opening and short message is sent.

S904, monitored data activate behavior.Activation behavior has been listened to, S906 is entered step.Activation behavior is not heard, Then continue monitored data and activates behavior.

S906, data activation number increase 1 certainly.Data activation behavior is listened to, the data activation behavior number of record is added 1。

S908 monitors screen state.In the bright screen of mobile terminal, screen state is persistently monitored;When mobile terminal puts out screen, Enter step S910.

S910, data activation number is reset, short message sending times are reset.When listening to mobile terminal and putting out screen, will record Zeros data, and continue monitor screen state.

S912 monitors short message and sends behavior.It has listened to short message and has sent behavior, entered step S914.Position listens to short message It sends information and then persistently monitors short message transmission information.

S914, short message sending times increase 1 certainly.It listens to short message and retransmits behavior, the short message sending times of record are added 1, and It persistently monitors short message and sends behavior.

Data frequently activate in the embodiment of the present invention and short message frequently retransmits scene detection method, can easily detect Data in mobile terminal frequently activates behavior and short message frequently retransmits behavior, and records the electricity, short that data frequently activate consumption Letter frequently retransmits the electricity of consumption.

(Android Interface Definition Language, Android interface define language to AIDL in mobile terminal Speech) result that can will test of mechanism passes to stand-by power consumption identification monitoring service.Such as by the data activation frequency monitored, The frequent reselection frequency of short message recurrence frequency, cell and recognition detection service is passed to without service time.As shown in Figure 10, pass through by ConnectivityManager stores data in ConnectivityService as interface class, mobile terminal it is standby Consumption detection service can store and read data by calling ConnectivityManager.When power consumption is examined in mobile terminal Survey service when reading data, if in mobile terminal Telephony layers have not been written to data, the number of the data and write-in that read According to asynchronous.Wherein, a settable tag such as AlreadyUpdate records data.Telephony layers can be in mobile terminal Tag resets to 0 when putting out screen, sets designated value such as true for tag again after the bright screen of mobile terminal writes data.Consumption detection clothes Business can judge whether data are written completely by the value of tag;If data write-in is not exclusively, examine again after certain time intervals Survey the value of tag.

Data sharing method in the embodiment of the present invention can be with the case where can not sharing to avoid different inter-process datas The data monitored under mobile terminal in standby state are obtained in real time, are conducive to analyze mobile terminal in standby state according to the data of acquisition Under power consumption type.

Figure 11 is the flow chart of information processing method in one embodiment.As shown in figure 11, a kind of information processing method, packet Step S1102 is included to step S1106.Wherein:

S1102, receive mobile terminal puts out screen instruction, and the state information statistics number for connecting Wi-Fi is reset.

S1104, if the state information change of detection connection Wi-Fi, updates the statistics time of the status information of connection Wi-Fi Number.

S1106 receives the bright screen instruction of mobile terminal, stops the status information of detection connection Wi-Fi.

Mobile terminal can pass through Wi-Fi and other mobile terminal connection communications.After mobile terminal connects AP, AP can record SSID (Service Set Identifier, service set).After mobile terminal, which receives, puts out screen instruction, record puts out screen Time mScreenOffTime resets the state information statistics number for the connection Wi-Fi that mobile terminal has counted.Mobile terminal Can real-time detection connection Wi-Fi status information whether change, if detect connection Wi-Fi state information change, update Connect the statistics number of the status information of Wi-Fi.When mobile terminal receives the instruction of bright screen, the bright screen of mobile terminal can record Time mScreenOnTime, and stop the status information of detection connection Wi-Fi.Specifically, can pass through in mobile terminal " public int getWi-FiPowerEventCode () " interface obtains wlan data for power consumption module in mobile terminal, sentences Exist under disconnected mobile terminal in standby state abnormal with the presence or absence of mobile terminal power consumption.If mobile terminal receives and puts out screen instruction and connect The not up to specified duration of time interval between bright screen instruction is received, does not report and connects Wi-Fi's under standby mode in mobile terminal Status information, such as put out screen the time be less than 20 seconds, do not report counted connection Wi-Fi status information.

Information processing method in the embodiment of the present invention connects the shape of Wi-Fi by detecting under mobile terminal in standby state The variation of state information, mobile terminal power consumption caused by can detect because of the configuration of the end AP are conducive to the stand-by power consumption for detecting mobile terminal.

In one embodiment, the status information for Wi-Fi being connected in above- mentioned information processing method includes: group key, dynamic Host configuration DHCP at least one of is re-rented with Wi-Fi connection status.

The status information of connection Wi-Fi may include group key, dynamic host configuration protocol DHCP re-rent, Wi-Fi scanning time At least one of several and Wi-Fi connection status.The group key management period can be arranged in Wi-Fi network in wireless router, that is, is spaced Regular hour updates a group key.Wherein, group key refers to the algorithm of Wi-Fi password.Mobile terminal is in connection Wi-Fi When, it needs to obtain to DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) server The IP address of IP (Internet Protocol, the agreement interconnected between network) address, mobile terminal and wireless router is signed Having time limitation, mobile terminal need to re-rent to wireless router to continue to connect Wi-Fi.Under normal conditions, wireless router The IP address rental period be 1 hour, when the rental period of acquisition for mobile terminal IP address is more than half, mobile terminal can be continuous to wireless router It rents, i.e., when the rental period of the IP address of acquisition for mobile terminal is half an hour, mobile terminal can be re-rented to wireless router.Wi-Fi Connection status refers to whether mobile terminal connects Wi-Fi, when the Wi-Fi signal of wireless router is unstable, mobile terminal meeting Reconnection Wi-Fi is frequently cut off, mobile terminal power consumption is caused.

In one embodiment, if step S1104 detection connects the state information change of Wi-Fi in Figure 11, connection is updated If the statistics number of the status information of Wi-Fi includes: to detect that group key changes, the statistics number that group key changes is added 1;On State information processing method further include: the statistics number of group key variation reaches first threshold if detecting, in interface of mobile terminal Display reminding.

Under mobile terminal in standby state, mobile terminal detects that group key changes in the Wi-Fi currently connected, then by group The statistics number mGroupCount of cipher key change adds 1.When mobile terminal receives the instruction of bright screen, the bright screen time is recorded MSrceenOnTime can calculate shifting according to the statistics number for putting out screen time, bright screen time and group key variation of mobile terminal Dynamic terminal standby state the following group cipher key change frequency mGroupFreq.If group key variation the frequency reach first threshold such as 20 times/ Point, then it prompts the group key management of current Wi-Fi excessively frequent in interface of mobile terminal pop-up, user is reminded to modify Wi-Fi's The group key management period.

In one embodiment, if step S1104 detection connects the state information change of Wi-Fi in Figure 11, connection is updated If the statistics number of the status information of Wi-Fi includes: to detect that DHCP is re-rented, the statistics number that DHCP is re-rented adds 1;Above-mentioned letter Cease processing method further include: if the statistics number for detecting that DHCP is re-rented reaches second threshold, show and mention in interface of mobile terminal Show.

Under mobile terminal in standby state, mobile terminal detects that DHCP of the every initiation of the Wi-Fi currently connected is re-rented, The statistics number mDhcpCount that DHCP is re-rented then is added 1.When mobile terminal receives the instruction of bright screen, the bright screen time is recorded MSrceenOnTime, according to mobile terminal put out the screen time, the statistics number that bright screen time and DHCP are re-rented can calculate movement DHCP re-rents frequency mDhcpFreq under terminal standby state.If DHCP, which re-rents the frequency, reaches such as 40 beats/min of second threshold, It is unreasonable that interface of mobile terminal pop-up prompts the DHCP rental period of current Wi-Fi to be arranged, and mobile terminal is re-rented excessively frequently, reminds and uses The DHCP rental period that current Wi-Fi is modified at family is arranged.

In one embodiment, if step S1104 detection connects the state information change of Wi-Fi in Figure 11, connection is updated If the statistics number of the status information of Wi-Fi includes: to detect that Wi-Fi is disconnected, by the statistics number of Wi-Fi connection status Add 1;Above- mentioned information processing method further include: the statistics number of Wi-Fi connection status reaches third threshold value if detecting, in movement Terminal interface displays the prompt box or forbids connecting current Wi-Fi.

Under mobile terminal in standby state, when mobile terminal detects that Wi-Fi is disconnected, Wi-Fi will be reconnected, and Add 1 in the statistics number mDisconnCount of Wi-Fi connection status.When mobile terminal receives the instruction of bright screen, bright screen is recorded Time mSrceenOnTime, can according to the statistics number for putting out screen time, bright screen time and Wi-Fi connection status of mobile terminal It calculates Wi-Fi connection status under mobile terminal in standby state and changes frequency mDisconnFreq.If Wi-Fi connection status changes The frequency reaches such as 35 beats/min of third threshold value, then prompts current Wi-Fi signal unstable in interface of mobile terminal pop-up, it is proposed that weight It opens wireless router or connects other Wi-Fi;Or mobile terminal is forbidden connecting current Wi-Fi within a certain period of time, it is such as mobile whole Forbid connecting current Wi-Fi within a hour in end.

Figure 12 is the flow chart of information processing method in another embodiment.As shown in figure 12, a kind of information processing method, Including step S1202 to step S1214.Wherein:

S1202 puts out screen.Mobile terminal, which receives to put out, to be started to monitor the state for connecting Wi-Fi in mobile terminal after screen instructs Information.

S1204 puts out the bright screen interval of screen and reaches specified duration.If mobile terminal put out screen with bright screen time interval reach specified when It is long, such as 20 seconds, calculate the state information change frequency under mobile terminal in standby state.

S1206, the state information statistics number for connecting Wi-Fi are reset.When detecting the bright screen of mobile terminal, Wi- will be connected The state information statistics number of Fi is reset.

S1208 connects the state information change of Wi-Fi.It detects the state information change of connection Wi-Fi, updates connection The state information statistics number of Wi-Fi.

S1210 updates the state information statistics number of connection Wi-Fi, obtains the state information change frequency of connection Wi-Fi It is secondary.Become according to the status information that the state information statistics number and standby time of the Wi-Fi counted under standby mode obtain Wi-Fi Change the frequency.

S1212, the variation frequency are greater than preset threshold.If the state information change frequency for connecting Wi-Fi is greater than the default frequency, Enter step S1214.

S1214, the frequent flag bit of state information change of write-in connection Wi-Fi.Connect the state information change frequency of Wi-Fi Numerous flag bit is for identifying the frequent character string of the state information change of Wi-Fi.Specifically, group key is shaken hands frequent flag bit It is 0x1000 that for 0x10, Wi-Fi, to re-rent frequent flag bit, which be the frequent flag bit of 0x100, Wi-Fi disconnection,.

Figure 13 is the flow chart of information processing method in one embodiment.As shown in figure 13, a kind of information processing method, packet Step S1302 is included to step S1304.Wherein:

S1302 receives scan request under mobile terminal in standby state, detects in the corresponding time interval of scan request Whether scan request except received scan request in addition to is received.

S1304 opens mobile terminal Wi-Fi scanning if not receiving the scan request in addition to having received scan request.

After mobile terminal connects Wi-Fi, mobile terminal can carry out mobile terminal location using Wi-Fi.Mobile terminal Each Wi-Fi that scanning obtains possesses unique MAC (Media Access Control, media access control) address, root According to mobile scanning terminal obtain Wi-Fi MAC Address and each Wi-Fi signal power, available mobile terminal Location information.When APP (Application, application program) needs to obtain location information in mobile terminal, it can be sent out to mobile terminal Play scan request.Under mobile terminal in standby state, the scan request that APP is frequently initiated in mobile terminal will cause mobile terminal Power consumption.

After the scan request for receiving the initiation of first application program under mobile terminal in standby state, starting timer will First application initiate scan request delay first time interval processing, i.e., mobile terminal detection in first time interval whether Receive the scan request of the second application program initiation;If if receiving the initiation of the second application program in first time interval Scan request, then whether detection receives the scan request of third application program initiation in the second time interval;If first Time interval does not receive the scan request of the second application program, opens mobile terminal Wi-Fi scanning, so that initiating scan request APP can obtain the location information of mobile terminal.

Information processing method in the embodiment of the present invention, under mobile terminal in standby state, APP in mobile terminal is sent out in reception The scan request risen, the scan request delay process that APP is initiated, it is possible to reduce frequent by APP under mobile terminal in standby state Mobile terminal power consumption caused by scanning is initiated, power consumption under mobile terminal in standby state is saved, extends the standby time of mobile terminal.

In one embodiment, above- mentioned information processing method further include: if detecting for currently having received scan request Number reaches designated value, opens mobile terminal Wi-Fi scanning.

If mobile terminal detects that the number of current received scan request is more than designated value, mobile terminal is opened Wi-Fi scanning enables the APP for initiating scan request in mobile terminal to obtain the location information of mobile terminal.By detecting The number of received scan request, can be more to avoid the received scan request number of mobile terminal, and scan request is for a long time It is not responded, causes the situation that user experience is poor.

In one embodiment, above- mentioned information processing method further include: scanned according to being obtained at the time of receiving scan request Request waiting time;If detecting, scan request waiting time reaches specified duration, opens mobile terminal Wi-Fi scanning.

Mobile terminal will record at the time of receive scan request, after receiving the scan request of APP by current time The waiting time that scan request can be obtained at the time of receiving scan request is subtracted, if detecting the waiting time of scan request More than specified duration, then mobile terminal Wi-Fi scanning is opened.For example, mobile terminal has currently received sweeping for two application programs Request is retouched, mobile terminal is 16:50:56 at the time of receiving the scan request of first application program initiation;Receive second It is 16:51:01 at the time of the scan request that a application program is initiated.Current time is 16:51:03.Then the first application program is sent out The waiting time of the scan request risen is 7 seconds;The waiting time for the scan request that second application program is initiated is 2 seconds, preset Scan request it is specified when it is 5 seconds a length of, waiting time of scan request that the first application program is initiated reaches specified duration, then opens Mobile terminal Wi-Fi scanning is opened, so that the first application program and the second application program can obtain the location information of mobile terminal.It is logical It crosses and detects received scan request waiting time, can not be rung for a long time to avoid the received scan request of mobile terminal It answers, causes the situation that user experience is poor.

In one embodiment, above- mentioned information processing method further include: it is not that different scanning, which requests corresponding time interval, With value.

The corresponding time interval of the scan request received in mobile terminal is different value.Specifically, different scanning is requested Corresponding time interval be different value, i.e., mobile terminal receive the corresponding time interval of the first scan request, second scanning Requesting the corresponding time interval of corresponding time interval N scan request is without value.Specifically, each scan request pair The time interval answered can be gradually increased according to reception sequence or the corresponding time interval of each scan request can according to reception sequence by The corresponding time interval of decrescence small or each scan request is distributed according to the requirement of real-time of each scan request.For example, mobile terminal After receiving the first scan request, whether detection receives the second scan request in first time interval 3 seconds;Receiving After two scan requests, whether detection receives third scan request in the second time interval 2 seconds.By requesting different scanning Different time intervals are set, the scan request received can flexibly be handled, scan request long-time in mobile terminal is avoided It does not respond, reduces user experience.

In one embodiment, above- mentioned information processing method further include: it is phase that different scanning, which requests corresponding time interval, With value.

The corresponding time interval of the scan request that mobile terminal receives is identical value, i.e., mobile terminal is receiving scanning After request, starting timer is postponed identical time-triggered protocol.For example, mobile terminal after receiving the first scan request, detects The second scan request whether is received in 5 milliseconds of first time interval;If receiving the second scan request, detect second Third scan request whether is received in 5 milliseconds of time interval, and so on.

Figure 14 is the flow chart of information processing method in another embodiment.As shown in figure 14, a kind of information processing method, Include:

S1402 receives the first scan request.After receiving the first scan request, starting timer delay waiting time T1.

S1404, delay wait T1.

S1406, if receive the second scan request.Whether detection, which receives the second scanning in T1 time interval, is asked It asks;If so, entering step S1408;If it is not, entering step S1410.

S1408, delay wait T2.After receiving the second scan request, starting timer-delay waits T2.

S1410 opens scanning.Mobile terminal Wi-Fi scanning is opened, feedback is made to received scan request.

S1412, if receive third scan request.Whether detection receives third scanning in T2 time interval is asked It asks;If so, entering step S1414;If it is not, entering step S1410.

S1414, delay wait T3.Detection receives third scan request, starting timer delay in T2 time interval Waiting time T3.

And so on, whether detection receives N scan request in TN time interval.

S1416, if receive N scan request.If so, entering step S1418;If it is not, entering step S1410.

S1418, delay wait T (N+1).

Figure 15 is the flow chart of information processing method in one embodiment.As shown in figure 15, a kind of information processing method, packet Step S1502 is included to step S1506, in which:

S1502, reception put out screen instruction, count the Wi-Fi scan request number of application program under mobile terminal in standby state;

Whether S1504, the Wi-Fi scan request number for detecting application program reach designated value;

S1506, if detecting, the Wi-Fi scan request number of application program reaches designated value, corresponding according to designated value Mode of operation executes corresponding operation to application program.

Wireless aps possess unique MAC Address, and after mobile terminal opens Wi-Fi scanning, mobile terminal can scan surrounding Wireless aps signal, obtain the MAC Address that broadcasts out of wireless aps, and the MAC Address upload server for the wireless aps that will acquire. Server can calculate the geographical location information of mobile terminal according to the MAC Address of wireless aps signal strength or weakness and wireless aps, and will The location information for calculating the mobile terminal obtained returns to mobile terminal.In the use process of mobile terminal, APP in mobile terminal It can apply for obtaining the location information of mobile terminal, i.e. initiation Wi-Fi scan request.Wherein, information processing needs to be traversed for 2.4G13 A channel, each channel are stationed 40ms-60ms, if mobile terminal supports double frequency WI-FI, i.e. 5GWI-FI, then need 36 channels of scanning To 156 channels, mobile terminal power consumption is caused to increase.

When acquisition for mobile terminal is to when putting out screen instruction, it is recorded in the Wi- that application program under mobile terminal in standby state is initiated Fi scan request number, if detecting, the Wi-Fi scan request number that application program is initiated reaches designated value, determines application program The Wi-Fi scan request number of initiation is excessively frequent, executes behaviour corresponding with designated value to the application program for initiating scan request Make.

Information processing method in the embodiment of the present invention, the Wi-Fi that application program is detected under mobile terminal in standby state are swept It retouches request and reaches designated value, is i.e. when the Wi-Fi scan request of application program is excessively frequent, corresponding behaviour is executed to application program Make, avoid the Wi-Fi scan request of application program excessively frequently caused by mobile terminal power consumption increase.In mobile terminal standby shape Under state, the real-time demand of application program is lower.To scan request, more frequently application program executes corresponding operation, that is, reduces Mobile terminal stand-by power consumption, by not influencing user experience.

In one embodiment, if designated value is first threshold, detect that the Wi-Fi scan request number of application program reaches To first threshold, prompted in interface of mobile terminal pop-up.If designated value is second threshold, detect that the Wi-Fi of application program is swept It retouches request number of times and reaches second threshold, then stop the scan request for receiving application program.If designated value is third threshold value, detect The Wi-Fi scan request number of application program reaches third threshold value, and application program is terminated and is run.

When the scan request number of application program reaches different designated values, operation that mobile terminal executes application program Instruction is different.Wherein, second threshold is greater than first threshold, third threshold value is greater than second threshold.For example, in mobile terminal standby shape Under state, detects that the scan request number of application program is 10 times, reach first threshold 10, prompted in interface of mobile terminal pop-up User's application program power consumption is larger;The scan request number for detecting application program is 15 times, reaches second threshold 15, then moves Dynamic terminal no longer receives the scan request of application program initiation within a certain period of time, such as no longer receives this within a hour and answers The scan request initiated with program;The scan request number for detecting application program is 20 times, reaches third threshold value 20, then moves Terminal directly terminates application program operation.

In one embodiment, mobile terminal can also calculate the Wi-Fi scan request frequency of application program, according to using journey Whether the Wi-Fi scan request frequency of sequence, which reaches, is specified to execute corresponding operation to application program.Wherein, application program The Wi-Fi scan request frequency can be obtained according to the Wi-Fi scan request number and current idle duration of application program.

In one embodiment, above- mentioned information processing method further include: the bright screen instruction for detecting mobile terminal will apply The Wi-Fi scan request number of program is reset.

When mobile terminal receives the instruction of bright screen, by the Wi- of the application program recorded under mobile terminal in standby state Fi scan request number is reset.So that mobile terminal receive put out screen instruction enter standby mode when, again record apply journey The Wi-Fi scan request number of sequence.

Figure 16 is the flow chart of information processing method in another embodiment.As shown in figure 16, a kind of information processing method, It is characterised in that it includes step S1602 to step S1604.Wherein:

S1602, receive mobile terminal puts out screen instruction, records application program under mobile terminal in standby state and holds wake-up lock Duration and application triggers wake-up alarm number.

S1604 receives the bright screen instruction of mobile terminal, and the duration for waking up lock is held according to application program and application program is touched The number for sending out wake-up alarm obtains the stand-by power consumption information of application program.

A kind of mechanism that lock is android system is waken up, when in system using wake-up lock is held, system be cannot be introduced into not Dormancy state, after wake-up lock all in system is all released, system just can enter dormant state.Wake-up alarm is also referred to as RTC (Real Time Clock, real-time alarm clock) alarm clock, wake-up alarm is individually powered on hardware circuit, in mobile terminal standby shape Under state, wake-up alarm can be by system wake-up.Movement can all be increased eventually using wake-up lock and wake-up alarm wake-up mobile terminal is held The stand-by power consumption at end.

When receive mobile terminal put out screen instruction when, mobile terminal detects and records whether each application program holds wake-up Lock, at the time of application program wakes up lock, at the time of application program release wakes up lock and application program corresponding triggering The number of wake-up alarm.Wherein, it in android system, wakes up lock and is managed by PowerManagerService, At the time of record has application program to wake up lock in PowerManagerService, at the time of application program release wakes up lock, It is waken up according to application program at the time of lock and application program can be obtained at the time of discharging wake-up lock and hold the duration for waking up lock. Wake-up alarm is managed by AlarmManagerService, and record has wake-up alarm in AlarmManagerService Relevant information at the time of being triggered such as wake-up alarm, triggers the application program identification etc. of wake-up alarm.It is noisy according to the wake-up of record The relevant information of clock can obtain the number of each application triggers wake-up alarm in the standby state.

When the bright screen for receiving mobile terminal instructs, wake-up lock is held according to application program under mobile terminal in standby state Duration and the number of application triggers wake-up alarm can calculate the stand-by power consumption information for obtaining application program, and according to application The stand-by power consumption information of program executes corresponding operation to application program.

In one embodiment, the stand-by power consumption information of application program include: application program hold wake up lock duration account for All application programs hold the ratio of total duration for waking up lock, the number of application triggers wake-up alarm accounts for all application programs It triggers the ratio of the total degree of wake-up alarm, hold the duration and application triggers wake-up alarm for waking up lock according to application program Number obtain application program power consumption index.

Hold the duration and each application for waking up lock according to each application program under mobile terminal in standby state of record Program triggering wake-up alarm number can calculate application program hold wake up lock total duration and application triggers wake up lock Total degree, then calculate to obtain application program and hold and wake up the duration of lock and account for the ratio of total duration, application triggers wake up noisy The number of clock accounts for the ratio of total degree.Wherein, the duration and application triggers wake-up alarm for waking up lock are held to application program Number can set weight factor, the duration for waking up lock is held to application program and the number of application triggers wake-up alarm adds Power calculates the power consumption index for obtaining application program.

In one embodiment, above- mentioned information processing method further include: will be answered according to the stand-by power consumption information of application program It is sorted and is shown in interface of mobile terminal with the corresponding application program identification of program.

Application program can be sorted according to the stand-by power consumption information of the application program of acquisition, for example, being held according to application program Have and wakes up the ratio for the duration locked, according to the ratio of the number of application triggers wake-up alarm, the power consumption index of application program Application program is ranked up, and ranking results are shown in interface of mobile terminal.It wherein, can be according to single value to application program It is ranked up, it can also application program be ranked up according to multiple values.For example, according to application program hold wake up lock when Long ratio is ranked up application program;Application program is carried out according to the ratio of the number of application triggers wake-up alarm Sequence;Hold the ratio of the number of the ratio, application triggers wake-up alarm that wake up the duration locked according to application program and answers Application program is ranked up with the weighted average of the power consumption index of program.Under normal conditions, from high to low by stand-by power consumption Application program is ranked up.

In one embodiment, the duration and application triggers wake-up alarm for waking up lock are being held according to application program Before number obtains the stand-by power consumption information of application program, above- mentioned information processing method further include: detection mobile terminal standby shape Whether the current value consumed under state reaches designated value;If so, holding the duration and application program for waking up lock according to application program The number for triggering wake-up alarm obtains the stand-by power consumption information of application program.

Before the stand-by power consumption information for obtaining application program, the current value consumed under mobile terminal in standby state can determine that Whether designated value is reached;If the current value consumed under mobile terminal in standby state reaches designated value, mobile terminal standby is determined Power consumption is abnormal, obtains the stand-by power consumption information of application program under mobile terminal in standby state.By determining mobile terminal standby shape Current value under state, obtains the stand-by power consumption information of application program again when standby current exception, and the information of acquisition is more acurrate.

In one embodiment, the duration and application triggers wake-up alarm for waking up lock are being held according to application program Before number obtains the stand-by power consumption information of application program, above- mentioned information processing method further include: detect the standby of mobile terminal Whether duration reaches preset duration;If so, hold the duration for waking up lock according to application program and application triggers wake up it is noisy The number of clock obtains the stand-by power consumption information of application program.

Before the stand-by power consumption for obtaining application program, when can determine that whether the standby time of mobile terminal reaches default It is long, stand-by power consumption information in application program is obtained when the standby time of mobile terminal reaches preset duration, can make what is obtained to answer It is more acurrate with the stand-by power consumption information of program.

Figure 17 is the flow chart of information processing method in another embodiment.As shown in figure 17, a kind of information processing method, Including step S1702 to step S1706.Wherein:

S1702 obtains application program and holds the duration and application triggers for waking up lock under mobile terminal in standby state The number of wake-up alarm;

S1704 obtains application program according to the number for holding the duration and application triggers wake-up alarm that wake up lock Power consumption index.

S1706, if detecting, the power consumption index of application program reaches preset value, according to operational order corresponding with preset value Corresponding operation is executed to application program.

The wake-up alarm of wake-up lock and application triggers that mobile terminal can hold application program is monitored.Work as inspection Measure application program wake up lock, release wake up lock, application triggers wake-up alarm when, can real-time perfoming remember accordingly Record.Wherein, it in android system, wakes up lock and is managed by PowerManagerService, in PowerManagerService At the time of middle record has application program to wake up lock, at the time of application program release wakes up lock, called out according to application program Waking up can be obtained the duration that application program holds wake-up lock at the time of lock and at the time of release wake-up lock.Wake-up alarm be all by AlarmManagerService management, record has the relevant information of wake-up alarm in AlarmManagerService, such as calls out At the time of awake alarm clock is triggered, the application program identification etc. of wake-up alarm is triggered.According to the relevant information of the wake-up alarm of record The number of each application triggers wake-up alarm in the standby state can be obtained.Held in the standby state according to application program The number of the duration and application triggers wake-up alarm that wake up lock can calculate the power consumption index of application program.When detecting application The power consumption index of program reaches preset value, then can be executed according to the value for the power consumption index that application program reaches to application program corresponding Operation.

In the wake-up alarm of records application program triggering, only the wake-up of record and application program strong correlation is locked and is waken up noisy Clock.Specifically, can be judged according to the packet name of application program application triggers wake-up alarm whether strong correlation.For example, wechat Packet entitled com.tencent.mm, first character section com indicates business;Second field indicates company name, as tencent is Tencent;Third field mm indicates this application of wechat, first three field of the packet name of application program is identical to indicate same Using.Application program can all have the packet name information of application program when application wakes up lock and triggering wake-up alarm, if packet name First three field is identical, then is determined as the same application program, is recorded as and the application program strong correlation.

In one embodiment, hold the duration and application for waking up lock under mobile terminal in standby state according to application program The power consumption index that the number of program triggering wake-up alarm calculates application program includes: to receive putting out for mobile terminal to shield instruction, record At the time of application program wakes up lock, release wakes up at the time of lock and application triggers wake up the number of lock;It receives and moves The bright screen instruction of dynamic terminal, obtains application program at the time of waking up lock according to application program, at the time of release wakes up lock and holds There is the duration for waking up and locking;The number calculating for holding the duration and application triggers wake-up alarm that wake up lock according to application program is answered With the power consumption index of program, power consumption index and application program hold the secondary of the duration and application triggers wake-up alarm for waking up lock Number is positively correlated.

In one embodiment, hold the duration and application for waking up lock under mobile terminal in standby state according to application program The power consumption index that the number of program triggering wake-up alarm calculates application program includes: according to preset the wake-ups lock factor, preset The number that the wake-up alarm factor, application program hold the duration and application triggers wake-up alarm that wake up lock calculates application program Power consumption index.

The power consumption index w of application program is held with preset wake-up lock factor-alpha, preset wake-up alarm factor-beta, application program Having the relationship between the number wa for waking up the duration wl, application triggers wake-up alarm that lock is w=α * wl+ β * wa.Wherein, no It is different with wake-up preset in mobile terminal lock factor-alpha, preset wake-up alarm factor-beta.For example, in the terminal α= 0.3, β=0.7, under mobile terminal in standby state, the time that application program holds wake-up lock is 2345ms, application triggers The number of wake-up alarm is 23 times, then the power consumption factor w=0.3*2345+0.7*23=719.6 of application program.

In one embodiment, the preset wake-up lock factor, the preset wake-up alarm factor are obtained by following steps: according to Mobile terminal is waken up the power consumption that time per electricity and mobile terminal are waken up under state and calculates preset wake-up lock The factor, the preset wake-up alarm factor.

Being waken up power consumption b that time per electricity a and mobile terminal under state are waken up according to mobile terminal can Calculate preset wake-up lock factor-alpha, preset wake-up alarm factor-beta.Wherein, α=a/ (a+b), β=b/ (a+b).According to movement The test data of terminal in the standby state can obtain the wake-up lock factor and the wake-up alarm factor.

In one embodiment, corresponding operation packet is executed to application program according to operational order corresponding with preset value It includes: if preset value is first threshold, being prompted in interface of mobile terminal pop-up;If preset value is second threshold, forbid application program Operation.

If detecting, the power consumption index of application program reaches first threshold, in interface of mobile terminal pop-up prompt user's application The power consumption index of program is excessively high;When the power consumption index of application program reaches second threshold, then the application program is forbidden to run.Its In, second threshold is greater than first threshold.In another embodiment, a designated value is set to the power consumption index of application program, When the power consumption index for detecting application program reaches designated value, then prompts in interface of mobile terminal pop-up or application program is forbidden to transport Row.In other embodiments, also settable multiple threshold values, when the power consumption index of application program reaches different threshold values, to application Program executes different operational orders.

In one embodiment, to the settable white list of application program, mobile terminal will not monitor white name under standby mode The power consumption index of application program in list.It, can be to avoid when application program is when carrying out backstage downloading, backstage playing the operation such as audio Power consumption index is excessively high under application program standby mode is terminated operation.

Figure 18 is the structural block diagram of information processing unit in one embodiment.As shown in figure 18, a kind of information processing unit, Including detection module 1802 and the first determination module 1804.Wherein:

Detection module 1802, if for detecting the first current value and the second current value of mobile terminal in the standby state Difference be greater than first threshold, whether the difference of detection the first current value and mobile terminal third current value in the standby state is greater than Second threshold;Wherein, the first current value is the average current value of mobile terminal actual consumption in the standby state, the second current value For the reference current value of mobile terminal in the standby state, third current value is the scene electric current of mobile terminal in the standby state Value.

First determination module 1804, if being greater than second threshold for the difference of the first current value and third current value, according to shifting Dynamic terminal in the standby state the wake-up times of wake source, mobile terminal sleeping time determine mobile terminal power consumption type.

In one embodiment, whether the wake-up times that the first determination module 1804 is also used to detect wake source reach specified Value;If so, determining the power consumption type of mobile terminal according to the most wake source of wake-up times;If it is not, detection the first current value and Whether the sleeping time of mobile terminal meets preset rules;If meeting preset rules, it is hard for recording the power consumption type of mobile terminal Part exception power consumption.

In one embodiment, the first determination module 1804 is also used to obtain each son in the most wake source of wake-up times and calls out The wake-up times in source of waking up and the application program of each sub- wake source of wake-up;It is called out according to the wake-up times of each sub- wake source and each son of wake-up The application program in awake source determines the power consumption type of mobile terminal.

Figure 19 is the structural block diagram of information processing unit in another embodiment, as shown in figure 19, a kind of information processing apparatus It sets, including detection module 1902, the first determination module 1904, the second determination module 1906 and acquisition module 1908.Wherein detect Module 1902 and the first determination module 1904 are identical as functions of modules corresponding in Figure 18.

Second determination module 1906, if for detecting that the difference of the first current value and third current value is less than second threshold, The power consumption type of mobile terminal is determined according to third current value.

Module 1908 is obtained, for detecting that the standby time of mobile terminal is greater than preset duration, obtains the first current value With the second current value.

The division of modules is only used for for example, in other embodiments, can will believe in above- mentioned information processing unit Breath processing unit is divided into different modules as required, to complete all or part of function of above- mentioned information processing unit.

Figure 20 is the structural block diagram of information processing unit in one embodiment.As shown in figure 20, a kind of information processing unit, Including receiving module 2002, update module 2004 and stop detection module 2006.Wherein:

Receiving module 2002, the screen that puts out for receiving mobile terminal instruct, and will connect the status information of Wireless Fidelity Wi-Fi Statistics number is reset;

Update module 2004 updates the state letter of connection Wi-Fi if the state information change for detecting connection Wi-Fi The statistics number of breath;

Stop detection module 2006, the bright screen for receiving mobile terminal instructs, and stops the state letter of detection connection Wi-Fi Breath.

In one embodiment, the status information for connecting Wi-Fi includes: that group key, dynamic host configuration protocol DHCP are continuous At least one of rent and Wi-Fi connection status.

Figure 21 is the structural block diagram of information processing unit in another embodiment.As shown in figure 21, a kind of information processing apparatus It sets, including receiving module 2102, update module 2104, stopping detection module 2106, the first cue module 2108, second prompt mould Block 2110 and third cue module 2112.Wherein, receiving module 2102, update module 2104 and stopping detection module 2106 and figure Corresponding functions of modules is identical in 20.

If update module 2104 is also used to detect that group key changes, the statistics number that group key changes is added 1;First mentions Show module 2108, if showing and mentioning in interface of mobile terminal for detecting that the statistics number of group key variation reaches first threshold Show.

If update module 2104 is also used to detect that DHCP is re-rented, the statistics number that DHCP is re-rented adds 1;Second prompt mould Block 2110, if the statistics number for detecting that DHCP is re-rented reaches second threshold, in interface of mobile terminal display reminding.

If update module 2104 is also used to detect that Wi-Fi is disconnected, the statistics number of Wi-Fi connection status is added 1; Third cue module 2112, if for detecting that the statistics number of Wi-Fi connection status reaches third threshold value, in mobile terminal circle Face displays the prompt box or forbids connecting current Wi-Fi.

The division of modules is only used for for example, in other embodiments, can will believe in above- mentioned information processing unit Breath processing unit is divided into different modules as required, to complete all or part of function of above- mentioned information processing unit.

Figure 22 is the structural block diagram of information processing unit in one embodiment.As shown in figure 22, a kind of information processing unit, Including detection module 2202, opening module 2204.Wherein:

Detection module 2202, for receiving scan request under mobile terminal in standby state, detection is corresponding in scan request Time interval in whether receive the scan request in addition to having received scan request.

Opening module 2204, if opening mobile terminal for not receiving the scan request in addition to having received scan request Wireless Fidelity Wi-Fi scanning.

In one embodiment, if opening module 2204 is also used to detect that the number for currently having received scan request reaches Designated value opens mobile terminal Wi-Fi scanning.

In one embodiment, opening module 2204 is also used to obtain scan request etc. according at the time of receiving scan request To duration;If detecting, scan request waiting time reaches specified duration, opens mobile terminal Wi-Fi scanning.

In one embodiment, it is different value that different scanning, which requests corresponding time interval,.

In one embodiment, it is identical value that different scanning, which requests corresponding time interval,.

The division of modules is only used for for example, in other embodiments, can will believe in above- mentioned information processing unit Breath processing unit is divided into different modules as required, to complete all or part of function of above- mentioned information processing unit.

Figure 23 is the structural block diagram of information processing unit in one embodiment.As shown in figure 23, a kind of information processing unit, Including execution module 2302, detection module 2304, execution module 2306 and dump block 2308.Wherein:

Receiving module 2302 puts out screen instruction for receiving, and the Wi-Fi for counting application program under mobile terminal in standby state is swept Retouch request number of times;

Whether detection module 2304, the Wi-Fi scan request number for detecting application program reach designated value;

Execution module 2306, if for detecting that the Wi-Fi scan request number of application program reaches designated value, according to finger The corresponding mode of operation of definite value executes corresponding operation to application program.

In one embodiment, if designated value is first threshold, detect that the Wi-Fi scan request number of application program reaches To first threshold, prompted in interface of mobile terminal pop-up.

In one embodiment, if designated value is second threshold, detect that the Wi-Fi scan request number of application program reaches To second threshold, then stop the scan request for receiving application program.

In one embodiment, if designated value is third threshold value, detect that the Wi-Fi scan request number of application program reaches To third threshold value, application program is terminated and is run.

Dump block 2308, for detecting that the bright screen of mobile terminal instructs, by the Wi-Fi scan request time of application program Number is reset.

The division of modules is only used for for example, in other embodiments, can will believe in above- mentioned information processing unit Breath processing unit is divided into different modules as required, to complete all or part of function of above- mentioned information processing unit.

Figure 24 is the structural block diagram of information processing unit in one embodiment.As shown in figure 24, a kind of information processing unit, Including logging modle 2402 and obtain module 2404.Wherein:

Logging modle 2402, the screen that puts out for receiving mobile terminal instruct, record and apply journey under mobile terminal in standby state Sequence holds the number of the duration and application triggers wake-up alarm that wake up lock;

Module 2404 is obtained, the bright screen for receiving mobile terminal instructs, and the duration for waking up lock is held according to application program The stand-by power consumption information of application program is obtained with the number of application triggers wake-up alarm.

In one embodiment, the stand-by power consumption information of application program include: application program hold wake up lock duration account for All application programs hold the ratio of total duration for waking up lock, the number of application triggers wake-up alarm accounts for all application programs It triggers the ratio of the total degree of wake-up alarm, hold the duration and application triggers wake-up alarm for waking up lock according to application program Number obtain application program power consumption index.

Figure 25 is the structural block diagram of information processing unit in another embodiment.As shown in figure 25, a kind of information processing apparatus It sets, including logging modle 2502, acquisition module 2504, display module 2506, first detection module 2508 and the second detection module 2510.Wherein logging modle 2502 and acquisition module 2504 are identical as functions of modules corresponding in Figure 24.

Display module 2506, for according to the stand-by power consumption information of application program by the corresponding application program mark of application program Know to sort in interface of mobile terminal and show.

First detection module 2508, for detecting whether the current value consumed under mobile terminal in standby state reaches specified Value;If so, obtaining time that module is used to hold according to application program the duration for waking up lock and application triggers wake-up alarm Number obtains the stand-by power consumption information of application program.

Whether the second detection module 2510, the standby time for detecting mobile terminal reach preset duration;If so, obtaining Modulus block is used to hold according to application program the duration for waking up lock and the number of application triggers wake-up alarm is obtained using journey The stand-by power consumption information of sequence.

The division of modules is only used for for example, in other embodiments, can will believe in above- mentioned information processing unit Breath processing unit is divided into different modules as required, to complete all or part of function of above- mentioned information processing unit.

Figure 26 is the structural block diagram of information processing unit in another embodiment.As shown in figure 26, a kind of information processing apparatus It sets, including obtains module 2602, computing module 2604 and operation module 2606.Wherein:

Module 2602 is obtained, holds the duration and answer that wake-up is locked under mobile terminal in standby state for obtaining application program With the number of program triggering wake-up alarm;

Computing module 2604, for being obtained according to the number for holding the duration and application triggers wake-up alarm that wake up lock The power consumption index of application program;

Operation module 2606, if for detecting that the power consumption index of application program reaches preset value, according to preset value pair The operational order answered executes corresponding operation to application program.

In one embodiment, the screen that puts out that computing module 2604 is also used to receive mobile terminal instructs, records application program At the time of application wake-up is locked, discharge the number that at the time of waking up lock and application triggers wake-up is locked;Receive mobile terminal Bright screen instruction, acquisition application program holds wake-up lock at the time of lock according to application program wake-up, at the time of release wakes up lock Duration;Hold the number calculating application program of the duration and application triggers wake-up alarm that wake up lock according to application program Power consumption index, power consumption index and application program hold the number positive of the duration and application triggers wake-up alarm that wake up lock It closes.

In one embodiment, computing module 2604 is also used to: locking the factor, preset wake-up alarm according to preset wake-up The power consumption that the number that the factor, application program hold the duration and application triggers wake-up alarm that wake up lock calculates application program refers to Number.

In one embodiment, the preset wake-up lock factor, the preset wake-up alarm factor are obtained by following steps: according to Mobile terminal is waken up the power consumption that time per electricity and mobile terminal are waken up under state and calculates preset wake-up lock The factor, the preset wake-up alarm factor.

In one embodiment, operation module 2606 is also used to: if preset value is first threshold, in interface of mobile terminal bullet Window prompt;If preset value is second threshold, application program is forbidden to run.

The division of modules is only used for for example, in other embodiments, can will believe in above- mentioned information processing unit Breath processing unit is divided into different modules as required, to complete all or part of function of above- mentioned information processing unit.

Figure 27 is the block diagram of the part-structure of mobile phone relevant to mobile terminal provided in an embodiment of the present invention.With reference to figure 27, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 2710, memory 2720, input unit 2730, display unit 2740, the components such as sensor 2750, voicefrequency circuit 2760, wireless fidelity module 2770, processor 2780 and power supply 2790. It will be understood by those skilled in the art that handset structure shown in Figure 27 does not constitute the restriction to mobile phone, it may include than diagram More or fewer components perhaps combine certain components or different component layouts.

Wherein, RF circuit 2710 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 2780;The data of uplink can also be sent to base station.In general, RF circuit includes But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 2710 can also be communicated with network and other equipment by wireless communication.It is above-mentioned wireless Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in communication Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), it is long term evolution (Long Term Evolution, LTE), Email, short Messaging service (Short Messaging Service, SMS) etc..

Memory 2720 can be used for storing software program and module, and processor 2780 is stored in memory by operation 2720 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 2720 can be led It to include program storage area and data storage area, wherein program storage area can be needed for storage program area, at least one function Application program (such as application program, application program of image player function of sound-playing function etc.) etc.;It data storage area can Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 2720 can wrap High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories Part or other volatile solid-state parts.

Input unit 2730 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 2700 It sets and the related key signals of function control inputs.Specifically, input unit 2730 may include touch panel 2731 and other Input equipment 2732.Touch panel 2731, alternatively referred to as touch screen collect the touch operation (ratio of user on it or nearby Such as user is using finger, stylus any suitable object or attachment on touch panel 2731 or near touch panel 2731 Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 2731 can Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine Touch operation bring signal is surveyed, touch controller is transmitted a signal to;Touch controller receives touching from touch detecting apparatus Information is touched, and is converted into contact coordinate, then gives processor 2780, and order that processor 2780 is sent can be received and added To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves 2731.In addition to touch panel 2731, input unit 2730 can also include other input equipments 2732.Specifically, other are inputted Equipment 2732 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc. Kind is a variety of.

Display unit 2740 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 2740 may include display panel 2741.In one embodiment, liquid crystal display can be used (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED forms configure display panel 2741.In one embodiment, touch panel 2731 can cover display panel 2741, After touch panel 2731 detects touch operation on it or nearby, processor 2780 is sent to determine touch event Type is followed by subsequent processing device 2780 according to the type of touch event and provides corresponding visual output on display panel 2741.Although In Figure 27, touch panel 2731 and display panel 2741 are the input and input for realizing mobile phone as two independent components Function, but in some embodiments it is possible to touch panel 2731 and display panel 2741 are integrated and are realized the input of mobile phone And output function.

Mobile phone 2700 may also include at least one sensor 2750, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 2741, and proximity sensor can close display when mobile phone is moved in one's ear Panel 2741 and/or backlight.Motion sensor may include acceleration transducer, can detect all directions by acceleration transducer The size of upper acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as horizontal Vertical screen switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, Other sensors such as hygrometer, thermometer, infrared sensor etc..

Voicefrequency circuit 2760, loudspeaker 2761 and microphone 2762 can provide the audio interface between user and mobile phone.Sound Electric signal after the audio data received conversion can be transferred to loudspeaker 2761, by 2761 turns of loudspeaker by frequency circuit 2760 It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 2762, by voicefrequency circuit Audio data is converted to after 2760 receptions, then by after the processing of audio data output processor 2780, can be sent out through RF circuit 2710 Another mobile phone is given, or audio data is exported to memory 2720 so as to subsequent processing.

Wi-Fi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics by Wi-Fi module 2770 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 27 is shown Wi-Fi module 2770, but it is understood that, and be not belonging to must be configured into for mobile phone 2700, can according to need and It omits.

Processor 2780 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 2720, and calls and be stored in memory 2720 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, Processor 2780 may include one or more processing units.In one embodiment, processor 2780 can integrate application processor And modem processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulatedemodulate Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 2780.

Mobile phone 2700 further includes the power supply 2790 (such as battery) powered to all parts, it is preferred that power supply can pass through Power-supply management system and processor 2780 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.

In one embodiment, mobile phone 2700 can also include camera, bluetooth module etc..

In one embodiment, it may be implemented when processor 2780 included by mobile terminal executes program at a kind of information Reason method, comprising:

(1) if detecting, the difference of mobile terminal the first current value in the standby state and the second current value is greater than the first threshold Whether the difference of value, the third current value of detection the first current value and mobile terminal in the standby state is greater than second threshold.Wherein, First current value is the average current value of mobile terminal actual consumption in the standby state, the second current value be mobile terminal to Reference current value under machine state, third current value are the scene current value of mobile terminal in the standby state.

Mobile terminal in the standby state when, can detect whether mobile terminal current idle state meets preset condition;If Meet preset condition, then determines whether the difference of the first current value and the second current value is greater than the first threshold under mobile terminal in standby state Value.Wherein, preset condition can include: whether the standby time of mobile terminal reaches preset duration, mobile terminal in standby state is No is preset standby mode etc..Preset standby mode can include: Background music plays, backstage is downloaded, mobile terminal is opened Modem Log etc..If mobile terminal in standby state is preset standby mode, current consumption value is larger in mobile terminal, is not necessarily to Current consumption value in mobile terminal is monitored, then does not obtain the first current value and the second current value of mobile terminal.Determine mobile whole Hold whether standby mode is preset standby mode can include: if detecting in mobile terminal in standby state there is audio output, It detects there is audio output in mobile terminal again after the specified time of interval, then determines mobile terminal current idle state for backstage Music;If detecting, in mobile terminal in standby state, Wi-Fi (Wireless-Fidelity, Wireless Fidelity) flow is super It crosses 30M/h (MByte/hour, million/hour) or data network flux is more than 20M/h, then determine mobile terminal current idle shape State is that backstage is downloaded.

First current value can be obtained according to the total current value consumed in the stand-by time and stand-by time of mobile terminal;Second Current value can be obtained according to the corresponding current value of program function and program function that mobile terminal is opened in the standby state.It moves The corresponding current value of program function under standby mode is prestored in dynamic terminal, according to the application opened under mobile terminal in standby state Program function can the corresponding current value of search program function, the second electric current can be calculated further according to the corresponding current value of program function Value.Wherein, the corresponding current value of function of application is the operation data of mobile terminal hardware state, can be by application program function The existing power consumption type file of mobile terminal is written in the corresponding current value of energy, such as: vendor/oppo/overlay/ item designation/ In frameworks/base/core/res/res/xml/power_profile.xml file.

In different mobile terminal hardware, system, version, the difference of voltameter can lead to function of application it is corresponding to electricity Flow valuve difference, therefore, the corresponding current value of program function is different in different mobile terminal.According to the corresponding current value of program function The second current value calculated has float value.The factor for influencing the float value of the second current value includes: standby time T, the second electricity Flow valuve I, battery capacity C and voltameter error amount n%.The float value Δ T of second current value and the functional relation of the above-mentioned factor Are as follows:

For example, battery capacity C is 3000mAh (milli-Ampere-hour, milliampere hour), standby time T is 5 hours, Second current value I is 12mA, and voltameter error amount is 1%, then the float value of the second current value is When detect the first current value of mobile terminal and the second current value difference be greater than float value, i.e., judgement the first current value of mobile terminal And the difference of the second current value is greater than first threshold, obtains mobile terminal third current value in the standby state, detects the first electric current Whether value and the difference of third current value are greater than second threshold.For example, the first current value is 20mA, the second electricity when mobile terminal standby Flow valuve is 12mA, and the float value of the second current value is 6mA, then the difference of the first current value and the second current value is 8mA, then the first electricity Flow valuve and the difference of the second current value are greater than the float value of the second current value, obtain the third current value of mobile terminal.

Third current value refers to the scene current value of mobile terminal in the standby state, mobile terminal field in the standby state Scape can include: group key interaction times, Wi-Fi re-rent number, short message sending times etc. in Wi-Fi scanning times, Wi-Fi, no It is limited to this.Mobile terminal can obtain corresponding current value according to the scene under standby mode, by each scene pair under standby mode The current value answered is cumulative to can be obtained third current value.For example, Wi-Fi scanning times are 10 to mobile terminal in the standby state Secondary, corresponding scene current value is 1mA;Mobile terminal in the standby state Wi-Fi re-rent number be 5 times, corresponding field Scape current value is 1mA;Then third current value is 2mA to mobile terminal in the standby state.

(2) if the difference of the first current value and third current value is greater than second threshold, in the standby state according to mobile terminal The wake-up times of wake source, the sleeping time of mobile terminal determine the power consumption type of mobile terminal.

Second threshold can be set as needed.In one embodiment, second threshold can be the second current value, the second electric current The sum of float value and designated value.It is the first current value and third that the difference of first current value and third current value, which is greater than second threshold, The difference of current value is greater than the sum of the second current value, the second current floating value and designated value.For example, the first current value is 25mA, the Two current values are 12mA, and the float value of the second current value is 6mA, and third current value is 3mA, designated value 3mA, the first current value And the difference of third current value is 22mA, and the sum of the second current value, the float value of the second current value and designated value are 21mA, the first electricity Flow valuve and the difference of third current value are greater than second threshold, then according to mobile terminal in the standby state the wake-up times of wake source, Power consumption type of the sleeping time of mobile terminal than determining mobile terminal.

Wake source includes AP (Wireless Access Point, wireless access points) under mobile terminal in standby state Wake-up, Wi-Fi wake up, Modem wakes up, power key wakes up etc., without being limited thereto.Mobile terminal can be recorded in real time under standby mode The wake-up times of each wake source and the application program for waking up each wake source.

The data that mobile terminal records in real time are stored in the memory module of mobile terminal.Above-mentioned memory module includes key Partitioned storage module, interim mutual files node and wake source count interface.Crucial partitioned storage module has been identified for storing Power consumption type and unidentified power consumption type.Interim mutual files node is used to store calling out for each wake source in the standby state The application program for number and each wake source of wake-up of waking up, interim mutual files node are used for temporary memory mobile terminal standby mode Lower data, when detecting the bright screen of mobile terminal, data are emptied in interim mutual files node.Wake source statistics interface is for uniting The wake-up times of each wake source are counted, and mobile terminal is supplied to by system interface and is read.When acquisition for mobile terminal refers to screen is put out When enabling, the wake-up times of each wake source of wake source statistics interface record are reset;When detecting that mobile terminal is waken up, It identifies corresponding wake source, and the wake-up times for recording wake source is added 1, the most wake source of wake-up times is supplied to shifting Dynamic terminal is read.Wherein, the node of wake source statistics interface can be/sys/kernel/wakeup_reasons/ap_ resume_reason_stastics。

The sleeping time of mobile terminal is than referring to that duration of sleeping under mobile terminal in standby state accounts for the ratio of standby time.Root According to mobile terminal, the most wake source of wake-up times, the sleeping time ratio of mobile terminal and the first current value can in the standby state Determine the power consumption type of mobile terminal.

Mobile terminal in the embodiment of the present invention passes through the current value and base of actual consumption under detection mobile terminal in standby state The difference of quasi- current value, scene current value, further according to wake-up times of wake source under mobile terminal in standby state, mobile terminal Power consumption type of the sleeping time than determining mobile terminal, can easily monitor the power consumption type of mobile terminal.

In one embodiment, mobile terminal can be by the power consumption type upload server of the mobile terminal of judgement.

Data can be uploaded to server by Log uploading tools Stethoscope by mobile terminal, and every part of Log is with defect Mode is submitted to database and corresponds to item area.When mobile terminal detects power consumption exception, mobile terminal can determine that mobile terminal Power consumption type and pop up prompting frame in interface of mobile terminal, for prompting SCN subscriber connection network and uploading Log automatically.When automatic When uploading more failures of Log, mobile terminal only uploads key message automatically, such as the power consumption type and corresponding power consumption of mobile terminal Amount, and the power consumption type information of mobile terminal is uploaded manually in interface of mobile terminal pop-up prompt user.Mobile terminal is according to pre- If time interval upload the power consumption type of mobile terminal, as mobile terminal uploaded every 24 hours the movement that primary monitoring obtains The power consumption type of terminal.Mobile terminal can also prompt to remind customer mobile terminal power consumption abnormal by pop-up.Log is mobile terminal Middle journal file can record the operation information of operating system and application program in mobile terminal;In the present embodiment, it can remember in Log Carry the power consumption type information of mobile terminal.Wherein, mobile when key partitioned storage module Log switch is closed in mobile terminal Terminal not pop-up is reminded;When mobile terminal system version is Release version, i.e. Log switch is opened, mobile terminal also not bullet Window is reminded;When mobile terminal system version is to send to survey version or special version, mobile terminal not pop-up is reminded.As shown in table 4, It is sent for mobile terminal and surveys version and special version and identification Feature.

In one embodiment, in Fig. 2 step S204 according to mobile terminal in the standby state the wake-up times of wake source, The sleeping time of mobile terminal determines that the power consumption type of mobile terminal includes: whether the wake-up times of detection wake source reach specified Value;If so, determining the power consumption type of mobile terminal according to the most wake source of wake-up times;If it is not, detection the first current value and Whether the sleeping time of mobile terminal meets preset rules;If meeting preset rules, it is hard for recording the power consumption type of mobile terminal Part exception power consumption.

Under the standby mode of mobile terminal, if the wake-up times of wake source reach designated value in mobile terminal, according to calling out The most wake source of number of waking up determines the power consumption type of mobile terminal.Under mobile terminal in standby state, Wi-Fi in mobile terminal Wake-up times are 16 times/hour, Modem wake-up times reach 15 times/hour, AP wake-up times reach 10 times/hour, Wi-Fi It wakes up and the number of Modem wake-up is more than 15 times/hour, then waken up according to the most Wi-Fi of wake-up times and determine mobile terminal Power consumption type be Wi-Fi wake up power consumption.If the wake-up times of wake source are not up to designated value, detection first in mobile terminal Whether the sleeping time of current value and mobile terminal than meets preset rules, and whether such as the first current value is more than 22mA, when sleep Between ratio whether more than 99% etc..If the first current value is more than 22mA, and mobile terminal sleeps ratio in standby mode more than 99%, Then determine the power consumption type of mobile terminal for hardware anomalies power consumption.

In one embodiment, the above-mentioned wake source most according to wake-up times determines the power consumption type packet of mobile terminal It includes: obtaining the application program of the wake-up times of each sub- wake source and each sub- wake source of wake-up in the most wake source of wake-up times; The power consumption type of mobile terminal is determined according to the wake-up times of each sub- wake source and the application program for waking up each sub- wake source.

It include sub- wake source in each wake source in mobile terminal.As included that data packet wakes up wlan_ in Wi-Fi wake source Wakeup_src_count [DATA_TYPE_STASTIC], management packet wake up wlan_wakeup_src_count [MGMT_ TYPE_STASTIC], firmware wake up wlan_wakeup_src_count [EVENT_TYPE_STASTIC] and other types wake-up wlan_wakeup_src_count[UNKNOWN_TYPE_STASTIC].As shown in figure 4, putting out screen when mobile terminal receives and referring to When enabling, mobile terminal calls wlan interface wlan_clear_wakesrc_count () by sub- wake source each in Wi-Fi wake source Wake-up times reset.Under the standby mode of mobile terminal, when Wi-Fi wake source wakes up mobile terminal, mobile terminal can Detection wakes up corresponding sub- wake source in the Wi-Fi wake source of mobile terminal, and the wake-up times of sub- wake source are corresponded to and add 1. When mobile terminal receives the instruction of bright screen, will temporarily be handed in the wake-up times write-in memory module of sub- wake source each in wake source Mutual file node/sys/kernel/wakeup_reasons/conn_resume_reason_stastics, and pass through Wake source statistics interface is supplied to mobile terminal reading.

After mobile terminal detects the most wake source of wake-up times in the standby state, wake-up times are further obtained The application program of the wake-up times of each sub- wake source and the sub- wake source of wake-up in most wake sources, calls out each sub- wake source Wake up number and wake up sub- wake source application program it is for statistical analysis, and by statistic analysis result upload server.For example, moving Dynamic terminal in the standby state the most wake source of wake-up times be Wi-Fi wake source, wake-up times be 30 times, further obtain Getting data packet in Wi-Fi wake source and waking up is 15 times, and it is 5 times that management packet, which wakes up, and it is 5 times that firmware, which wakes up, and other types wake up It is 5 times.Obtaining the data packet under mobile terminal in standby state and waking up corresponding application program is QQ, microblogging.Then determine mobile whole The power consumption type at end is that Wi-Fi wakes up power consumption, specifically application program QQ and microblogging frequent progress data packet in mobile terminal Power consumption caused by wake-up.

In one embodiment, processor 2780 included by mobile terminal is also held when realizing a kind of information processing method Row following steps: if detecting, the difference of the first current value and third current value is less than second threshold, is determined according to third current value The power consumption type of mobile terminal.

When the difference of the first current value and third current value be less than second threshold, i.e. the first current value subtract the second current value, The float value of second current value, then after subtracting third current value, obtained difference is less than designated value.That is the first current value with The difference of third current value then determines the power consumption type of mobile terminal in floating range according to third current value.For example, in movement The first current value is 22mA under terminal standby state, and the second current value is 12mA, and the float value of the second current value is 6mA, third Current value is 3mA, designated value 3mA, then after the first current value subtracts the float value of the second current value, the second current value, then subtracts Going the obtained difference of third current value is 1mA, is less than designated value 3mA, i.e., the difference of the first current value and third current value is floating In dynamic range, then the current value of corresponding each scene in third current value is obtained, if third current value 3mA includes Wi-Fi scanning Number 10 1mA, Wi-Fi re-rent 5 1mA of number, group key 10 1mA of interaction, then determine that the power consumption type of mobile terminal is Wi-Fi scanning is frequently, Wi-Fi is re-rented frequently and group key interaction is frequent.Mobile terminal can be by the power consumption of the mobile terminal of judgement Type information is recorded in the crucial partitioned storage module and upload server of partition holding.As the power consumption type of mobile terminal is Frequently, Wi-Fi scanning times are 10 times for Wi-Fi scanning, and corresponding power consumption is 1mA.

Mobile terminal in the embodiment of the present invention determines the power consumption type of mobile terminal according to known scene power consumption, can The power consumption condition for statisticalling analyze scene known to mobile terminal, is conducive to improve mobile terminal according to statistic analysis result.

In one embodiment, processor 2780 included by mobile terminal is also held when realizing a kind of information processing method Row following steps: it detects that the standby time of mobile terminal is greater than preset duration, obtains the first current value and the second current value.

Screen instruction is put out when mobile terminal receives, mobile terminal starts to monitor the power consumption of mobile terminal under standby mode; If mobile terminal receives the instruction of bright screen in preset time interval, mobile terminal removes the number recorded in the standby state According to, i.e., when the standby time of mobile terminal is greater than preset duration, data under mobile terminal monitoring record standby mode, and to acquisition Data analyzed, determine the power consumption type of mobile terminal.For example, preset duration can be 5 hours, it is standby when mobile terminal When duration is greater than 5 hours, the data that mobile terminal obtains detection are analyzed, and determine the power consumption type of mobile terminal.

Under mobile terminal in standby state power consumption according to battery drain percentage calculate, and in mobile terminal battery electricity Nonlinear attenuation calculates mobile terminal according to the percentage of battery drain when not having voltameter in mobile terminal to amount at any time There are biggish errors, such as 0.5%~1% for power consumption under standby mode.

Mobile terminal in the embodiment of the present invention needs preset duration to be achieved by setting standby time, can be effective The error for controlling current value, improves the accuracy of calculating.

In one embodiment, it may be implemented when processor 2780 included by mobile terminal executes program at a kind of information Reason method, comprising:

(1) receive mobile terminal puts out screen instruction, and the state information statistics number for connecting Wi-Fi is reset.

(2) if the state information change of detection connection Wi-Fi, updates the statistics number of the status information of connection Wi-Fi.

(3) the bright screen instruction for receiving mobile terminal, stops the status information of detection connection Wi-Fi.

Mobile terminal can pass through Wi-Fi and other mobile terminal connection communications.After mobile terminal connects AP, AP can record SSID (Service Set Identifier, service set).After mobile terminal, which receives, puts out screen instruction, record puts out screen Time mScreenOffTime resets the state information statistics number for the connection Wi-Fi that mobile terminal has counted.Mobile terminal Can real-time detection connection Wi-Fi status information whether change, if detect connection Wi-Fi state information change, update Connect the statistics number of the status information of Wi-Fi.When mobile terminal receives the instruction of bright screen, the bright screen of mobile terminal can record Time mScreenOnTime, and stop the status information of detection connection Wi-Fi.Specifically, can pass through in mobile terminal " public int getWi-FiPowerEventCode () " interface obtains wlan data for power consumption module in mobile terminal, sentences Exist under disconnected mobile terminal in standby state abnormal with the presence or absence of mobile terminal power consumption.If mobile terminal receives and puts out screen instruction and connect The not up to specified duration of time interval between bright screen instruction is received, does not report and connects Wi-Fi's under standby mode in mobile terminal Status information, such as put out screen the time be less than 20 seconds, do not report counted connection Wi-Fi status information.

Mobile terminal in the embodiment of the present invention connects the state letter of Wi-Fi by detecting under mobile terminal in standby state The variation of breath, mobile terminal power consumption caused by can detect because of the configuration of the end AP are conducive to the stand-by power consumption for detecting mobile terminal.

In one embodiment, the status information of above-mentioned connection Wi-Fi includes: group key, dynamic host configuration protocol DHCP at least one of is re-rented with Wi-Fi connection status.

The status information of connection Wi-Fi may include group key, dynamic host configuration protocol DHCP re-rent, Wi-Fi scanning time At least one of several and Wi-Fi connection status.The group key management period can be arranged in Wi-Fi network in wireless router, that is, is spaced Regular hour updates a group key.Wherein, group key refers to the algorithm of Wi-Fi password.Mobile terminal is in connection Wi-Fi When, it needs to obtain to DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) server The IP address of IP (Internet Protocol, the agreement interconnected between network) address, mobile terminal and wireless router is signed Having time limitation, mobile terminal need to re-rent to wireless router to continue to connect Wi-Fi.Under normal conditions, wireless router The IP address rental period be 1 hour, when the rental period of acquisition for mobile terminal IP address is more than half, mobile terminal can be continuous to wireless router It rents, i.e., when the rental period of the IP address of acquisition for mobile terminal is half an hour, mobile terminal can be re-rented to wireless router.Wi-Fi Connection status refers to whether mobile terminal connects Wi-Fi, when the Wi-Fi signal of wireless router is unstable, mobile terminal meeting Reconnection Wi-Fi is frequently cut off, mobile terminal power consumption is caused.

In one embodiment, if the state information change of detection connection Wi-Fi, updates the status information of connection Wi-Fi If statistics number include: detect group key change, by group key change statistics number add 1;Above- mentioned information processing method If further include: detect that the statistics number of group key variation reaches first threshold, in interface of mobile terminal display reminding.

Under mobile terminal in standby state, mobile terminal detects that group key changes in the Wi-Fi currently connected, then by group The statistics number mGroupCount of cipher key change adds 1.When mobile terminal receives the instruction of bright screen, the bright screen time is recorded MSrceenOnTime can calculate shifting according to the statistics number for putting out screen time, bright screen time and group key variation of mobile terminal Dynamic terminal standby state the following group cipher key change frequency mGroupFreq.If group key variation the frequency reach first threshold such as 20 times/ Point, then it prompts the group key management of current Wi-Fi excessively frequent in interface of mobile terminal pop-up, user is reminded to modify Wi-Fi's The group key management period.

In one embodiment, if the state information change of detection connection Wi-Fi, updates the status information of connection Wi-Fi If statistics number include: to detect that DHCP is re-rented, the statistics number that DHCP is re-rented adds 1;Above- mentioned information processing method is also wrapped It includes: if the statistics number for detecting that DHCP is re-rented reaches second threshold, in interface of mobile terminal display reminding.

Under mobile terminal in standby state, mobile terminal detects that DHCP of the every initiation of the Wi-Fi currently connected is re-rented, The statistics number mDhcpCount that DHCP is re-rented then is added 1.When mobile terminal receives the instruction of bright screen, the bright screen time is recorded MSrceenOnTime, according to mobile terminal put out the screen time, the statistics number that bright screen time and DHCP are re-rented can calculate movement DHCP re-rents frequency mDhcpFreq under terminal standby state.If DHCP, which re-rents the frequency, reaches such as 40 beats/min of second threshold, It is unreasonable that interface of mobile terminal pop-up prompts the DHCP rental period of current Wi-Fi to be arranged, and mobile terminal is re-rented excessively frequently, reminds and uses The DHCP rental period that current Wi-Fi is modified at family is arranged.

In one embodiment, if the state information change of detection connection Wi-Fi, updates the status information of connection Wi-Fi If statistics number include: to detect that Wi-Fi is disconnected, the statistics number of Wi-Fi connection status is added 1;At above- mentioned information Reason method further include: the statistics number of Wi-Fi connection status reaches third threshold value if detecting, shows and mentions in interface of mobile terminal Show frame or forbids connecting current Wi-Fi.

Under mobile terminal in standby state, when mobile terminal detects that Wi-Fi is disconnected, Wi-Fi will be reconnected, and Add 1 in the statistics number mDisconnCount of Wi-Fi connection status.When mobile terminal receives the instruction of bright screen, bright screen is recorded Time mSrceenOnTime, can according to the statistics number for putting out screen time, bright screen time and Wi-Fi connection status of mobile terminal It calculates Wi-Fi connection status under mobile terminal in standby state and changes frequency mDisconnFreq.If Wi-Fi connection status changes The frequency reaches such as 35 beats/min of third threshold value, then prompts current Wi-Fi signal unstable in interface of mobile terminal pop-up, it is proposed that weight It opens wireless router or connects other Wi-Fi;Or mobile terminal is forbidden connecting current Wi-Fi within a certain period of time, it is such as mobile whole Forbid connecting current Wi-Fi within a hour in end.

In one embodiment, it may be implemented when processor 2780 included by mobile terminal executes program at a kind of information Reason method, comprising:

(1) scan request is received under mobile terminal in standby state, detection is in the corresponding time interval of scan request The no scan request received in addition to having received scan request.

(2) if not receiving the scan request in addition to having received scan request, mobile terminal Wi-Fi scanning is opened.

After mobile terminal connects Wi-Fi, mobile terminal can carry out mobile terminal location using Wi-Fi.Mobile terminal Each Wi-Fi that scanning obtains possesses unique MAC (Media Access Control, media access control) address, root According to mobile scanning terminal obtain Wi-Fi MAC Address and each Wi-Fi signal power, available mobile terminal Location information.When APP (Application, application program) needs to obtain location information in mobile terminal, it can be sent out to mobile terminal Play scan request.Under mobile terminal in standby state, the scan request that APP is frequently initiated in mobile terminal will cause mobile terminal Power consumption.

After the scan request for receiving the initiation of first application program under mobile terminal in standby state, starting timer will First application initiate scan request delay first time interval processing, i.e., mobile terminal detection in first time interval whether Receive the scan request of the second application program initiation;If if receiving the initiation of the second application program in first time interval Scan request, then whether detection receives the scan request of third application program initiation in the second time interval;If first Time interval does not receive the scan request of the second application program, opens mobile terminal Wi-Fi scanning, so that initiating scan request APP can obtain the location information of mobile terminal.

Mobile terminal in the embodiment of the present invention receives under mobile terminal in standby state by APP initiation in mobile terminal Scan request, the scan request delay process that APP is initiated, it is possible to reduce frequently initiated under mobile terminal in standby state by APP Mobile terminal power consumption caused by scanning saves power consumption under mobile terminal in standby state, extends the standby time of mobile terminal.

In one embodiment, processor 2780 included by mobile terminal is also held when realizing a kind of information processing method Row following steps: if detecting, the number for currently having received scan request reaches designated value, opens mobile terminal Wi-Fi scanning.

If mobile terminal detects that the number of current received scan request is more than designated value, mobile terminal is opened Wi-Fi scanning enables the APP for initiating scan request in mobile terminal to obtain the location information of mobile terminal.By detecting The number of received scan request, can be more to avoid the received scan request number of mobile terminal, and scan request is for a long time It is not responded, causes the situation that user experience is poor.

In one embodiment, processor 2780 included by mobile terminal is also held when realizing a kind of information processing method Row following steps: scan request waiting time is obtained according at the time of receiving scan request;If detect that scan request waits It is long to reach specified duration, open mobile terminal Wi-Fi scanning.

Mobile terminal will record at the time of receive scan request, after receiving the scan request of APP by current time The waiting time that scan request can be obtained at the time of receiving scan request is subtracted, if detecting the waiting time of scan request More than specified duration, then mobile terminal Wi-Fi scanning is opened.For example, mobile terminal has currently received sweeping for two application programs Request is retouched, mobile terminal is 16:50:56 at the time of receiving the scan request of first application program initiation;Receive second It is 16:51:01 at the time of the scan request that a application program is initiated.Current time is 16:51:03.Then the first application program is sent out The waiting time of the scan request risen is 7 seconds;The waiting time for the scan request that second application program is initiated is 2 seconds, preset Scan request it is specified when it is 5 seconds a length of, waiting time of scan request that the first application program is initiated reaches specified duration, then opens Mobile terminal Wi-Fi scanning is opened, so that the first application program and the second application program can obtain the location information of mobile terminal.It is logical It crosses and detects received scan request waiting time, can not be rung for a long time to avoid the received scan request of mobile terminal It answers, causes the situation that user experience is poor.

In one embodiment, processor 2780 included by mobile terminal is also held when realizing a kind of information processing method Row following steps: it is different value that different scanning, which requests corresponding time interval,.

The corresponding time interval of the scan request received in mobile terminal is different value.Specifically, different scanning is requested Corresponding time interval be different value, i.e., mobile terminal receive the corresponding time interval of the first scan request, second scanning Requesting the corresponding time interval of corresponding time interval N scan request is without value.Specifically, each scan request pair The time interval answered can be gradually increased according to reception sequence or the corresponding time interval of each scan request can according to reception sequence by The corresponding time interval of decrescence small or each scan request is distributed according to the requirement of real-time of each scan request.For example, mobile terminal After receiving the first scan request, whether detection receives the second scan request in first time interval 3 seconds;Receiving After two scan requests, whether detection receives third scan request in the second time interval 2 seconds.By requesting different scanning Different time intervals are set, the scan request received can flexibly be handled, scan request long-time in mobile terminal is avoided It does not respond, reduces user experience.

In one embodiment, processor 2780 included by mobile terminal is also held when realizing a kind of information processing method Row following steps: it is identical value that different scanning, which requests corresponding time interval,.

The corresponding time interval of the scan request that mobile terminal receives is identical value, i.e., mobile terminal is receiving scanning After request, starting timer is postponed identical time-triggered protocol.For example, mobile terminal after receiving the first scan request, detects The second scan request whether is received in 5 milliseconds of first time interval;If receiving the second scan request, detect second Third scan request whether is received in 5 milliseconds of time interval, and so on.

In one embodiment, it may be implemented when processor 2780 included by mobile terminal executes program at a kind of information Reason method, comprising:

(1) detect that the Wi-Fi scan request number of application program reaches designated value under mobile terminal in standby state.

(2) corresponding operation is executed to application program according to the corresponding mode of operation of designated value.

Wireless aps possess unique MAC Address, and after mobile terminal opens Wi-Fi scanning, mobile terminal can scan surrounding Wireless aps signal, obtain the MAC Address that broadcasts out of wireless aps, and the MAC Address upload server for the wireless aps that will acquire. Server can calculate the geographical location information of mobile terminal according to the MAC Address of wireless aps signal strength or weakness and wireless aps, and will The location information for calculating the mobile terminal obtained returns to mobile terminal.In the use process of mobile terminal, APP in mobile terminal It can apply for obtaining the location information of mobile terminal, i.e. initiation Wi-Fi scan request.Wherein, information processing needs to be traversed for 2.4G13 A channel, each channel are stationed 40ms-60ms, if mobile terminal supports double frequency WI-FI, i.e. 5GWI-FI, then need 36 channels of scanning To 156 channels, mobile terminal power consumption is caused to increase.

When acquisition for mobile terminal is to when putting out screen instruction, it is recorded in the Wi- that application program under mobile terminal in standby state is initiated Fi scan request number, if detecting, the Wi-Fi scan request number that application program is initiated reaches designated value, determines application program The Wi-Fi scan request number of initiation is excessively frequent, executes behaviour corresponding with designated value to the application program for initiating scan request Make.

Mobile terminal in the embodiment of the present invention, the Wi-Fi scanning that application program is detected under mobile terminal in standby state are asked It asks and reaches designated value, is i.e. when the Wi-Fi scan request of application program is excessively frequent, corresponding operation is executed to application program, is kept away Exempt from the Wi-Fi scan request of application program excessively frequently caused by mobile terminal power consumption increase.Under mobile terminal in standby state, The real-time demand of application program is lower.To scan request, more frequently application program executes corresponding operation, that is, the shifting reduced The stand-by power consumption of dynamic terminal, by not influencing user experience.

In one embodiment, if designated value is first threshold, detect that the Wi-Fi scan request number of application program reaches To first threshold, prompted in interface of mobile terminal pop-up.If designated value is second threshold, detect that the Wi-Fi of application program is swept It retouches request number of times and reaches second threshold, then stop the scan request for receiving application program.If designated value is third threshold value, detect The Wi-Fi scan request number of application program reaches third threshold value, and application program is terminated and is run.

When the scan request number of application program reaches different designated values, operation that mobile terminal executes application program Instruction is different.Wherein, second threshold is greater than first threshold, third threshold value is greater than second threshold.For example, in mobile terminal standby shape Under state, detects that the scan request number of application program is 10 times, reach first threshold 10, prompted in interface of mobile terminal pop-up User's application program power consumption is larger;The scan request number for detecting application program is 15 times, reaches second threshold 15, then moves Dynamic terminal no longer receives the scan request of application program initiation within a certain period of time, such as no longer receives this within a hour and answers The scan request initiated with program;The scan request number for detecting application program is 20 times, reaches third threshold value 20, then moves Terminal directly terminates application program operation.

In one embodiment, mobile terminal can also calculate the Wi-Fi scan request frequency of application program, according to using journey Whether the Wi-Fi scan request frequency of sequence, which reaches, is specified to execute corresponding operation to application program.Wherein, application program The Wi-Fi scan request frequency can be obtained according to the Wi-Fi scan request number and current idle duration of application program.

In one embodiment, processor 2780 included by mobile terminal is also held when realizing a kind of information processing method Row following steps: it detects the bright screen instruction of mobile terminal, the Wi-Fi scan request number of application program is reset.

When mobile terminal receives the instruction of bright screen, by the Wi- of the application program recorded under mobile terminal in standby state Fi scan request number is reset.So that mobile terminal receive put out screen instruction enter standby mode when, again record apply journey The Wi-Fi scan request number of sequence.

In one embodiment, it may be implemented when processor 2780 included by mobile terminal executes program at a kind of information Reason method, comprising:

(1) receive mobile terminal puts out screen instruction, records application program under mobile terminal in standby state and holds wake-up lock The number of duration and application triggers wake-up alarm.

(2) the bright screen instruction for receiving mobile terminal, the duration and application triggers for waking up lock are held according to application program The number of wake-up alarm obtains the stand-by power consumption information of application program.

A kind of mechanism that lock is android system is waken up, when in system using wake-up lock is held, system be cannot be introduced into not Dormancy state, after wake-up lock all in system is all released, system just can enter dormant state.Wake-up alarm is also referred to as RTC (Real Time Clock, real-time alarm clock) alarm clock, wake-up alarm is individually powered on hardware circuit, in mobile terminal standby shape Under state, wake-up alarm can be by system wake-up.Movement can all be increased eventually using wake-up lock and wake-up alarm wake-up mobile terminal is held The stand-by power consumption at end.

When receive mobile terminal put out screen instruction when, mobile terminal detects and records whether each application program holds wake-up Lock, at the time of application program wakes up lock, at the time of application program release wakes up lock and application program corresponding triggering The number of wake-up alarm.Wherein, it in android system, wakes up lock and is managed by PowerManagerService, At the time of record has application program to wake up lock in PowerManagerService, at the time of application program release wakes up lock, It is waken up according to application program at the time of lock and application program can be obtained at the time of discharging wake-up lock and hold the duration for waking up lock. Wake-up alarm is managed by AlarmManagerService, and record has wake-up alarm in AlarmManagerService Relevant information at the time of being triggered such as wake-up alarm, triggers the application program identification etc. of wake-up alarm.It is noisy according to the wake-up of record The relevant information of clock can obtain the number of each application triggers wake-up alarm in the standby state.

When the bright screen for receiving mobile terminal instructs, wake-up lock is held according to application program under mobile terminal in standby state Duration and the number of application triggers wake-up alarm can calculate the stand-by power consumption information for obtaining application program, and according to application The stand-by power consumption information of program executes corresponding operation to application program.

In one embodiment, the stand-by power consumption information of application program include: application program hold wake up lock duration account for All application programs hold the ratio of total duration for waking up lock, the number of application triggers wake-up alarm accounts for all application programs It triggers the ratio of the total degree of wake-up alarm, hold the duration and application triggers wake-up alarm for waking up lock according to application program Number obtain application program power consumption index.

Hold the duration and each application for waking up lock according to each application program under mobile terminal in standby state of record Program triggering wake-up alarm number can calculate application program hold wake up lock total duration and application triggers wake up lock Total degree, then calculate to obtain application program and hold and wake up the duration of lock and account for the ratio of total duration, application triggers wake up noisy The number of clock accounts for the ratio of total degree.Wherein, the duration and application triggers wake-up alarm for waking up lock are held to application program Number can set weight factor, the duration for waking up lock is held to application program and the number of application triggers wake-up alarm adds Power calculates the power consumption index for obtaining application program.

In one embodiment, processor 2780 included by mobile terminal is also held when realizing a kind of information processing method Row following steps: according to the stand-by power consumption information of application program by the corresponding application program identification of application program in mobile terminal circle Face sequence is shown.

Application program can be sorted according to the stand-by power consumption information of the application program of acquisition, for example, being held according to application program Have and wakes up the ratio for the duration locked, according to the ratio of the number of application triggers wake-up alarm, the power consumption index of application program Application program is ranked up, and ranking results are shown in interface of mobile terminal.It wherein, can be according to single value to application program It is ranked up, it can also application program be ranked up according to multiple values.For example, according to application program hold wake up lock when Long ratio is ranked up application program;Application program is carried out according to the ratio of the number of application triggers wake-up alarm Sequence;Hold the ratio of the number of the ratio, application triggers wake-up alarm that wake up the duration locked according to application program and answers Application program is ranked up with the weighted average of the power consumption index of program.Under normal conditions, from high to low by stand-by power consumption Application program is ranked up.

In one embodiment, the duration and application triggers wake-up alarm for waking up lock are being held according to application program Before number obtains the stand-by power consumption information of application program, processor 2780 included by mobile terminal is being realized at a kind of information Following steps are also executed when reason method: whether the current value consumed under detection mobile terminal in standby state reaches designated value;If so, Then hold the standby of the number acquisition application program of the duration and application triggers wake-up alarm that wake up lock according to application program Power consumption information.

Before the stand-by power consumption information for obtaining application program, the current value consumed under mobile terminal in standby state can determine that Whether designated value is reached;If the current value consumed under mobile terminal in standby state reaches designated value, mobile terminal standby is determined Power consumption is abnormal, obtains the stand-by power consumption information of application program under mobile terminal in standby state.By determining mobile terminal standby shape Current value under state, obtains the stand-by power consumption information of application program again when standby current exception, and the information of acquisition is more acurrate.

In one embodiment, the duration and application triggers wake-up alarm for waking up lock are being held according to application program Before number obtains the stand-by power consumption information of application program, processor 2780 included by mobile terminal is being realized at a kind of information Also execute following steps when reason method: whether the standby time for detecting mobile terminal reaches preset duration;If so, according to application The number that program holds the duration and application triggers wake-up alarm that wake up lock obtains the stand-by power consumption information of application program.

Before the stand-by power consumption for obtaining application program, when can determine that whether the standby time of mobile terminal reaches default It is long, stand-by power consumption information in application program is obtained when the standby time of mobile terminal reaches preset duration, can make what is obtained to answer It is more acurrate with the stand-by power consumption information of program.

In one embodiment, it may be implemented when processor 2780 included by mobile terminal executes program at a kind of information Reason method, comprising:

(1) hold the duration for waking up lock under mobile terminal in standby state according to application program and application triggers wake up The number of alarm clock calculates the power consumption index of application program.

(2) if detecting, the power consumption index of application program reaches preset value, according to operational order pair corresponding with preset value Application program executes corresponding operation.

The wake-up alarm of wake-up lock and application triggers that mobile terminal can hold application program is monitored.Work as inspection Measure application program wake up lock, release wake up lock, application triggers wake-up alarm when, can real-time perfoming remember accordingly Record.Wherein, it in android system, wakes up lock and is managed by PowerManagerService, in PowerManagerService At the time of middle record has application program to wake up lock, at the time of application program release wakes up lock, called out according to application program Waking up can be obtained the duration that application program holds wake-up lock at the time of lock and at the time of release wake-up lock.Wake-up alarm be all by AlarmManagerService management, record has the relevant information of wake-up alarm in AlarmManagerService, such as calls out At the time of awake alarm clock is triggered, the application program identification etc. of wake-up alarm is triggered.According to the relevant information of the wake-up alarm of record The number of each application triggers wake-up alarm in the standby state can be obtained.Held in the standby state according to application program The number of the duration and application triggers wake-up alarm that wake up lock can calculate the power consumption index of application program.When detecting application The power consumption index of program reaches preset value, then can be executed according to the value for the power consumption index that application program reaches to application program corresponding Operation.

In the wake-up alarm of records application program triggering, only the wake-up of record and application program strong correlation is locked and is waken up noisy Clock.Specifically, can be judged according to the packet name of application program application triggers wake-up alarm whether strong correlation.For example, wechat Packet entitled com.tencent.mm, first character section com indicates business;Second field indicates company name, as tencent is Tencent;Third field mm indicates this application of wechat, first three field of the packet name of application program is identical to indicate same Using.Application program can all have the packet name information of application program when application wakes up lock and triggering wake-up alarm, if packet name First three field is identical, then is determined as the same application program, is recorded as and the application program strong correlation.

In one embodiment, hold the duration and application for waking up lock under mobile terminal in standby state according to application program The power consumption index that the number of program triggering wake-up alarm calculates application program includes: to receive putting out for mobile terminal to shield instruction, record At the time of application program wakes up lock, release wakes up at the time of lock and application triggers wake up the number of lock;It receives and moves The bright screen instruction of dynamic terminal, obtains application program at the time of waking up lock according to application program, at the time of release wakes up lock and holds There is the duration for waking up and locking;The number calculating for holding the duration and application triggers wake-up alarm that wake up lock according to application program is answered With the power consumption index of program, power consumption index and application program hold the secondary of the duration and application triggers wake-up alarm for waking up lock Number is positively correlated.

In one embodiment, hold the duration and application for waking up lock under mobile terminal in standby state according to application program The power consumption index that the number of program triggering wake-up alarm calculates application program includes: according to preset the wake-ups lock factor, preset The number that the wake-up alarm factor, application program hold the duration and application triggers wake-up alarm that wake up lock calculates application program Power consumption index.

The power consumption index w of application program is held with preset wake-up lock factor-alpha, preset wake-up alarm factor-beta, application program Having the relationship between the number wa for waking up the duration wl, application triggers wake-up alarm that lock is w=α * wl+ β * wa.Wherein, no It is different with wake-up preset in mobile terminal lock factor-alpha, preset wake-up alarm factor-beta.For example, in the terminal α= 0.3, β=0.7, under mobile terminal in standby state, the time that application program holds wake-up lock is 2345ms, application triggers The number of wake-up alarm is 23 times, then the power consumption factor w=0.3*2345+0.7*23=719.6 of application program.

In one embodiment, the preset wake-up lock factor, the preset wake-up alarm factor are obtained by following steps: according to Mobile terminal is waken up the power consumption that time per electricity and mobile terminal are waken up under state and calculates preset wake-up lock The factor, the preset wake-up alarm factor.

Being waken up power consumption b that time per electricity a and mobile terminal under state are waken up according to mobile terminal can Calculate preset wake-up lock factor-alpha, preset wake-up alarm factor-beta.Wherein,According to mobile terminal to Test data under machine state can obtain the wake-up lock factor and the wake-up alarm factor.

In one embodiment, corresponding operation packet is executed to application program according to operational order corresponding with preset value It includes: if preset value is first threshold, being prompted in interface of mobile terminal pop-up;If preset value is second threshold, forbid application program Operation.

If detecting, the power consumption index of application program reaches first threshold, in interface of mobile terminal pop-up prompt user's application The power consumption index of program is excessively high;When the power consumption index of application program reaches second threshold, then the application program is forbidden to run.Its In, second threshold is greater than first threshold.In another embodiment, a designated value is set to the power consumption index of application program, When the power consumption index for detecting application program reaches designated value, then prompts in interface of mobile terminal pop-up or application program is forbidden to transport Row.In other embodiments, also settable multiple threshold values, when the power consumption index of application program reaches different threshold values, to application Program executes different operational orders.

In one embodiment, to the settable white list of application program, mobile terminal will not monitor white name under standby mode The power consumption index of application program in list.It, can be to avoid when application program is when carrying out backstage downloading, backstage playing the operation such as audio Power consumption index is excessively high under application program standby mode is terminated operation.

Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Instruct relevant hardware to complete by computer program, program can be stored in a non-volatile computer storage can be read In medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) etc..

Only several embodiments of the present invention are expressed for above embodiments, and the description thereof is more specific and detailed, but can not Therefore limitations on the scope of the patent of the present invention are interpreted as.It should be pointed out that for those of ordinary skill in the art, Without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection model of the invention It encloses.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (8)

1. a kind of information processing method characterized by comprising
Receive mobile terminal puts out screen instruction, records application program under mobile terminal in standby state and holds the duration for waking up lock and institute State the number of application triggers wake-up alarm;
The bright screen instruction for receiving mobile terminal, the duration for waking up lock is held according to application program and the application triggers wake up The number of alarm clock obtains the stand-by power consumption information of the application program;
Wherein, it is obtained in the number for holding duration and the application triggers wake-up alarm that wake-up is locked according to application program Before taking the stand-by power consumption information of the application program, further includes:
Whether the current value consumed under detection mobile terminal in standby state reaches designated value;If so, being held according to application program The number of the duration and the application triggers wake-up alarm that wake up lock obtains the stand-by power consumption information of the application program;
The stand-by power consumption information of the application program includes: to hold the duration and the application that wake up lock according to the application program The power consumption index for the application program that the number that program triggers wake-up alarm obtains;
The acquisition of the power consumption index includes: to lock the factor, the preset wake-up alarm factor, described using journey according to preset wake-up Sequence holds the duration of wake-up lock and the number of the application triggers wake-up alarm calculates the power consumption index of the application program; The power consumption index w of the application program and the preset wake-up lock factor-alpha, described are answered at the preset wake-up alarm factor-beta The relationship held between the number wa of the duration wl, the application triggers wake-up alarm that wake up lock with program is w=α * wl+ β*wa。
2. the method according to claim 1, wherein the stand-by power consumption information of the application program further include:
The application program, which is held, to be waken up the duration of lock and accounts for all application programs and hold the ratio for the total duration for waking up lock, described answer The ratio of the total degree of all application triggers wake-up alarms is accounted for the number of program triggering wake-up alarm.
3. the method according to claim 1, wherein the method also includes:
According to the stand-by power consumption information of the application program by the corresponding application program identification of the application program in mobile terminal Interface sequence is shown.
4. the method according to claim 1, wherein it is described according to application program hold wake up lock duration and Before the number of the application triggers wake-up alarm obtains the stand-by power consumption information of the application program, the method is also wrapped It includes:
Whether the standby time of detection mobile terminal reaches preset duration;If so, according to application program hold wake up lock when Long and the application triggers wake-up alarm number obtains the stand-by power consumption information of the application program.
5. a kind of information processing unit characterized by comprising
Logging modle, the screen that puts out for receiving mobile terminal instruct, and application program, which is held, under record mobile terminal in standby state calls out The duration of lock of waking up and the number of the application triggers wake-up alarm;
Module is obtained, the bright screen for receiving mobile terminal instructs, and holds according to application program and wakes up the duration of lock and described answer The stand-by power consumption information of the application program is obtained with the number of program triggering wake-up alarm;
First detection module, for detecting whether the current value consumed under mobile terminal in standby state reaches designated value;If so, The number for obtaining module and being used to hold according to application program the duration and the application triggers wake-up alarm that wake up lock Obtain the stand-by power consumption information of the application program;
Wherein, the stand-by power consumption information of the application program includes: to hold the duration and the institute that wake up lock according to the application program State the power consumption index of the application program of the number acquisition of application triggers wake-up alarm;
The acquisition of the power consumption index includes: to lock the factor, the preset wake-up alarm factor, described using journey according to preset wake-up Sequence holds the duration of wake-up lock and the number of the application triggers wake-up alarm calculates the power consumption index of the application program; The power consumption index w of the application program and the preset wake-up lock factor-alpha, described are answered at the preset wake-up alarm factor-beta The relationship held between the number wa of the duration wl, the application triggers wake-up alarm that wake up lock with program is w=α * wl+ β*wa。
6. device according to claim 5, which is characterized in that described device further include:
Display module, for according to the stand-by power consumption information of the application program by the corresponding application program mark of the application program Know to sort in interface of mobile terminal and show.
7. device according to claim 5, which is characterized in that described device further include:
Whether the second detection module, the standby time for detecting mobile terminal reach preset duration;If so, the acquisition mould Block is used to be held according to application program answers described in the number acquisition of the duration for waking up lock and the application triggers wake-up alarm With the stand-by power consumption information of program.
8. a kind of mobile terminal, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, which is characterized in that the processor realizes side according to any one of claims 1 to 4 when executing described program Method.
CN201710318082.8A 2017-05-08 2017-05-08 Information processing method, device and mobile terminal CN107145425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710318082.8A CN107145425B (en) 2017-05-08 2017-05-08 Information processing method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710318082.8A CN107145425B (en) 2017-05-08 2017-05-08 Information processing method, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107145425A CN107145425A (en) 2017-09-08
CN107145425B true CN107145425B (en) 2019-02-05

Family

ID=59778643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710318082.8A CN107145425B (en) 2017-05-08 2017-05-08 Information processing method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107145425B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038635A (en) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 Mobile terminal and prompting method of abnormal standby thereof
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring applications with power consumption abnormalities and mobile terminal
CN105867581A (en) * 2015-12-16 2016-08-17 乐视移动智能信息技术(北京)有限公司 Power optimization method and device and mobile terminal
CN106055074A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Method and device for processing application program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890608B (en) * 2012-10-24 2015-08-19 小米科技有限责任公司 The screen locking awakening method of terminal and terminal and device
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
US9699729B2 (en) * 2014-09-29 2017-07-04 Disa Technologies, Inc. Methods and systems for regulating communications at a mobile communications device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring applications with power consumption abnormalities and mobile terminal
CN104038635A (en) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 Mobile terminal and prompting method of abnormal standby thereof
CN105867581A (en) * 2015-12-16 2016-08-17 乐视移动智能信息技术(北京)有限公司 Power optimization method and device and mobile terminal
CN106055074A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Method and device for processing application program

Also Published As

Publication number Publication date
CN107145425A (en) 2017-09-08

Similar Documents

Publication Publication Date Title
US10831161B2 (en) Method and device for sending communication message
CN103823543B (en) Portable electronic device and the method operated wherein
CN104714895B (en) A kind of mobile terminal and its method and apparatus for improving the speed of service
CN106528036B (en) Volume adjusting method and device
CN103458120B (en) Event-handling method, device and mobile terminal
CN104243671B (en) Volume adjusting method, device and electronic equipment
US7408887B2 (en) Methods and apparatus for operating a wireless electronic device based on usage pattern
EP2365715B1 (en) Apparatus and method for sensing substitution for location-based applications
EP2668812B1 (en) Intelligent management of location sensor
CN106851654B (en) Pseudo base station identification method, pseudo base station identification device and terminal
CN104360653B (en) Troubleshooting methodology and device
CN104735671B (en) A kind of method and apparatus of identification malicious call
US20090170480A1 (en) Systems and methods for intelligent and customizable communications between devices
CN105873178A (en) Method and device for recognizing pseudo base-station
CN1826001B (en) Multimode transmission control method and multimode transmission control apparatus
US20070037610A1 (en) Methods and apparatus for conserving battery power in a cellular or portable telephone
CN105739699B (en) A kind of control method and terminal device of message notifying
CN104660820B (en) The implementation method and mobile terminal of mobile terminal administration pattern
CN103489303B (en) A kind of remote control thereof and device
CN102317884A (en) Wakeup trigger to support multiple user interfaces, environments, and/or virtual machines
CN103500002A (en) Method, device and terminal equipment for managing application program
CN104902116B (en) A kind of time unifying method and device of voice data and reference signal
US8527018B2 (en) Method and apparatus for reducing power consumption in mobile terminal
CN104915111B (en) terminal operation control method and device
CN105005909A (en) Method and device for predicting lost users

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant