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

Information processing method, device and mobile terminal Download PDF

Info

Publication number
CN107027141B
CN107027141B CN201710318978.6A CN201710318978A CN107027141B CN 107027141 B CN107027141 B CN 107027141B CN 201710318978 A CN201710318978 A CN 201710318978A CN 107027141 B CN107027141 B CN 107027141B
Authority
CN
China
Prior art keywords
mobile terminal
wake
application program
power consumption
current value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710318978.6A
Other languages
Chinese (zh)
Other versions
CN107027141A (en
Inventor
胡亚东
仇磊
蒋世民
吴培建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710318978.6A priority Critical patent/CN107027141B/en
Publication of CN107027141A publication Critical patent/CN107027141A/en
Application granted granted Critical
Publication of CN107027141B publication Critical patent/CN107027141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16566Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533
    • G01R19/16571Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533 comparing AC or DC current with one threshold, e.g. load current, over-current, surge current or fault current
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • H04L63/065Network architectures or network communication protocols for network security for supporting key management in a packet data network for group communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • H04L63/068Network architectures or network communication protocols for network security for supporting key management in a packet data network using time-dependent keys, e.g. periodically changing keys
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

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, and the state information statistics number that will connect Wireless Fidelity Wi-Fi is reset;If detecting the state information change of the connection Wi-Fi, the statistics number of the status information of the connection Wi-Fi is updated;The bright screen instruction for receiving mobile terminal, stops the status information of the detection connection Wi-Fi.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 information processing 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, will connect the shape of Wireless Fidelity Wi-Fi State Information Statistics number is reset;If detecting the state information change of the connection Wi-Fi, the state of the connection Wi-Fi is updated The statistics number of information;The bright screen instruction for receiving mobile terminal, stops the status information of the detection connection Wi-Fi.
The status information of the connection Wi-Fi includes: group key, dynamic host configuration association in one of the embodiments, View DHCP at least one of is re-rented with Wi-Fi connection status.
If the state information change of the detection connection Wi-Fi in one of the embodiments, updates the connection If the statistics number of the status information of Wi-Fi includes: to detect the group key variation, the statistics that the group key is changed time Number plus 1;The method also includes: if detecting, the statistics number of the group key variation reaches first threshold, in mobile terminal Interface display prompt.
If the state information change of the detection connection Wi-Fi in one of the embodiments, updates the connection If the statistics number of the status information of Wi-Fi includes: to detect that DHCP is re-rented, the DHCP statistics number re-rented is added 1; The method also includes: if the statistics number for detecting that the DHCP is re-rented reaches second threshold, shown in interface of mobile terminal Prompt.
If the state information change of the detection connection Wi-Fi in one of the embodiments, updates the connection If the statistics number of the status information of Wi-Fi includes: to detect that the Wi-Fi is disconnected, by the Wi-Fi connection status Statistics number adds 1;The method also includes: if detecting, the statistics number of the Wi-Fi connection status reaches third threshold value, Interface of mobile terminal displays the prompt box or forbids connecting current Wi-Fi.
A kind of information processing unit, comprising:
Receiving module, the screen that puts out for receiving mobile terminal instruct, and will connect the state information statistics of Wireless Fidelity Wi-Fi Number is reset;
Update module updates the shape of the connection Wi-Fi if the state information change for detecting the connection Wi-Fi The statistics number of state information;
Stop detection module, the bright screen for receiving mobile terminal instructs, and stops the state of the detection connection Wi-Fi Information.
The status information of the connection Wi-Fi includes group key in one of the embodiments, and the update module is also used If the statistics number that the group key changes is added 1 in detecting the group key variation;Described device further include: first mentions Show module, if showing and mentioning in interface of mobile terminal for detecting that the statistics number of the group key variation reaches first threshold Show.
The status information of the connection Wi-Fi includes that dynamic host configuration protocol DHCP is continuous in one of the embodiments, It rents, if the update module is also used to detect that DHCP is re-rented, the DHCP statistics number re-rented is added 1;Described device is also It include: the second cue module, if the statistics number for detecting that the DHCP is re-rented reaches second threshold, in mobile terminal circle Face display reminding.
The status information of the connection Wi-Fi includes Wi-Fi connection status in one of the embodiments, the update If module is also used to detect that the Wi-Fi is disconnected, the statistics number of the Wi-Fi connection status is added 1;Described device Further include: third cue module, if being moved for detecting that the statistics number of the Wi-Fi connection status reaches third threshold value Dynamic terminal interface displays the prompt box or forbids connecting current Wi-Fi.
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 is realized when the processor executes described program and is connected in the mobile terminal as described in any one of claims 1 to 5 Connect the state information statistics method of Wi-Fi.
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 certain a batch The corresponding current range of program function and current value in secondary mobile terminal can calculate according to the corresponding current value In of program function Two current value I=∑ (I1+I2+···In).For example, mobile terminal single deck tape-recorder is standby and connects Wi-Fi no data, then it is mobile whole The second current value I=4.5+4+2.6=11.1mA (milli-Ampere, milliampere) at end.
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 small When, the second current value I be 12mA, voltameter error amount be 1%, then the float value of the second current value be Δ 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 the The difference of one current value and the second current value is greater than first threshold, obtains mobile terminal third current value in the standby state, detection Whether the difference of the first current value and third current value is greater than second threshold.For example, the first current value is when mobile terminal standby 20mA, the second current value 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 difference of the first current value and the second current value is greater than the float value of the second current value, obtains the third electric current of mobile terminal Value.
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 electric current Value and the difference of third current value are 22mA, and the sum of the second current value, the float value of the second current value and designated value are 21mA, first The difference of current value and third current value is greater than second threshold, then according to the wake-up time of mobile terminal wake source in the standby state Power consumption type of the sleeping time than determining mobile terminal of number, mobile terminal.It in another embodiment, can also be according to movement The terminal wake-up times of wake source, sleep duration of mobile terminal under standby shape body determine the power consumption type of 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.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 ratio of sleeping in standby mode is 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 do not reach in mobile terminal It is hardware anomalies power consumption type to designated value, and not, then 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 wakes up wlan_wakeup_src_count [EVENT_TYPE_STASTIC] and other types and calls out It wakes up wlan_wakeup_src_count [UNKNOWN_TYPE_STASTIC].As shown in figure 4, putting out screen when mobile terminal receives When instruction, mobile terminal calls wlan interface wlan_clear_wakesrc_count () to call out son each in Wi-Fi wake source The wake-up times in awake source are reset.It is mobile whole when Wi-Fi wake source wakes up mobile terminal under the standby mode of mobile terminal Corresponding sub- wake source in the detectable Wi-Fi wake source for waking up mobile terminal in end, and the wake-up times of sub- wake source are corresponding Add 1.When mobile terminal receives the instruction of bright screen, will face in the wake-up times write-in memory module of sub- wake source each in wake source When mutual files nodes/sys/kernel/wakeup_reasons/conn_resume_reason_stastics, and Interface, which is counted, by wake source 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 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 are called out Wake up is 5 times.Obtaining the data packet under mobile terminal in standby state and waking up corresponding application program is QQ, microblogging.Then determine to move The power consumption type of terminal is that Wi-Fi wakes up power consumption, specifically application program QQ and microblogging frequent progress data in mobile terminal Power consumption caused by packet wakes 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 10 1mA of interaction then determine that frequent, Wi-Fi is re-rented frequently the power consumption type of mobile terminal for Wi-Fi scanning It is frequent with group key interaction.The power consumption type information of the mobile terminal of judgement can be recorded in the key of partition holding by mobile terminal Partitioned storage 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 times, 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, third current value can be obtained.Judge whether it is known scene power consumption in third current value.Excluding known scene After power consumption, 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 uploaded by mobile terminal Server.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 swinging of signal timing of wireless router, 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;It is above-mentioned Information processing method further include: if the statistics number for detecting that DHCP is re-rented reaches second threshold, shown in interface of mobile terminal Prompt.
Under mobile terminal in standby state, mobile terminal detects that the every DHCP of initiation of the Wi-Fi currently connected is continuous It rents, then the statistics number mDhcpCount that DHCP is re-rented is added 1.When mobile terminal receives the instruction of bright screen, when recording bright screen Between mSrceenOnTime, according to mobile terminal put out the screen time, the statistics number that bright screen time and DHCP are re-rented can calculate shifting DHCP re-rents frequency mDhcpFreq under dynamic terminal standby state.If DHCP, which re-rents the frequency, reaches such as 40 beats/min of second threshold, Interface of mobile terminal pop-up prompt current Wi-Fi the DHCP rental period be arranged it is unreasonable, mobile terminal re-rent excessively frequently, remind The DHCP rental period that user modifies current Wi-Fi 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 of Wi-Fi connection status time Number plus 1;Above- mentioned information processing method further include: the statistics number of Wi-Fi connection status reaches third threshold value if detecting, is moving Dynamic 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, record bright Shield time mSrceenOnTime, according to the statistics number for putting out screen time, bright screen time and Wi-Fi connection status of mobile terminal Wi-Fi connection status under mobile terminal in standby state can be calculated and change frequency mDisconnFreq.If Wi-Fi connection status becomes Change the frequency and reach 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 Restart 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 Terminal forbade connecting current Wi-Fi within a hour.
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.The status information of Wi-Fi is obtained according to the state information statistics number and standby time of the Wi-Fi counted under standby mode 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, trigger the application program identification etc. of wake-up alarm.According to the wake-up of record The relevant information of alarm 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, 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, trigger the application program identification etc. of wake-up alarm.According to the wake-up of record The relevant information of alarm clock can obtain the number of each application triggers wake-up alarm in the standby state.Existed according to application program The power consumption that the number of the duration and application triggers wake-up alarm of holding wake-up lock under standby mode can calculate application program refers to Number.It, then can be according to the value pair for the power consumption index that application program reaches when the power consumption index for detecting application program reaches preset value Application program executes 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, Preset wake-up lock factor-alpha, preset wake-up alarm factor-beta are different in different mobile terminal.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 of detection connection Wi-Fi Information.
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, counts the Wi-Fi of application program under mobile terminal in standby state Scan request number;
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 be with It can also include nonvolatile memory, for example, at least disk memory, a flash memory including high-speed random access memory Device or other volatile solid-state parts.
Input unit 2730 can be used for receiving the number or character information of input, and generate the user with mobile phone 2700 Setting and the related key signals input of function control.Specifically, input unit 2730 may include touch panel 2731 and its His input equipment 2732.Touch panel 2731, alternatively referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 2731 or in touch panel 2731 Neighbouring operation), and corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 2731 may include both touch detecting apparatus and touch controller.Wherein, the touch side of touch detecting apparatus detection user Position, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch detecting apparatus Touch information is received, and is converted into contact coordinate, then give processor 2780, and the life that processor 2780 is sent can be received It enables and is executed.Furthermore, it is possible to realize touch-control using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Panel 2731.In addition to touch panel 2731, input unit 2730 can also include other input equipments 2732.Specifically, other Input equipment 2732 can include but is not limited in physical keyboard, function key (such as volume control button, switch key etc.) etc. It is one or more.
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 small When, the second current value I is 12mA, and voltameter error amount is 1%, then the float value of the second current value isWhen detect the first current value of mobile terminal and the second current value difference be greater than float value, that is, sentence The difference for determining the first current value of mobile terminal and the second current value is greater than first threshold, obtains mobile terminal third in the standby state Whether current value, the difference for detecting the first current value and third current value are greater than second threshold.For example, first when mobile terminal standby Current value is 20mA, and the second current value is 12mA, and the float value of the second current value is 6mA, then the first current value and the second electric current The difference of value is 8mA, then the difference of the first current value and the second current value is greater than the float value of the second current value, obtains mobile terminal Third current value.
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 be 22mA, the sum of the second current value, the float value of the second current value and designated value be 21mA, first The difference of current value and third current value is greater than second threshold, then according to the wake-up time of mobile terminal wake source in the standby state Power consumption type of the sleeping time than determining mobile terminal of number, 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 ratio of sleeping in standby mode is 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 wakes up wlan_wakeup_src_count [EVENT_TYPE_STASTIC] and other types and calls out It wakes up wlan_wakeup_src_count [UNKNOWN_TYPE_STASTIC].As shown in figure 4, putting out screen when mobile terminal receives When instruction, mobile terminal calls wlan interface wlan_clear_wakesrc_count () to call out son each in Wi-Fi wake source The wake-up times in awake source are reset.It is mobile whole when Wi-Fi wake source wakes up mobile terminal under the standby mode of mobile terminal Corresponding sub- wake source in the detectable Wi-Fi wake source for waking up mobile terminal in end, and the wake-up times of sub- wake source are corresponding Add 1.When mobile terminal receives the instruction of bright screen, will face in the wake-up times write-in memory module of sub- wake source each in wake source When mutual files nodes/sys/kernel/wakeup_reasons/conn_resume_reason_stastics, and Interface, which is counted, by wake source 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 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 are called out Wake up is 5 times.Obtaining the data packet under mobile terminal in standby state and waking up corresponding application program is QQ, microblogging.Then determine to move The power consumption type of terminal is that Wi-Fi wakes up power consumption, specifically application program QQ and microblogging frequent progress data in mobile terminal Power consumption caused by packet wakes 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 swinging of signal timing of wireless router, 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 the every DHCP of initiation of the Wi-Fi currently connected is continuous It rents, then the statistics number mDhcpCount that DHCP is re-rented is added 1.When mobile terminal receives the instruction of bright screen, when recording bright screen Between mSrceenOnTime, according to mobile terminal put out the screen time, the statistics number that bright screen time and DHCP are re-rented can calculate shifting DHCP re-rents frequency mDhcpFreq under dynamic terminal standby state.If DHCP, which re-rents the frequency, reaches such as 40 beats/min of second threshold, Interface of mobile terminal pop-up prompt current Wi-Fi the DHCP rental period be arranged it is unreasonable, mobile terminal re-rent excessively frequently, remind The DHCP rental period that user modifies current Wi-Fi 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, record bright Shield time mSrceenOnTime, according to the statistics number for putting out screen time, bright screen time and Wi-Fi connection status of mobile terminal Wi-Fi connection status under mobile terminal in standby state can be calculated and change frequency mDisconnFreq.If Wi-Fi connection status becomes Change the frequency and reach 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 Restart 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 Terminal forbade connecting current Wi-Fi within a hour.
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, under mobile terminal in standby state, APP in mobile terminal is initiated in reception Scan request, by APP initiate scan request delay process, it is possible to reduce frequently sent out under mobile terminal in standby state by APP Mobile terminal power consumption caused by scanning is played, power consumption under mobile terminal in standby state is saved, 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, trigger the application program identification etc. of wake-up alarm.According to the wake-up of record The relevant information of alarm 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 realizing a kind of information Following steps are also executed when processing method: whether the current value consumed under detection mobile terminal in standby state reaches designated value;If Be, then according to application program hold wake up lock duration and application triggers wake-up alarm number obtain application program to Machine 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 realizing a kind of information Following steps are also executed when processing method: whether the standby time for detecting mobile terminal reaches preset duration;If so, according to answering Hold the stand-by power consumption information of the number acquisition application program of the duration and application triggers wake-up alarm that wake up lock with 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, 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, trigger the application program identification etc. of wake-up alarm.According to the wake-up of record The relevant information of alarm clock can obtain the number of each application triggers wake-up alarm in the standby state.Existed according to application program The power consumption that the number of the duration and application triggers wake-up alarm of holding wake-up lock under standby mode can calculate application program refers to Number.It, then can be according to the value pair for the power consumption index that application program reaches when the power consumption index for detecting application program reaches preset value Application program executes 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, Preset wake-up lock factor-alpha, preset wake-up alarm factor-beta are different in different mobile terminal.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 (9)

