WO2016026268A1 - 一种电量检测方法及装置、终端、存储介质 - Google Patents

一种电量检测方法及装置、终端、存储介质 Download PDF

Info

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
Application number
PCT/CN2015/070993
Other languages
English (en)
French (fr)
Inventor
于翔
周新甫
Original Assignee
深圳市中兴微电子技术有限公司
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 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Priority to EP15833490.4A priority Critical patent/EP3193179B1/en
Priority to KR1020177007742A priority patent/KR101995856B1/ko
Priority to US15/505,646 priority patent/US10594132B2/en
Priority to ES15833490T priority patent/ES2906224T3/es
Priority to JP2017510524A priority patent/JP6452805B2/ja
Publication of WO2016026268A1 publication Critical patent/WO2016026268A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H7/00Emergency 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/26Sectionalised 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/261Sectionalised 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/262Sectionalised 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
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q11/00Arrangement of monitoring devices for devices provided for in groups B60Q1/00 - B60Q9/00
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters
    • G01R22/06Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
    • G01R22/10Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods using digital techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • 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
    • G06QINFORMATION 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/00Administration; Management
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/18Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength
    • G08B13/189Actuation 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/194Actuation 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/196Actuation 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/19634Electrical details of the system, e.g. component blocks for carrying out specific functions
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency 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/38Emergency 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/382Emergency 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
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H7/00Emergency 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/08Emergency 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/0833Emergency 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/0844Fail safe control, e.g. by comparing control signal and controlled current, isolating motor on commutation error
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power 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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters
    • G01R22/06Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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

一种电量检测方法及装置、终端、存储介质,所述方法包括:根据应用的标识ID信息,获取所述应用所调用的各功能设备的ID信息;根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;将所述应用在运行时所消耗的耗电参数作为所述应用在运行时耗电指标输出。

Description

