CN108200280A - power consumption analysis method and terminal - Google Patents

power consumption analysis method and terminal Download PDF

Info

Publication number
CN108200280A
CN108200280A CN201711463424.1A CN201711463424A CN108200280A CN 108200280 A CN108200280 A CN 108200280A CN 201711463424 A CN201711463424 A CN 201711463424A CN 108200280 A CN108200280 A CN 108200280A
Authority
CN
China
Prior art keywords
scene
consumption
flow valuve
consumption flow
decrement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711463424.1A
Other languages
Chinese (zh)
Inventor
於镇邦
梁卉卉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN201711463424.1A priority Critical patent/CN108200280A/en
Publication of CN108200280A publication Critical patent/CN108200280A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72418User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
    • H04M1/72421User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services with automatic activation of emergency service functions, e.g. upon sensing an alarm
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Abstract

This application involves a kind of power consumption analysis method and terminal, including:Obtain the scene consumption flow and length of testing speech of battery;The average consumption flow valuve that flow and the length of testing speech handle to obtain the battery and consumed in scene is consumed according to the scene;Judge whether the averagely consumption flow valuve is more than objective consumption flow valuve corresponding with the scene;When the averagely consumption flow valuve is more than the objective consumption flow valuve, then prompt the scene that there are power consumption exceptions.The power consumption analysis method and terminal that the application provides can accurately judge that current scene is abnormal with the presence or absence of power consumption, to save R&D costs, testing cost and test resource.

Description

