CN107025161B - Method and system for detecting power consumption of application program - Google Patents

Method and system for detecting power consumption of application program Download PDF

Info

Publication number
CN107025161B
CN107025161B CN201610067262.9A CN201610067262A CN107025161B CN 107025161 B CN107025161 B CN 107025161B CN 201610067262 A CN201610067262 A CN 201610067262A CN 107025161 B CN107025161 B CN 107025161B
Authority
CN
China
Prior art keywords
power consumption
detected
application program
terminal
unit time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610067262.9A
Other languages
Chinese (zh)
Other versions
CN107025161A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610067262.9A priority Critical patent/CN107025161B/en
Publication of CN107025161A publication Critical patent/CN107025161A/en
Application granted granted Critical
Publication of CN107025161B publication Critical patent/CN107025161B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a method and a system for detecting power consumption of an application program, and belongs to the technical field of computers. The method comprises the following steps: the method comprises the steps that the coulometer detects current data and voltage data of a terminal to be detected, the management equipment obtains the current data and the voltage data detected by the coulometer under the condition that the terminal to be detected runs a target application program, and the management equipment determines the power consumption of the target application program in unit time according to the detected current data and voltage data and the pre-stored standby power consumption of the terminal to be detected in unit time. By adopting the method and the device, the accuracy of detecting the power consumption of the application program can be improved.

Description

