CN104092835A - Power consumption anomaly detection method and device for mobile terminal - Google Patents

Power consumption anomaly detection method and device for mobile terminal Download PDF

Info

Publication number
CN104092835A
CN104092835A CN201410374631.XA CN201410374631A CN104092835A CN 104092835 A CN104092835 A CN 104092835A CN 201410374631 A CN201410374631 A CN 201410374631A CN 104092835 A CN104092835 A CN 104092835A
Authority
CN
China
Prior art keywords
mobile terminal
current
described mobile
power consumption
mode
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.)
Granted
Application number
CN201410374631.XA
Other languages
Chinese (zh)
Other versions
CN104092835B (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 CN201410374631.XA priority Critical patent/CN104092835B/en
Publication of CN104092835A publication Critical patent/CN104092835A/en
Application granted granted Critical
Publication of CN104092835B publication Critical patent/CN104092835B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • 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

  • Telephone Function (AREA)

Abstract

The invention discloses a power consumption anomaly detection method and a power consumption anomaly detection device for a mobile terminal. The power consumption anomaly detection method for the mobile terminal comprises the following steps: controlling the mobile terminal to circularly run in more than two working modes; detecting the power consumption rate of the mobile terminal; if the power consumption rate exceeds a preset power consumption rate threshold value and the mobile terminal is in a screen-out state at present, recording and storing a journal file corresponding to the mobile terminal in the current state; if the power consumption rate exceeds the preset power consumption rate threshold value and the mobile terminal is in a bright screen state at present, judging whether the work current value of the mobile terminal exceeds a preset work current threshold value or not in the current working mode; if yes, recording and storing the journal file corresponding to the mobile terminal in the current state; if not, returning to perform the step of detecting the power consumption rate of the mobile terminal and the subsequent steps. According to the technical scheme, the method and the device can effectively improve the power consumption anomaly debugging efficiency of the mobile terminal.

Description

A kind of mobile terminal power consumption method for detecting abnormality and device
Technical field
The present invention relates to field of mobile terminals, be specifically related to a kind of mobile terminal power consumption method for detecting abnormality and device.
Background technology
Be accompanied by the develop rapidly of mobile Internet, mobile terminal (for example smart mobile phone, panel computer, personal digital assistant (PDA, Personal Digital Assistant)) become an indispensable part in people's life, in order to meet people's demand, the hardware performance of mobile terminal is also in continuous lifting, and along with the lifting of mobile terminal hardware performance, the power problems of mobile terminal is also more and more outstanding.
The conventional abnormal adjustment method of mobile terminal power consumption need to expend the plenty of time and manpower goes to pinpoint the problems, reproduction problem, usually can affect the whole development progress of project.
Summary of the invention
The invention provides a kind of mobile terminal power consumption method for detecting abnormality and device, for improving the abnormal debugging efficiency of mobile terminal power consumption.
First aspect present invention provides a kind of mobile terminal power consumption method for detecting abnormality to comprise:
Within the default power consumption abnormality detection cycle, control mobile terminal circular flow in two or more mode of operations;
Detect the electric quantity consumption speed of above-mentioned mobile terminal;
If the current current drain speed of above-mentioned mobile terminal surpasses default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal, and above-mentioned mobile terminal is current in putting out screen state: according to the current state of above-mentioned mobile terminal, record and store journal file corresponding under above-mentioned mobile terminal current state;
If the current current drain speed of above-mentioned mobile terminal surpasses default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal, and above-mentioned mobile terminal is current in bright screen state:
Obtain the working current value under above-mentioned mobile terminal work at present pattern;
Judge whether the working current value under above-mentioned mobile terminal work at present pattern surpasses default operating current threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal;
If surpass, according to the current state of above-mentioned mobile terminal, record and store journal file corresponding under above-mentioned mobile terminal current state;
If be no more than, return to step and the subsequent step of the electric quantity consumption speed of carrying out the above-mentioned mobile terminal of above-mentioned detection.
Second aspect present invention provides a kind of mobile terminal power consumption abnormal detector, comprising:
Control unit, within the power consumption abnormality detection cycle default, controls mobile terminal circular flow in two or more mode of operations;
Detecting unit, for detection of the electric quantity consumption speed of above-mentioned mobile terminal;
Record storage unit, for surpassing default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal when the current current drain speed of above-mentioned mobile terminal, and above-mentioned mobile terminal is current when putting out screen state, according to the current state of above-mentioned mobile terminal, record and store journal file corresponding under above-mentioned mobile terminal current state;
Acquiring unit, for surpassing default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal when the current current drain speed of above-mentioned mobile terminal, and above-mentioned mobile terminal is current when bright screen state, obtain the working current value under above-mentioned mobile terminal work at present pattern;
Judging unit, for judging whether the working current value under the above-mentioned mobile terminal work at present pattern that above-mentioned acquiring unit obtains surpasses default operating current threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal;
Above-mentioned record storage unit, also for when judgment result is that of above-mentioned judging unit is, records and stores journal file corresponding under above-mentioned mobile terminal current state according to the current state of above-mentioned mobile terminal.
From technique scheme of the present invention, in the present invention, control the operation of mobile terminal analog subscriber, make mobile terminal circular flow in two or more mode of operations, and detect the electric quantity consumption speed of mobile terminal, according to the electric quantity consumption speed of mobile terminal, judge whether mobile terminal occurs extremely, record and the journal file of memory mobile terminal when abnormal when appearance is abnormal, by the abnormal situation of intelligent decision mobile terminal power consumption, saved repeated manual operation, and, due to record and storage is the journal file of mobile terminal when abnormal, the journal file of storage has stronger specific aim, can effectively improve the abnormal debugging efficiency of mobile terminal power consumption, and then the development progress of assurance mobile terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is embodiment schematic flow sheet of a kind of mobile terminal power consumption method for detecting abnormality provided by the invention;
Fig. 2 is example structure schematic diagram of a kind of mobile terminal power consumption abnormal detector provided by the invention.
Embodiment
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, but not whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of mobile terminal power consumption method for detecting abnormality, and said method comprises: within the default power consumption abnormality detection cycle, control mobile terminal circular flow in two or more mode of operations; Detect the electric quantity consumption speed of above-mentioned mobile terminal; If the current current drain speed of above-mentioned mobile terminal surpasses default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal, and above-mentioned mobile terminal is current in putting out screen state: according to the current state of above-mentioned mobile terminal, record and store journal file corresponding under above-mentioned mobile terminal current state; If the current current drain speed of above-mentioned mobile terminal surpasses default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal, and above-mentioned mobile terminal is current in bright screen state: obtain the working current value under above-mentioned mobile terminal work at present pattern; Judge whether the working current value under above-mentioned mobile terminal work at present pattern surpasses default operating current threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal; If surpass, according to the current state of above-mentioned mobile terminal, record and store journal file corresponding under above-mentioned mobile terminal current state; If be no more than, return and carry out the circular flow of above-mentioned control mobile terminal in step and the subsequent step of two or more mode of operations.The embodiment of the present invention also provides corresponding mobile terminal power consumption abnormal detector.Below be elaborated respectively.
A kind of mobile terminal power consumption the method for detecting abnormality below embodiment of the present invention being provided, refers to Fig. 1, and the mobile terminal power consumption method for detecting abnormality in the embodiment of the present invention comprises:
101,, within the default power consumption abnormality detection cycle, control mobile terminal circular flow in two or more mode of operations;
In the embodiment of the present invention, are set one or more power consumption abnormality detection cycles, the duration in power consumption abnormality detection cycle can be set according to actual needs.
Within the power consumption abnormality detection cycle, mobile terminal power consumption abnormal detector moves application program or the script on above-mentioned mobile terminal, to control mobile terminal circular flow in two or more mode of operations.
Optionally, control mobile terminal circular flow in following two or more mode of operation arbitrarily: video play mode, music playing mode, call mode, exposal model, mode of network accessing and put out screen standby mode.
102, detect the electric quantity consumption speed of above-mentioned mobile terminal;
Optionally, mobile terminal power consumption abnormal detector regularly detects the dump energy of above-mentioned mobile terminal, the dump energy that this detection is obtained deducts the dump energy that front one-time detection obtains, just can obtain the electric quantity consumption amount of mobile terminal between twice detection period, in the time interval by the electric quantity consumption amount of mobile terminal between twice detection period divided by this twice detection, can detect the electric quantity consumption speed of this above-mentioned mobile terminal.
103, when the current current drain speed of above-mentioned mobile terminal surpasses electric quantity consumption speed threshold value corresponding to the default mode of operation with the current operation of above-mentioned mobile terminal, judge that above-mentioned mobile terminal is current in putting out screen state or bright screen state;
In the embodiment of the present invention, every kind of mode of operation moving for mobile terminal arranges corresponding electric quantity consumption speed threshold value, the electric quantity consumption speed threshold value that different working modes is corresponding can obtain by repeatedly measuring, summing up, and, for different mobile terminals, because hardware platform may be different, therefore, electric quantity consumption speed threshold value can be according to the different inchings of running business into particular one of hardware platform, that is, corresponding electric quantity consumption speed threshold value may be different under same mode of operation for different mobile terminal.Or, also mobile terminal can be divided into bright screen state and put out screen state, for mobile terminal is at bright screen state with put out screen state one electric quantity consumption speed threshold value is set respectively, and do not distinguish concrete mode of operation.
When the current current drain speed of above-mentioned mobile terminal surpasses electric quantity consumption speed threshold value corresponding to the default mode of operation with the current operation of above-mentioned mobile terminal, mobile terminal power consumption abnormal detector judges that above-mentioned mobile terminal is current whether in putting out screen state, if in putting out screen state, perform step 104, if in bright screen state, perform step 105.
104, according to the current state of above-mentioned mobile terminal, record and store journal file corresponding under above-mentioned mobile terminal current state;
In the embodiment of the present invention, mobile terminal power consumption abnormal detector records the current state of above-mentioned mobile terminal, and stores in journal file (being log file) corresponding under above-mentioned mobile terminal current state.
Optionally, the current state of above-mentioned mobile terminal includes but not limited to: current electric quantity Expenditure Levels, current screen sectional drawing, current process state, current cpu occupancy and current network state.
Under default situations, journal file will be buffered in Installed System Memory, therefore for ease of follow-up, according to journal file, the power consumption of mobile terminal is debugged extremely, optionally, mobile terminal power consumption abnormal detector, record journal file corresponding under above-mentioned mobile terminal current state according to the current state of above-mentioned mobile terminal after, stores journal file corresponding under the above-mentioned mobile terminal current state of record in the catalogue of appointment into by timestamp.
105, obtain the working current value under above-mentioned mobile terminal work at present pattern;
In the embodiment of the present invention, mobile terminal power consumption abnormal detector can gather above-mentioned mobile terminal under work at present pattern one moment working current value, as the working current value under above-mentioned mobile terminal work at present pattern.
Optionally, in order to improve the accuracy of judged result, mobile terminal power consumption abnormal detector gather under above-mentioned mobile terminal work at present pattern N moment working current value, wherein, above-mentioned N is not less than 2; Calculate above-mentioned N moment working current value mean value, as the working current value under above-mentioned mobile terminal work at present pattern.
106, judge whether the working current value under above-mentioned mobile terminal work at present pattern surpasses default operating current threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal;
Optionally, every kind of mode of operation moving for mobile terminal arranges corresponding current reference standard (being also operating current threshold value), the operating current threshold value that different working modes is corresponding can obtain by repeatedly measuring, summing up, and, for different mobile terminals, because hardware platform may be different, therefore, operating current threshold value can be according to the different inchings of running business into particular one of hardware platform, that is, corresponding operating current threshold value may be different under same mode of operation for different mobile terminal.Or, also mobile terminal can be divided into bright screen state and put out screen state, for mobile terminal is at bright screen state with put out screen state one operating current threshold value is set respectively, and do not distinguish concrete mode of operation.
Mobile terminal power consumption abnormal detector judges whether the working current value under above-mentioned mobile terminal work at present pattern surpasses default operating current threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal, if the working current value under above-mentioned mobile terminal work at present pattern surpasses default operating current threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal, perform step 104, if the working current value under above-mentioned mobile terminal work at present pattern is no more than default operating current threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal, return to execution step 102.
Optionally, when the above-mentioned power consumption abnormality detection cycle arrives, mobile terminal power consumption abnormal detector is derived the journal file of above-mentioned power consumption abnormality detection cycle memory storage from the catalogue of appointment, to the power consumption of above-mentioned mobile terminal is debugged extremely according to the journal file of deriving.Or, mobile terminal power consumption abnormal detector also can not derived the journal file of above-mentioned power consumption abnormality detection cycle memory storage,, when staff need to extremely further debug the power consumption of above-mentioned mobile terminal, in the catalogue of appointment, check or derive corresponding journal file.
It should be noted that, mobile terminal power consumption abnormal detector in the embodiment of the present invention can be a functional module in mobile terminal, be in integrated and mobile terminal, or, mobile terminal power consumption abnormal detector in the embodiment of the present invention can be also a kind of device that is independent of mobile terminal, is not construed as limiting herein.Mobile terminal in the embodiment of the present invention includes but not limited to that smart mobile phone, panel computer, PDA etc. need to carry out the terminal equipment of power consumption abnormality detection.
From technique scheme of the present invention, in the present invention, control the operation of mobile terminal analog subscriber, make mobile terminal circular flow in two or more mode of operations, and detect the electric quantity consumption speed of mobile terminal, according to the electric quantity consumption speed of mobile terminal, judge whether mobile terminal occurs extremely, record and the journal file of memory mobile terminal when abnormal when appearance is abnormal, by the abnormal situation of intelligent decision mobile terminal power consumption, saved repeated manual operation, and, due to record and storage is the journal file of mobile terminal when abnormal, the journal file of storage has stronger specific aim, can effectively improve the abnormal debugging efficiency of mobile terminal power consumption, and then the development progress of assurance mobile terminal.
With a concrete application scenarios, the mobile terminal power consumption method for detecting abnormality in the embodiment of the present invention is described below:
1, measure and set mobile terminal under bright screen state and put out operating current threshold value under screen state that (for example, operating current threshold value while setting bright screen state is 500 milliamperes, operating current threshold value while putting out screen state is 20 milliamperes) and electric quantity consumption speed (for example, electric quantity consumption speed while setting bright screen state is 10% per hour, and the electric quantity consumption speed while putting out screen state is 2% per hour).
2, the mobile terminal program of automatic aging that brings into operation, loop video playback, music, converse, take pictures, accesses network, the operation of putting out the analog subscribers such as screen standby, wherein, the program of automatic aging refers to application program or the script operating on this mobile terminal, be used for controlling this mobile terminal and loop some operation, such as loop play video, circulation call, circulation shooting etc.
3, mobile terminal starts a service, regularly detect the dump energy of mobile terminal, if find, certain electric quantity consumption speed detecting surpasses the electric quantity consumption speed threshold value of setting, start to carry out operating current detection: at mobile terminal during in bright screen state, directly repeatedly read moment operating current, and average to reduce the probability of erroneous judgement, whether the working current value that obtains of judgement surpasses the mobile terminal the set operating current threshold value under bright screen state, if enter step 4, otherwise repeated execution of steps 3; When mobile terminal shields holding state in putting out, due to direct reading current, directly use the electric quantity consumption speed measuring, the mobile terminal whether working current value that judgement obtains surpasses setting is in the electric quantity consumption speed of putting out under screen state, if enter step 4, otherwise repeated execution of steps 3.
4, judge that power consumption to be detected abnormal, the current state of mobile terminal (for example electric quantity consumption situation, screenshot capture, process status, cpu occupancy, network state etc.) is saved in log file, and the log of buffer memory in system is derived, by timestamp, store the catalogue of appointment into.
5, burn-in test completed after the test period, and the log preserving is derived and analyzed, and if desired reappeared problem, can repeating step 3 and step 4.
The embodiment of the present invention also provides a kind of mobile terminal power consumption abnormal detector, and as shown in Figure 2, the mobile terminal power consumption abnormal detector 200 in the embodiment of the present invention comprises:
Control unit 201, within the power consumption abnormality detection cycle default, controls mobile terminal circular flow in two or more mode of operations;
Detecting unit 202, for detection of the electric quantity consumption speed of above-mentioned mobile terminal;
Record storage unit 203, for surpassing default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal when the current current drain speed of above-mentioned mobile terminal, and above-mentioned mobile terminal is current when putting out screen state, according to the current state of above-mentioned mobile terminal, record and store journal file corresponding under above-mentioned mobile terminal current state;
Acquiring unit 204, for surpassing default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal when the current current drain speed of above-mentioned mobile terminal, and above-mentioned mobile terminal is current when bright screen state, obtain the working current value under above-mentioned mobile terminal work at present pattern;
Judging unit 205, for judging whether the working current value under the above-mentioned mobile terminal work at present pattern that acquiring unit 204 obtains surpasses default operating current threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal;
Record storage unit 203, also for when judgment result is that of judging unit 205 is, records and stores journal file corresponding under above-mentioned mobile terminal current state according to the current state of above-mentioned mobile terminal.
Optionally, control unit 201 specifically for: control mobile terminal circular flow in following two or more mode of operation arbitrarily: video play mode, music playing mode, call mode, exposal model, mode of network accessing and put out screen standby mode.
Optionally, on basis embodiment illustrated in fig. 2, acquiring unit 204 also comprises: collecting unit, for gather under above-mentioned mobile terminal work at present pattern N moment working current value, wherein, above-mentioned N is not less than 2; Computing unit, for calculate above-mentioned N moment working current value mean value, as the working current value under above-mentioned mobile terminal work at present pattern.
Optionally, record storage unit 203 specifically for: when the current current drain speed of above-mentioned mobile terminal surpasses default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of above-mentioned mobile terminal, and above-mentioned mobile terminal is current when putting out screen state, or, when judgment result is that of judging unit 205 is, according to the current state of above-mentioned mobile terminal, record journal file corresponding under above-mentioned mobile terminal current state; By timestamp, journal file corresponding under above-mentioned mobile terminal current state is stored into the catalogue of appointment.
Optionally, the mobile terminal power consumption abnormal detector in the embodiment of the present invention also comprises: lead-out unit, for when the above-mentioned power consumption abnormality detection cycle arrives, from the catalogue of appointment, derive the journal file of above-mentioned power consumption abnormality detection cycle memory storage.
It should be noted that, mobile terminal power consumption abnormal detector in the embodiment of the present invention can be a functional module in mobile terminal, be in integrated and mobile terminal, or, mobile terminal power consumption abnormal detector in the embodiment of the present invention can be also a kind of device that is independent of mobile terminal, is not construed as limiting herein.Mobile terminal in the embodiment of the present invention includes but not limited to that smart mobile phone, panel computer, PDA etc. need to carry out the terminal equipment of power consumption abnormality detection.
It should be noted that, mobile terminal power consumption abnormal detector in the embodiment of the present invention can be as the mobile terminal power consumption abnormal detector of mentioning in above-mentioned embodiment of the method, can be for realizing the whole technical schemes in said method embodiment, the function of its each functional module can be according to the method specific implementation in said method embodiment, its specific implementation process can, with reference to the associated description in above-described embodiment, repeat no more herein.
From technique scheme of the present invention, in the present invention, control the operation of mobile terminal analog subscriber, make mobile terminal circular flow in two or more mode of operations, and detect the electric quantity consumption speed of mobile terminal, according to the electric quantity consumption speed of mobile terminal, judge whether mobile terminal occurs extremely, record and the journal file of memory mobile terminal when abnormal when appearance is abnormal, by the abnormal situation of intelligent decision mobile terminal power consumption, saved repeated manual operation, and, due to record and storage is the journal file of mobile terminal when abnormal, the journal file of storage has stronger specific aim, can effectively improve the abnormal debugging efficiency of mobile terminal power consumption, and then the development progress of assurance mobile terminal.
In the several embodiment that provide in the application, should be understood that disclosed apparatus and method can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
It should be noted that, for aforesaid each embodiment of the method, for easy description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other order or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be all that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.
It is more than the description to a kind of mobile terminal power consumption method for detecting abnormality provided by the present invention and device, for one of ordinary skill in the art, thought according to the embodiment of the present invention, all will change in specific embodiments and applications, to sum up, this description should not be construed as limitation of the present invention.

Claims (10)

1. a mobile terminal power consumption method for detecting abnormality, is characterized in that, comprising:
Within the default power consumption abnormality detection cycle, control mobile terminal circular flow in two or more mode of operations;
Detect the electric quantity consumption speed of described mobile terminal;
If the current current drain speed of described mobile terminal surpasses default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of described mobile terminal, and described mobile terminal is current in putting out screen state: according to the current state of described mobile terminal, record and store journal file corresponding under described mobile terminal current state;
If the current current drain speed of described mobile terminal surpasses default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of described mobile terminal, and described mobile terminal is current in bright screen state:
Obtain the working current value under described mobile terminal work at present pattern;
Judge whether the working current value under described mobile terminal work at present pattern surpasses default operating current threshold value corresponding to the mode of operation with the current operation of described mobile terminal;
If surpass, according to the current state of described mobile terminal, record and store journal file corresponding under described mobile terminal current state;
If be no more than, return to step and the subsequent step of the electric quantity consumption speed of carrying out the described mobile terminal of described detection.
2. method according to claim 1, is characterized in that, the circular flow of described control mobile terminal, in two or more mode of operations, comprising:
Control mobile terminal circular flow in following two or more mode of operation arbitrarily: video play mode, music playing mode, call mode, exposal model, mode of network accessing and put out screen standby mode.
3. method according to claim 1 and 2, is characterized in that, described in obtain the working current value under described mobile terminal work at present pattern, comprising:
Gather under described mobile terminal work at present pattern N moment working current value, wherein, described N is not less than 2;
Calculate described N moment working current value mean value, as the working current value under described mobile terminal work at present pattern.
4. method according to claim 1 and 2, is characterized in that, the described current state according to described mobile terminal records and store journal file corresponding under described mobile terminal current state, comprising:
According to the current state of described mobile terminal, record journal file corresponding under described mobile terminal current state;
By timestamp, journal file corresponding under described mobile terminal current state is stored into the catalogue of appointment.
5. method according to claim 4, is characterized in that, described method also comprises:
When the described power consumption abnormality detection cycle arrives, from the catalogue of described appointment, derive the journal file of described power consumption abnormality detection cycle memory storage.
6. a mobile terminal power consumption abnormal detector, is characterized in that, comprising:
Control unit, within the power consumption abnormality detection cycle default, controls mobile terminal circular flow in two or more mode of operations;
Detecting unit, for detection of the electric quantity consumption speed of described mobile terminal;
Record storage unit, for surpassing default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of described mobile terminal when the current current drain speed of described mobile terminal, and described mobile terminal is current when putting out screen state, according to the current state of described mobile terminal, record and store journal file corresponding under described mobile terminal current state;
Acquiring unit, for surpassing default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of described mobile terminal when the current current drain speed of described mobile terminal, and described mobile terminal is current when bright screen state, obtain the working current value under described mobile terminal work at present pattern;
Judging unit, for judging whether the working current value under the described mobile terminal work at present pattern that described acquiring unit obtains surpasses default operating current threshold value corresponding to the mode of operation with the current operation of described mobile terminal;
Described record storage unit, also for when judgment result is that of described judging unit is, records and stores journal file corresponding under described mobile terminal current state according to the current state of described mobile terminal.
7. mobile terminal power consumption abnormal detector according to claim 6, it is characterized in that, described control unit specifically for: control mobile terminal circular flow in following two or more mode of operation arbitrarily: video play mode, music playing mode, call mode, exposal model, mode of network accessing and put out screen standby mode.
8. according to the mobile terminal power consumption abnormal detector described in claim 6 or 7, it is characterized in that,
Described acquiring unit comprises:
Collecting unit, for gather under described mobile terminal work at present pattern N moment working current value, wherein, described N is not less than 2;
Computing unit, for calculate described N moment working current value mean value, as the working current value under described mobile terminal work at present pattern.
9. according to the mobile terminal power consumption abnormal detector described in claim 6 or 7, it is characterized in that,
Described record storage unit specifically for: when the current current drain speed of described mobile terminal surpasses default electric quantity consumption speed threshold value corresponding to the mode of operation with the current operation of described mobile terminal, and described mobile terminal is current when putting out screen state, or, when judgment result is that of described judging unit is, according to the current state of described mobile terminal, record journal file corresponding under described mobile terminal current state; By timestamp, journal file corresponding under described mobile terminal current state is stored into the catalogue of appointment.
10. mobile terminal power consumption abnormal detector according to claim 9, is characterized in that, described mobile terminal power consumption abnormal detector also comprises:
Lead-out unit for when the described power consumption abnormality detection cycle arrives, is derived the journal file of described power consumption abnormality detection cycle memory storage from the catalogue of described appointment.
CN201410374631.XA 2014-07-31 2014-07-31 A kind of mobile terminal power consumption method for detecting abnormality and device Expired - Fee Related CN104092835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410374631.XA CN104092835B (en) 2014-07-31 2014-07-31 A kind of mobile terminal power consumption method for detecting abnormality and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410374631.XA CN104092835B (en) 2014-07-31 2014-07-31 A kind of mobile terminal power consumption method for detecting abnormality and device

Publications (2)

Publication Number Publication Date
CN104092835A true CN104092835A (en) 2014-10-08
CN104092835B CN104092835B (en) 2016-08-24

Family

ID=51640515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410374631.XA Expired - Fee Related CN104092835B (en) 2014-07-31 2014-07-31 A kind of mobile terminal power consumption method for detecting abnormality and device

Country Status (1)

Country Link
CN (1) CN104092835B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486779A (en) * 2014-12-05 2015-04-01 沈阳晨讯希姆通科技有限公司 Slow clock test method for mobile communication terminal and test system thereof
CN104991192A (en) * 2015-05-28 2015-10-21 努比亚技术有限公司 Battery power loss detecting method and device and mobile terminal
CN105764086A (en) * 2014-12-18 2016-07-13 中国移动通信集团终端有限公司 Terminal endurance performance detecting method and system
WO2016177219A1 (en) * 2015-09-22 2016-11-10 中兴通讯股份有限公司 Method and apparatus for detecting power consumption abnormality
CN106455018A (en) * 2016-09-26 2017-02-22 维沃移动通信有限公司 Video call processing method and mobile terminal
CN106534437A (en) * 2016-10-20 2017-03-22 上海斐讯数据通信技术有限公司 System and method for testing power consumption of mobile terminal
CN106559567A (en) * 2016-11-15 2017-04-05 捷开通讯(深圳)有限公司 High current control method and mobile communication terminal
WO2018103379A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Terminal monitoring method and mobile terminal
CN108200280A (en) * 2017-12-28 2018-06-22 上海传英信息技术有限公司 power consumption analysis method and terminal
CN109142859A (en) * 2017-06-19 2019-01-04 上海中兴软件有限责任公司 A kind of energy consumption display method, device and terminal
CN109714811A (en) * 2018-12-10 2019-05-03 惠州Tcl移动通信有限公司 A kind of SOT state of termination detection method, device, terminal and storage medium
CN110072146A (en) * 2019-04-17 2019-07-30 长沙理工大学 Power-saving method, device and the storage medium of mobile terminal playing Online Video
CN111240917A (en) * 2020-01-13 2020-06-05 合肥联宝信息技术有限公司 Equipment testing method and device
CN113138549A (en) * 2021-03-31 2021-07-20 甄十信息科技(上海)有限公司 Method and device for simulating duration of intelligent wearable device
CN114168432A (en) * 2022-02-11 2022-03-11 为准(北京)电子科技有限公司 Application program power consumption detection method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369243A (en) * 2007-08-13 2009-02-18 英业达股份有限公司 Power consumption state test method
US20090061845A1 (en) * 2007-09-03 2009-03-05 James King Systems and methods for mobile phone validation
CN103297587A (en) * 2012-02-23 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Terminal and method for detecting and processing stand-by power consumption abnormity
CN103458445A (en) * 2012-05-31 2013-12-18 北京鼹鼠科技发展有限公司 Android-based communication terminal testing method and device
CN103500138A (en) * 2013-09-30 2014-01-08 东莞宇龙通信科技有限公司 Power management method and system and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369243A (en) * 2007-08-13 2009-02-18 英业达股份有限公司 Power consumption state test method
US20090061845A1 (en) * 2007-09-03 2009-03-05 James King Systems and methods for mobile phone validation
CN103297587A (en) * 2012-02-23 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Terminal and method for detecting and processing stand-by power consumption abnormity
CN103458445A (en) * 2012-05-31 2013-12-18 北京鼹鼠科技发展有限公司 Android-based communication terminal testing method and device
CN103500138A (en) * 2013-09-30 2014-01-08 东莞宇龙通信科技有限公司 Power management method and system and mobile terminal

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486779A (en) * 2014-12-05 2015-04-01 沈阳晨讯希姆通科技有限公司 Slow clock test method for mobile communication terminal and test system thereof
CN105764086B (en) * 2014-12-18 2019-02-26 中国移动通信集团终端有限公司 A kind of terminal duration performance detection method and system
CN105764086A (en) * 2014-12-18 2016-07-13 中国移动通信集团终端有限公司 Terminal endurance performance detecting method and system
CN104991192A (en) * 2015-05-28 2015-10-21 努比亚技术有限公司 Battery power loss detecting method and device and mobile terminal
WO2016177219A1 (en) * 2015-09-22 2016-11-10 中兴通讯股份有限公司 Method and apparatus for detecting power consumption abnormality
CN106550390A (en) * 2015-09-22 2017-03-29 中兴通讯股份有限公司 A kind of power consumption method for detecting abnormality and device
CN106455018A (en) * 2016-09-26 2017-02-22 维沃移动通信有限公司 Video call processing method and mobile terminal
CN106534437A (en) * 2016-10-20 2017-03-22 上海斐讯数据通信技术有限公司 System and method for testing power consumption of mobile terminal
CN106559567A (en) * 2016-11-15 2017-04-05 捷开通讯(深圳)有限公司 High current control method and mobile communication terminal
WO2018103379A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Terminal monitoring method and mobile terminal
CN109142859A (en) * 2017-06-19 2019-01-04 上海中兴软件有限责任公司 A kind of energy consumption display method, device and terminal
CN108200280A (en) * 2017-12-28 2018-06-22 上海传英信息技术有限公司 power consumption analysis method and terminal
CN109714811A (en) * 2018-12-10 2019-05-03 惠州Tcl移动通信有限公司 A kind of SOT state of termination detection method, device, terminal and storage medium
CN110072146A (en) * 2019-04-17 2019-07-30 长沙理工大学 Power-saving method, device and the storage medium of mobile terminal playing Online Video
CN111240917A (en) * 2020-01-13 2020-06-05 合肥联宝信息技术有限公司 Equipment testing method and device
CN111240917B (en) * 2020-01-13 2022-03-29 合肥联宝信息技术有限公司 Equipment testing method and device
CN113138549A (en) * 2021-03-31 2021-07-20 甄十信息科技(上海)有限公司 Method and device for simulating duration of intelligent wearable device
CN114168432A (en) * 2022-02-11 2022-03-11 为准(北京)电子科技有限公司 Application program power consumption detection method and device, electronic equipment and storage medium
CN114168432B (en) * 2022-02-11 2022-05-10 为准(北京)电子科技有限公司 Application program power consumption detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104092835B (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN104092835A (en) Power consumption anomaly detection method and device for mobile terminal
CN102831045B (en) Method and device for detecting starting items in terminal equipment
CN104239195B (en) A kind of method and electronic equipment for handling electronic equipment power consumption
CN103578568B (en) The performance test methods of solid state hard disc and device
CN108717393A (en) A kind of applied program testing method and mobile terminal
CN103186439A (en) Server test system and server stability test method
CN103646208A (en) Monitoring method and device of eMMC
CN104063305A (en) Pressure testing method, device and system for intelligent terminal software
CN107239397A (en) A kind of web automated testing methods and electronic equipment
CN103026316A (en) Computer component power-consumption database
CN103218173A (en) Method and device for storage control
CN107678972B (en) Test case evaluation method and related device
CN105320602A (en) Testing method and device for application starting speed
US20170017295A1 (en) User device power consumption monitoring and analysis
CN103778056A (en) Wireless application stability testing method and system
CN101246444A (en) Module testing method and system
CN108509348B (en) System aging test method and mobile terminal
CN104461846A (en) Method and device for detecting power consumption of application program
CN104182337A (en) Power consumption testing method and device and mobile terminal
CN104199765A (en) Method and device for acquiring normal temperature value range of terminal device and terminal
CN104199759A (en) Application program identification method and device causing terminal temperature rise and terminal
CN109876446B (en) Method and device for detecting occupation distribution of game map and grid in memory
CN111090593A (en) Method, device, electronic equipment and storage medium for determining crash attribution
CN116913350B (en) Test method and test platform based on modern standby of solid state disk
CN105139122B (en) The statistical method and system of program operation duration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160824

CF01 Termination of patent right due to non-payment of annual fee