1. a kind of information processing method characterized by comprising
Receive mobile terminal puts out screen instruction, and record puts out the screen time, will connect the state information statistics number of Wireless Fidelity Wi-Fi It resets;
If detecting the state information change of the connection Wi-Fi, the statistics number of the status information of the connection Wi-Fi is updated;
The bright screen instruction for receiving mobile terminal, records the bright screen time, stops the status information of the detection connection Wi-Fi;
If mobile terminal receives the not up to specified duration of time interval put out screen instruction and receive the instruction of bright screen, do not report to The status information of mobile terminal connection Wi-Fi under machine state;
It is described connection Wi-Fi status information include:
Group key, dynamic host configuration protocol DHCP at least one of are re-rented;
The power consumption module of mobile terminal obtains WLAN data by interface, judges under mobile terminal in standby state with the presence or absence of movement Terminal power consumption is abnormal.
2. according to the method described in claim 1, it is characterized by:
If the state information change of the detection connection Wi-Fi, updates the statistics time of the status information of the connection Wi-Fi Number includes:
If detecting the group key variation, the statistics number that the group key changes is added 1;
The method also includes:
If detecting, the statistics number of the group key variation reaches first threshold, in interface of mobile terminal display reminding.
3. according to the method described in claim 1, it is characterized by:
If the state information change of the detection connection Wi-Fi, updates the statistics time of the status information of the connection Wi-Fi Number includes:
If detecting, DHCP is re-rented, and the DHCP statistics number re-rented is added 1;
The method also includes:
If the statistics number for detecting that the DHCP is re-rented reaches second threshold, in interface of mobile terminal display reminding.
4. according to the method described in claim 1, it is characterized by:
If the state information change of the detection connection Wi-Fi, updates the statistics time of the status information of the connection Wi-Fi Number includes:
If detecting, the Wi-Fi is disconnected, and the statistics number of the Wi-Fi connection status is added 1;
The method also includes:
If detecting, the statistics number of the Wi-Fi connection status reaches third threshold value, displays the prompt box in interface of mobile terminal Or forbid connecting current Wi-Fi.
5. a kind of information processing unit characterized by comprising
Receiving module, the screen that puts out for receiving mobile terminal instruct, and record puts out the screen time, will connect the shape of Wireless Fidelity Wi-Fi State Information Statistics number is reset;
Update module updates the state letter of the connection Wi-Fi if the state information change for detecting the connection Wi-Fi The statistics number of breath;
Stop detection module, the bright screen for receiving mobile terminal instructs, and records the bright screen time, stops detecting the connection Wi- The status information of Fi;
Reporting module is not up to specified if receiving for mobile terminal and putting out to shield instruction and receive the time interval that bright screen instructs Duration does not report the status information of mobile terminal connection Wi-Fi under standby mode;
It is described connection Wi-Fi status information include:
Group key, dynamic host configuration protocol DHCP at least one of are re-rented;
The power consumption module of mobile terminal obtains WLAN data by interface, judges under mobile terminal in standby state with the presence or absence of movement Terminal power consumption is abnormal.
6. device according to claim 5, it is characterised in that:
The status information of the connection Wi-Fi includes group key, if the update module is also used to detect that the group key becomes Change, the statistics number that the group key changes is added 1;
Described device further include:
First cue module, if for detecting that the statistics number of the group key variation reaches first threshold, in mobile terminal Interface display prompt.
7. device according to claim 5, it is characterised in that:
The status information of the connection Wi-Fi includes that dynamic host configuration protocol DHCP is re-rented, if the update module is also used to It detects that DHCP is re-rented, the DHCP statistics number re-rented is added 1;
Described device further include:
Second cue module, if the statistics number for detecting that the DHCP is re-rented reaches second threshold, in mobile terminal circle Face display reminding.
8. device according to claim 5, it is characterised in that:
The status information of the connection Wi-Fi includes Wi-Fi connection status, if the update module be also used to detect it is described Wi-Fi is disconnected, and the statistics number of the Wi-Fi connection status is added 1;
Described device further include:
Third cue module, if for detecting that the statistics number of the Wi-Fi connection status reaches third threshold value, mobile whole End interface display prompting frame is forbidden connecting current Wi-Fi.
9. 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 is realized when executing described program to be moved according to any one of claims 1 to 4 The state information statistics method of Wi-Fi is connected in dynamic terminal.
CN201710318978.6A 2017-05-08 2017-05-08 Information processing method, device and mobile terminal Active CN107027141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710318978.6A CN107027141B (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
CN201710318978.6A CN107027141B (en) 2017-05-08 2017-05-08 Information processing method, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107027141A CN107027141A (en) 2017-08-08
CN107027141B true CN107027141B (en) 2019-02-12

Family

ID=59528628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710318978.6A Active CN107027141B (en) 2017-05-08 2017-05-08 Information processing method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107027141B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911229B (en) * 2017-10-16 2020-12-08 浙江大华技术股份有限公司 Running state change reminding method and device, electronic equipment and storage medium
CN107844189A (en) * 2017-10-30 2018-03-27 东莞市金铭电子有限公司 A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption
WO2019109557A1 (en) * 2017-12-06 2019-06-13 华为技术有限公司 Method and device for reducing power consumption
CN108549593A (en) * 2018-03-29 2018-09-18 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN108668313A (en) * 2018-03-29 2018-10-16 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN108572904A (en) * 2018-03-29 2018-09-25 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN108566470A (en) * 2018-03-29 2018-09-21 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN108536270A (en) * 2018-03-29 2018-09-14 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN108541013B (en) * 2018-03-29 2022-06-10 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN108536547A (en) * 2018-03-30 2018-09-14 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN108563319A (en) * 2018-04-02 2018-09-21 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN108566472A (en) * 2018-04-20 2018-09-21 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN110191503B (en) * 2019-06-04 2022-06-10 惠州Tcl移动通信有限公司 Audio playing method, system, storage medium and mobile terminal
CN110376428B (en) * 2019-07-31 2022-05-06 四川长虹电器股份有限公司 Dormant current production line testing system and method for battery-powered Internet of things product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228217A (en) * 2015-09-29 2016-01-06 北京锤子数码科技有限公司 A kind of mobile network's scan method and device
CN106102141A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of processing method and processing device based on packet

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166542B (en) * 2013-05-17 2018-01-05 腾讯科技(深圳)有限公司 The method and apparatus that power consumption is applied in detection
CN106507403A (en) * 2016-10-31 2017-03-15 广州华凌制冷设备有限公司 The control method of wireless network module and control device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228217A (en) * 2015-09-29 2016-01-06 北京锤子数码科技有限公司 A kind of mobile network's scan method and device
CN106102141A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of processing method and processing device based on packet

Also Published As

Publication number Publication date
CN107027141A (en) 2017-08-08

Similar Documents

Publication Publication Date Title
CN107027141B (en) Information processing method, device and mobile terminal
CN107168851B (en) Information processing method, device and mobile terminal
CN107145425B (en) Information processing method, device and mobile terminal
CN104735671A (en) Malicious call recognition method and device
CN109144232A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN107193707B (en) Information processing method, device and mobile terminal
CN108449491A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN108541013A (en) Information processing method, device, mobile terminal and computer readable storage medium
US20220232445A1 (en) Communications System Switching Method and Terminal Device
CN104618223A (en) Information recommendation management method, device and system
CN108200632A (en) A kind of method and terminal of terminal access LTE network
CN103744574A (en) Method and device for turning off alarm clock of mobile terminal and mobile terminal
CN106294168A (en) A kind of method and system carrying out Application testing
CN105049591A (en) Method and device for processing incoming call
CN109542232A (en) Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode
CN108282834A (en) A kind of method and terminal of terminal access LTE network
CN106817482A (en) Mobile terminal and its method and apparatus called
CN105163189A (en) Method for reserving multimedia programs, server and terminal
CN107027160A (en) Information processing method, device and mobile terminal
CN108551530A (en) Call processing method, device, readable storage medium storing program for executing and mobile terminal
CN108549593A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN108509788A (en) Information sharing method and device, computer readable storage medium, terminal
CN107197083A (en) The method and mobile terminal of a kind of continuation of the journey duration for adjusting mobile terminal
CN110543333B (en) Sleep processing method and device for processor, mobile terminal and storage medium
CN110022405A (en) Radio frequency parameter method of adjustment, device and storage medium

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