Method and system for detecting power consumption of application program
Technical Field
The invention relates to the technical field of computers, in particular to a method and a system for detecting power consumption of an application program.
Background
With the continuous development of terminals, more and more applications are developed and applied, and in general, in the process of developing the applications, technicians need to detect the power consumption of the applications to prevent the power consumption of the applications from being too large.
A manufacturer of a terminal typically sets a power consumption standard for the terminal, for example, the power consumption standard typically consumes D ma hours per C time period of operation when a component (e.g., a processor, a memory, etc.) is occupied by B%. Therefore, when the terminal runs a certain application program, the power consumption of the application program can be determined according to the occupation percentage and the occupation duration of the internal components of the application program.
However, the terminal may continuously generate heat while running the application, and if the power consumption of the terminal is detected according to the above power consumption standard, the power consumption of the terminal due to heat generated by the line or the like cannot be detected, and thus, the accuracy of detecting the power consumption of the application is poor.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide a method and system for detecting power consumption of an application. The technical scheme is as follows:
in one aspect, a method for detecting power consumption of an application program is provided, and the method is applied to a system for detecting power consumption of the application program, the system comprises a terminal to be tested, a coulometer and a management device, the terminal to be tested comprises a body and a battery, the coulometer is connected between a power supply port of the body of the terminal to be tested and an output port of the battery, the coulometer and the management device establish a data connection, and the method comprises the following steps:
the coulometer detects current data and voltage data of the terminal to be tested;
the management equipment acquires current data and voltage data detected by the coulometer under the condition that a target application program is operated by a terminal to be detected;
and the management equipment determines the power consumption of the target application program in unit time according to the detected current data and voltage data and the prestored standby power consumption of the terminal to be detected in unit time.
In another aspect, a system for detecting power consumption of an application program is provided, the system including a terminal under test including a body and a battery, a meter, and a management device, wherein:
the coulometer is connected between a battery connection port of the machine body of the terminal to be tested and an output port of the battery;
the electric meter and the management equipment are connected through data;
the electric meter is used for detecting current data and voltage data of the terminal to be detected;
the management equipment is used for acquiring current data and voltage data detected by the coulometer under the condition that a target application program runs by a terminal to be detected, and determining the power consumption of the target application program in unit time length according to the detected current data and voltage data and the pre-stored standby power consumption of the terminal to be detected in unit time length.
By the method and the system, the total power consumption including the power consumption consumed by heating the line when the application program runs can be obtained, so that the accuracy of detecting the power consumption of the application program can be enhanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of a method for detecting power consumption of an application according to an embodiment of the present invention;
FIG. 2 is a system block diagram for detecting power consumption of an application according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of determining power consumption per unit time according to an embodiment of the present invention;
FIG. 4 is a system block diagram for detecting power consumption of an application according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a voltage, current and power consumption variation curve according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for detecting power consumption of an application program, which is applied to a system for detecting the power consumption of the application program. The measured terminal can be a mobile phone, a tablet personal computer and the like, the management device can be a computer, the electric quantity instrument is an instrument for measuring current and voltage, the electric quantity instrument comprises a single chip microcomputer, a converter, a serial port converter, a voltage stabilizer, a relay set and other main components, wherein the single chip microcomputer is mainly used for inputting and outputting data and processing the data, an Analog and Digital (AD) converter is mainly used for converting analog signals into Digital signals, the serial port converter is mainly used for converting and transmitting the data between the computer and the electric quantity instrument, the voltage stabilizer is mainly used for providing stable voltage for the work of the electric quantity instrument, and the relay set is mainly used for controlling the opening and closing of the electric quantity instrument and can be controlled by the management device. The electric quantity appearance passes through serial ports data line transmission serial ports data with management equipment, the structure of above-mentioned system and the relation of connection of each part are as shown in fig. 2, wherein, the singlechip is connected with the battery, detect the current-voltage in the circuit, the AD converter links to each other with the singlechip, turns into digital signal with the current-voltage that detects, and the retransmission returns the singlechip, and this digital signal is handled to later singlechip to serial ports converter through the connection converts data into serial ports data, thereby transmits serial ports data to management equipment. Meanwhile, the voltage stabilizer is connected with the single chip microcomputer, power is supplied to all parts through the circuit main board, and the relay group is connected with the single chip microcomputer. In addition, the single chip microcomputer can be connected with the body of the tested terminal to form a loop. In this embodiment, a tested terminal is taken as a mobile phone, a management device is taken as a computer, and other situations are similar to the above, and are not described one by one.
The process flow shown in fig. 1 will be described in detail below with reference to specific embodiments, and the contents may be as follows:
step 101, detecting current data and voltage data of a terminal to be detected by the coulometer.
In implementation, a certain application program (namely a target application program) can be operated on the mobile phone, at the moment, the coulometer is connected between the battery and the power port of the mobile phone, the battery continuously supplies power to the mobile phone, current flows out of the positive pole of the battery and flows into the negative pole of the battery after flowing through the coulometer and the mobile phone, at the moment, the coulometer can detect the voltage of the power port of the mobile phone and the current flowing into the mobile phone through the single chip microcomputer, and then converts the detected analog signal into a digital signal through the AD converter, so that the coulometer can obtain a corresponding voltage value and a corresponding current value.
And 102, acquiring current data and voltage data detected by the coulometer by the management equipment under the condition that the target application program is operated by the terminal to be detected.
In implementation, the computer is connected with the coulometer through a serial port data line, after the coulometer detects the current value and the voltage value of the mobile phone, corresponding data can be converted into serial port data through the serial port converter, and then the current value and the voltage value can be transmitted to the computer from the serial port data line.
And 103, the management device determines the power consumption per unit time length of the target application program according to the detected current data and voltage data and the pre-stored standby power consumption per unit time length of the terminal to be detected.
In implementation, the standby power consumption of the mobile phone in a unit time length may be stored in advance in the computer, that is, the power consumed when the mobile phone is in a screen-off state without running any application program in the unit time length. After receiving the current value and the voltage value transmitted by the electric meter, the computer can determine the power consumption of the target application program in unit time according to the current data, the voltage data and the standby power consumption in unit time.
Optionally, the method for determining the power consumption per unit time duration of the target application program may specifically be as follows: and the management equipment determines the total power consumption of the terminal to be tested in unit time according to the detected current data and voltage data, and determines the difference between the total power consumption of the terminal to be tested in unit time and the pre-stored standby power consumption of the terminal to be the power consumption of the target application program in unit time.
In implementation, after receiving the current value and the voltage value detected by the electric meter, the computer may determine, according to the data, the total power consumption per unit time length of the mobile phone when the target application program is running, specifically, the total power consumption per unit time length P is the voltage value U, the current value I, and then the computer may obtain the pre-stored standby power consumption per unit time length, and may further calculate a difference between the total power consumption per unit time length and the standby power consumption per unit time length, and may determine the difference as the power consumption per unit time length of the target application program, as shown in fig. 3.
Optionally, the power consumption of the target application program per unit time duration may also be detected in the terminal to be tested, and the corresponding processing may be as follows: the measured terminal and the management device are connected through data, and the power consumption of the target application program in unit time length is detected according to a preset power consumption standard when the target application program is operated by the measured terminal.
In an implementation, a power consumption standard may be set in the mobile phone, where the power consumption standard may be embodied as that the power consumption of the application occupies B% of the resource of the component a in a unit time length is C. Therefore, when the mobile phone runs the target application program, the resource use condition of each part can be detected firstly, the corresponding power consumption is determined in the power consumption standard, and then the power consumption of each part can be added, namely the power consumption of the target application program in unit time can be detected.
Meanwhile, the terminal to be tested and the management device are connected by data, which may be a USB (Universal Serial Bus) data line, and the USB data line is used for data transmission between the terminal to be tested and the management device, wherein the coulometer may be connected in series between the terminal to be tested and the management device, and is used for blocking the management device from supplying power to the terminal to be tested through the USB data line, as shown in fig. 4.
Optionally, the computer may display the power consumption of the target application program by using a power consumption change curve, and the corresponding processing may be as follows: and the management equipment generates a power consumption change curve of the target application program according to the power consumption of the target application program detected by the detected terminal in unit time.
In implementation, after receiving the power consumption per unit time period of the target application program detected by the mobile phone, the computer may record the power consumption per unit time period in the form of a variation curve, so as to generate a power consumption variation curve of the target application program.
Optionally, the internal circuit may also consume power when the mobile phone runs the application program, and accordingly, the processing for detecting the line loss and the power consumption may be as follows: and the management equipment determines the difference value of the power consumption of the target application program detected and determined by the coulometer in the unit time and the power consumption of the target application program detected by the terminal to be detected as the line loss power consumption of the target application program.
In an implementation, the power consumption per unit time length of the target application program detected by the mobile phone is determined according to the use condition of each part, and does not include the power consumption of a data transmission line between each part and the power consumption of heating of the mobile phone, and the power consumption per unit time length of the target application program determined by the computer according to the data detected by the electric quantity instrument can be the sum of all the power consumption, so that the computer can determine the difference value of the power consumption per unit time length of the target application program detected by the electric quantity instrument and the power consumption of the target application program detected by the mobile phone as the line loss power consumption of the target application program.
Optionally, the computer may display the power consumption of the target application program by using a power consumption change curve, and the corresponding processing may be as follows: and the management equipment generates a power consumption change curve according to the current data and the voltage data detected by the coulometer.
In an implementation, the computer may determine the power consumption per unit time length of the target application according to the current data and the voltage data detected by the coulometer, and then may generate a power consumption change curve according to the power consumption per unit time length according to the time sequence to record the change of the power consumption per unit time length of the target application. Meanwhile, the computer can also generate a current change curve and a voltage change curve according to the current data and the voltage data detected by the coulometer respectively, as shown in fig. 5.
Optionally, the computer may trigger the power consumption of the electric energy meter to automatically detect the power consumption of the mobile phone at a preset time period, and the corresponding processing may be as follows: and when the time is the preset detection starting time, the management equipment controls the electric quantity meter to be started, and when the time is the preset detection ending time, the management equipment controls the electric quantity meter to be stopped.
In implementation, the user of the system for detecting power consumption of the application program may keep the system frame as shown in fig. 2 unchanged, and may set, on the computer, when the time is the preset detection start time, the relay in the electric quantity meter is controlled to be turned on, so as to trigger the electric quantity meter to detect the current data and the voltage data of the mobile phone, and when the time is the preset detection end time, the relay is controlled to be turned off, so as to trigger the electric quantity meter to stop detecting the current data and the voltage data of the mobile phone. It is conceivable that the target application is automatically run by the mobile phone by setting a preset detection start time by the computer or the mobile phone. For example, if it is necessary to detect the power consumption of a plurality of applications for 10 hours of continuous operation using the above system, it may be set that the power consumption of one application is detected at 12 o 'clock per day, then the detection is stopped at 22 o' clock per day, the power consumption of the next application is detected at 12 o 'clock next day, and then the detection is stopped at 22 o' clock next day. Thus, the power consumption of the target application program can be automatically detected without the participation of a user in operation.
In the embodiment of the invention, the coulometer detects the current data and the voltage data of the terminal to be tested, the management device acquires the current data and the voltage data detected by the coulometer under the condition that the terminal to be tested runs the target application program, and the management device determines the power consumption of the target application program in unit time length according to the detected current data and voltage data and the pre-stored standby power consumption of the terminal to be tested in unit time length. Thus, the total power consumption including the power consumed by heating the line when the application program runs can be obtained, and the accuracy of detecting the power consumption of the application program can be enhanced.
Based on the same technical concept, an embodiment of the present invention further provides a system for detecting power consumption of an application, as shown in fig. 2, the system includes a terminal to be tested, a power meter, and a management device, the terminal to be tested includes a body and a battery, wherein:
the coulometer is connected between a battery connection port of the machine body of the terminal to be tested and an output port of the battery;
the electric meter and the management equipment are connected through data;
the electric meter is used for detecting current data and voltage data of the terminal to be detected;
the management equipment is used for acquiring current data and voltage data detected by the coulometer under the condition that a target application program runs by a terminal to be detected, and determining the power consumption of the target application program in unit time length according to the detected current data and voltage data and the pre-stored standby power consumption of the terminal to be detected in unit time length.
In implementation, a target application program runs on a tested terminal, the coulometer detects current data and voltage data at a power supply port of the tested terminal and sends the current data and the voltage data to the management device, so that the management device can calculate the total power consumption of the tested terminal in unit time length for running the target application program according to the obtained current data and voltage data, and then the power consumption of the target application program in unit time length is determined by combining the prestored standby power consumption of the tested terminal in unit time length.
Optionally, the management device is configured to:
determining the total electricity consumption of the tested terminal in unit time according to the detected current data and voltage data;
and determining the difference between the total power consumption of the tested terminal in unit time and the pre-stored standby power consumption in unit time as the power consumption of the target application program in unit time.
In implementation, the management device may determine the power consumption per unit time length of the target application according to the total power consumption per unit time length of the terminal under test when the target application is running and the standby power consumption per unit time length of the terminal under test.
Optionally, the terminal to be tested establishes a data connection with the management device;
the tested terminal is further used for:
and when the target application program is operated, detecting the power consumption of the target application program in unit time according to a preset power consumption standard.
In implementation, the terminal under test can determine the power consumption of each component according to the built-in power consumption standard, so as to determine the power consumption per unit time of the target application program.
Optionally, the management device is further configured to:
and generating a power consumption change curve of the target application program according to the power consumption of the target application program in unit time, which is detected by the detected terminal.
In implementation, the management device may display the acquired power consumption amount per unit time length in a form of a power consumption amount change curve according to the passage of time.
Optionally, the management device is further configured to:
and determining the difference between the power consumption of the target application program detected and determined by the coulometer in unit time and the power consumption of the target application program detected by the terminal to be tested as the line loss power consumption of the target application program.
In implementation, the management device may sum the power consumption of the target application program determined by the data detected by the meter per unit time to the power consumption of the target application program when the terminal to be tested runs the target application program, and subtract the power consumption of the target application program detected by the terminal to be tested, so as to obtain the line loss power consumption of the terminal to be tested running the target application program.
Optionally, the management device is further configured to:
and generating a power consumption change curve according to the current data and the voltage data detected by the coulometer.
In implementation, the management device may display the acquired power consumption amount per unit time length in a form of a power consumption amount change curve according to the passage of time.
Optionally, the management device is further configured to:
and when the time is the preset detection starting time, controlling the electric quantity meter to be started, and when the time is the preset detection ending time, controlling the electric quantity meter to be stopped.
In implementation, the management device can automatically start the coulometer to detect the power consumption of the terminal to be detected in unit time at the preset detection start time and the detection end time without manual operation, so that the power consumption of the target application program can be automatically recorded for a long time.
In the embodiment of the invention, the coulometer detects the current data and the voltage data of the terminal to be tested, the management device acquires the current data and the voltage data detected by the coulometer under the condition that the terminal to be tested runs the target application program, and the management device determines the power consumption of the target application program in unit time length according to the detected current data and voltage data and the pre-stored standby power consumption of the terminal to be tested in unit time length. Thus, the total power consumption including the power consumed by heating the line when the application program runs can be obtained, and the accuracy of detecting the power consumption of the application program can be enhanced.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A method for detecting power consumption of an application program, which is applied to a system for detecting the power consumption of the application program, the system comprises a terminal to be detected, a coulometer and a management device, the terminal to be detected comprises a body and a battery, the coulometer is connected between a power supply port of the body of the terminal to be detected and an output port of the battery, the coulometer is connected with the management device through data, and the method comprises the following steps:
the coulometer detects current data and voltage data of the terminal to be tested;
the management equipment acquires current data and voltage data detected by the coulometer under the condition that a target application program is operated by a terminal to be detected;
the management equipment determines the power consumption of the target application program in unit time according to the detected current data and voltage data and the pre-stored standby power consumption of the terminal to be detected in unit time;
the method further comprises the following steps:
when the target application program is operated by the tested terminal, detecting the resource use condition of each part in the tested terminal, determining the power consumption corresponding to each part in a power consumption standard according to the resource use condition of each part, and adding the power consumption of each part to obtain the power consumption of the target application program in unit time length, wherein the power consumption standard is used for representing the power consumption of the application program occupying the resource of each part in unit time length, and the power consumption of the target application program detected by the tested terminal is the power consumption of the unit time length determined according to the use condition of each part and does not contain the power consumption consumed by a data transmission line among the parts and the power consumption consumed by heating of the tested terminal;
the management equipment determines the difference value of the power consumption of the target application program in unit time length detected and determined by the coulometer and the power consumption of the target application program in unit time length detected by the terminal to be detected as the line loss power consumption of the target application program;
the method further comprises the following steps:
when the time is preset detection starting time, the management device controls the coulometer to be started, so that the coulometer is triggered to detect current data and voltage data of the detected terminal, when the time is preset detection ending time, the management device controls the coulometer to be stopped, so that the coulometer is triggered to stop detecting the current data and the voltage data of the detected terminal, and the target application program automatically runs when the detection starting time starts.
2. The method of claim 1, wherein the management device determines the power consumption per unit time of the target application according to the detected current data and voltage data and the pre-stored standby power consumption per unit time of the terminal under test, and further comprising:
the management equipment determines the total power consumption of the tested terminal in unit time according to the detected current data and voltage data;
and the management equipment determines the difference between the total power consumption of the tested terminal in unit time and the pre-stored standby power consumption in unit time as the power consumption of the target application program in unit time.
3. The method of claim 1, wherein the terminal under test establishes a data connection with the management device, the method further comprising:
and the management equipment generates a power consumption change curve of the target application program according to the power consumption of the target application program in unit time, which is detected by the detected terminal.
4. The method of claim 1, further comprising:
and the management equipment generates a power consumption change curve according to the current data and the voltage data detected by the coulometer.
5. A system for detecting power consumption of an application, the system comprising a terminal under test, a meter, and a management device, the terminal under test comprising a body and a battery, wherein:
the coulometer is connected between a battery connection port of the machine body of the terminal to be tested and an output port of the battery;
the electric meter and the management equipment are connected through data;
the electric meter is used for detecting current data and voltage data of the terminal to be detected;
the management equipment is used for acquiring current data and voltage data detected by the coulometer under the condition that a target application program runs by a terminal to be detected, and determining the power consumption of the target application program in unit time length according to the detected current data and voltage data and the pre-stored standby power consumption of the terminal to be detected in unit time length;
the tested terminal and the management equipment establish data connection;
the tested terminal is further used for:
when the target application program is operated, detecting the resource use condition of each part in the detected terminal, determining the power consumption corresponding to each part in the power consumption standard according to the resource use condition of each part, and adding the power consumption of each part to obtain the power consumption of the target application program in unit time length;
the management device is further configured to:
determining the difference between the power consumption per unit time length of the target application program detected and determined by the coulometer and the power consumption per unit time length of the target application program detected and determined by the tested terminal as the line loss power consumption of the target application program;
when the time is preset detection starting time, the coulometer is controlled to be started, so that the coulometer is triggered to detect current data and voltage data of the detected terminal, when the time is preset detection ending time, the coulometer is controlled to be stopped, so that the coulometer is triggered to stop detecting the current data and the voltage data of the detected terminal, and the target application program automatically runs when the detection starting time starts.
6. The system of claim 5, wherein the management device is configured to:
determining the total electricity consumption of the tested terminal in unit time according to the detected current data and voltage data;
and determining the difference between the total power consumption of the tested terminal in unit time and the pre-stored standby power consumption in unit time as the power consumption of the target application program in unit time.
7. The system of claim 5, wherein the management device is further configured to:
and generating a power consumption change curve of the target application program according to the power consumption of the target application program in unit time, which is detected by the detected terminal.
8. The system of claim 5, wherein the management device is further configured to:
and generating a power consumption change curve according to the current data and the voltage data detected by the coulometer.
CN201610067262.9A 2016-01-29 2016-01-29 Method and system for detecting power consumption of application program Active CN107025161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610067262.9A CN107025161B (en) 2016-01-29 2016-01-29 Method and system for detecting power consumption of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610067262.9A CN107025161B (en) 2016-01-29 2016-01-29 Method and system for detecting power consumption of application program