Power consumption analysis method and terminal
Technical field
This application involves the power consumption test technical fields of computer, and in particular to a kind of power consumption analysis method and terminal.
Background technology
The test of terminal industry analog subscriber continuation of the journey at present obtains being averaged for test scene (such as user using QQ half an hour) Consumption stream can be calculated average consumption stream by the percentage of the power consumption of battery or connect instrument by the way that a station terminal is used alone Carry out the average consumption stream that Power Supply Monitoring (power monitor) tests the process of using.
It is big by error existing for the average consumption stream of the percentage of the power consumption of battery calculating in the prior art, it can not find small The abnormal dissipation of electric current.And instrument progress Power Supply Monitoring test is connected by the way that a station terminal is used alone, when can only test one section Between, and the terminal due to power monitor and the terminal in actual test scene are not same station terminals, causing cannot be complete Simulation test machine scene, can only be close to test machine data, and are difficult probability of detection power consumption anomalous event, waste research staff With the time and efforts of tester, the waste to terminal resource is caused.
Invention content
For above-mentioned technical problem, the application provides power consumption analysis method and terminal, can accurately judge to work as front court Scape is abnormal with the presence or absence of power consumption, to save R&D costs, testing cost and test resource.
In order to solve the above technical problems, the application provides a kind of power consumption analysis method, including:Obtain the scene consumption stream of battery Amount and length of testing speech;According to the scene consume flow and the length of testing speech handle to obtain the battery consumed in scene it is flat Consume flow valuve;Judge whether the averagely consumption flow valuve is more than objective consumption flow valuve corresponding with the scene;In the average consumption stream When value is more than the objective consumption flow valuve, then prompt the scene that there are power consumption exceptions.
Specifically, it is described that the step of whether averagely consumption flow valuve is more than objective consumption flow valuve corresponding with the scene judged It further includes later:When the averagely consumption flow valuve is less than or equal to the objective consumption flow valuve, then the power consumption of the scene is being prompted just Often.
Specifically, the scene consumption flow for obtaining battery is specifically included with the step of length of testing speech:It is opened in test scene During the beginning, the first contents of decrement and the first testing time of the battery are obtained;At the end of test scene, the battery is obtained Second contents of decrement and the second testing time;According to first contents of decrement and second contents of decrement handle to obtain Scene consumes flow;It handles to obtain the length of testing speech according to first testing time and second testing time.
Specifically, first contents of decrement is handled to obtain, and pass through with second contents of decrement by preset algorithm System file node is exported to the test scene.
Specifically, the objective consumption flow valuve is to be consumed to obtain with hardware consumption according to the software of current scene.
The application also provides a kind of terminal, including:Memory, for storing executable program code;And processor, it uses The step of executable program code in the calling memory, execution, includes:Obtain battery scene consumption flow with Length of testing speech;The average consumption that flow and the length of testing speech handle to obtain the battery and consumed in scene is consumed according to the scene Flow valuve;Judge whether the averagely consumption flow valuve is more than objective consumption flow valuve corresponding with the scene;It is big in the averagely consumption flow valuve When the objective consumption flow valuve, then prompt the scene that there are power consumption exceptions.
Specifically, the processor is additionally operable to when the averagely consumption flow valuve is less than or equal to the objective consumption flow valuve, then The power consumption for prompting the scene is normal.
Specifically, the processor is additionally operable to include the step of execution:When test scene starts, the battery is obtained First contents of decrement and the first testing time;At the end of test scene, the second contents of decrement and second of the battery is obtained Testing time;It is handled to obtain the scene consumption flow according to first contents of decrement and second contents of decrement;According to institute It stated for the first testing time and second testing time handles to obtain the length of testing speech.
Specifically, first contents of decrement is handled to obtain, and pass through with second contents of decrement by preset algorithm System file node is exported to the test scene.
Specifically, the objective consumption flow valuve is to be consumed to obtain with hardware consumption according to the software of current scene.
The application provides a kind of power consumption analysis method and terminal, by consuming flow and the length of testing speech according to the scene Processing obtains the average consumption flow valuve that the battery consumes in scene, to judge whether the averagely consumption flow valuve is more than and the field The corresponding objective consumption flow valuve of scape, so as to accurately judge that current scene is abnormal with the presence or absence of power consumption, with save research and development into Originally, testing cost and test resource, and testing efficiency can be effectively improved.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow the above and other objects, features and advantages of the present invention can It is clearer and more comprehensible, special below to lift preferred embodiment, and coordinate attached drawing, detailed description are as follows.
Description of the drawings
Fig. 1 is the structure diagram of the terminal of the application first embodiment.
Fig. 2 is the flow chart of power consumption analysis method that the application second embodiment provides.
Fig. 3 is the flow chart of power consumption analysis method that the application 3rd embodiment provides.
Fig. 4 is the module frame chart of terminal that the application fourth embodiment provides.
Specific embodiment
The technological means and effect taken further to illustrate the present invention to reach predetermined goal of the invention, below in conjunction with Attached drawing and preferred embodiment, to the power consumption analysis method and specific embodiment, method, the step of terminal proposed according to the present invention Suddenly, structure, feature and its effect, detailed description are as follows.
For the present invention aforementioned and other technology contents, feature and effect, in following cooperation with reference to the preferable reality of schema Applying in the detailed description of example can clearly appear from.By the explanation of specific embodiment, when can be to the present invention to reach predetermined mesh The technological means taken and effect be able to more deeply and it is specific understand, however institute's accompanying drawings are only to provide with reference to saying It is bright to be used, it is not intended to limit the present invention.
Fig. 1 is the structure diagram of the terminal of first embodiment of the invention.The present invention power consumption analysis method can with but not It is limited to be applied to terminal as shown in Figure 1.Terminal for example can be, but not limited to as mobile phone, wearable device, tablet computer, palm The electronic equipments such as computer and PAD.
As shown in Figure 1, terminal 10 includes memory 102, storage control 104, one or more (only shows one in figure It is a) processor 106, Peripheral Interface 108, radio-frequency module 110, locating module 112, photographing module 114, audio-frequency module 116, screen 118 and key-press module 120.These components are mutually communicated by one or more communication bus/signal wire 122.
It is appreciated that structure shown in FIG. 1 is only to illustrate, terminal 10 may also include more or less than shown in Fig. 1 Component or with the configuration different from shown in Fig. 1.Hardware, software or combination may be used in each component shown in Fig. 1 It realizes.
Memory 102 can be used for storage software program and module, such as the power consumption analysis method pair in the embodiment of the present invention Program instruction/the module answered, processor 106 are stored in software program and module in storage control 104 by operation, from And perform various functions application and data processing, that is, realize above-mentioned power consumption analysis method.
Memory 102 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property memory module, flash memory or other non-volatile solid state memories.In some instances, memory 102 can further comprise Relative to the remotely located memory of processor 106, these remote memories can pass through network connection to terminal 10.It is above-mentioned The example of network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 106 with And other possible components can carry out the access of memory 102 under the control of storage control 104.
Various input/input modules are coupled to CPU and memory 102 by Peripheral Interface 108.The operation of processor 106 is deposited Various softwares in reservoir 102, instruction are to perform the various functions of terminal 10 and carry out data processing.
In some embodiments, Peripheral Interface 108, processor 106 and storage control 104 can be in one single chips It realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 110 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with Communication network or other equipment are communicated.Radio-frequency module 110 may include the various existing electricity for being used to perform these functions Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, Memory etc..Radio-frequency module 110 can be communicated or be led to various networks such as internet, intranet, wireless network Wireless network is crossed to be communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, and the including but not limited to whole world is mobile logical T unit (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division Multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/ Or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other for mail, Instant Messenger The agreement of news and short message and any other suitable communications protocol or even it may include that those are not developed currently yet Agreement.
Locating module 112 is used to obtain the current location of terminal 10.The example of locating module 112 includes but not limited to the whole world Satellite positioning device (GPS), the location technology based on WLAN or mobile radio communication.
Photographing module 114 is used to shoot photo or video.The photo or video of shooting can be stored to memory 102 It is interior, and can be sent by radio-frequency module 110.
Audio-frequency module 116 provides a user audio interface, may include that one or more microphones, one or more raises Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data at Peripheral Interface 108, and voice data is converted to power information, Power information is transmitted to loud speaker.Power information is converted to the sound wave that human ear can hear by loud speaker.Voicefrequency circuit is also from microphone Place receives power information, converts electrical signals to voice data, and by data transmission in network telephony to Peripheral Interface 108 with into advancing one The processing of step.Audio data can obtain at memory 102 or by radio-frequency module 110.In addition, audio data can also It stores into memory 102 or is sent by radio-frequency module 110.In some instances, audio-frequency module 116 may also include One earphone broadcasts hole, for providing audio interface to earphone or other equipment.
Screen 118 provides an output interface between terminal 10 and user.Specifically, screen 118 is shown to user regards Frequency exports, and the content of these videos output may include word, figure, video and its arbitrary combination.Some outputs are the result is that corresponding In some user interface objects.It should be understood that screen 118 can also include Touch Screen.Touch Screen is in terminal 10 with using One output and input interface are provided simultaneously between family.In addition to showing video output to user, Touch Screen also receives user's Input, such as the gesture operations such as click, slip of user, so that user interface object responds the input of these users. It can be based on resistance-type, condenser type or any other possible touch control detection technology to detect technology input by user.Touch-control The specific example of screen display unit includes but is not limited to liquid crystal display or light emitting polymer displays.
Key-press module 120 equally provides user's interface inputted to terminal 10, and user can be different by pressing Button is so that terminal 10 performs different functions.
It please refers to Fig.2, Fig. 2 is the flow chart of power consumption analysis method that the application second embodiment provides, and the present embodiment carries The power consumption analysis method of confession is applied to terminal, as shown in Fig. 2, power consumption analysis method provided in this embodiment includes but not limited to such as Lower step.
Step S11:Obtain the scene consumption flow and length of testing speech of battery.
Specifically, in the present embodiment, scene consumption flow can be, but not limited to battery during for terminal progress scrnario testing Total power consumption.The corresponding duration spent when length of testing speech carries out scrnario testing by terminal with scene consumption flow.Specifically, terminal It can be, but not limited to read scene consumption flow and length of testing speech of the battery in test scene by script.
Specifically, in the present embodiment, scrnario testing can be, but not limited to carry out the multiple client for being loaded in terminal Test.
Step S12:The average consumption flow valuve that flow and length of testing speech handle to obtain battery and consumed in scene is consumed according to scene.
Specifically, in the present embodiment, terminal according to the scene of the battery got consume flow at length of testing speech Reason obtains the average consumption flow valuve that battery consumes in scene.Specifically, averagely consumption flow valuve can be, but not limited to consume flow for scene Ratio between length of testing speech is worth to.
Step S13:Judge averagely whether consumption flow valuve is more than objective consumption flow valuve corresponding with scene.
Specifically, in the present embodiment, the average consumption flow valuve objective consumption corresponding with present test field scape that terminal will obtain Flow valuve is compared, to judge the size between averagely consumption flow valuve and corresponding objective consumption flow valuve, so as to flat by comparing Consumption flow valuve quickly obtains the current scene of terminal with the presence or absence of power consumption exception with objective consumption flow valuve.
Specifically, in the present embodiment, objective consumption flow valuve is to be consumed to obtain with hardware consumption according to the software of current scene. Specifically, software consumption can be, but not limited to the consumption to run the corresponding client of corresponding scene.Hardware consumption can with but The consumption that peripheral hardware corresponding with scene is run in terminal is not limited to, for example, processor operation consumes, terminal screen is bright Screen consumption, the audio consumption of terminal and radio frequency consumption of terminal etc..Specifically, objective consumption flow valuve is the currently used scene of user The objective value consumed tested.
Step S14:When average consumption flow valuve is more than objective consumption flow valuve, then prompt scene that there are power consumption exceptions.
Specifically, in the present embodiment, the average consumption flow valuve obtained after test scene is more than corresponding with scene During objective consumption flow valuve, terminal will generate the first standby signal, to prompt current scene that there are power consumption exceptions.Specifically, terminal Can by but be not limited to by screen carry out play frame in a manner of remind user, for example, terminal can also pass through voice mode remind use Family, so that user quickly recognizes that the scene currently tested is abnormal there are power consumption.
Specifically, in the present embodiment, when average consumption flow valuve is less than or equal to objective consumption flow valuve, then the work(of scene is prompted Consumption is normal.
Specifically, in the present embodiment, the average consumption flow valuve obtained after test scene is less than or equal to and scene During corresponding objective consumption flow valuve, terminal will generate the second standby signal, to prompt the power consumption of current scene normal.Specifically, Terminal can by but be not limited to by screen carry out play frame in a manner of remind user, for example, terminal can also be carried by voice mode Wake up user, so that user quickly recognizes that the power consumption for the scene currently tested is normal.
Specifically, power consumption analysis method provided in this embodiment, during by consuming flow and the test according to the scene Long processing obtains the average consumption flow valuve that the battery consumes in scene, with judge the averagely consumption flow valuve whether be more than with it is described The corresponding objective consumption flow valuve of scene, so as to accurately judge that current scene is abnormal with the presence or absence of power consumption, to save research and development Cost, testing cost and test resource, and testing efficiency can be effectively improved.
Please also refer to Fig. 3, Fig. 3 is the flow chart of power consumption analysis method that the application 3rd embodiment provides.This implementation The power consumption analysis method that example provides is applied to terminal, and as shown in Figure 2 and Figure 3, power consumption analysis method provided in this embodiment is in step Rapid S11 specifically comprises the following steps:
Step S21:When test scene starts, the first contents of decrement and the first testing time of battery are obtained.
Specifically, in the present embodiment, when test scene starts, terminal can be, but not limited to obtain battery by script The first contents of decrement before corresponding test scene and start corresponding first testing time, but not with test scene Be limited to this, such as in other embodiments, terminal can also by corresponding client obtain battery the first contents of decrement and First testing time.
Step S22:At the end of test scene, the second contents of decrement and the second testing time of battery are obtained.
Specifically, in the present embodiment, at the end of test scene, terminal can be, but not limited to obtain battery by script The second contents of decrement at the end of corresponding test scene and terminate corresponding second testing time with test scene, but It is not limited to this, such as in other embodiments, the second consumption that terminal can also obtain battery by corresponding client is held Amount and the second testing time.
Specifically, in the present embodiment, the first contents of decrement is handled to obtain with the second contents of decrement by preset algorithm, and It is exported by system file node to test scene.
Specifically, in the present embodiment, preset algorithm can be, but not limited to as HW fule gauge algorithms.
Specifically, in the present embodiment, terminal can be, but not limited to using HW fule gauge algorithms to battery corresponding Test scene the first contents of decrement and the second contents of decrement, consumed so as to accurately calculate battery in current scene Capacity, and then improve scene consumption flow calculating precision.Terminal holds the first obtained contents of decrement and the second consumption Amount is exported by system file node to be called into test scene, to realize that the automatic scene that calculates consumes flow.
Step S23:It is handled to obtain scene consumption flow according to the first contents of decrement and the second contents of decrement.
Specifically, in the present embodiment, scene consumption flow can by the first contents of decrement and the second contents of decrement into Row is obtained as difference.
Step S24:It handles to obtain length of testing speech according to the first testing time and the second testing time.
Specifically, in the present embodiment, length of testing speech can be by carrying out the first testing time and the second testing time It is obtained as difference.
Specifically, in one embodiment, the execution sequencing of step S23 and step S24 can be interchanged or step S23 may be performed simultaneously with step S24.
Specifically, power consumption analysis method provided in this embodiment, during by consuming flow and the test according to the scene Long processing obtains the average consumption flow valuve that the battery consumes in scene, with judge the averagely consumption flow valuve whether be more than with it is described The corresponding objective consumption flow valuve of scene, so as to accurately judge that current scene is abnormal with the presence or absence of power consumption, to save research and development Cost, testing cost and test resource, and testing efficiency can be effectively improved, while pass through test of the preset algorithm to battery The electricity consumed in scene is accurately calculated, can improve the calculating precision of scene consumption flow, and by scene It consumes flow to export into test scene automatically, realizes and calculate scene consumption flow automatically.
It please refers to Fig.4, Fig. 4 is the module frame chart of terminal 20 that the application fourth embodiment provides.It is provided in this embodiment Terminal 20 can user realize above-mentioned power consumption analysis method, as shown in figure 4, terminal provided in this embodiment 20 includes:Memory 30 With processor 40.
Specifically, in the present embodiment, memory 30 is used to store executable program code.Processor 40 is deposited for calling The step of executable program code in reservoir 30, execution, includes:Obtain the scene consumption flow and length of testing speech of battery;According to field Scape consumes flow and handles to obtain the average consumption flow valuve that battery consumes in scene with length of testing speech;Judge whether averagely consumption flow valuve is more than Objective consumption flow valuve corresponding with scene;When average consumption flow valuve is more than objective consumption flow valuve, then prompt scene that there are power consumption exceptions.
Specifically, in the present embodiment, processor 40 is additionally operable to when average consumption flow valuve is less than or equal to objective consumption flow valuve, The power consumption for then prompting scene is normal.
Specifically, in the present embodiment, processor 40 is additionally operable to include the step of execution:When test scene starts, obtain Take the first contents of decrement and the first testing time of battery;At the end of test scene, obtain battery the second contents of decrement and Second testing time;It is handled to obtain scene consumption flow according to the first contents of decrement and the second contents of decrement;When being tested according to first Between handle to obtain length of testing speech with the second testing time.
Specifically, in the present embodiment, the first contents of decrement is handled to obtain with the second contents of decrement by preset algorithm, and It is exported by system file node to test scene.
Specifically, in the present embodiment, objective consumption flow valuve is to be consumed to obtain with hardware consumption according to the software of current scene.
Specifically, in the present embodiment, the concrete structure of terminal 20 please join the structure of terminal 10 shown in FIG. 1, herein no longer It repeats.
The present embodiment realizes each functional unit of terminal 20 detailed process of respective function, refers to above-mentioned Fig. 2 and Fig. 3 Particular content described in illustrated embodiment, details are not described herein.
Specifically, terminal provided in this embodiment is handled by consuming flow according to the scene with the length of testing speech The average consumption flow valuve consumed in scene to the battery, to judge it is corresponding with the scene whether the averagely consumption flow valuve is more than Objective consumption flow valuve, so as to accurately judge that current scene is abnormal with the presence or absence of power consumption, to save R&D costs, test Cost and test resource, and testing efficiency can be effectively improved, while by preset algorithm to institute in the test scene of battery The electricity of consumption is accurately calculated, can improve the calculating precision of scene consumption flow, and by scene consumption flow certainly In dynamic output to test scene, automatic calculating scene consumption flow is realized.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference from other examples, and just to refer each other for identical similar part between each embodiment. For terminal class embodiment, since it is basicly similar to embodiment of the method, so the comparison of description it is simple but, related part is joined See the part explanation of embodiment of the method.
The above described is only a preferred embodiment of the present invention, not make limitation in any form to the present invention, though So the present invention is disclosed above with preferred embodiment, however is not limited to the present invention, any technology people for being familiar with this profession Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification For the equivalent embodiment of equivalent variations, as long as being without departing from technical solution of the present invention content, technical spirit pair according to the present invention Any simple modification, equivalent change and modification that above example is made, in the range of still falling within technical solution of the present invention.

Claims (10)

  1. A kind of 1. power consumption analysis method, which is characterized in that the power consumption analysis method includes:
    Obtain the scene consumption flow and length of testing speech of battery;
    The average consumption flow valuve that flow and the length of testing speech handle to obtain the battery and consumed in scene is consumed according to the scene;
    Judge whether the averagely consumption flow valuve is more than objective consumption flow valuve corresponding with the scene;
    When the averagely consumption flow valuve is more than the objective consumption flow valuve, then prompt the scene that there are power consumption exceptions.
  2. 2. power consumption analysis method according to claim 1, which is characterized in that described to judge whether the averagely consumption flow valuve is big It is further included after the step of objective consumption flow valuve corresponding with the scene:
    When the averagely consumption flow valuve is less than or equal to the objective consumption flow valuve, then the power consumption for prompting the scene is normal.
  3. 3. power consumption analysis method according to claim 1, which is characterized in that the scene consumption flow for obtaining battery is with surveying The step of trying duration specifically includes:
    When test scene starts, the first contents of decrement and the first testing time of the battery are obtained;
    At the end of test scene, the second contents of decrement and the second testing time of the battery are obtained;
    It is handled to obtain the scene consumption flow according to first contents of decrement and second contents of decrement;
    It handles to obtain the length of testing speech according to first testing time and second testing time.
  4. 4. power consumption analysis method according to claim 3, which is characterized in that first contents of decrement disappears with described second Consumption capacity is handled to obtain, and pass through system file node and export to the test scene by preset algorithm.
  5. 5. power consumption analysis method according to claim 1, which is characterized in that the objective consumption flow valuve is according to current scene Software consumption obtained with hardware consumption.
  6. 6. a kind of terminal, which is characterized in that including:
    Memory, for storing executable program code;And
    Processor, for calling the executable program code in the memory, the step of execution, includes:
    Obtain the scene consumption flow and length of testing speech of battery;
    The average consumption flow valuve that flow and the length of testing speech handle to obtain the battery and consumed in scene is consumed according to the scene;
    Judge whether the averagely consumption flow valuve is more than objective consumption flow valuve corresponding with the scene;
    When the averagely consumption flow valuve is more than the objective consumption flow valuve, then prompt the scene that there are power consumption exceptions.
  7. 7. terminal according to claim 6, which is characterized in that the processor is additionally operable to be less than in the averagely consumption flow valuve Or during equal to the objective consumption flow valuve, then the power consumption for prompting the scene is normal.
  8. 8. terminal according to claim 6, which is characterized in that the processor is additionally operable to include the step of execution:
    When test scene starts, the first contents of decrement and the first testing time of the battery are obtained;
    At the end of test scene, the second contents of decrement and the second testing time of the battery are obtained;
    It is handled to obtain the scene consumption flow according to first contents of decrement and second contents of decrement;
    It handles to obtain the length of testing speech according to first testing time and second testing time.
  9. 9. terminal according to claim 8, which is characterized in that first contents of decrement and second contents of decrement are equal It handles to obtain by preset algorithm, and passes through system file node and export to the test scene.
  10. 10. terminal according to claim 6, which is characterized in that the objective consumption flow valuve is the software according to current scene Consumption is obtained with hardware consumption.
CN201711463424.1A 2017-12-28 2017-12-28 power consumption analysis method and terminal Pending CN108200280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711463424.1A CN108200280A (en) 2017-12-28 2017-12-28 power consumption analysis method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711463424.1A CN108200280A (en) 2017-12-28 2017-12-28 power consumption analysis method and terminal

Publications (1)

Publication Number Publication Date
CN108200280A true CN108200280A (en) 2018-06-22

Family

ID=62585118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711463424.1A Pending CN108200280A (en) 2017-12-28 2017-12-28 power consumption analysis method and terminal

Country Status (1)

Country Link
CN (1) CN108200280A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635771A (en) * 2009-08-21 2010-01-27 中兴通讯股份有限公司 Mobile terminal and power consumption detection control method thereof
CN104092835A (en) * 2014-07-31 2014-10-08 广东欧珀移动通信有限公司 Power consumption anomaly detection method and device for mobile terminal
CN104731301A (en) * 2013-12-20 2015-06-24 贝壳网际(北京)安全技术有限公司 Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
US20150317496A1 (en) * 2012-08-03 2015-11-05 Freescale Semiconductor, Inc. Method and apparatus for limiting access to an integrated circuit (ic)
CN105676993A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Method and device for saving electric quantity and electronic equipment
CN105700656A (en) * 2014-11-26 2016-06-22 深圳富泰宏精密工业有限公司 Standby abnormal power consumption detection system and method
WO2017183029A9 (en) * 2016-04-19 2017-12-14 Grid4C Method and system for energy consumption prediction

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635771A (en) * 2009-08-21 2010-01-27 中兴通讯股份有限公司 Mobile terminal and power consumption detection control method thereof
US20150317496A1 (en) * 2012-08-03 2015-11-05 Freescale Semiconductor, Inc. Method and apparatus for limiting access to an integrated circuit (ic)
CN104731301A (en) * 2013-12-20 2015-06-24 贝壳网际(北京)安全技术有限公司 Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
CN104092835A (en) * 2014-07-31 2014-10-08 广东欧珀移动通信有限公司 Power consumption anomaly detection method and device for mobile terminal
CN105700656A (en) * 2014-11-26 2016-06-22 深圳富泰宏精密工业有限公司 Standby abnormal power consumption detection system and method
CN105676993A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Method and device for saving electric quantity and electronic equipment
WO2017183029A9 (en) * 2016-04-19 2017-12-14 Grid4C Method and system for energy consumption prediction

Similar Documents

Publication Publication Date Title
CN108430101B (en) Antenna closing method and device, storage medium and electronic equipment
CN110036661B (en) Uplink data transmission method, terminal, network side equipment and system
US10659587B2 (en) Incoming call management method and apparatus
WO2018228105A1 (en) Application control method and application control device
CN104333643B (en) Add the method for contact person, system and terminal
CN107371221B (en) Select method, apparatus, mobile terminal and the readable storage medium storing program for executing of network
CN108702281A (en) The determination method and device of descending control information format size
CN106793010B (en) Network access method and equipment
CN110933706A (en) Network communication setting method, device, storage medium and terminal
CN105468513A (en) Testing method, apparatus and system based on mobile terminal
WO2023236972A1 (en) Communication environment security warning method and apparatus, terminal device, and storage medium
CN106708240A (en) Power saving method, server and power saving system
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN106713171A (en) Server and delay-queue-based current-limiting protection system and method
CN109644078B (en) Uplink data transmission method, terminal, network side equipment and system
CN108200636A (en) Navigation information methods of exhibiting, terminal
CN109194998A (en) Data transmission method, device, electronic equipment and computer-readable medium
CN106101361B (en) Display methods, device and the mobile phone of cell phone address book
CN107613099A (en) Load the method and device of emergency numbers
CN107205091A (en) Call control method and related product
CN108200280A (en) power consumption analysis method and terminal
CN108737619A (en) A kind of call control method of terminal, device and terminal
CN107171034A (en) Battery and terminal
CN111615101B (en) IMS registration method, device, storage medium and electronic terminal
CN107528960A (en) Fast re-dialling method, quick re-dialing apparatus and terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180622

RJ01 Rejection of invention patent application after publication