一种电量检测方法及装置、终端、存储介质 技术领域
本发明涉及电子技术,尤其涉及一种电量检测方法及装置、终端、存储介质。
背景技术
随着科技的发展,人们生活越来越依赖科技,尤其是移动终端的快速发展,满足了人们在移动中使用电器的需求,便携式设备也越来越普及。随着处理器速度和性能的提高,终端上安装的应用也越来越丰富,因此,终端除了传统的无线通讯外,还普遍实现了音频、视频、网络、游戏、阅读等功能,有些终端甚至添加了各种传感器和大屏等外设来实现更丰富的功能;但是,这些新添加的功能除了极大地丰富了终端的应用和功能外,还带来一个很大的问题就是电能的消耗成倍的增加,从而直接导致待机时间的减少,甚至影响到通讯得主功能。
为了解决移动终端的电量问题,一般都是通过扩大移动终端的电池的容量来解决的,但电池的发展远没有跟上终端功能的增长的速度,而且由于安全、尺寸和重量等问题,电池的容量扩张也是有极限的。既然供给不能在扩大,只能在电量消耗上着手解决问题,硬件上可以使用耗电更低的器件,软件上在不影响用户体验的基础上,需要对应用进行智能控制和优化,从而减少不必要的耗电;然而对应用进行优化和智能控制的基础,就需要了解终端上运行的各应用的电量使用情况乃至各个功能设备的电量使用情况,并籍此优化功能和对整体智能控制,以达到减少电量支出的目的;所以,精确了解应用在运行时各功能设备的电量使用的检测和分析就比较重要,可以为应用的开发者开发出耗电更小的应用提供帮助,并可以提供 用户更精确直观的数据和信息,并且系统可基于此实现对应用的智能控制,最终更长的使用时间和更丰富的信息都能给用户带来很好的体验。
发明内容
有鉴于此,本发明实施例为解决现有技术中存在的问题而提供一种电量检测方法及装置、终端、存储介质,能够精确确定应用在运行时各功能设备的电量使用情况。
本发明实施例的技术方案是这样实现的:
第一方面,本发明实施例提供一种电量检测方法,所述方法包括:
根据应用的标识ID信息,获取所述应用所调用的各功能设备的ID信息;
根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;
根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;
将所述应用在运行时所消耗的耗电参数作为所述应用在运行时耗电指标输出。
第二方面,本发明实施例提供一种终端,所述终端包括第一获取单元、第二获取单元、第一确定单元和第一输出单元,其中:
所述第一获取单元,配置为根据应用的标识ID信息,获取所述应用所调用的各功能设备的ID信息;
所述第二获取单元,配置为根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;
所述第一确定单元,配置为根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;
所述第一输出单元,配置为将所述应用在运行时所消耗的耗电参数作 为所述应用在运行时耗电指标输出。
第三方面,本发明实施例提供一种电池检测装置,所述电池检测装置包括:供电装置、电源管理电路、N个电源、N个功能设备、N个电量采集器、基带处理芯片和存储器,其中,所述N为大于1的整数;
所述电池经过所述电源管理电路分路后形成N条电压不完全相同的电源;
所述N个功能设备根据各自所需求的电压一一对应地,通过N条线路连接所述N个电源;
对于所述N个功能设备与所述N个电源之间的每一条线路上,均分布着一个电量采集器;
每一所述电量采集器将所采集的电量值发送给基带处理芯片,由基带处理芯片将每一功能设备所消耗的电量值存储于存储器中。
第四方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于上述第一方面实施例提供的电量检测方法。
本发明实施例提供的电量检测方法及装置、终端、存储介质,其中,根据应用的标识ID信息,获取所述应用所调用的各功能设备的ID信息;根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;将所述应用在运行时所消耗的耗电参数作为所述应用在运行时耗电指标输出;如此,能够精确确定应用在运行时各功能设备的电量使用情况。
附图说明
图1为本发明实施例一电量检测装置的组成结构示意图;
图2-1为本发明实施例二电量电测方法的实现流程示意图一;
图2-2为本发明实施例二中步骤202的实现流程示意图;
图3为本发明实施例三形成列表的实现流程示意图;
图4为本发明实施例四电量检测方法的实现流程示意图一;
图5为本发明实施例四电量检测方法的实现流程示意图二;
图6为本发明实施例四电量检测方法的实现流程示意图三;
图7为本发明实施例四电量检测方法的实现流程示意图四;
图8为本发明实施例五终端的组成结构示意图。
具体实施方式
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。
实施例一
本发明实施例首先提供一种电源检测装置,该电源检测装置用于终端中,所述终端包括智能手机、平板电脑、笔记本电脑、台式计算机、个人数字助理等终端设备。一般来说通过一个或多块电池为终端中的各个部件进行供电,当然移动终端除了采用电池供电外,还可以采用直流电源进行供电,这里电池或直流电源可以称为终端的供电装置。不管是采用电池供电还是采用电源供电方式,都需要经过电源管理电路(PMIC,Power Management Integrated Circuits)的分配、变换后形成电压不同的多路电源,其中:电源管理电路又称为电源管理单元或电源管理芯片(PMU,Power Manage Union),电源管理芯片在电子终端设备中担负起对电能的变换、分配、检测及其他电能管理的职责。目前终端中具有很多不同的芯片和功能设备,以芯片来说,芯片工作电压包括5V、3.3V、2.5V、1.8V,甚至更低。同时,许多终端中还需要高于供电电压的电源,比如在电池供电设备中驱动液晶显示的背光电源,普通的白光LED驱动等,都需要对系统电源进行升压。上述不同电压的电源可以通过电源管理芯片就能够实现。
图1为本发明实施例一电量检测装置的组成结构示意图,如图1所示, 所述电量检测装置包括:供电装置和电源管理电路(图1中未示出),(N+1)个电源、M个功能设备、N个电量采集器件、基带处理芯片30和存储器50,其中,所述N为大于1的整数,所述M为小于等于N且大于等于1的整数;
所述供电装置经过所述电源管理电路分路后形成N条电压不同的电源10至1N;其中,基带处理芯片30根据自身的电压需求通过一条线路电源10,所述N个功能设备31至3N根据各自所需求的电压一一对应地,通过N条线路连接所述N个电源11至1N,在所述N个功能设备31至3N与所述N个电源11至1N之间的每一条线路上,均分布着一个电量采集器;以及在电源10与基带处理芯片30之间的线路上分布电量采集器20;电量采集器20至2N将所采集的电量值发送给基带处理芯片30,由基带处理芯片30将每一功能设备所消耗的电量值存储于存储器50中。
由图1可见,电源和功能设备之间设置电量采集器件,其中也可以将基带处理芯片认为是功能设备的一种,在图1中是将基带处理芯片单独作为一个特殊的功能设备来列出来。电量采集器件采集电源提供给对应的功能设备的电量;电源连接电量采集器件获取电源所消耗和/或充入的电量;基带处理芯片用来读取和处理电量采集器件所采集的电量数据,并将处理后的电量数据存储到存储器中。
本发明实施例中,终端的供电装置可以是开关电源或低压差线形稳压器等能提供功能设备必需的电压和电流的设备。功能设备是终端需要的硬件组成部分,如显示设备、输入设备、摄像头、主板和控制设备等需要电源才能工作的设备。电量采集器件可以获取电源的电量使用情况,并受基带处理芯片控制,并且电量采集器件所采集的数据可被基带处理芯片读取。存储器可以是各种不易丢失数据存储设备,包括nandflash、norflash、TF卡以及网络存储等。电量采集器件20至2N可以采用传感器来实现。
本发明实施例中,所述电量检测装置还可以包括应用控制芯片40,应 用控制芯片根据基带处理芯片处理后的数据作相应的分析处理并对应用41至4M进行控制,应用控制芯片可以获取应用41至4M的唯一识别信息并可以控制应用的运行和关闭。其中唯一识别信息可以是应用的名称或者标识(ID)信息,其中一个应用可以同时使用一到几个功能设备。例如,拍照应用在运行时除了调用摄像头外还要调用显示设备,以将拍摄到的画面显示给用户,因此,拍照应用在运行时,功能设备中的显示设备和摄像头会被调用进而消耗终端的电量,通过上述分析可知,拍照应用在运行时所消耗的电量可以通过拍照应用所调用的功能设备而消耗的电量来计算,具体地,拍照应用在运行时所消耗的电量等于拍照应用所调用的各功能设备而消耗的电量之和来计算,即:拍照应用在运行时所消耗的电量=摄像头运行时所消耗的电量+显示设备运行时所消耗的电量。
需要说明的是,基带处理芯片和应用控制芯片可以互相获取数据和发送信息,基带处理芯片和应用控制芯片可以是同一个处理芯片,也可以是两个处理芯片。在具体实施的过程中,基带处理芯片可以就是终端中的处理芯片如应用处理器。
本发明实施例中,实线连接线与虚线连接线具有不同的含义,在图1中实线连接线是硬件之间的相互连接,而虚线连接线是为了体现一种调用关系,软件应用41至4M采用虚线连接功能设备,即应用在运行时,操作系统需要调用响应的功能设备来完成应用所具有的功能。
实施例二
基于上述实施例所提供的电量检测装置,本发明实施例提供一种电量检测方法,该方法具体说明实施例一中基带处理芯片和应用控制芯片是如何分析和处理电量采集器件所采集的电量数据,以及如何利用这些电量数据的。图2-1为本发明实施例二电量电测方法的实现流程示意图一,如图2-1所示,该方法包括:
步骤201,根据应用的ID信息,获取所述应用所调用的各功能设备的ID信息;
这里,所述应用包括任何安装在终端上的软件应用程序,需要说明的是,应用在本发明实施例中主要是指在运行时,会启动功能设备而消耗电能,基于这种理解,终端上安装的操作系统也可以启动功能设备工作而消耗电能,因此,在某种意义上,终端上安装的操作系统也可以看作是步骤201中所述的应用。
这里,功能设备包括示设备、输入设备、主板和控制设备等需要电源才能工作的设备。
步骤202,根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;
这里,所述耗电参数包括最低电流、最高电流、平均电流和电压等信息,其中平均电流可以作为耗电参数中最主要的参数;本发明实施例中还会涉及另一个与上述耗电参数密切相关的参数即电量,这里电量主要是指电池的电量。一般来说衡量电池的电量可以采用安时(Ah)或毫安时(mAh)来描述。比如1800mAh的电池的意思是以平均电流为18mA作为放电电流,可以持续放电100小时。本发明实施例中,电量的单位可以是安时或毫安时等。
步骤203,根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;
这里,应用在运行时都会调用功能设备而消耗终端的电量,因此,可以获取。
步骤204,将所述应用在运行时所消耗的耗电参数作为所述应用在运行时耗电指标输出。
本发明实施例中,所述耗电参数为平均电流时,如图2-2所示,所述步 骤202包括:
步骤2021,根据所述应用所调用的每一功能设备的ID信息,获取每一功能设备的被调用时段;
这里,应用在运行时会打开相应功能设备,从所打开的接口中可以获取应用所调用的每一功能设备的ID信息。
下面举例来说明步骤2021,以图1所示的应用为例,假设应用41调用功能设备31和32,而应用42调用功能设备32和3N,其中应用41调用功能设备31的时段为t4131,而调用功能设备32的时段t4132,应用42调用功能设备32的时段为t4232,而调用功能设备3N的时段t423N;
步骤2022,根据所述应用所调用的每一功能设备的ID信息,获取每一功能设备的在被调用时段所消耗的电量值;
这里,继续承接步骤2021中的例子,假设应用41在运行时,所调用的功能设备31在时段t4131内所消耗的电量值为P4131,所调用的功能设备32在时段t4132内所消耗的电量值为P4132;假设应用42在运行时,所调用的功能设备32在时段t4232内所消耗的电量值为P4232,所调用的功能设备3N在时段t423N内所消耗的电量值为P423N;
步骤2023,根据每一功能设备的被调用时段以及与被调用时段相对应地的电量值,确定每一功能设备在被调用时所消耗的平均电流。
这里,继续承接步骤2022中的例子,由于上面已知功能设备的调用时段以及在响应时段内功能设备所消耗的电量值,确定出每一功能设备在被调用时所消耗的平均电流;具体地,先以应用41为例,应用41调用功能设备31时功能设备31所消耗的平均电流I4131=所消耗的电量值为P4131÷时段t4131;应用41调用功能设备32时功能设备32所消耗的平均电流I4132=所消耗的电量值为P4132÷时段t4132;
对于应用42,应用42调用功能设备32时功能设备32所消耗的平均电 流I4232=所消耗的电量值为P4232÷时段t4232;应用42调用功能设备3N时功能设备3N所消耗的平均电流I423N=所消耗的电量值为P423N÷时段t423N。
本发明实施例中,所述步骤2021包括:
步骤B11,根据所述应用所调用的每一功能设备的ID信息,获取所述应用调用每一功能设备的开始时间、以及对应的结束时间;
步骤B12,根据所述应用调用每一功能设备的开始时间以及对应的结束时间,确定每一功能设备的被调用时段;
具体地,将所述应用调用每一功能设备的开始时间以及对应的结束时间之差,作为每一功能设备的被调用时段;
这里,继续承接上述步骤2021中的例子,仅以应用41为例,假设应用41调用功能设备31的开始时间为t4131-s,而应用41调用功能设备31的结束时间为t4131-e,则t4131-e与t4131-s之差即为应用41调用功能设备31的时段t4131。
本发明实施例,步骤2022包括:
步骤B1,根据所述应用所调用的每一功能设备的ID信息,获取所述应用开始调用每一功能设备时每一功能设备所消耗的第一电量、以及对应地获取结束调用每一功能设备时每一功能设备所消耗的第二电量;
步骤B2,对于每一功能设备,将所述第二电量与所述第一电量之差作为所述应用所调用的每一功能设备所消耗的电量值。
这里,继续承接上述步骤B11和B12中的例子,仅以应用41为例,假设应用41开始调用功能设备31时功能设备31所消耗的第一电量为P4131-s,应用41结束调用功能设备32时功能设备32所消耗的第二电量为P4131-e,则P4131-e与P4131-s之差即为应用41调用功能设备31时功能设备31所消耗的P4131;
需要说明的是,本发明实施例中的被调用时段也可以采用预设时段来实现,例如预设时段为15秒(s),那么只需要获取应用调用功能设备的开始时间以及在开始时间时该功能设备所消耗的第一电量,然后在15s之后,获取该功能设备所消耗的第二电量,然后将所述第二电量与所述第一电量之差作为所述应用所调用的每一功能设备所消耗的电量值。
本发明实施例提供一种在应用运行时确定应用的耗电参数的方法,这里以平均电流为例,在某应用yy1在运行时所消耗的平均电流可以通过以下步骤来确定:
步骤S21,获取各功能设备(a1、a2、…)被调用的开始时间(ta1、ta2…),以及获取各功能设备(a1、a2、…)在各自开始时间时所对应消耗的电量(Ca1、Ca2…);
这里,例如在某应用yy1运行时,功能设备a1被应用所调用,功能设备a1被调用的开始时间为ta1,在ta1时功能设备a1所消耗的电量为Ca1;需要说明的是,功能设备a1之前所消耗的电量Ca1很可能不是应用yy1所消耗,因此,在计算yy1所消耗的电量的时候,需要将之前其他应用消耗的电量减去。
步骤S22,在预定时段之后,获取在预定时间之内结束调用各功能设备(a1、a2、…)的结束时间(tb1、tb2…),以及获取各功能设备(a1、a2、…)在各自结束时间时所对应消耗的电量(Cb1、Cb2…);
步骤S23,计算各功能设备(a1、a2、…)在预定时段内各自所使用电量(C1、C2…),并根据(C1、C2…)确定各功能设备所对应的平均电流(Ia1、Ia2…);
其中,以功能设备a1为例,来说明计算应用yy1在调用功能设备a1时功能设备a1所消耗的平均电流Ia1,计算公式(12)如下:
C1=Cb1-Ca1         (11);
Ia1=C1÷(tb1-ta1)=(Cb1-Ca1)÷(tb1-ta1)   (12);
同理,对于功能设备a2为例,应用yy1在调用功能设备a2时功能设备a2所消耗的平均电流Ia2=(Cb2–Ca2)÷(tb2–ta2);同理,可以计算出应用yy1在调用功能设备(a3、a4…)时功能设备(a3、a4…)所消耗的平均电流(Ia3、Ia4…)。
步骤S24,应用所有调用的功能设备所消耗的平均电流之和即为应用在运行时的所消耗的平均电流Iyy1;
这里,确定应用在运行时的所消耗的平均电流Iyy1可以参见式
Iyy1=Ia1+Ia2+Ia3+Ia4+……         (13);
实施例三
基于上述实施例,在步骤202之前,所述方法还包括:形成至少包括应用的ID信息以及与应用对应的耗电参数的列表,其中所述耗电参数至少包括平均电流;
对应地,所述步骤202包括:根据所述应用所调用的每一功能设备的ID信息查询所述列表,获得每一功能设备在被调用时所消耗的耗电参数。
这里,当所述耗电参数为平均电流时,所述形成至少包括应用的ID信息以及与应用对应的耗电参数的列表,包括:
步骤A11,在终端每次开机后,获取正在运行的应用的ID信息;
这里,假设终端开机后,终端上运行有应用41和应用42,则获取应用41和应用42的ID信息;其中标号41和42即可以作为应用的ID信息。
步骤A12,根据正在运行的应用的标识ID信息,对应的获取每一正在运行的应用所调用的各功能设备的ID信息;
这里,继续承接步骤A11中的例子,假设应用41调用功能设备31和32,而应用42调用功能设备32和3N,其中,31、32和3N可以作为功能设备的ID信息。
步骤A13,针对于每一正在运行的应用,获取所述每一正在运行的应用所调用的每一功能设备的耗电参数,根据每一功能设备在被调用时的耗电参数、以及对应的应用的ID信息和功能设备的ID信息形成列表。
这里,继续承接步骤A12中的例子,先以应用41为例,应用41调用功能设备31时的耗电参数为H4131,应用41调用功能设备32时的耗电参数为H4132;再以应用42为例,应用42调用功能设备32时的耗电参数为H4232,应用42调用功能设备3N时的耗电参数为H423N;那么最终形成的列表可以参见表1。
表1
Figure PCTCN2015070993-appb-000001
一般来说,耗电参数主要是指电流,可以是平均电流,那么应用因此对于某一个具体的应用来说,除了各功能设备所消耗的平均电流外,应用还有一个平均电流,而且应用的平均电流等于各个功能设备所消耗的平均电流之和,以表1中的应用41为例,假设应用41的平均电流为I41,而应用41在调用功能设备31和32时所消耗的电流分别为I4131和I4132,则有I41=I4131+I4132。
对于上述列表,所述根据每一功能设备在被调用时所消耗的耗电参数、以及对应的应用的ID信息和功能设备的ID信息形成列表,包括:
判断正在运行的应用的标识ID信息是否包括在列表中,是时,更新所 述列表应用的耗电参数;否时,在列表中增加新的应用的ID信息、以及所述新增加的应用所调用的功能设备的ID信息以及各功能设备对应的耗电参数。
下面提供一种形成列表的方法,图3为本发明实施例三形成列表的实现流程示意图,如图3所示,该流程包括:
步骤301,流程开始;
步骤302,运行主控线程,获取应用启动时发送的ID信息;
步骤303,在主控线程初始化的过程中,在列表中搜索该应用的ID信息;
步骤304,如果搜索到该应用的ID信息,将列表中的电量数据更新为新采集的电量数据;
具体地,可以保存3组以上的电量数据,并将这3组数据的平均值作为最终的参考数据,以保证数据更精确。
步骤305,如果没有搜索到该应用的ID信息,则在列表中增加该应用的ID信息,以及与被该应用所调用的功能设备所消耗的耗电参数;
这里,对于新增加的应用,可以在进行列表刷新的时候同步保存到存储单元中;
步骤306,基于采集应用在运行时的电量使用情况,进行后续处理。
步骤307,流程结束。
这里,所述后续处理具体可以参见实施例四中的各种处理,例如图4所示的实施例中的发送第一报警信息的处理、图5所示的实施例中发送排序结果的处理等等。
本发明实施例三上述提供的技术方案可以采用计算机程序来实现,该计算机程序在运行时体现为一个主控线程,具体地,终端在开机后运行进 行初始化,将存储单元中存储的列表中的耗电参数读取到内存,耗电参数在内存中也以列表的形式存在;该数据是所有运行过的应用近几次的耗电参数,对于每一应用来说,又包括各功能设备的耗电参数;
为了获得最新的应用的耗电数据,终端运行一个主控线程,主控线程不停获取各个电量采集器件所采集的数据,并获得应用启动时发送的ID信息,主控线程在内存列表中搜索该识别信息,如果有,将新采集的电量使用情况替换最旧的一个,保持几组数据都是最近的,如果没有搜索到该ID信息,在列表中新增加一个应用信息,当列表刷新的时候同步保存到存储单元中;基于采集到的耗电参数和应用运行情况,应用开发者可以开发各种应用和用于控制应用的应用,当然还可以提供将体现本发明实施例技术方案的应用接口提供给第三方开发者,从而获得更大的利用价值。
实施例四
基于上述的实施例,本发明实施例提供一种电量检测方法,一般来说,终端中的最大输出电流是有限制的,应用运行会调用多个功能设备,当在应用运行时的最高电流超过预设的电流门限时,可以为应用的开发商或者用户提供基础信息,并向用户提供报警,以便即时关闭应用。其中,应用运行时的最高电流可以利用该应用所调用的各功能设备所消耗的最大电流来进行确定,具体的实现流程如图4所示,该流程包括图2中步骤201至步骤204所示的步骤,为节约篇幅,这里不再赘述;在步骤204之后,该流程还包括:
步骤401,根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备被调用时的最大电流值;
步骤402,根据各功能设备所消耗的最大电流值,确定所述应用在运行时所消耗的最大电流值;
这里,可以将各功能设备所消耗的最大电流值之和作为所述应用在运 行时所消耗的最大电流值。
步骤403,判断所述应用在运行时所消耗的最大电流值大于预设的电流门限值时,发出第一报警消息;
这里,所述第一报警消息用于提示所述应用在运行时所消耗的最大电流大于预设电流门限值会带来危险。
在上述实施例的基础上,当一个应用运行时可以获取该应用所调用的各功能设备的电量信息,根据各功能设备的电量信息可以确定出应用的耗电参数,应用的耗电参数可以以占比、排名分析等方式显示给用户或上传至服务器以供应用开发商或应用提供商进行使用。具体的实现流程如图5所示,该流程包括图2中步骤201至步骤204所示的步骤,为节约篇幅,这里不再赘述;在步骤204之后,该流程还包括:
步骤501,获取已经运行过的应用的ID信息、以及对应的平均电流;
步骤502,将所述已经运行过的应用在运行时所消耗的总平均电流进行排序,得到排序结果,所述排序结果至少包括应用的ID信息以及对应的平均电流;
步骤503,将所述排序结果输出给用户或者上传至服务器。
在上述实施例的基础上,当终端运行应用时,可以对应用所调用的各功能设备所消耗的电量进行采集和统计,从而计算出终端中电池的剩余电量值,当然还可以根据当前电量使用情况确定出终端所能支撑的时间。具体的实现流程如图6所示,该流程包括图2中步骤201至步骤204所示的步骤,为节约篇幅,这里不再赘述;在步骤204之后,该流程还包括:
步骤601,获取终端中电池的剩余电量值;
步骤602,获取正在运行的应用的ID信息,根据所述正在运行的应用的ID信息对应地获取各所述正在运行的应用在运行时所消耗的平均电流;
步骤603,根据各所述正在运行的应用在运行时所消耗的平均电流,确定所述正在运行的应用的总平均电流;
步骤604,根据所述剩余电量值与所述总平均电流,确定所述终端能够支撑的时间;
这里,可以将所述剩余电量值与所述总平均电流作除法运算,得到时间值即为所述终端能够支撑的时间。
步骤605,将所述终端能够支撑的时间携带于提示消息中,显示给用户。
本发明实施例中,所述步骤601包括:
步骤6011,获取所有功能设备中每一功能设备当前所消耗的电量值,根据所述每一功能设备当前所消耗的电量确定移动终端中电池被消耗掉的电量值;
步骤6012,获取终端中电池的额定电量值;
步骤6013,根据所述额定电量和所述电池被消耗掉的电量值,确定所述电池的剩余电量值。
具体地,可以讲所述额定电量和所述电池被消耗掉的电量值之差,作为所述电池的剩余电量值。
在上述实施例的基础上,根据应用运行时所消耗的电量信息,可以计算出运行应用一段时间需要消耗的电量,并根据终端所剩余电量可以确定出应用能够运行时间,当然用户在运行应用时,并不希望应用运行的时间太短,因此可以设置一个运行时间门限,这个运行时间门限可以是用户设定的,当然也可以不是用户设定的。当正在运行的应用或用户欲打开的应用不足以运行超过此门限时间时,警告后退出或不予运行。具体的实现流程如图7所示,该流程包括图2中步骤201至步骤204所示的步骤,为节约篇幅,这里不再赘述;在步骤204之后,该流程还包括:
步骤701,获取正在运行的应用的ID信息,根据所述正在运行的应用 的ID信息对应地获取各所述正在运行的应用在运行时所消耗的平均电流;
步骤702,针对每一所述正在运行的应用,获取对应的运行时间门限,并根据每一所述正在运行的应用的时间门限与其对应的平均电流,确定每一所述正在运行的应用的第三电量;
步骤703,根据每一所述正在运行的应用的第三电量,确定所述正在运行的应用的总的第三电量;
步骤704,判断所述总的第三电量大于所述电池的剩余电量值时,发出第二警告,所述第二警告用于表明所运行的应用过多。
这里,以终端运行一个应用,可参见图1,假设终端中只运行应用41,先获取当前各功能设备31至3N所消耗的电量(C31、C32、……C3N),则终端中电池已被消耗的电量Cbat=C31+C32+……+C3N,由于电池的额定电量Cfull是已知的,则电池剩余电量Cleft可以通过下式(21)确定:
Cleft=Cfull–Cbat(21);
然后获取内存列表中该应用41的耗电参数,这里以平均电流为例,应用41的三次平均电流为I41_1、I41_2和I41_3,则应用的最终可参考的平均电流为:
I41=(I41_1+I41_2+I41_3)÷3         (22);
假设应用4的运行时间门限为T,该应用41在运行T时段内需要的最小电量Cthre可下式计算:
Cthre=I41×T        (23);
然后判断Cleft与Cthre之间的大小关系,当Cleft<Cthre,可以向用户发出第二警告消息。
实施例五
本发明实施例提供一种终端,图8为本发明实施例五终端的组成结构 示意图,如图8所示,该终端包括第一获取单元801、第二获取单元802、第一确定单元803和第一输出单元804,其中:
所述第一获取单元801,配置为根据应用的标识ID信息,获取所述应用所调用的各功能设备的ID信息;
所述第二获取单元802,配置为根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;
所述第一确定单元803,配置为根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;
所述第一输出单元804,配置为将所述应用在运行时所消耗的耗电参数作为所述应用在运行时耗电指标输出。
本发明实施例中,所述耗电参数为平均电流时,所述第一确定单元包括第一获取模块和第一确定模块,其中:
所述第一获取模块,配置为根据所述应用所调用的每一功能设备的ID信息,获取每一功能设备的被调用时段,以及与被调用时段相对应地的电量值;
所述第一确定模块,配置为根据每一功能设备的被调用时段以及与被调用时段相对应地的电量值,确定每一功能设备在被调用时所消耗的平均电流。
本发明实施例中,所述第一获取模块包括第一获取子模块、第一确定子模块、第二获取子模块和第二确定子模块,其中:
所述第一获取子模块,配置为根据所述应用所调用的每一功能设备的ID信息,获取所述应用调用每一功能设备的开始时间、以及对应的结束时间;
所述第一确定子模块,配置为根据所述应用调用每一功能设备的开始时间以及对应的结束时间,确定每一功能设备的被调用时段;
所述第二获取子模块,配置为根据所述应用所调用的每一功能设备的ID信息,获取所述应用开始调用每一功能设备时每一功能设备所消耗的第一电量、以及对应地获取结束调用每一功能设备时每一功能设备所消耗的第二电量;
所述第二确定子模块,配置为对于每一功能设备,根据所述第二电量与所述第一电量确定所述应用所调用的每一功能设备所消耗的电量值。
本发明实施例中,所述终端还包括第三获取单元、第二确定单元和第一发出单元,其中:
所述第三获取单元,配置为根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备被调用时的最大电流值;
所述第二确定单元,配置为根据各功能设备所消耗的最大电流值,确定所述应用在运行时所消耗的最大电流值;
所述第一发出单元,配置为当所述应用在运行时所消耗的最大电流值大于预设的电流门限值时,发出第一报警消息,所述第一报警消息用于提示所述应用在运行时所消耗的最大电流大于预设电流门限值会带来危险。
本发明实施例中,所述终端还包括形成单元,配置为形成至少包括应用的ID信息以及与应用对应的耗电参数的列表,其中所述耗电参数至少包括平均电流;
对应地,所述第二获取单元,配置为根据所述应用所调用的每一功能设备的ID信息查询所述列表,获得每一功能设备在被调用时所消耗的耗电参数。
本发明实施例中,当所述耗电参数为平均电流时,所述形成单元包括第二获取模块、第三获取模块、第四获取模块和形成模块,其中:
所述第二获取模块,配置为在终端每次开机后,获取正在运行的应用的ID信息;
所述第三获取模块,配置为根据正在运行的应用的标识ID信息,对应的获取每一正在运行的应用所调用的各功能设备的ID信息;
所述第四获取模块,配置为针对于每一正在运行的应用,获取所述每一正在运行的应用所调用的每一功能设备的耗电参数;
所述形成模块,配置为根据每一功能设备在被调用时的耗电参数、以及对应的应用的ID信息和功能设备的ID信息形成列表。
本发明实施例中,所述形成模块包括判断子模块、增加子模块和更新子模块,其中:
所述判断子模块,配置为判断正在运行的应用的标识ID信息是否包括在列表中,是时,触发所述更新子模块;否时,触发所述增加子模块;
所述更新子模块,配置为更新所述列表应用的耗电参数;
所述增加子模块,配置为在列表中增加新的应用的ID信息、以及所述新增加的应用所调用的功能设备的ID信息以及各功能设备对应的耗电参数。
本发明实施例中,所述终端还包括第四获取单元、排序单元和处理单元,其中:
所述第四获取单元,配置为获取已经运行过的应用的ID信息、以及对应的平均电流;
所述排序单元,配置为将所述已经运行过的应用在运行时所消耗的总平均电流进行排序,得到排序结果,所述排序结果至少包括应用的ID信息以及对应的平均电流;
所述处理单元,配置为将所述排序结果输出给用户或者上传至服务器。
本发明实施例中,所述终端还包括第五获取单元、第六获取单元、第三确定单元、第四确定单元和显示单元,其中:
所述第五获取单元,配置为获取终端中电池的剩余电量值;
所述第六获取单元,配置为获取正在运行的应用的ID信息,根据所述正在运行的应用的ID信息对应地获取各所述正在运行的应用在运行时所消耗的平均电流;
所述第三确定单元,配置为根据各所述正在运行的应用在运行时所消耗的平均电流,确定所述正在运行的应用的总平均电流;
所述第四确定单元,配置为根据所述剩余电量值与所述总平均电流,确定所述终端能够支撑的时间;
所述显示单元,配置为将所述终端能够支撑的时间携带于提示消息中,显示给用户。
本发明实施例中,所述第五获取单元包括第五获取模块、第六获取模块和第三确定模块,其中:
所述第五获取模块,配置为获取所有功能设备中每一功能设备当前所消耗的电量值,根据所述每一功能设备当前所消耗的电量确定移动终端中电池被消耗掉的电量值;
所述第六获取模块,配置为获取终端中电池的额定电量值;
所述第三确定模块,配置为根据所述额定电量和所述电池被消耗掉的电量值,确定所述电池的剩余电量值。
本发明实施例中,所述终端还包括第七获取单元、第五确定单元、第六确定单元和第二发出单元,其中:
所述第七获取单元,配置为获取正在运行的应用的ID信息,根据所述正在运行的应用的ID信息对应地获取各所述正在运行的应用在运行时所消耗的平均电流;
所述第五确定单元,配置为针对每一所述正在运行的应用,获取对应的运行时间门限,并根据每一所述正在运行的应用的时间门限与其对应的平均电流,确定每一所述正在运行的应用的第三电量;
所述第六确定单元,配置为根据每一所述正在运行的应用的第三电量,确定所述正在运行的应用的总的第三电量;
所述第二单元,配置为判断所述总的第三电量大于所述电池的剩余电量值时,发出第二警告,所述第二警告用于表明所运行的应用过多。
这里需要指出的是:本发明实施例中有关终端的描述,与上述电量检测方法描述是类似的,同电量检测方法的有益效果描述,不做赘述。对于本发明终端的实施例中未披露的技术细节,请参照本发明方法实施例的描述。
本发明实施例提供的终端中的第一获取单元、第二获取单元、第一确定单元、第一输出单元、第三获取单元、第二确定单元、第一发出单元和形成单元等单元,以及各单元各自所包括的模块,都可以通过移动终端中的处理器来实现;当然也可通过具体的逻辑电路实现;在具体实施例的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。
需要说明的是,本发明实施例中,如果以软件功能模块的形式实现上述的电量检测方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。
相应地,本发明实施例再提供一种计算机存储介质,所述计算机存储 介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明各实施例中提供的电量检测方法。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本发明上述集成的单元如果以软件功能设备的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出 贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。
工业实用性
本发明实施例中,所述方法包括:根据应用的标识ID信息,获取所述应用所调用的各功能设备的ID信息;根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;将所述应用在运行时所消耗的耗电参数作为所述应用在运行时耗电指标输出;如此,能够精确确定应用在运行时各功能设备的电量使用情况。