Publications (2)

Publication Number Publication Date
CN107025161A CN107025161A (en) 2017-08-08
CN107025161B true CN107025161B (en) 2020-12-18

Family

ID=59523971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610067262.9A Active CN107025161B (en) 2016-01-29 2016-01-29 Method and system for detecting power consumption of application program

Country Status (1)

Country Link
CN (1) CN107025161B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601822A (en) * 2015-02-04 2015-05-06 上海斐讯数据通信技术有限公司 Power consumption calculation system and method of mobile terminal application
CN105187608A (en) * 2014-06-17 2015-12-23 腾讯科技(深圳)有限公司 Method and device obtaining power consumption of application program in mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6516049B1 (en) * 2000-06-06 2003-02-04 Ikanos Communications, Inc. Method and apparatus for insertion loss estimation in wireline communications
US7756669B2 (en) * 2008-06-18 2010-07-13 Gm Global Technology Operations, Inc. Systems and methods for estimating temperatures of power module components

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187608A (en) * 2014-06-17 2015-12-23 腾讯科技(深圳)有限公司 Method and device obtaining power consumption of application program in mobile terminal
CN104601822A (en) * 2015-02-04 2015-05-06 上海斐讯数据通信技术有限公司 Power consumption calculation system and method of mobile terminal application

