WO2016026268A1 - 一种电量检测方法及装置、终端、存储介质 - Google Patents
一种电量检测方法及装置、终端、存储介质 Download PDFInfo
- Publication number
- WO2016026268A1 WO2016026268A1 PCT/CN2015/070993 CN2015070993W WO2016026268A1 WO 2016026268 A1 WO2016026268 A1 WO 2016026268A1 CN 2015070993 W CN2015070993 W CN 2015070993W WO 2016026268 A1 WO2016026268 A1 WO 2016026268A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- information
- power
- consumed
- power consumption
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02H—EMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
- H02H7/00—Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions
- H02H7/26—Sectionalised protection of cable or line systems, e.g. for disconnecting a section on which a short-circuit, earth fault, or arc discharge has occured
- H02H7/261—Sectionalised protection of cable or line systems, e.g. for disconnecting a section on which a short-circuit, earth fault, or arc discharge has occured involving signal transmission between at least two stations
- H02H7/262—Sectionalised protection of cable or line systems, e.g. for disconnecting a section on which a short-circuit, earth fault, or arc discharge has occured involving signal transmission between at least two stations involving transmissions of switching or blocking orders
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60Q—ARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
- B60Q11/00—Arrangement of monitoring devices for devices provided for in groups B60Q1/00 - B60Q9/00
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R22/00—Arrangements for measuring time integral of electric power or current, e.g. electricity meters
- G01R22/06—Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
- G01R22/10—Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods using digital techniques
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/382—Arrangements for monitoring battery or accumulator variables, e.g. SoC
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3212—Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring 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/3062—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B13/00—Burglar, theft or intruder alarms
- G08B13/18—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength
- G08B13/189—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems
- G08B13/194—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems
- G08B13/196—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems using television cameras
- G08B13/19634—Electrical details of the system, e.g. component blocks for carrying out specific functions
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02H—EMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
- H02H3/00—Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
- H02H3/38—Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to both voltage and current; responsive to phase angle between voltage and current
- H02H3/382—Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to both voltage and current; responsive to phase angle between voltage and current involving phase comparison between current and voltage or between values derived from current and voltage
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02H—EMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
- H02H7/00—Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions
- H02H7/08—Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions for dynamo-electric motors
- H02H7/0833—Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions for dynamo-electric motors for electric motors with control arrangements
- H02H7/0844—Fail safe control, e.g. by comparing control signal and controlled current, isolating motor on commutation error
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
- H04W52/0254—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R22/00—Arrangements for measuring time integral of electric power or current, e.g. electricity meters
- G01R22/06—Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present invention relates to electronic technologies, and in particular, to a power detecting method and device, a terminal, and a storage medium.
- the terminal With the development of technology, people's lives are increasingly dependent on technology, especially the rapid development of mobile terminals, meeting the needs of people using electrical appliances on the move, and portable devices are becoming more and more popular. As the speed and performance of the processor increase, the applications installed on the terminal are also more and more abundant. Therefore, in addition to the traditional wireless communication, the terminal generally implements audio, video, network, game, reading and other functions, and some terminals even Adding peripherals such as various sensors and large screens to achieve richer functions; however, these newly added functions not only greatly enrich the application and functions of the terminal, but also bring a big problem is the consumption of electric energy. The increase in the number of times directly leads to a reduction in standby time and even affects the function of the communication master.
- the embodiment of the present invention provides a method and device for detecting a power quantity, a terminal, and a storage medium, which can accurately determine the power usage of each function device during operation.
- an embodiment of the present invention provides a power detection method, where the method includes:
- the power consumption parameter consumed by the application during operation is output as the power consumption indicator of the application at runtime.
- an embodiment of the present invention provides a terminal, where the terminal includes a first acquiring unit, a second acquiring unit, a first determining unit, and a first output unit, where:
- the first obtaining unit is configured to acquire ID information of each functional device invoked by the application according to the identifier ID information of the application;
- the second obtaining unit is configured to correspondingly acquire, according to ID information of each functional device invoked by the application, a power consumption parameter consumed by each functional device when it is called;
- the first determining unit is configured to determine, according to the power consumption parameter consumed by each functional device, a power consumption parameter consumed by the application during operation;
- the first output unit is configured to calculate a power consumption parameter consumed by the application during operation The power consumption indicator output for the application at runtime.
- an embodiment of the present invention provides a battery detecting device, including: a power supply device, a power management circuit, N power supplies, N functional devices, N power collectors, a baseband processing chip, and a memory. Wherein N is an integer greater than one;
- the battery is shunted by the power management circuit to form N power sources having different voltages;
- the N functional devices connect the N power sources through N lines according to respective required voltages in a one-to-one correspondence
- a power collector is disposed on each of the N functional devices and the N power sources;
- Each of the power collectors transmits the collected power value to the baseband processing chip, and the baseband processing chip stores the power value consumed by each functional device in the memory.
- an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used in the power detecting method provided by the first aspect.
- the method and device for detecting a power quantity, the terminal, and the storage medium provided by the embodiment of the present invention, wherein the ID information of each function device invoked by the application is acquired according to the identifier ID information of the application; and each function called according to the application is obtained.
- the ID information of the device correspondingly obtaining the power consumption parameter consumed by each functional device when being called; determining the power consumption parameter consumed by the application during operation according to the power consumption parameter consumed by each functional device;
- the power consumption parameter consumed by the application during operation is output as the power consumption indicator of the application during operation; thus, the power usage of each functional device of the application during operation can be accurately determined.
- FIG. 1 is a schematic structural diagram of a power detecting device according to an embodiment of the present invention.
- 2-1 is a schematic flowchart 1 of an implementation process of a method for measuring electric quantity of electricity according to a second embodiment of the present invention
- FIG. 3 is a schematic flowchart of implementing a form in a third embodiment of the present invention.
- FIG. 4 is a schematic flowchart 1 of an implementation process of a four-electricity detecting method according to an embodiment of the present invention
- FIG. 5 is a second schematic diagram of an implementation process of a four-electricity detecting method according to an embodiment of the present invention.
- FIG. 6 is a schematic flowchart 3 of an implementation process of a four-electricity detecting method according to an embodiment of the present invention.
- FIG. 7 is a schematic diagram 4 of an implementation flow of a method for detecting a power amount according to an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of a terminal of a fifth embodiment of the present invention.
- the embodiment of the present invention first provides a power detecting device, which is used in a terminal, and the terminal includes a terminal device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, and a personal digital assistant.
- a terminal device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, and a personal digital assistant.
- one or more batteries are used to supply power to various components in the terminal.
- the mobile terminal can be powered by a DC power source in addition to battery power, and the battery or DC power source can be referred to as a power supply device of the terminal.
- the battery or DC power source can be referred to as a power supply device of the terminal.
- PMIC power management integrated circuit
- the power management circuit is also called a power management unit or Power management management chip (PMU, Power Management Union), power management chip in the electronic terminal equipment to take responsibility for the transformation, distribution, detection and other power management of electrical energy.
- PMU Power Management Management chip
- the working voltage of the chip includes 5V, 3.3V, 2.5V, 1.8V, or even lower.
- many terminals also need a power supply higher than the supply voltage, such as a backlight power supply for driving a liquid crystal display in a battery-powered device, and an ordinary white LED driver, etc., all of which require boosting the system power supply.
- the above different voltage power sources can be realized by the power management chip.
- the power detecting device includes: a power supply device and a power management circuit (not shown in FIG. 1), (N+1) power supplies, M functional devices, N power collecting devices, a baseband processing chip 30, and a memory 50, wherein , N is an integer greater than 1, and the M is an integer less than or equal to N and greater than or equal to 1;
- the power supply device is branched by the power management circuit to form N power sources 10 to 1N having different voltages; wherein the baseband processing chip 30 passes through a line power source 10 according to its own voltage requirement, and the N functional devices 31 to 3N
- the N power sources 11 to 1N are connected by N lines in a one-to-one correspondence according to the respective required voltages, and each line between the N functional devices 31 to 3N and the N power sources 11 to 1N a power collector is disposed on the line; and the power collector 20 is distributed on the line between the power source 10 and the baseband processing chip 30; the power collectors 20 to 2N transmit the collected power value to the baseband processing chip 30,
- the baseband processing chip 30 stores the amount of power consumed by each functional device in the memory 50.
- a power collecting device is disposed between the power source and the function device, and the baseband processing chip can also be regarded as a kind of functional device.
- the baseband processing chip is separately listed as a special functional device. .
- the power collecting device collects the power supplied by the power supply to the corresponding functional device; the power connection is connected to the power collecting device to obtain the power consumed and/or charged; the baseband processing chip is used to read and process the power data collected by the power collecting device, and The processed power data is stored in the memory.
- the power supply device of the terminal may be a device such as a switching power supply or a low-dropout linear regulator that can supply voltage and current necessary for the functional device.
- a functional device is a hardware component that a terminal needs, such as a display device, an input device, a camera, a motherboard, and a control device, which require a power source to operate.
- the power collection device can obtain the power usage of the power supply and is controlled by the baseband processing chip, and the data collected by the power collection device can be read by the baseband processing chip.
- the memory can be a variety of data storage devices that are not easily lost, including nandflash, norflash, TF cards, and network storage.
- the power collecting devices 20 to 2N can be implemented using sensors.
- the power detecting device may further include an application control chip 40,
- the control chip performs corresponding analysis processing according to the data processed by the baseband processing chip and controls the applications 41 to 4M, and the application control chip can acquire the unique identification information of the application 41 to 4M and can control the operation and shutdown of the application.
- the unique identification information may be the name or identification (ID) information of the application, and one application may use one to several functional devices at the same time.
- the camera application calls the display device in addition to calling the camera at runtime to display the captured image to the user. Therefore, when the camera application is running, the display device and the camera in the function device are called to consume the terminal.
- the power consumed by the camera application during operation can be calculated by the power consumed by the function device called by the camera application. Specifically, the power consumed by the camera application during operation is equal to that of the camera application.
- the baseband processing chip and the application control chip can acquire data and send information to each other, and the baseband processing chip and the application control chip can be the same processing chip or two processing chips.
- the baseband processing chip may be a processing chip in the terminal, such as an application processor.
- the solid line connecting line and the dotted line connecting line have different meanings.
- the solid line connecting line is an interconnection between hardware, and the dotted line connecting line is for embodying a calling relationship, and the software application 41 To 4M, the function device is connected by a dotted line, that is, when the application is running, the operating system needs to call the responding function device to complete the function of the application.
- the embodiment of the present invention provides a power detecting method, which specifically describes how the baseband processing chip and the application control chip in the first embodiment analyze and process the power data collected by the power collecting device. And how to use these power data.
- 2-1 is a schematic flowchart 1 of an implementation process of a method for measuring electrical quantity of electricity according to an embodiment of the present invention. As shown in FIG. 2-1, the method includes:
- Step 201 Obtain ID information of each functional device invoked by the application according to the ID information of the application;
- the application includes any software application installed on the terminal. It should be noted that, in the embodiment of the present invention, the application mainly refers to starting the functional device to consume power during operation, based on the understanding, on the terminal.
- the installed operating system can also start the function device to consume power, so in a sense, the operating system installed on the terminal can also be regarded as the application described in step 201.
- the functional device includes a device such as a display device, an input device, a main board, and a control device that require a power source to operate.
- Step 202 Correspondingly acquire, according to ID information of each function device invoked by the application, a power consumption parameter consumed by each functional device when invoked;
- the power consumption parameter includes information such as the lowest current, the highest current, the average current, and the voltage, wherein the average current can be used as the most important parameter among the power consumption parameters; and the other power consumption parameter is also involved in the embodiment of the present invention.
- the closely related parameter is the amount of electricity, where the amount of electricity is mainly the amount of electricity in the battery.
- the battery's power can be measured in terms of Ah (Ah) or milliampere (mAh).
- a 1800 mAh battery means that the average current is 18 mA as the discharge current, and the discharge can be continued for 100 hours.
- the unit of the electric quantity may be an hour or a milliampere hour or the like.
- Step 203 Determine, according to a power consumption parameter consumed by each functional device, a power consumption parameter consumed by the application during operation;
- the application calls the function device at runtime and consumes the power of the terminal, so it can be obtained.
- Step 204 The power consumption parameter consumed by the application during operation is output as the power consumption indicator of the application at runtime.
- Step 202 when the power consumption parameter is an average current, as shown in FIG. 2-2, the step is Step 202 includes:
- Step 2021 Obtain a called time period of each function device according to ID information of each function device that is invoked by the application;
- the application opens the corresponding function device at runtime, and the ID information of each function device called by the application can be obtained from the opened interface.
- the application 41 calls the function devices 31 and 32, and the application 42 calls the function devices 32 and 3N, wherein the time period during which the application 41 calls the function device 31 is t4131.
- Step 2022 Acquire, according to the ID information of each function device that is invoked by the application, the value of the power consumed by each functional device during the called period;
- the power function consumed by the called function device 31 during the time period t4131 is P4131
- the power value consumed by the called function device 32 during the time period t4132 is P4132
- the power value consumed by the called function device 3N during the time period t423N is P423N;
- Step 2023 determining an average current consumed by each functional device when called according to the called time period of each functional device and the power value corresponding to the called time period.
- the average current consumed by each functional device when it is called is determined due to the calling period of the functional device and the power consumption value of the functional device during the response period;
- the average current I4131 consumed by the function device 31 when the application 41 calls the function device 31 the consumed power value is P4131 ⁇ time period t4131;
- the average consumed by the function device 32 when the application 41 calls the function device 32 Current I4132 the amount of electricity consumed is P4132 ⁇ time period t4132;
- the step 2021 includes:
- Step B11 Acquire, according to the ID information of each function device that is invoked by the application, a start time of the application to call each function device, and a corresponding end time;
- Step B12 Determine, according to the start time of each function device and the corresponding end time, the called time period of each functional device;
- the application invokes a difference between a start time of each functional device and a corresponding end time as a called time period of each functional device;
- step 2022 includes:
- Step B1 According to the ID information of each function device that is invoked by the application, acquire the first power consumed by each functional device when the application starts to call each functional device, and correspondingly acquire and end each functional device. The second amount of power consumed by each functional device;
- Step B2 For each functional device, the difference between the second power quantity and the first power quantity is used as a power consumption value consumed by each function device invoked by the application.
- the application 41 is taken as an example. It is assumed that the first power consumed by the function device 31 when the application 41 starts to call the function device 31 is P4131-s, and the application 41 ends the calling of the function device 32. The second power consumed by the function device 32 is P4131-e, and the difference between P4131-e and P4131-s is the P4131 consumed by the function device 31 when the application 41 calls the function device 31;
- the called time period in the embodiment of the present invention may also be implemented by using a preset time period, for example, the preset time period is 15 seconds (s), then only the start time of the application calling function device and the start time are required to be acquired.
- the first power consumed by the functional device, and then after 15 seconds, acquiring the second power consumed by the functional device, and then using the difference between the second power and the first power as each of the applications invoked by the application The amount of power consumed by the functional device.
- the embodiment of the invention provides a method for determining the power consumption parameter of the application when the application is running.
- the average current consumed by an application yy1 during operation can be determined by the following steps:
- Step S21 acquiring the start time (ta1, ta2, %) to which each functional device (a1, a2, ...) is called, and acquiring the amount of power consumed by each functional device (a1, a2, %) at respective start times (Ca1) , Ca2...);
- the function device a1 when an application yy1 is running, the function device a1 is called by the application, the start time of the function device a1 is ta1, and the power consumed by the function device a1 is 301 at ta1; it should be noted that the function device a1
- the amount of electricity Ca1 consumed before is probably not consumed by the application yy1. Therefore, when calculating the amount of power consumed by yy1, it is necessary to subtract the amount of power consumed by other applications.
- Step S22 after a predetermined period of time, acquire an end time (tb1, tb2%) that ends the calling of each functional device (a1, a2, ...) within a predetermined time, and acquire each functional device (a1, a2, 7) in each The amount of electricity consumed in the end time (Cb1, Cb2...);
- Step S23 calculating the respective power consumptions (C1, C2, %) of the respective functional devices (a1, a2, 7) for a predetermined period of time, and determining the average currents corresponding to the respective functional devices according to (C1, C2, %) (Ia1, Ia2) ...);
- the function device a1 is taken as an example to describe the average current Ia1 consumed by the function device a1 when the application yy1 is called, and the calculation formula (12) is as follows:
- the average current Ia2 consumed by the function device a2 is (Cb2 - Ca2) ⁇ (tb2 - ta2); similarly, the application yy1 can be calculated.
- Step S24 the sum of the average currents consumed by the application of all the called functional devices is the average current Iyy1 consumed by the application during operation;
- the average current Iyy1 consumed by the application at runtime is determined.
- the method further includes: forming a list of at least the ID information of the application and the power consumption parameter corresponding to the application, wherein the power consumption parameter includes at least an average current;
- the step 202 includes: querying the list according to ID information of each functional device invoked by the application, and obtaining a power consumption parameter consumed by each functional device when called.
- the forming a list of at least the ID information of the application and the power consumption parameter corresponding to the application includes:
- Step A11 After the terminal is powered on, obtain ID information of the running application.
- the application 41 and the application 42 are run on the terminal, and the ID information of the application 41 and the application 42 is acquired; wherein the numbers 41 and 42 can be used as the ID information of the application.
- Step A12 According to the identifier ID information of the running application, correspondingly obtain ID information of each functional device invoked by each running application;
- step A11 the example in step A11 is continued, assuming that the application 41 calls the function devices 31 and 32, and the application 42 calls the function devices 32 and 3N, wherein 31, 32 and 3N can be used as the ID information of the function device.
- Step A13 For each running application, acquire power consumption parameters of each functional device invoked by each running application, according to power consumption parameters of each functional device when invoked, and corresponding The ID information of the application and the ID information of the function device form a list.
- step A12 first taking the application 41 as an example, the power consumption parameter when the application 41 calls the function device 31 is H4131, and the power consumption parameter when the application 41 calls the function device 32 is H4132; For example, when the application 42 calls the function device 32, the power consumption parameter is H4232, and when the application 42 calls the function device 3N, the power consumption parameter is H423N; then the final formed list can be seen in Table 1.
- the power consumption parameter consumed by each functional device when being called and the ID information of the corresponding application and the ID information of the functional device form a list, including:
- the power consumption parameter of the list application is used; if not, the ID information of the new application, the ID information of the function device called by the newly added application, and the power consumption parameter corresponding to each function device are added to the list.
- FIG. 3 is a schematic diagram of a process for forming a list according to Embodiment 3 of the present invention. As shown in FIG. 3, the process includes:
- Step 301 the process begins
- Step 302 Run a main control thread to obtain ID information sent when the application starts.
- Step 303 in the process of initializing the main control thread, searching for the ID information of the application in the list;
- Step 304 If the ID information of the application is searched, the power data in the list is updated to the newly collected power data.
- more than three sets of power data can be saved, and the average of the three sets of data is used as the final reference data to ensure that the data is more accurate.
- Step 305 if the ID information of the application is not found, adding the ID information of the application to the list, and the power consumption parameter consumed by the function device invoked by the application;
- Step 306 Perform subsequent processing based on the usage of the power consumption of the application during operation.
- step 307 the process ends.
- the technical solution provided by the foregoing embodiment of the present invention can be implemented by using a computer program, which is embodied as a master thread during operation, and specifically, the terminal runs after being powered on.
- the power consumption parameter in the list stored in the storage unit is read into the memory, and the power consumption parameter is also in the form of a list in the memory;
- the data is the power consumption parameter of all the running applications in recent times, for For each application, it also includes the power consumption parameters of each functional device;
- the terminal runs a main control thread, and the main control thread continuously acquires the data collected by each power collection device, and obtains the ID information sent when the application starts, and the main control thread searches the memory list.
- the identification information if any, replaces the newly collected power usage with the oldest one, and keeps several sets of data all recent. If the ID information is not found, a new application information is added to the list, and when the list is refreshed Simultaneously saving to the storage unit; based on the collected power consumption parameters and application running conditions, the application developer can develop various applications and applications for controlling the application, and of course, can also provide an application that will embody the technical solutions of the embodiments of the present invention.
- the interface is provided to third-party developers for greater value.
- an embodiment of the present invention provides a power detecting method.
- a maximum output current in a terminal is limited, and an application operation invokes multiple functional devices, and the maximum current exceeds when the application is running.
- the preset current threshold provides basic information to the developer or user of the application and provides an alert to the user to instantly shut down the application.
- the maximum current of the application running time can be determined by using the maximum current consumed by each functional device invoked by the application.
- the specific implementation process is shown in FIG. 4, and the process includes steps 201 to 204 in FIG. The steps are not described here for saving space; after step 204, the process further includes:
- Step 401 Correspondingly obtain a maximum current value when each functional device is invoked according to ID information of each function device invoked by the application;
- Step 402 Determine, according to a maximum current value consumed by each functional device, a maximum current value consumed by the application during operation;
- the sum of the maximum current values consumed by each functional device can be used as the application The maximum current value consumed during the line.
- Step 403 determining that the maximum current value consumed by the application during operation is greater than a preset current threshold, and issuing a first alarm message
- the first alarm message is used to indicate that the maximum current consumed by the application during operation is greater than a preset current threshold, which may be dangerous.
- the power information of each functional device invoked by the application may be obtained, and the power consumption parameter of the application may be determined according to the power information of each functional device, and the power consumption parameter of the application may be The ratio, ranking analysis, etc. are displayed to the user or uploaded to the server for use by the developer or application provider.
- the specific implementation process is as shown in FIG. 5, and the process includes the steps shown in step 201 to step 204 in FIG. 2. To save space, no further details are provided herein. After the step 204, the process further includes:
- Step 501 Obtain ID information of an application that has been run, and a corresponding average current.
- Step 502 Sort the total average current consumed by the running application in operation to obtain a sorting result, where the sorting result at least includes the ID information of the application and the corresponding average current;
- step 503 the sort result is output to the user or uploaded to the server.
- the power consumption of each functional device invoked by the application may be collected and counted, thereby calculating the remaining power value of the battery in the terminal, and of course, according to the current power consumption.
- the situation determines the time that the terminal can support.
- the specific implementation process is as shown in FIG. 6.
- the process includes the steps shown in step 201 to step 204 in FIG. 2. To save space, no further details are provided herein. After the step 204, the process further includes:
- Step 601 Acquire a remaining power value of the battery in the terminal.
- Step 602 Obtain ID information of the running application, and correspondingly acquire, according to the ID information of the running application, an average current consumed by each running application during operation;
- Step 603 Determine a total average current of the running application according to an average current consumed by each running application during operation;
- Step 604 Determine, according to the remaining power value and the total average current, a time that the terminal can support;
- the remaining power value may be divided by the total average current, and the time value is obtained, which is the time that the terminal can support.
- Step 605 The time that the terminal can support is carried in the prompt message and displayed to the user.
- the step 601 includes:
- Step 6011 Obtain a current value of power consumed by each functional device of each functional device, and determine, according to the current consumed power of each functional device, a power consumption value of the battery in the mobile terminal;
- Step 6012 obtaining a rated power value of the battery in the terminal
- Step 6013 Determine a remaining power value of the battery according to the rated power amount and a power value consumed by the battery.
- the difference between the rated power amount and the power value consumed by the battery may be mentioned as the remaining power value of the battery.
- the amount of power that needs to be consumed for a certain period of time can be calculated, and the running time of the application can be determined according to the remaining power of the terminal.
- I don't want the application to run for too short a time so I can set a runtime threshold.
- This runtime threshold can be set by the user, or it can be set by the user.
- the warning will exit or not run.
- the specific implementation process is as shown in FIG. 7. The process includes the steps shown in step 201 to step 204 in FIG. 2. To save space, no further details are provided herein. After the step 204, the process further includes:
- Step 701 Obtain ID information of a running application according to the running application.
- the ID information correspondingly acquires an average current consumed by each of the running applications during operation;
- Step 702 For each of the running applications, obtain a corresponding running time threshold, and determine, according to a time threshold of each running application and an average current corresponding thereto, a number of each of the running applications. Three power
- Step 703 Determine, according to a third power of each running application, a total third power of the running application.
- Step 704 When it is determined that the total third power is greater than the remaining power value of the battery, issue a second warning, where the second warning is used to indicate that the applied application is excessive.
- an application is run by the terminal.
- the power consumed by the current functional devices 31 to 3N C31, C32, ..., C3N
- the battery in the terminal has been
- the power consumption parameter of the application 41 in the memory list is obtained.
- the average current of the application 41 is I41_1, I41_2, and I41_3, and the average current that can be referenced by the application is:
- I41 (I41_1+I41_2+I41_3) ⁇ 3 (22);
- the minimum amount of power Cthre that the application 41 needs during the running T period can be calculated as:
- FIG. 8 is a structural structure of a terminal according to Embodiment 5 of the present invention.
- the terminal includes a first obtaining unit 801, a second obtaining unit 802, a first determining unit 803, and a first output unit 804, where:
- the first obtaining unit 801 is configured to acquire ID information of each functional device invoked by the application according to the identifier ID information of the application;
- the second obtaining unit 802 is configured to correspondingly acquire, according to ID information of each functional device invoked by the application, a power consumption parameter consumed by each functional device when it is called;
- the first determining unit 803 is configured to determine, according to the power consumption parameter consumed by each functional device, a power consumption parameter consumed by the application during operation;
- the first output unit 804 is configured to output the power consumption parameter consumed by the application during operation as the power consumption indicator of the application during operation.
- the first determining unit when the power consumption parameter is an average current, includes a first acquiring module and a first determining module, where:
- the first obtaining module is configured to acquire, according to the ID information of each function device that is invoked by the application, a called time period of each function device, and a power value corresponding to the called time period;
- the first determining module is configured to determine an average current consumed by each functional device when called according to a called time period of each functional device and a power value corresponding to the called time period.
- the first acquiring module includes a first acquiring submodule, a first determining submodule, a second obtaining submodule, and a second determining submodule, where:
- the first obtaining sub-module is configured to acquire, according to the ID information of each functional device that is invoked by the application, a start time of the application to call each functional device, and a corresponding end time;
- the first determining submodule is configured to determine a called time period of each functional device according to a start time of each function device and a corresponding end time of the application;
- the second obtaining sub-module is configured to acquire, according to ID information of each functional device that is invoked by the application, a first power amount consumed by each functional device when the application starts to call each functional device, and correspondingly Obtaining a second amount of power consumed by each functional device when the end of each function device is called;
- the second determining submodule is configured to determine, for each functional device, a power value consumed by each functional device invoked by the application according to the second power amount and the first power amount.
- the terminal further includes a third obtaining unit, a second determining unit, and a first sending unit, where:
- the third obtaining unit is configured to correspondingly acquire a maximum current value when each functional device is invoked according to the ID information of each functional device that is invoked by the application;
- the second determining unit is configured to determine, according to a maximum current value consumed by each functional device, a maximum current value consumed by the application during operation;
- the first sending unit is configured to issue a first alarm message when the maximum current value consumed by the application during operation is greater than a preset current threshold, where the first alarm message is used to prompt the application It is dangerous to use the maximum current consumed during operation that is greater than the preset current threshold.
- the terminal further includes a forming unit configured to form a list of at least an ID information of the application and a power consumption parameter corresponding to the application, where the power consumption parameter includes at least an average current;
- the second obtaining unit is configured to query the list according to the ID information of each functional device invoked by the application, and obtain a power consumption parameter consumed by each functional device when it is called.
- the forming unit when the power consumption parameter is an average current, includes a second acquiring module, a third acquiring module, a fourth acquiring module, and a forming module, where:
- the second obtaining module is configured to acquire ID information of the running application after the terminal is powered on each time;
- the third obtaining module is configured to acquire ID information of each functional device called by each running application according to the identifier ID information of the running application;
- the fourth obtaining module is configured to acquire, for each running application, a power consumption parameter of each functional device that is invoked by each running application;
- the forming module is configured to form a list according to the power consumption parameter of each functional device when invoked, and the ID information of the corresponding application and the ID information of the functional device.
- the forming module includes a determining submodule, an adding submodule, and an updating submodule, where:
- the determining sub-module is configured to determine whether the identifier ID information of the running application is included in the list, and if yes, triggering the update sub-module; if not, triggering the adding sub-module;
- the update submodule is configured to update a power consumption parameter of the list application
- the adding sub-module is configured to add ID information of the new application, ID information of the function device called by the newly added application, and power consumption parameters corresponding to each functional device.
- the terminal further includes a fourth acquiring unit, a sorting unit, and a processing unit, where:
- the fourth obtaining unit is configured to acquire ID information of an application that has been run, and a corresponding average current
- the sorting unit is configured to sort the total average current consumed by the running application at runtime to obtain a sorting result, where the sorting result includes at least an ID information of the application and a corresponding average current;
- the processing unit is configured to output the sort result to a user or upload to a server.
- the terminal further includes a fifth obtaining unit, a sixth obtaining unit, a third determining unit, a fourth determining unit, and a display unit, where:
- the fifth obtaining unit is configured to acquire a remaining power value of the battery in the terminal
- the sixth obtaining unit is configured to acquire ID information of the running application, and correspondingly acquire an average current consumed by each running application according to the ID information of the running application;
- the third determining unit is configured to determine a total average current of the running application according to an average current consumed by each running application during operation;
- the fourth determining unit is configured to determine, according to the remaining power value and the total average current, a time that the terminal can support;
- the display unit is configured to carry the time that the terminal can support in the prompt message and display it to the user.
- the fifth obtaining unit includes a fifth obtaining module, a sixth obtaining module, and a third determining module, where:
- the fifth obtaining module is configured to obtain a current value of the power consumed by each of the functional devices, and determine a power consumption value of the battery in the mobile terminal according to the current power consumption of each functional device;
- the sixth obtaining module is configured to acquire a rated power value of the battery in the terminal;
- the third determining module is configured to determine a remaining power value of the battery according to the rated power and a power value consumed by the battery.
- the terminal further includes a seventh acquiring unit, a fifth determining unit, a sixth determining unit, and a second sending unit, where:
- the seventh obtaining unit is configured to acquire ID information of the running application, and correspondingly acquire an average current consumed by each running application according to the ID information of the running application;
- the fifth determining unit is configured to acquire a corresponding running time threshold for each of the running applications, and determine each of the foregoing according to a time threshold of each of the running applications and an average current corresponding thereto The third amount of power of the running app;
- the sixth determining unit is configured to determine a total third power of the running application according to a third power of each of the running applications;
- the second unit is configured to issue a second warning when the total third power is greater than the remaining power value of the battery, and the second warning is used to indicate that the applied application is excessive.
- Each of the modules included in each unit can be implemented by a processor in the mobile terminal; of course, it can also be implemented by a specific logic circuit; in the process of the specific embodiment, the processor can be a central processing unit (CPU), micro Processor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA).
- CPU central processing unit
- MPU micro Processor
- DSP digital signal processor
- FPGA field programmable gate array
- the above-described power detecting method is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer readable storage medium.
- the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
- a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
- program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
- an embodiment of the present invention further provides a computer storage medium, where the computer stores Computer executable instructions are stored in the medium for performing the power detection method provided in various embodiments of the present invention.
- the disclosed apparatus and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
- the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
- the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units; they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
- the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
- the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a removable storage device, a read only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes.
- ROM read only memory
- the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function device and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention is made substantially or prior to the prior art.
- the contributed portion may be embodied in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the various aspects of the present invention. All or part of the methods described in the examples.
- the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a magnetic disk, or an optical disk.
- the method includes: acquiring ID information of each function device invoked by the application according to the identifier ID information of the application; and acquiring correspondingly according to ID information of each function device invoked by the application a power consumption parameter consumed by each functional device when it is called; determining, according to the power consumption parameter consumed by each functional device, a power consumption parameter consumed by the application during operation; and consuming the application during operation
- the power consumption parameter is used as the power consumption indicator output of the application during operation; thus, the power usage of each functional device in the application can be accurately determined.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Tourism & Hospitality (AREA)
- Signal Processing (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- General Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Power Engineering (AREA)
- Mechanical Engineering (AREA)
- Power Sources (AREA)
- Telephone Function (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
Claims (19)
- 一种电量检测方法,所述方法包括:根据应用的标识ID信息,获取所述应用所调用的各功能设备的ID信息;根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;将所述应用在运行时所消耗的耗电参数作为所述应用在运行时耗电指标输出。
- 根据权利要求1所述的方法,其中,所述耗电参数为平均电流时,所述根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数,包括:根据所述应用所调用的每一功能设备的ID信息,获取每一功能设备的被调用时段,以及与被调用时段相对应地的电量值;根据每一功能设备的被调用时段以及与被调用时段相对应地的电量值,确定每一功能设备在被调用时所消耗的平均电流。
- 根据权利要求2所述的方法,其中,所述根据所述应用所调用的每一功能设备的ID信息,获取每一功能设备的被调用时段,包括:根据所述应用所调用的每一功能设备的ID信息,获取所述应用调用每一功能设备的开始时间、以及对应的结束时间;根据所述应用调用每一功能设备的开始时间以及对应的结束时间,确定每一功能设备的被调用时段;对应地,获取与所述时段相对应地的电量值,包括:根据所述应用所调用的每一功能设备的ID信息,获取所述应用开始调用每一功能设备时每一功能设备所消耗的第一电量、以及对应地获取结束调用每一功能设备时每一功能设备所消耗的第二电量;对于每一功能设备,将所述第二电量与所述第一电量之差作为所述应用所调用的每一功能设备所消耗的电量值。
- 根据权利要求1所述的方法,其中,所述方法还包括:根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备被调用时的最大电流值;根据各功能设备所消耗的最大电流值,确定所述应用在运行时所消耗的最大电流值;判断所述应用在运行时所消耗的最大电流值大于预设的电流门限值时,发出第一报警消息,所述第一报警消息用于提示所述应用在运行时所消耗的最大电流大于预设电流门限值会带来危险。
- 根据权利要求1所述的方法,其中,所述方法还包括:形成至少包括应用的ID信息以及与应用对应的耗电参数的列表,其中所述耗电参数至少包括平均电流;对应地,所述根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数,包括:根据所述应用所调用的每一功能设备的ID信息查询所述列表,获得每一功能设备在被调用时所消耗的耗电参数。
- 根据权利要求5所述的方法,其中,当所述耗电参数为平均电流时,所述形成至少包括应用的ID信息以及与应用对应的耗电参数的列表,包括:在终端每次开机后,获取正在运行的应用的ID信息;根据正在运行的应用的标识ID信息,对应的获取每一正在运行的应用所调用的各功能设备的ID信息;针对于每一正在运行的应用,获取所述每一正在运行的应用所调用的每一功能设备的耗电参数,根据每一功能设备在被调用时的耗电参数、以及对应的应用的ID信息和功能设备的ID信息形成列表。
- 根据权利要求6所述的方法,其中,所述根据每一功能设备在被调用时所消耗的耗电参数、以及对应的应用的ID信息和功能设备的ID信息形成列表,包括:判断正在运行的应用的标识ID信息是否包括在列表中,是时,更新所述列表应用的耗电参数;否时,在列表中增加新的应用的ID信息、以及所述新增加的应用所调用的功能设备的ID信息以及各功能设备对应的耗电参数。
- 根据权利要求1至7任一项所述的方法,其中,所述方法还包括:获取已经运行过的应用的ID信息、以及对应的平均电流;将所述已经运行过的应用在运行时所消耗的总平均电流进行排序,得到排序结果,所述排序结果至少包括应用的ID信息以及对应的平均电流;将所述排序结果输出给用户或者上传至服务器。
- 根据权利要求1至7任一项所述的方法,其中,所述方法还包括:获取终端中电池的剩余电量值;获取正在运行的应用的ID信息,根据所述正在运行的应用的ID信息对应地获取各所述正在运行的应用在运行时所消耗的平均电流;根据各所述正在运行的应用在运行时所消耗的平均电流,确定所述正在运行的应用的总平均电流;根据所述剩余电量值与所述总平均电流,确定所述终端能够支撑的时间;将所述终端能够支撑的时间携带于提示消息中,显示给用户。
- 根据权利要求9所述的方法,其中,所述获取终端中电池的剩余 电量值,包括:获取所有功能设备中每一功能设备当前所消耗的电量值,根据所述每一功能设备当前所消耗的电量确定移动终端中电池被消耗掉的电量值;获取终端中电池的额定电量值;根据所述额定电量和所述电池被消耗掉的电量值,确定所述电池的剩余电量值。
- 根据权利要求9所述的方法,其中,所述方法还包括:获取正在运行的应用的ID信息,根据所述正在运行的应用的ID信息对应地获取各所述正在运行的应用在运行时所消耗的平均电流;针对每一所述正在运行的应用,获取对应的运行时间门限,并根据每一所述正在运行的应用的时间门限与其对应的平均电流,确定每一所述正在运行的应用的第三电量;根据每一所述正在运行的应用的第三电量,确定所述正在运行的应用的总的第三电量;判断所述总的第三电量大于所述电池的剩余电量值时,发出第二警告,所述第二警告用于表明所运行的应用过多。
- 一种终端,所述终端包括第一获取单元、第二获取单元、第一确定单元和第一输出单元,其中:所述第一获取单元,配置为根据应用的标识ID信息,获取所述应用所调用的各功能设备的ID信息;所述第二获取单元,配置为根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;所述第一确定单元,配置为根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;所述第一输出单元,配置为将所述应用在运行时所消耗的耗电参数作 为所述应用在运行时耗电指标输出。
- 根据权利要求12所述的终端,其中,所述终端还包括第三获取单元、第二确定单元和第一发出单元,其中:所述第三获取单元,配置为根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备被调用时的最大电流值;所述第二确定单元,配置为根据各功能设备所消耗的最大电流值,确定所述应用在运行时所消耗的最大电流值;所述第一发出单元,配置为当所述应用在运行时所消耗的最大电流值大于预设的电流门限值时,发出第一报警消息,所述第一报警消息用于提示所述应用在运行时所消耗的最大电流大于预设电流门限值会带来危险。
- 根据权利要求12所述的终端,其中,所述终端还包括形成单元,配置为形成至少包括应用的ID信息以及与应用对应的耗电参数的列表,其中所述耗电参数至少包括平均电流;对应地,所述第二获取单元,配置为根据所述应用所调用的每一功能设备的ID信息查询所述列表,获得每一功能设备在被调用时所消耗的耗电参数。
- 根据权利要求14所述的终端,其中,当所述耗电参数为平均电流时,所述形成单元包括第二获取模块、第三获取模块、第四获取模块和形成模块,其中:所述第二获取模块,配置为在终端每次开机后,获取正在运行的应用的ID信息;所述第三获取模块,配置为根据正在运行的应用的标识ID信息,对应的获取每一正在运行的应用所调用的各功能设备的ID信息;所述第四获取模块,配置为针对于每一正在运行的应用,获取所述每一正在运行的应用所调用的每一功能设备的耗电参数;所述形成模块,配置为根据每一功能设备在被调用时的耗电参数、以及对应的应用的ID信息和功能设备的ID信息形成列表。
- 根据权利要求15所述的终端,其中,所述形成模块包括判断子模块、增加子模块和更新子模块,其中:所述判断子模块,配置为判断正在运行的应用的标识ID信息是否包括在列表中,是时,触发所述更新子模块;否时,触发所述增加子模块;所述更新子模块,配置为更新所述列表应用的耗电参数;所述增加子模块,配置为在列表中增加新的应用的ID信息、以及所述新增加的应用所调用的功能设备的ID信息以及各功能设备对应的耗电参数。
- 根据权利要求12至16任一项所述的终端,其中,所述终端还包括第四获取单元、排序单元和处理单元,其中:所述第四获取单元,配置为获取已经运行过的应用的ID信息、以及对应的平均电流;所述排序单元,配置为将所述已经运行过的应用在运行时所消耗的总平均电流进行排序,得到排序结果,所述排序结果至少包括应用的ID信息以及对应的平均电流;所述处理单元,配置为将所述排序结果输出给用户或者上传至服务器。
- 一种电池检测装置,所述电池检测装置包括:供电装置、电源管理电路、N个电源、N个功能设备、N个电量采集器、基带处理芯片和存储器,其中,所述N为大于1的整数;所述电池经过所述电源管理电路分路后形成N条电压不完全相同的电源;所述N个功能设备根据各自所需求的电压一一对应地,通过N条线路连接所述N个电源;对于所述N个功能设备与所述N个电源之间的每一条线路上,均分布着一个电量采集器;每一所述电量采集器将所采集的电量值发送给基带处理芯片,由基带处理芯片将每一功能设备所消耗的电量值存储于存储器中。
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至11任一项所述的电量检测方法。
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP15833490.4A EP3193179B1 (en) | 2014-08-22 | 2015-01-19 | Electric quantity detection method and apparatus, terminal and storage medium |
KR1020177007742A KR101995856B1 (ko) | 2014-08-22 | 2015-01-19 | 전기량 검출 방법 및 장치, 단말, 저장 매체 |
US15/505,646 US10594132B2 (en) | 2014-08-22 | 2015-01-19 | Electricity amount detection method and device, terminal and storage medium |
ES15833490T ES2906224T3 (es) | 2014-08-22 | 2015-01-19 | Método y aparato de detección de cantidad eléctrica, terminal y medio de almacenamiento |
JP2017510524A JP6452805B2 (ja) | 2014-08-22 | 2015-01-19 | 電気量検出方法及び装置、端末、記憶媒体 |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410419097.XA CN105467202B (zh) | 2014-08-22 | 2014-08-22 | 一种电量检测方法及装置、终端 |
CN201410419097.X | 2014-08-22 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016026268A1 true WO2016026268A1 (zh) | 2016-02-25 |
Family
ID=55350150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/070993 WO2016026268A1 (zh) | 2014-08-22 | 2015-01-19 | 一种电量检测方法及装置、终端、存储介质 |
Country Status (7)
Country | Link |
---|---|
US (1) | US10594132B2 (zh) |
EP (1) | EP3193179B1 (zh) |
JP (1) | JP6452805B2 (zh) |
KR (1) | KR101995856B1 (zh) |
CN (1) | CN105467202B (zh) |
ES (1) | ES2906224T3 (zh) |
WO (1) | WO2016026268A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018060382A (ja) * | 2016-10-06 | 2018-04-12 | 日本電気株式会社 | 測定制御装置、電子機器、ホスト装置、情報処理システム、方法およびプログラム |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6518614B2 (ja) * | 2016-03-22 | 2019-05-22 | Kddi株式会社 | 電子機器、電子機器の動作の特定方法及びプログラム |
CN107315673A (zh) * | 2017-06-29 | 2017-11-03 | 努比亚技术有限公司 | 功耗监测方法、移动终端及计算机可读存储介质 |
CN107728067A (zh) * | 2017-09-19 | 2018-02-23 | 上海斐讯数据通信技术有限公司 | 一种终端电量测量方法及系统 |
CN109120040A (zh) * | 2018-10-15 | 2019-01-01 | 珠海格力电器股份有限公司 | 一种终端设备的充电方法、终端设备及计算机存储介质 |
CN112994251B (zh) * | 2021-04-21 | 2021-08-31 | 北京每日优鲜电子商务有限公司 | 电量预警方法、装置、电子设备和计算机可读介质 |
CN113407452A (zh) * | 2021-06-24 | 2021-09-17 | 上海中通吉网络技术有限公司 | App功耗测试的方法 |
TWI825456B (zh) * | 2021-07-28 | 2023-12-11 | 和碩聯合科技股份有限公司 | 電子裝置效能調整系統以及方法 |
CN113778214A (zh) * | 2021-09-15 | 2021-12-10 | 广州点金石信息技术有限公司 | 一种省电优化方法、装置、移动终端和存储介质 |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100145643A1 (en) * | 2008-12-04 | 2010-06-10 | Concert Technology Corporation | User-controlled application-based power management |
CN102089731A (zh) * | 2008-07-15 | 2011-06-08 | 三美电机株式会社 | 便携设备、电池包、半导体装置、显示控制方法及程序 |
CN102306118A (zh) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Android终端应用程序功耗监控的方法和装置 |
JP2012063917A (ja) * | 2010-09-15 | 2012-03-29 | Ntt Docomo Inc | アプリケーションの消費電力を評価する装置、配信サーバ及び方法 |
CN102508761A (zh) * | 2011-11-17 | 2012-06-20 | 宇龙计算机通信科技(深圳)有限公司 | 终端电量的管理方法和终端 |
CN102591766A (zh) * | 2011-12-31 | 2012-07-18 | 惠州Tcl移动通信有限公司 | 移动设备及其程序耗电量提示处理方法、系统 |
CN102645571A (zh) * | 2012-04-19 | 2012-08-22 | 中兴通讯股份有限公司 | 一种检测电路及电子终端 |
CN102918473A (zh) * | 2010-06-07 | 2013-02-06 | 松下电器产业株式会社 | 便携式信息处理终端 |
CN103543405A (zh) * | 2012-07-17 | 2014-01-29 | 联发科技股份有限公司 | 功耗管理方法及其装置 |
CN103701970A (zh) * | 2013-12-04 | 2014-04-02 | 中国科学院深圳先进技术研究院 | 一种移动终端的耗电提示方法、装置及移动终端 |
CN103914365A (zh) * | 2012-12-31 | 2014-07-09 | 北京金山安全软件有限公司 | 获取移动终端应用耗电量的方法及装置 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006350481A (ja) * | 2005-06-13 | 2006-12-28 | Matsushita Electric Ind Co Ltd | 端末装置 |
JP4209906B2 (ja) | 2006-08-02 | 2009-01-14 | 株式会社日立製作所 | 低消費電力メモリ管理方法及びその方法を用いた計算機 |
US8032317B2 (en) | 2008-05-15 | 2011-10-04 | The Nielsen Company (Us), Llc | System and methods for metering and analyzing energy consumption of events within a portable device |
JP2010092210A (ja) | 2008-10-07 | 2010-04-22 | Sony Corp | 情報処理装置、電流検出方法およびコンピュータプログラム |
US8538484B2 (en) * | 2009-08-14 | 2013-09-17 | Google Inc. | Providing a user with feedback regarding power consumption in battery-operated electronic devices |
JP5681527B2 (ja) | 2011-02-28 | 2015-03-11 | パナソニックIpマネジメント株式会社 | 電力制御装置及び電力制御方法 |
JP5880962B2 (ja) | 2012-06-12 | 2016-03-09 | ソニー株式会社 | 電子装置、計算方法、プログラム、および情報処理装置 |
CN103002157A (zh) * | 2012-12-21 | 2013-03-27 | 广东欧珀移动通信有限公司 | 一种移动终端剩余使用时间的提醒方法及装置 |
-
2014
- 2014-08-22 CN CN201410419097.XA patent/CN105467202B/zh active Active
-
2015
- 2015-01-19 EP EP15833490.4A patent/EP3193179B1/en active Active
- 2015-01-19 WO PCT/CN2015/070993 patent/WO2016026268A1/zh active Application Filing
- 2015-01-19 KR KR1020177007742A patent/KR101995856B1/ko active IP Right Grant
- 2015-01-19 JP JP2017510524A patent/JP6452805B2/ja active Active
- 2015-01-19 ES ES15833490T patent/ES2906224T3/es active Active
- 2015-01-19 US US15/505,646 patent/US10594132B2/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102089731A (zh) * | 2008-07-15 | 2011-06-08 | 三美电机株式会社 | 便携设备、电池包、半导体装置、显示控制方法及程序 |
US20100145643A1 (en) * | 2008-12-04 | 2010-06-10 | Concert Technology Corporation | User-controlled application-based power management |
CN102918473A (zh) * | 2010-06-07 | 2013-02-06 | 松下电器产业株式会社 | 便携式信息处理终端 |
JP2012063917A (ja) * | 2010-09-15 | 2012-03-29 | Ntt Docomo Inc | アプリケーションの消費電力を評価する装置、配信サーバ及び方法 |
CN102306118A (zh) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Android终端应用程序功耗监控的方法和装置 |
CN102508761A (zh) * | 2011-11-17 | 2012-06-20 | 宇龙计算机通信科技(深圳)有限公司 | 终端电量的管理方法和终端 |
CN102591766A (zh) * | 2011-12-31 | 2012-07-18 | 惠州Tcl移动通信有限公司 | 移动设备及其程序耗电量提示处理方法、系统 |
CN102645571A (zh) * | 2012-04-19 | 2012-08-22 | 中兴通讯股份有限公司 | 一种检测电路及电子终端 |
CN103543405A (zh) * | 2012-07-17 | 2014-01-29 | 联发科技股份有限公司 | 功耗管理方法及其装置 |
CN103914365A (zh) * | 2012-12-31 | 2014-07-09 | 北京金山安全软件有限公司 | 获取移动终端应用耗电量的方法及装置 |
CN103701970A (zh) * | 2013-12-04 | 2014-04-02 | 中国科学院深圳先进技术研究院 | 一种移动终端的耗电提示方法、装置及移动终端 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3193179A4 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018060382A (ja) * | 2016-10-06 | 2018-04-12 | 日本電気株式会社 | 測定制御装置、電子機器、ホスト装置、情報処理システム、方法およびプログラム |
Also Published As
Publication number | Publication date |
---|---|
ES2906224T3 (es) | 2022-04-13 |
EP3193179A1 (en) | 2017-07-19 |
EP3193179B1 (en) | 2021-11-24 |
KR101995856B1 (ko) | 2019-07-03 |
JP2017532640A (ja) | 2017-11-02 |
US20170279266A1 (en) | 2017-09-28 |
JP6452805B2 (ja) | 2019-01-16 |
EP3193179A4 (en) | 2017-08-23 |
CN105467202A (zh) | 2016-04-06 |
KR20170043642A (ko) | 2017-04-21 |
US10594132B2 (en) | 2020-03-17 |
CN105467202B (zh) | 2020-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016026268A1 (zh) | 一种电量检测方法及装置、终端、存储介质 | |
US10211661B2 (en) | Charging mode control method and device | |
CN103246335B (zh) | 状态控制方法和电子设备 | |
US20140075216A1 (en) | Electronic device for detecting consumption of power | |
WO2019119326A1 (zh) | 充电方法、装置、终端设备及计算机可读存储介质 | |
US11342775B2 (en) | Voltage minimum active protection circuit and method of operating same | |
US9723564B2 (en) | Systems and methods for power management of a modular mobile electronic device | |
WO2022218046A1 (zh) | 一种电池充电方法及电子设备 | |
EP3920006A1 (en) | Granular power management of display devices based on user interest | |
US20210336464A1 (en) | Inference based fast charging | |
TW202008179A (zh) | 具有充電功能的主機板 | |
US20130193906A1 (en) | Terminals, terminal systems and charging/discharging methods thereof | |
EP3923120A1 (en) | Fast dynamic capacitance, frequency, and/or voltage throttling apparatus and method | |
US9570922B2 (en) | Charging method and electronic device | |
US10942556B2 (en) | Early pre-charge enablement for peak power application in net zero energy devices | |
WO2012102933A2 (en) | Detection of insufficient supplied power | |
TW202226016A (zh) | 安全的裝置電力啟動設備及方法 | |
US11422173B2 (en) | Method and apparatus for accurate measurement of platform power | |
CN113625859A (zh) | 智能预测处理器空闲时间的装置及方法 | |
CN115549249A (zh) | 供电系统、控制供电系统的方法及电子设备 | |
CN215734036U (zh) | 一种上电自动开机的电路及终端设备 | |
US20230305615A1 (en) | Opportunistic battery charging with a programmable power adapter | |
EP3885880A1 (en) | Power management circuitry for controlling a power state transition based on a predetermined time limit | |
CN110825202B (zh) | 具有智能充电功能的主机板 | |
Anand et al. | Design of battery charger with power path controller and fuel gauge for point of sale (POS) terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15833490 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2017510524 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 15505646 Country of ref document: US |
|
REEP | Request for entry into the european phase |
Ref document number: 2015833490 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2015833490 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 20177007742 Country of ref document: KR Kind code of ref document: A |