Claims (19)

  1. 一种电量检测方法,所述方法包括:
    根据应用的标识ID信息,获取所述应用所调用的各功能设备的ID信息;
    根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;
    根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;
    将所述应用在运行时所消耗的耗电参数作为所述应用在运行时耗电指标输出。
  2. 根据权利要求1所述的方法,其中,所述耗电参数为平均电流时,所述根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数,包括:
    根据所述应用所调用的每一功能设备的ID信息,获取每一功能设备的被调用时段,以及与被调用时段相对应地的电量值;
    根据每一功能设备的被调用时段以及与被调用时段相对应地的电量值,确定每一功能设备在被调用时所消耗的平均电流。
  3. 根据权利要求2所述的方法,其中,所述根据所述应用所调用的每一功能设备的ID信息,获取每一功能设备的被调用时段,包括:
    根据所述应用所调用的每一功能设备的ID信息,获取所述应用调用每一功能设备的开始时间、以及对应的结束时间;
    根据所述应用调用每一功能设备的开始时间以及对应的结束时间,确定每一功能设备的被调用时段;
    对应地,获取与所述时段相对应地的电量值,包括:
    根据所述应用所调用的每一功能设备的ID信息,获取所述应用开始调用每一功能设备时每一功能设备所消耗的第一电量、以及对应地获取结束调用每一功能设备时每一功能设备所消耗的第二电量;
    对于每一功能设备,将所述第二电量与所述第一电量之差作为所述应用所调用的每一功能设备所消耗的电量值。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备被调用时的最大电流值;
    根据各功能设备所消耗的最大电流值,确定所述应用在运行时所消耗的最大电流值;
    判断所述应用在运行时所消耗的最大电流值大于预设的电流门限值时,发出第一报警消息,所述第一报警消息用于提示所述应用在运行时所消耗的最大电流大于预设电流门限值会带来危险。
  5. 根据权利要求1所述的方法,其中,所述方法还包括:形成至少包括应用的ID信息以及与应用对应的耗电参数的列表,其中所述耗电参数至少包括平均电流;
    对应地,所述根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数,包括:
    根据所述应用所调用的每一功能设备的ID信息查询所述列表,获得每一功能设备在被调用时所消耗的耗电参数。
  6. 根据权利要求5所述的方法,其中,当所述耗电参数为平均电流时,所述形成至少包括应用的ID信息以及与应用对应的耗电参数的列表,包括:
    在终端每次开机后,获取正在运行的应用的ID信息;
    根据正在运行的应用的标识ID信息,对应的获取每一正在运行的应用所调用的各功能设备的ID信息;
    针对于每一正在运行的应用,获取所述每一正在运行的应用所调用的每一功能设备的耗电参数,根据每一功能设备在被调用时的耗电参数、以及对应的应用的ID信息和功能设备的ID信息形成列表。
  7. 根据权利要求6所述的方法,其中,所述根据每一功能设备在被调用时所消耗的耗电参数、以及对应的应用的ID信息和功能设备的ID信息形成列表,包括:
    判断正在运行的应用的标识ID信息是否包括在列表中,是时,更新所述列表应用的耗电参数;否时,在列表中增加新的应用的ID信息、以及所述新增加的应用所调用的功能设备的ID信息以及各功能设备对应的耗电参数。
  8. 根据权利要求1至7任一项所述的方法,其中,所述方法还包括:
    获取已经运行过的应用的ID信息、以及对应的平均电流;
    将所述已经运行过的应用在运行时所消耗的总平均电流进行排序,得到排序结果,所述排序结果至少包括应用的ID信息以及对应的平均电流;
    将所述排序结果输出给用户或者上传至服务器。
  9. 根据权利要求1至7任一项所述的方法,其中,所述方法还包括:
    获取终端中电池的剩余电量值;
    获取正在运行的应用的ID信息,根据所述正在运行的应用的ID信息对应地获取各所述正在运行的应用在运行时所消耗的平均电流;
    根据各所述正在运行的应用在运行时所消耗的平均电流,确定所述正在运行的应用的总平均电流;
    根据所述剩余电量值与所述总平均电流,确定所述终端能够支撑的时间;
    将所述终端能够支撑的时间携带于提示消息中,显示给用户。
  10. 根据权利要求9所述的方法,其中,所述获取终端中电池的剩余 电量值,包括:
    获取所有功能设备中每一功能设备当前所消耗的电量值,根据所述每一功能设备当前所消耗的电量确定移动终端中电池被消耗掉的电量值;
    获取终端中电池的额定电量值;
    根据所述额定电量和所述电池被消耗掉的电量值,确定所述电池的剩余电量值。
  11. 根据权利要求9所述的方法,其中,所述方法还包括:
    获取正在运行的应用的ID信息,根据所述正在运行的应用的ID信息对应地获取各所述正在运行的应用在运行时所消耗的平均电流;
    针对每一所述正在运行的应用,获取对应的运行时间门限,并根据每一所述正在运行的应用的时间门限与其对应的平均电流,确定每一所述正在运行的应用的第三电量;
    根据每一所述正在运行的应用的第三电量,确定所述正在运行的应用的总的第三电量;
    判断所述总的第三电量大于所述电池的剩余电量值时,发出第二警告,所述第二警告用于表明所运行的应用过多。
  12. 一种终端,所述终端包括第一获取单元、第二获取单元、第一确定单元和第一输出单元,其中:
    所述第一获取单元,配置为根据应用的标识ID信息,获取所述应用所调用的各功能设备的ID信息;
    所述第二获取单元,配置为根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备在被调用时所消耗的耗电参数;
    所述第一确定单元,配置为根据每一功能设备所消耗的耗电参数,确定所述应用在运行时所消耗的耗电参数;
    所述第一输出单元,配置为将所述应用在运行时所消耗的耗电参数作 为所述应用在运行时耗电指标输出。
  13. 根据权利要求12所述的终端,其中,所述终端还包括第三获取单元、第二确定单元和第一发出单元,其中:
    所述第三获取单元,配置为根据所述应用所调用的每一功能设备的ID信息,对应地获取每一功能设备被调用时的最大电流值;
    所述第二确定单元,配置为根据各功能设备所消耗的最大电流值,确定所述应用在运行时所消耗的最大电流值;
    所述第一发出单元,配置为当所述应用在运行时所消耗的最大电流值大于预设的电流门限值时,发出第一报警消息,所述第一报警消息用于提示所述应用在运行时所消耗的最大电流大于预设电流门限值会带来危险。
  14. 根据权利要求12所述的终端,其中,所述终端还包括形成单元,配置为形成至少包括应用的ID信息以及与应用对应的耗电参数的列表,其中所述耗电参数至少包括平均电流;
    对应地,所述第二获取单元,配置为根据所述应用所调用的每一功能设备的ID信息查询所述列表,获得每一功能设备在被调用时所消耗的耗电参数。
  15. 根据权利要求14所述的终端,其中,当所述耗电参数为平均电流时,所述形成单元包括第二获取模块、第三获取模块、第四获取模块和形成模块,其中:
    所述第二获取模块,配置为在终端每次开机后,获取正在运行的应用的ID信息;
    所述第三获取模块,配置为根据正在运行的应用的标识ID信息,对应的获取每一正在运行的应用所调用的各功能设备的ID信息;
    所述第四获取模块,配置为针对于每一正在运行的应用,获取所述每一正在运行的应用所调用的每一功能设备的耗电参数;
    所述形成模块,配置为根据每一功能设备在被调用时的耗电参数、以及对应的应用的ID信息和功能设备的ID信息形成列表。
  16. 根据权利要求15所述的终端,其中,所述形成模块包括判断子模块、增加子模块和更新子模块,其中:
    所述判断子模块,配置为判断正在运行的应用的标识ID信息是否包括在列表中,是时,触发所述更新子模块;否时,触发所述增加子模块;
    所述更新子模块,配置为更新所述列表应用的耗电参数;
    所述增加子模块,配置为在列表中增加新的应用的ID信息、以及所述新增加的应用所调用的功能设备的ID信息以及各功能设备对应的耗电参数。
  17. 根据权利要求12至16任一项所述的终端,其中,所述终端还包括第四获取单元、排序单元和处理单元,其中:
    所述第四获取单元,配置为获取已经运行过的应用的ID信息、以及对应的平均电流;
    所述排序单元,配置为将所述已经运行过的应用在运行时所消耗的总平均电流进行排序,得到排序结果,所述排序结果至少包括应用的ID信息以及对应的平均电流;
    所述处理单元,配置为将所述排序结果输出给用户或者上传至服务器。
  18. 一种电池检测装置,所述电池检测装置包括:供电装置、电源管理电路、N个电源、N个功能设备、N个电量采集器、基带处理芯片和存储器,其中,所述N为大于1的整数;
    所述电池经过所述电源管理电路分路后形成N条电压不完全相同的电源;
    所述N个功能设备根据各自所需求的电压一一对应地,通过N条线路连接所述N个电源;
    对于所述N个功能设备与所述N个电源之间的每一条线路上,均分布着一个电量采集器;
    每一所述电量采集器将所采集的电量值发送给基带处理芯片,由基带处理芯片将每一功能设备所消耗的电量值存储于存储器中。
  19. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至11任一项所述的电量检测方法。
PCT/CN2015/070993 2014-08-22 2015-01-19 一种电量检测方法及装置、终端、存储介质 WO2016026268A1 (zh)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018060382A (ja) * 2016-10-06 2018-04-12 日本電気株式会社 測定制御装置、電子機器、ホスト装置、情報処理システム、方法およびプログラム

Families Citing this family (8)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 广东欧珀移动通信有限公司 一种移动终端剩余使用时间的提醒方法及装置

Patent Citations (11)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
See also references of EP3193179A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
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