Also Published As

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

Similar Documents

Publication Publication Date Title
US20200260195A1 (en) Battery life monitor system and method
US8217639B2 (en) System for supplying and receiving power, power supply device and method thereof
US10571499B2 (en) USB data pin impedance detection
US8793086B2 (en) Method and system for detecting power supply source electrical current capacity
CN108513616B (en) Battery leakage current detection method, device and circuit
EP3036598B1 (en) Power signal interface
CN110829540B (en) Load access identification method, charging control method and device
CN111478777A (en) Power over ethernet powered device auto-sustain power feature
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN110520743B (en) Test board, test system and test method of charging device
CN110687458A (en) Terminal battery electric quantity determination method and device
CN105607006A (en) Battery capacity determination method, system and terminal thereof
US10203373B1 (en) Systems and methods for using profiles to monitor generators
KR20100085208A (en) Device for detecting battery load and detecting method therefore
CN107025161B (en) Method and system for detecting power consumption of application program
CA2769143C (en) Method and system for detecting power supply source electrical current capacity
CN110970954B (en) Charging control method and device, storage medium and split type electronic equipment
CN105490319B (en) A kind of information processing method and electronic equipment
TW201608368A (en) Electronic device and detection method of power capacity
CN212063521U (en) Load access recognition device and charging device
CN201518047U (en) Carrier electric meter capable of storing and identifying load
CN115210964A (en) Foreign matter detection device and method
CN103970246B (en) Electric power controller and method for managing power supply
CN110970948A (en) Charging control method and device, storage medium and split type electronic equipment
CN111193529B (en) Data transmission method and device

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
GR01 Patent grant
GR01 Patent grant