[go: up one dir, main page]

WO2018152990A1 - Method for determining component power consumption of electronic device, electronic device and storage media - Google Patents

Method for determining component power consumption of electronic device, electronic device and storage media Download PDF

Info

Publication number
WO2018152990A1
WO2018152990A1 PCT/CN2017/089169 CN2017089169W WO2018152990A1 WO 2018152990 A1 WO2018152990 A1 WO 2018152990A1 CN 2017089169 W CN2017089169 W CN 2017089169W WO 2018152990 A1 WO2018152990 A1 WO 2018152990A1
Authority
WO
WIPO (PCT)
Prior art keywords
power
electronic device
average
determining
devices
Prior art date
Application number
PCT/CN2017/089169
Other languages
French (fr)
Chinese (zh)
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 CN201780005507.8A priority Critical patent/CN108886548B/en
Publication of WO2018152990A1 publication Critical patent/WO2018152990A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to a method, an electronic device, and a storage medium for determining power consumption of a device of an electronic device.
  • the existing method for determining the power consumption of each device in the electronic device is that the controller in each device can estimate the current power consumption of the device according to the current clock frequency and the operation mode, and the electronic device can read the device through the software interface. Power consumption.
  • this method is only applicable to some devices with controllers, and is not applicable to some devices with controllers (such as RF circuits, displays, etc.) and devices without controllers.
  • Embodiments of the present application provide a method, an electronic device, and a storage medium for determining power consumption of a device of an electronic device, to accurately determine power consumption of each device in the electronic device.
  • the power model determines the average power of each device in each usage scenario of the device to determine the power consumption of the device for a set period of time.
  • the power consumption of each device determined by the method can accurately reflect the current power consumption of the device, which is related to the prior art. Than, you can improve the accuracy of the results. After accurately determining the power consumption of each device, the user can be reminded to perform corresponding processing or automatically perform corresponding processing when a certain device consumes a large amount of power, thereby reducing the power consumption of the terminal device.
  • determining a power curve of the electronic device within a set duration includes: determining a first spectral feature of the power of the electronic device within the set duration and the electronic device a first average power within the set duration; determining m power models of the N devices in the electronic device, respectively, comprising: determining m second spectral features of the N devices and m first the average power of two, said m second frequency spectrum m second feature and the one-average power, wherein said m second frequency spectrum of the N devices in each device, respectively, using m i th The spectral characteristics of the power in the scene, the m second average powers being an average of the powers of each of the N devices in the M i use scenarios.
  • the m second spectral features are in one-to-one correspondence with the m second average powers, and the m second spectral features are spectral features of the power of each of the N devices in the M i use scenarios, m
  • the second average power is the average of the power of each of the N devices in the M i use scenarios.
  • the power curve of the terminal device within the set duration may be characterized by the first spectral feature and the first average power; the m power models may be respectively composed of m second spectral features and one m second spectral features A corresponding m second average power is characterized.
  • the spectral characteristics can be determined by performing Fourier transform or wavelet transform on the time domain signal.
  • the first spectral feature can be obtained by performing Fourier transform or wavelet transform on the power of the terminal device within the set duration
  • m second can be obtained by performing Fourier transform or wavelet transform on the m power models respectively. Spectrum characteristics.
  • determining, according to the power curve of the electronic device within the set duration and the m power models, determining power consumption of each device during the set duration including: Determining, by the first spectral feature, the first average power, the m second spectral features, and the m second average powers, m power coefficients of the N devices, the m power coefficients Each of the power coefficients is used to indicate a ratio of an average power of the device in the usage scenario to a second average power over the set duration; according to the m power coefficients and the m second average powers Determining m average powers of the N devices; for each device: adding powers of the devices in the M i usage scenarios of the m average powers respectively, to obtain the device in the setting Average power over time.
  • each of the m power coefficients is used to indicate the ratio of the average power of the device in the usage scenario to the second average power over a set duration, m power coefficients are respectively associated with m
  • the second average power is multiplied to obtain m average powers.
  • the average power of each of the obtained m average powers represents the average power of a certain device in a certain usage scenario.
  • the average power of a device in all its usage scenarios is added to obtain the device.
  • determining, according to the first spectral feature, the first average power, the m second spectral features, and the m second average powers, m of the N devices And determining, according to the first spectral feature and the m second spectral features, a proportion of each of the second spectral features in the first spectral feature; And determining, by the first average power and the m second average powers, a normalization coefficient; multiplying the ratio and the normalization coefficient to obtain the power coefficient.
  • the first spectral feature and the m second spectral features are represented by the same group of bases.
  • each second spectral feature is determined in the first spectral feature according to the first spectral feature and the m second spectral features. It is easier to calculate and implement when it is accounted for.
  • the ratio is solved as follows:
  • F is the first spectral feature
  • F i is the m second spectral features
  • f j is a base of the first spectral feature and the m second spectral features, b j and a ij respectively
  • the coefficient of the first spectral feature and the m second spectral features under the substrate, x i is the ratio.
  • the normalization coefficient is solved in the following manner:
  • P is the first average power
  • P i is the m second average powers
  • k is the normalization coefficient
  • an electronic device comprising: one or more processors; a memory; a plurality of applications; and one or more programs, wherein the one or more programs are stored in the memory,
  • the one or more programs include instructions that, when executed by the electronic device, cause the electronic device to implement the various steps of the first aspect and the first aspect described above.
  • the implementation of the electronic device to solve the problem and the beneficial effects, refer to the first aspect and the possible implementation manners of the first aspect and the beneficial effects. Therefore, the implementation of the electronic device can refer to the first aspect and the foregoing The implementation of possible implementations on the one hand is not repeated here.
  • a computer readable storage medium comprising instructions, wherein when the instructions are run on an electronic device, the electronic device is caused to perform any of the first aspect and the first aspect described above Methods. Based on the same inventive concept, the repetition will not be described again.
  • the principles and benefits of the electronic device can be solved by referring to the first aspect and the possible implementation manners of the first aspect and the beneficial effects. Therefore, the implementation of the electronic device can be referred to the above. The implementation of the various possible implementations of the first aspect and the repetitive aspects will not be described again.
  • FIG. 1 is a schematic flowchart of a method for determining power consumption of a device of an electronic device according to an embodiment of the present disclosure
  • FIG. 2 is a block diagram showing a partial structure of a mobile phone 100 according to an embodiment of the present invention
  • FIG. 3 is an electronic device according to an embodiment of the present application.
  • the method for determining the power consumption of each device in the electronic device is: for a device with a controller in the electronic device, the controller generally presets a power consumption model, and the controller can be based on the current clock frequency and the operation mode. Estimating the current power consumption of the device, the electronic device can read the power consumption of the device through a software interface; for the electronic device without a controller The device needs to be determined by the separation test method, that is, a device is separately powered and the power consumption data is sampled.
  • embodiments of the present application provide a method, an electronic device, and a storage medium for determining power consumption of a device of an electronic device, to accurately determine power consumption of each device in the electronic device.
  • the method and the electronic device are based on the same inventive concept. Since the principles of the method and the electronic device are similar, the implementation of the electronic device and the method can be referred to each other, and the repeated description is not repeated.
  • the electronic device includes but is not limited to a smart phone, a smart watch, a tablet computer, a virtual reality (VR) device, an augmented reality (AR) device, a personal computer, a handheld computer, and a personal number.
  • VR virtual reality
  • AR augmented reality
  • the electronic device includes but is not limited to a smart phone, a smart watch, a tablet computer, a virtual reality (VR) device, an augmented reality (AR) device, a personal computer, a handheld computer, and a personal number.
  • VR virtual reality
  • AR augmented reality
  • FIG. 1 is a schematic flowchart of a method for determining power consumption of a device of an electronic device according to an embodiment of the present application. The method comprises the following steps:
  • S101 Determine a frequency domain characteristic of the power of the electronic device within a set duration, and determine m power models of the N devices in the electronic device, respectively.
  • the N devices in the electronic device include, but are not limited to, a display, a Global Positioning System (GPS), a radio frequency circuit, a camera, an audio circuit, and the like; the usage scenario may be a call scene, a webpage scene, or a screen scene. , game scenes, etc.
  • Device 2 in N devices corresponds to M 2 usage scenarios
  • device 3 in N devices corresponds to M 3 usage scenarios... and so on. Therefore, the m power models represent the power models of each device in at least one usage scenario of the device, and one of the m power models can be used to indicate the frequency domain characteristics of a certain device in a certain usage scenario. .
  • N devices are two devices: display screen and GPS.
  • the display screen corresponds to three usage scenarios of call, interest screen and game.
  • GPS uses map navigation and unused map navigation.
  • the m power models are respectively the power model of the display screen in the call scene, the power model of the display screen in the interest screen scene, the power model of the display screen in the game scene, the power model of the GPS using the map navigation scene, and The five power models of the power model of GPS under the map navigation scene are not used.
  • the respective usage scenarios of the different devices in the electronic device may be completely different, may be identical, or may be partially the same, which is not limited in the embodiment of the present application.
  • the respective usage scenarios can be as follows:
  • Device 1 corresponds to three usage scenarios A, B, and C, and device 2 corresponds to four usage scenarios of D, E, F, and G.
  • Device 1 corresponds to three usage scenarios of A, B, and C
  • device 2 corresponds to three usage scenarios of A, B, and C.
  • Device 1 corresponds to three usage scenarios of A, B, and C, and device 2 corresponds to two usage scenarios of C and D.
  • the number of the usage scenarios of the different devices in the electronic device may be the same or different, which is not limited in the embodiment of the present application.
  • the device 1 and the device 2 are still taken as an example.
  • the number of usage scenarios of the device 1 is 2, the number of usage scenarios corresponding to the device 2 may be 2 or not 2.
  • the power curve of the electronic device during the set time period can be obtained by performing AD sampling on the power data of the electronic device within a set time period, that is, the power curve of the electronic device within the set time period and the collected power data. Time related. Assuming that the set duration is 5 minutes, the power curve of the electronic device during the period from 18:00 to 18:05 is different from the power curve of the electronic device during the period of 18:05 to 18:10. Accordingly, the power model is an inherent feature of the power of a device in a certain usage scenario, regardless of the time of AD sampling.
  • S102 Determine power consumption of each device for a set duration according to a power curve of the electronic device within a set duration and m power models.
  • the average power corresponding to each power model can be determined, and the average power corresponding to each power model represents a device in a use scenario. Average power. Then, for a device in an electronic device, the average power of the device for a set period of time is equal to the sum of the average power of the device in each usage scenario of the device, and the power consumption of the device for a set period of time. Equal to the integration of the average power of the device over the set duration to the set duration.
  • the power curve of the electronic device during the set duration may be characterized by the first spectral feature and the first average power; the m power models may be respectively composed of m second spectral features and one of the m second spectral features A corresponding m second average power is characterized.
  • the spectral features may indicate the frequency components that make up the signal and the size of each frequency component.
  • the spectral characteristics can be determined by performing Fourier transform or wavelet transform on the time domain signal.
  • the first spectral feature can be obtained by performing Fourier transform or wavelet transform on the power of the electronic device within a set duration
  • m second can be obtained by performing Fourier transform or wavelet transform on the m power models respectively. Spectrum characteristics.
  • the Fourier transform of the original signal can be used to fit the original signal with the sum of trigonometric functions of different frequencies, and the principle of wavelet transform is similar to the Fourier transform, except that the base of the wavelet transform is not a trigonometric function, but A set of wavelet bases.
  • the wavelet base needs to satisfy the following two conditions: 1.
  • the mean value of the wavelet base is 0; 2.
  • the wavelet base has localized features in both the time domain and the frequency domain (ie, does not spread to the entire coordinate axis).
  • the wavelet transform can be used to represent the original signal as a linear combination of a set of wavelet bases, allowing multi-scale analysis of the original signal.
  • the power consumption of each device in the set duration may be further determined in S102 by: according to the first spectrum a feature, a first average power, m second spectral features, and m second average powers, determining m power coefficients of the N devices, each of the m power coefficients being used to indicate that within the set time period The ratio of the average power of the device in the usage scenario to the second average power; determining m average powers of the N devices based on the m power coefficients and the m second average powers; then, performing the following operations for each device: m in an average power in the average power of the device, respectively, under a usage scenarios m i is added to obtain the average power of the device within the set duration.
  • N devices in the electronic device are device 1 and device 2
  • device 1 corresponds to three usage scenarios of A, B, and C
  • device 2 corresponds to two usage scenarios of B and D.
  • the m power models are the power model of the device 1 under the use scenario A, the power model of the device 1 under the use scenario B, the power model of the device 1 under the use scenario C, and the power model of the device 2 under the use scenario B.
  • the power model of the device 2 in the use scenario D the first spectrum feature is F, the first average power is P, the m second spectrum features are F1 to F5, and the m second average powers are respectively P1 to P5.
  • five power coefficients a1, a2, a3, a4, and a5 can be determined according to F, P, F1 to F5, and P1 to P5.
  • a1 is used to indicate the ratio of the average power of the device 1 under the use scenario A to A1
  • a2 is used to indicate the ratio of the average power of the device 1 under the use scenario B to A2
  • a3 is used to indicate that the device 1 is in use scenario C.
  • a4 is used to indicate the ratio of the average power of device 2 under use scenario B to A4
  • a5 is used to indicate the ratio of the average power of device 2 to scene A using scene D.
  • Five average power values q1, q2, q3, q4, and q5 can be determined based on the above five power coefficients and A1 to A5.
  • q1 is the average power of the device 1 under the use scenario A within the set duration
  • q2 is the average power of the device 1 under the use scenario B within the set duration
  • q3 is the set duration of the device 1 under the use scenario C
  • the average power q4 is the average power of the device 2 under the use scenario B within the set duration
  • q5 is the average power of the device 2 under the use scenario D for the set duration.
  • the power consumption of the device 1 for the set duration can be obtained, and the sum of q4 and q5 can be integrated for the set duration to obtain the work of the device 2 for the set duration. Consumption.
  • each of the m power coefficients is used to indicate the ratio of the average power of the device in the use scenario to the second average power within a set duration
  • the m power coefficients are respectively associated with m
  • the second average power is multiplied to obtain m average powers.
  • the average power of each of the obtained m average powers represents the average power of a certain device in a certain usage scenario.
  • the average power of a device in all its usage scenarios is added to obtain the device.
  • a specific implementation manner of determining the m power coefficients may be: determining, according to the first spectral feature and the m second spectral features, a proportion of each second spectral feature in the first spectral feature; The m proportions, the first average power, and the m second average powers determine a normalization coefficient; and the m ratios are respectively multiplied by the normalization coefficients to obtain the m power coefficients.
  • each of the m second spectral features represents a spectral characteristic of the power of a certain device in a certain usage scenario
  • the duration of the device going through the usage scenario may be only a part of the set duration.
  • the time period therefore, the power consumption of the device for a set period of time cannot be directly integrated by the second average power for the set duration. Therefore, the proportion of each of the second second spectral features in the first spectral feature may be determined first, thereby determining the return according to the m ratio, the first average power, and the m second average powers.
  • a coefficient of multiplication multiplying the above m proportions and the normalization coefficient to obtain m power coefficients.
  • the power factor of a device in a certain usage scenario indicates the ratio of the average power of the device in the usage scenario to the second average power over a set period of time.
  • the normalization coefficient is a fixed value within the set duration. That is to say, the normalization coefficient changes when the power consumption of each device in the electronic device is determined to be determined in different time periods.
  • both the first spectral feature and the second spectral feature can be obtained by Fourier transform or wavelet transform.
  • the first spectral feature and the m second spectral features may use the same set of base tables. Show.
  • the first spectral feature and the m second spectral features are expressed based on the same set of bases, it is easier to calculate and implement when determining the above ratio based on the first spectral feature and the m second spectral features.
  • each second spectral feature is in the first spectral feature.
  • the ratio can be solved as follows:
  • F is the first spectral feature
  • F i is m second spectral features
  • b j and a ij are coefficients of the first spectral feature and m second spectral features respectively under the base
  • x i is the ratio
  • P is the first average power
  • P i is m second average power
  • k is a normalization coefficient
  • the m power models are used to indicate the frequency domain characteristics of the power of each of the N devices in the M i use scenarios.
  • the power curve of the device over a set period of time and the m power models determine the average power of each device in each usage scenario of the device to determine the power consumption of the device for a set period of time.
  • the power consumption of each device determined by the method can accurately reflect the current power consumption of the device, and Compared with technology, the accuracy of the results can be improved.
  • the user After accurately determining the power consumption of each device, the user can be reminded to perform corresponding processing or automatically perform corresponding processing when the power consumption of a certain device is large, thereby reducing the power consumption of the electronic device.
  • the triggering conditions for performing the method shown in FIG. 1 include but are not limited to:
  • the electronic device is seriously heated: when the electronic device is hot, the user triggers or the electronic device automatically triggers the method shown in Figure 1 to detect the power consumption of each device in the electronic device, thereby alerting the user when the power consumption of a device is large. Perform corresponding processing or automatically perform corresponding processing (such as performing power reduction operation or shutdown operation), thereby reducing power consumption of electronic devices, reducing heat generation of electronic devices, and avoiding malfunction of electronic devices due to abnormal power consumption of a certain device. .
  • the power consumption of each device in the electronic device is determined by performing the method shown in FIG. 1 on a central processing unit (CPU) or a liquid crystal display (LCD).
  • CPU central processing unit
  • LCD liquid crystal display
  • the user may be prompted to perform a frequency reduction operation on the CPU or the LCD, or automatically turn off the GPS when the power consumption data of the GPS is abnormal, thereby avoiding the power consumption abnormality of the GPS and causing the electronic device to malfunction.
  • the usage scene of the electronic device changes: for example, the electronic device is switched from the standby scene to the call scene, and the game scene is switched to the camera scene.
  • the power consumption of each device in the electronic device may also change.
  • the power consumption of each device in the electronic device may be determined by performing the method shown in FIG. The power consumption of each device in the device changes, and the devices with abnormal power consumption are processed accordingly.
  • the method shown in FIG. 1 can also be applied to the development process of electronic devices, such as real-time analysis of the power consumption of each device during the development of electronic devices, thereby helping developers to optimize the energy consumption of electronic devices.
  • the present application also provides a method for determining power consumption of a device of an electronic device, which may be regarded as a specific example of the method shown in FIG. 1.
  • the method comprises the following steps:
  • the wavelet bases f 1 , f 2 ... f n are a family of functions, and the mean of this family of functions is 0 and exhibits localized features in both the time domain and the frequency domain.
  • wavelet bases f 1 , f 2 . . . f n are not limited in the embodiment of the present application, and may be, for example, a Haar Wavelet.
  • F 1 to F m are specific examples of m second characteristic spectra in the method shown in FIG. 1
  • P 1 to P m are specific examples of m second average powers in the method shown in FIG. 1 .
  • F is a specific example of the first characteristic spectrum in the method shown in FIG. 1
  • P is a specific example of the first average power in the method shown in FIG. 1.
  • step 10 By performing step 10 on all devices in the electronic device, the power consumption of each device in the electronic device for a set period of time can be obtained.
  • the embodiment of the present invention further provides an electronic device.
  • the electronic device may be a portable electronic device such as a mobile phone, or may be a tablet, a PDA (Personal Digital Assistant), or a POS (Point of Sales, sales terminal, communication computer with headset interface, etc.
  • the embodiment of the present invention exemplifies a mobile phone as an example.
  • FIG. 2 is a block diagram of a partial structure of a mobile phone 100 according to an embodiment of the present invention.
  • the mobile phone 100 can include a display screen 140, a memory 120, a processor 180, an antenna 104, a radio frequency circuit 110, a positioning module 195, a sensor 150, other input devices 130, an I/O subsystem 170, and an audio circuit 160. , power supply 190, headphone interface 200 and other components.
  • Field The skilled person can understand that the structure of the mobile phone shown in FIG. 2 does not constitute a limitation on the mobile phone, and may include more or less components than those illustrated, or combine some components, or split some components, or different. Assembly of parts.
  • the display screen 140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone 100, and can also accept user input.
  • the specific display screen 140 may include a display panel 141 and a touch panel 142.
  • the display panel 141 can be configured by using an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch panel 142 also referred to as a touch screen, a touch sensitive screen, etc., can collect contact or non-contact operations on or near the user (such as the user using any suitable object such as a finger, a stylus, or the like on or near the touch panel 142).
  • the operation in the vicinity of the touch panel 142 may also include a somatosensory operation; the operation includes a single-point control operation, a multi-point control operation, and the like, and drives the corresponding connected electronic device according to a preset program.
  • the touch panel 142 can include two parts: a touch detection electronic device and a touch controller. Wherein, the touch detection electronic device detects the touch orientation and posture of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection electronic device, and converts it into a processing. The information that the device can process is sent to the processor 180 and can receive commands from the processor 180 and execute them.
  • the touch panel 142 can be implemented by using various types such as resistive, capacitive, infrared, and surface acoustic waves, and the touch panel 142 can be implemented by any technology developed in the future.
  • the touch panel 142 can cover the display panel 141, and the user can display the content according to the display panel 141 (the display content includes, but is not limited to, a soft keyboard, a virtual mouse, a virtual button, an icon, etc.) on the display panel 141. Operation is performed on or near the covered touch panel 142.
  • the touch panel 142 After detecting the operation thereon or nearby, the touch panel 142 transmits to the processor 180 through the I/O subsystem 170 to determine user input, and then the processor 180 according to the user The input provides a corresponding visual output on display panel 141 via I/O subsystem 170.
  • the touch panel 142 and the display panel 141 can function as two independent components to implement the input and input functions of the mobile phone 100. However, in some embodiments, the touch panel 142 can be integrated with the display panel 141 to implement the input of the mobile phone 100. And output function.
  • the handset 100 can also include a memory 120 for storing computer executable program code, the program code including instructions.
  • the processor 180 executes various functional applications and data processing of the mobile phone 100 by executing instructions stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.).
  • the storage data area can store data (such as audio data, phone book, etc.) created according to the use of the mobile phone 100.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the handset 100 can also include a processor 180.
  • the processor 180 is a control center of the mobile phone 100. Connect the various parts of the entire phone with a variety of interfaces and lines. The various functions and processing data of the handset 100 are performed by running or executing software programs and/or modules stored in the memory 120, as well as recalling data stored in the memory 120, thereby providing overall monitoring of the handset.
  • processor 180 may include one or more processing units.
  • the processor 180 can integrate an application processor, a modem processor, a baseband module, a power management chip, a memory, a codec, and the like. Among them, the application processor mainly deals with operating systems, user interfaces, applications, and the like.
  • the modem processor primarily handles wireless communications.
  • the above modem processor may not be integrated into the processor 180.
  • the Internet Protocol, Wireless Local Area Network Protocol (e.g., IEEE 702.11), 3G, 4G, 5G communication protocols, etc., can be implemented using the processor 180 and the memory 120.
  • the handset 100 can also include an antenna 104 for transmitting and receiving radio frequency signals.
  • the antenna 104 can be located anywhere in the handset 100.
  • the position of the antenna illustrated in the embodiment of the present invention is merely an exemplary illustration.
  • Cell phone 100 can have one or more antennas. Each antenna in handset 100 can be used to cover a single or multiple communication bands.
  • the handset 100 also includes a radio frequency circuit 110. Used to receive and send signals during sending or receiving information or during a call. For example, after receiving the downlink information of the base station, it is sent to the processor 180 for processing. In addition, the uplink data is transmitted to the base station.
  • the radio frequency circuit 110 includes at least one power amplifier 109, a transceiver 108, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like.
  • the radio frequency circuit 110 can also communicate with the network and other devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • the handset 100 can also include a power amplifier 109 for amplifying the radio frequency signals to be transmitted by the handset 100.
  • Power amplifier 109 can be implemented using one or more gain stages in one or more integrated circuits, as shown in FIG. It will be appreciated that there may be a plurality of power amplifiers 109, each associated with a communication band or a group of communication bands. To simplify the description, FIG. 2 is schematically illustrated by a single power amplifier 109 symbol.
  • the mobile phone 100 may further include a positioning module 195.
  • the positioning module is configured to detect the position, orientation, and the like of the mobile phone 100. Detection of the location or orientation of the handset 100 can be performed using various positioning services, such as Global Positioning System (GPS), Assisted GPS (A-GPS), cellular based on registered cellular telephones. Telephone base station triangulation or trilateration, Galileo positioning system, or other positioning or location services or technologies.
  • Various hardware, software, and combinations thereof can be used to detect the location or orientation of the handset 100, such as GPS units, accelerometers, and other orientation and motion detection services or technologies in the handset 100.
  • the handset 100 can also include a sensor 150, which can include a proximity sensor, an ambient light sensor, an accelerometer sensor, and the like.
  • the ambient light sensor can adjust the brightness of the display panel 141 according to the brightness of the ambient light
  • the proximity sensor can close the display panel 141 and/or the backlight when the mobile phone 100 moves to the ear.
  • Proximity sensors can include, for example, light emitting diodes (LEDs) and associated photodetectors, such as photodiodes.
  • the light emitting diode may be an infrared light emitting diode that emits infrared light through the light emitting diode.
  • Photodiodes are used to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the mobile phone 100. When insufficient reflected light is detected, it can be determined that there is no object near the mobile phone 100.
  • the ambient light sensor can be a photodiode or other light sensor capable of detecting incoming light.
  • Ambient light sensors can operate in the visible and/or infrared spectrum. When the ambient light sensor is not obscured by the object, the ambient light sensor will typically receive more light 13 than when the ambient light sensor is blocked by the object, so ambient light sensors can be used to generate proximity data. This data can be used alone or in combination with proximity data from other sensors so that the handset 100 can more accurately determine if there are objects near the handset.
  • Accelerometer sensors detect the magnitude of acceleration in all directions (typically three axes). The magnitude and direction of gravity can be detected when the handset 100 is stationary.
  • the accelerometer sensor can be used to identify the gesture of the phone (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap). Can use plus
  • the speedometer determines if the handset 100 is in motion (possibly held by the user), or if the handset 100 is being held by the user such that its left or right edge is facing down, or if the handset 100 is being placed horizontally on the desktop. If it is determined that the handset 100 is horizontal and stationary, it can be determined that the handset 100 is less likely to be held. This data can be combined with data from proximity sensors and other data to assist in determining whether the readings obtained from other sensors in the handset 100 are accurate.
  • the mobile phone 100 can process signals from a plurality of sensor devices (eg, proximity sensors, ambient light sensors, etc.) in parallel, determine whether there is an object in the vicinity of the mobile phone 100, and improve the accuracy of determining the distance between the mobile phone 100 and the object.
  • sensor devices eg, proximity sensors, ambient light sensors, etc.
  • sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like that can be configured in the mobile phone 100 will not be described herein.
  • Other input devices 130 can be used to receive input numeric or character information, as well as generate key signal inputs related to user settings and function controls of the handset 100.
  • other input devices 130 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and light mice (the light mouse is not sensitive to display visual output).
  • function keys such as volume control buttons, switch buttons, etc.
  • trackballs mice, joysticks, and light mice (the light mouse is not sensitive to display visual output).
  • Other input devices 130 are coupled to other input device controllers 171 of I/O subsystem 170 for signal interaction with processor 180 under the control of other device input controllers 171.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the handset 100.
  • the audio circuit 160 can transmit the converted audio data to the speaker 161 for conversion to the sound signal output by the speaker 161.
  • the microphone 162 converts the collected sound signal into a signal, which is received by the audio circuit 160 and then converted into audio data, and then the audio data is output to the radio frequency circuit 110 for transmission to, for example, another mobile phone, or the audio data is output to the memory. 120 for further processing.
  • the user can insert the earphone into the earphone interface 200, and the pin of the earphone interface 200 is connected with the earphone, and the microphone of the earphone and the left and right channel earpieces can provide an audio interface between the user and the mobile phone 100.
  • the audio circuit 160 can transmit the converted audio data signal to the left and right channel earpieces of the earphone for conversion to a sound signal output.
  • the microphone of the earphone converts the collected sound signal into an electrical signal, and the electrical signal is transmitted to the audio circuit 160 through the headphone interface, and then converted into audio data for further processing.
  • the I/O subsystem 170 is used to control external devices for input and output, and may include other device input controllers 171, sensor controllers 172, and display controllers 173.
  • one or more other input control device controllers 171 receive signals from other input devices 130 and/or send signals to other input devices 130.
  • Other input devices 130 may include physical buttons (press buttons, rocker buttons, etc.) , dial, slide switch, joystick, click wheel, light mouse (light mouse is a touch-sensitive surface that does not display visual output, or an extension of a touch-sensitive surface formed by a touch screen). It is worth noting that other input control device controllers 171 can be connected to any one or more of the above devices.
  • Display controller 173 in I/O subsystem 170 receives signals from display 140 and/or transmits signals to display 140. After the display 140 detects the user input, the display controller 173 converts the detected user input into an interaction with the user interface object displayed on the display screen 140, ie, implements human-computer interaction. Sensor controller 172 can receive signals from one or more sensors 150 and/or send signals to one or more sensors 150.
  • the handset 100 also includes a power source 190 (such as a battery) that powers the various components.
  • a power source 190 such as a battery
  • the power source can be logically coupled to the processor 180 through the power management system to manage functions such as charging, discharging, and power consumption through the power management system.
  • the mobile phone 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • An embodiment of the present invention further provides an electronic device, as shown in FIG. 3;
  • Figure 3 is an electronic device according to an embodiment of the present application, including a first determining unit 301, a second determining unit 302, and a third determining unit 303;
  • the first determining unit 301 is configured to determine a power curve of the electronic device within a set duration; based on the same inventive concept, the first determining unit determines an implementation manner of the power curve of the electronic device within a set duration: The relevant descriptions in the examples, repetitions, will not be described again.
  • the third determining unit 303 is configured to determine, according to the power curve of the electronic device within the set duration and the m power models, power consumption of each device within the set duration. Based on the same inventive concept, the third determining unit determines the power consumption of each device in the set duration. For details, refer to the related description in the method embodiment, and the details are not repeated.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction electronics.
  • the instruction electronics implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

A method for determining the component power consumption of an electronic device and an electronic device, comprising: determining a power curve of an electronic device within a set time length, and determining m power models of N components in the electronic device, respectively; according to the power curve of the electronic device within the set time length and the m power models, determining the power consumption of each component within the set time length. The accuracy in determining the power consumption of a component may be improved.

Description

一种确定电子设备的器件功耗的方法、电子设备以及存储介质Method, electronic device and storage medium for determining device power consumption of electronic device 技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种确定电子设备的器件功耗的方法、电子设备以及存储介质。The present application relates to the field of terminal technologies, and in particular, to a method, an electronic device, and a storage medium for determining power consumption of a device of an electronic device.
背景技术Background technique
随着终端领域的技术发展,电子设备中集成的器件越来越多,电子设备的发热问题成为了影响用户体验的重要因素。With the development of technology in the field of terminals, more and more devices are integrated in electronic devices, and the heat generation problem of electronic devices has become an important factor affecting the user experience.
为了缓解电子设备的发热问题,首先需要确定电子设备中各器件的功耗。现有的确定电子设备中各器件的功耗的方法是:各个器件中的控制器可根据当前时钟频率及运行模式来估算该器件的当前功耗,电子设备可通过软件接口读取该器件的功耗。但是这种方式仅适用于部分带控制器的器件,对于有些带控制器的器件(比如射频电路、显示器等)以及不带控制器的器件不适用。In order to alleviate the heating problem of electronic devices, it is first necessary to determine the power consumption of each device in the electronic device. The existing method for determining the power consumption of each device in the electronic device is that the controller in each device can estimate the current power consumption of the device according to the current clock frequency and the operation mode, and the electronic device can read the device through the software interface. Power consumption. However, this method is only applicable to some devices with controllers, and is not applicable to some devices with controllers (such as RF circuits, displays, etc.) and devices without controllers.
综上,亟需一种确定电子设备的器件功耗的方式,从而在确定电子设备中各器件的功耗时提高结果的准确性。In summary, there is a need for a way to determine the power consumption of a device of an electronic device, thereby improving the accuracy of the results in determining the power consumption of each device in the electronic device.
发明内容Summary of the invention
本申请实施例提供了一种确定电子设备的器件功耗的方法、电子设备以及存储介质,用以准确地确定电子设备中各器件的功耗。Embodiments of the present application provide a method, an electronic device, and a storage medium for determining power consumption of a device of an electronic device, to accurately determine power consumption of each device in the electronic device.
第一方面,提供了一种确定电子设备的器件功耗的方法,其特征在于,包括:确定所述电子设备在设定时长内的功率曲线,并分别确定所述电子设备中的N个器件的m个功率模型,所述m个功率模型用于指示所述N个器件中的每个器件分别在Mi个使用场景下的功率的频域特征,N≥1,i=1~N,
Figure PCTCN2017089169-appb-000001
根据所述电子设备在所述设定时长内的功率曲线以及所述m个功率模型,确定每个器件在所述设定时长内的功耗。通过上述方法,由于m个功率模型用于指示N个器件中的每个器件分别在Mi个使用场景下的功率的频域特征,因而根据终端设备在设定时长内的功率曲线以及m个功率模型可以确定每个器件在该器件的每个使用场景下的平均功率,进而确定该器件在设定时长内的功耗。采用上述方法确定器件功耗时,不会出现现有技术中存在的对某些器件不适用的情况。由于上述方法可以在终端设备的使用过程中即时采集设定时长内的功率曲线并进行计算,因而采用该方法确定的各器件的功耗能准确反映该器件的当前功耗,与现有技术相比,可以提高结果的准确性。在准确确定出各器件的功耗后,可以在某个器件功耗较大时提醒用户进行相应处理或自动进行相应处理,从而降低终端设备的功耗。
In a first aspect, a method for determining power consumption of a device of an electronic device is provided, comprising: determining a power curve of the electronic device for a set duration, and determining N devices in the electronic device, respectively m power models, the m power models are used to indicate the frequency domain characteristics of the power of each of the N devices in the M i use scenarios, N≥1, i=1~N,
Figure PCTCN2017089169-appb-000001
And determining, according to the power curve of the electronic device within the set duration and the m power models, power consumption of each device within the set duration. Through the above method, since the m power models are used to indicate the frequency domain characteristics of the power of each of the N devices in the M i use scenarios, according to the power curve of the terminal device within the set duration and m The power model determines the average power of each device in each usage scenario of the device to determine the power consumption of the device for a set period of time. When the above method is used to determine the power consumption of the device, there is no possibility that the prior art is not applicable to some devices. Since the above method can instantly collect and calculate the power curve within the set duration during the use of the terminal device, the power consumption of each device determined by the method can accurately reflect the current power consumption of the device, which is related to the prior art. Than, you can improve the accuracy of the results. After accurately determining the power consumption of each device, the user can be reminded to perform corresponding processing or automatically perform corresponding processing when a certain device consumes a large amount of power, thereby reducing the power consumption of the terminal device.
在一种可选的实施方式中,确定所述电子设备在设定时长内的功率曲线,包括:确定 所述电子设备在所述设定时长内的功率的第一频谱特征以及所述电子设备在所述设定时长内的第一平均功率;分别确定所述电子设备中的N个器件的m个功率模型,包括:分别确定所述N个器件的m个第二频谱特征以及m个第二平均功率,所述m个第二频谱特征与所述m个第二平均功率一一对应,所述m个第二频谱特征为所述N个器件中的每个器件分别在Mi个使用场景下的功率的频谱特征,所述m个第二平均功率为所述N个器件中的每个器件分别在Mi个使用场景下的功率的平均值。其中,m个第二频谱特征与m个第二平均功率一一对应,m个第二频谱特征为N个器件中的每个器件分别在Mi个使用场景下的功率的频谱特征,m个第二平均功率为N个器件中的每个器件分别在Mi个使用场景下的功率的平均值。In an optional implementation manner, determining a power curve of the electronic device within a set duration includes: determining a first spectral feature of the power of the electronic device within the set duration and the electronic device a first average power within the set duration; determining m power models of the N devices in the electronic device, respectively, comprising: determining m second spectral features of the N devices and m first the average power of two, said m second frequency spectrum m second feature and the one-average power, wherein said m second frequency spectrum of the N devices in each device, respectively, using m i th The spectral characteristics of the power in the scene, the m second average powers being an average of the powers of each of the N devices in the M i use scenarios. Wherein the m second spectral features are in one-to-one correspondence with the m second average powers, and the m second spectral features are spectral features of the power of each of the N devices in the M i use scenarios, m The second average power is the average of the power of each of the N devices in the M i use scenarios.
也就是说,终端设备在设定时长内的功率曲线可以由第一频谱特征和第一平均功率来表征;m个功率模型可以分别由m个第二频谱特征以及与m个第二频谱特征一一对应的m个第二平均功率来表征。That is, the power curve of the terminal device within the set duration may be characterized by the first spectral feature and the first average power; the m power models may be respectively composed of m second spectral features and one m second spectral features A corresponding m second average power is characterized.
频谱特征可以通过对时域信号进行傅里叶变换或者小波变换等方式确定。比如,通过对终端设备在设定时长内的功率进行傅里叶变换或者小波变换可以得到第一频谱特征,通过分别对m个功率模型进行傅里叶变换或者小波变换可以分别得到m个第二频谱特征。The spectral characteristics can be determined by performing Fourier transform or wavelet transform on the time domain signal. For example, the first spectral feature can be obtained by performing Fourier transform or wavelet transform on the power of the terminal device within the set duration, and m second can be obtained by performing Fourier transform or wavelet transform on the m power models respectively. Spectrum characteristics.
一种可选的实施方式中,根据所述电子设备在所述设定时长内的功率曲线以及所述m个功率模型,确定每个器件在所述设定时长内的功耗,包括:根据所述第一频谱特征、所述第一平均功率、所述m个第二频谱特征以及所述m个第二平均功率,确定所述N个器件的m个功率系数,所述m个功率系数中的每个功率系数用于指示在所述设定时长内该器件在该使用场景下的平均功率与第二平均功率的比值;根据所述m个功率系数和所述m个第二平均功率确定所述N个器件的m个平均功率;针对每个器件:将所述m个平均功率中该器件分别在所述Mi个使用场景下的功率相加,得到该器件在所述设定时长内的平均功率。通过该方法,由于m个功率系数中的每个功率系数用于指示在设定时长内该器件在该使用场景下的平均功率与第二平均功率的比值,因而将m个功率系数分别与m个第二平均功率相乘,即可得到m个平均功率。得到的m个平均功率中的每个平均功率即代表某个器件在某个使用场景下的平均功率,那么,将某个器件在其所有使用场景下的平均功率相加,即可得到该器件在设定时长内的平均功率。In an optional implementation manner, determining, according to the power curve of the electronic device within the set duration and the m power models, determining power consumption of each device during the set duration, including: Determining, by the first spectral feature, the first average power, the m second spectral features, and the m second average powers, m power coefficients of the N devices, the m power coefficients Each of the power coefficients is used to indicate a ratio of an average power of the device in the usage scenario to a second average power over the set duration; according to the m power coefficients and the m second average powers Determining m average powers of the N devices; for each device: adding powers of the devices in the M i usage scenarios of the m average powers respectively, to obtain the device in the setting Average power over time. By this method, since each of the m power coefficients is used to indicate the ratio of the average power of the device in the usage scenario to the second average power over a set duration, m power coefficients are respectively associated with m The second average power is multiplied to obtain m average powers. The average power of each of the obtained m average powers represents the average power of a certain device in a certain usage scenario. Then, the average power of a device in all its usage scenarios is added to obtain the device. The average power over the set length of time.
一种可选的实施方式中,根据所述第一频谱特征、所述第一平均功率、所述m个第二频谱特征以及所述m个第二平均功率,确定所述N个器件的m个功率系数,具体包括:根据所述第一频谱特征和所述m个第二频谱特征分别确定所述每个第二频谱特征在所述第一频谱特征中的占比;根据所述占比、所述第一平均功率以及所述m个第二平均功率确定归一化系数;将所述占比和所述归一化系数相乘得到所述功率系数。In an optional implementation manner, determining, according to the first spectral feature, the first average power, the m second spectral features, and the m second average powers, m of the N devices And determining, according to the first spectral feature and the m second spectral features, a proportion of each of the second spectral features in the first spectral feature; And determining, by the first average power and the m second average powers, a normalization coefficient; multiplying the ratio and the normalization coefficient to obtain the power coefficient.
一种可选的实施方式中,所述第一频谱特征和所述m个第二频谱特征均采用同一组基底表示。通过上述方法,由于第一频谱特征和m个第二频谱特征是基于同一组基底表达的,因而在根据第一频谱特征和m个第二频谱特征确定每个第二频谱特征在第一频谱特征中的占比时,更易于计算和实现。In an optional implementation manner, the first spectral feature and the m second spectral features are represented by the same group of bases. By the above method, since the first spectral feature and the m second spectral features are expressed based on the same set of bases, each second spectral feature is determined in the first spectral feature according to the first spectral feature and the m second spectral features. It is easier to calculate and implement when it is accounted for.
一种可选的实施方式中,采用如下方式求解所述占比:
Figure PCTCN2017089169-appb-000002
In an optional implementation manner, the ratio is solved as follows:
Figure PCTCN2017089169-appb-000002
Figure PCTCN2017089169-appb-000003
Figure PCTCN2017089169-appb-000003
其中,F为所述第一频谱特征,Fi为所述m个第二频谱特征,fj为所述第一频谱特征 和所述m个第二频谱特征的基底,bj和aij分别为所述第一频谱特征和所述m个第二频谱特征在所述基底下的系数,xi为所述占比。Wherein F is the first spectral feature, F i is the m second spectral features, and f j is a base of the first spectral feature and the m second spectral features, b j and a ij respectively The coefficient of the first spectral feature and the m second spectral features under the substrate, x i is the ratio.
一种可选的实施方式中,采用如下方式求解所述归一化系数:
Figure PCTCN2017089169-appb-000004
In an optional implementation manner, the normalization coefficient is solved in the following manner:
Figure PCTCN2017089169-appb-000004
其中,P为所述第一平均功率,Pi为所述m个第二平均功率,k为所述归一化系数。Where P is the first average power, P i is the m second average powers, and k is the normalization coefficient.
第二方面,提供了一种电子设备,包括:一个或多个处理器;存储器;多个应用程序;以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备实现上述第一方面和第一方面的各可能的步骤。由于该电子设备解决问题的实施方式以及有益效果可以参见上述第一方面和第一方面的各可能的实施方式以及所带来的有益效果,因此该电子设备的实施可以参见上述第一方面和第一方面的可能的实施方式的实施,重复之处不再赘述。In a second aspect, an electronic device is provided, comprising: one or more processors; a memory; a plurality of applications; and one or more programs, wherein the one or more programs are stored in the memory, The one or more programs include instructions that, when executed by the electronic device, cause the electronic device to implement the various steps of the first aspect and the first aspect described above. For the implementation of the electronic device to solve the problem and the beneficial effects, refer to the first aspect and the possible implementation manners of the first aspect and the beneficial effects. Therefore, the implementation of the electronic device can refer to the first aspect and the foregoing The implementation of possible implementations on the one hand is not repeated here.
第三方面,提供了一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行上述第一方面和第一方面的任一项的方法。基于同一发明构思,重复之处不再赘述。In a third aspect, a computer readable storage medium is provided, comprising instructions, wherein when the instructions are run on an electronic device, the electronic device is caused to perform any of the first aspect and the first aspect described above Methods. Based on the same inventive concept, the repetition will not be described again.
第四方面,提供了一种电子设备,包括:第一确定单元、第二确定单元、以及第三确定单元;所述第一确定单元,用于确定所述电子设备在设定时长内的功率曲线;所述第二确定单元,用于分别确定所述电子设备中的N个器件的m个功率模型,所述m个功率模型用于指示所述N个器件中的每个器件分别在Mi个使用场景下的功率的频域特征,N≥1,i=1~N,
Figure PCTCN2017089169-appb-000005
所述第三确定单元,用于根据所述电子设备在所述设定时长内的功率曲线以及所述m个功率模型,确定每个器件在所述设定时长内的功耗。基于同一发明构思,由于该电子设备解决问题的原理以及有益效果可以参见上述第一方面和第一方面的各可能的实施方式以及所带来的有益效果,因此该电子设备的实施可以参见上述第一方面和第一方面的各可能的实施方式的实施,重复之处不再赘述。
A fourth aspect provides an electronic device, including: a first determining unit, a second determining unit, and a third determining unit; the first determining unit, configured to determine power of the electronic device within a set duration a second determining unit, configured to respectively determine m power models of N devices in the electronic device, where the m power models are used to indicate that each of the N devices is respectively at M Frequency domain characteristics of power in i use scenarios, N≥1, i=1~N,
Figure PCTCN2017089169-appb-000005
The third determining unit is configured to determine, according to the power curve of the electronic device within the set duration and the m power models, power consumption of each device within the set duration. Based on the same inventive concept, the principles and benefits of the electronic device can be solved by referring to the first aspect and the possible implementation manners of the first aspect and the beneficial effects. Therefore, the implementation of the electronic device can be referred to the above. The implementation of the various possible implementations of the first aspect and the repetitive aspects will not be described again.
附图说明DRAWINGS
图1为本申请实施例提供的一种确定电子设备的器件功耗方法的流程示意图;FIG. 1 is a schematic flowchart of a method for determining power consumption of a device of an electronic device according to an embodiment of the present disclosure;
图2为本发明实施例提供的手机100的部分结构的框图;2 is a block diagram showing a partial structure of a mobile phone 100 according to an embodiment of the present invention;
图3为本申请实施例提供的一种电子设备。FIG. 3 is an electronic device according to an embodiment of the present application.
具体实施方式detailed description
随着电子设备中集成的器件越来越多,电子设备的功耗和发热问题成为影响用户体验的重要因素。因而如何准确确定电子设备中各器件的功耗并告知用户成为一个亟需解决的问题。As more and more devices are integrated in electronic devices, the power consumption and heat generation of electronic devices become an important factor affecting the user experience. Therefore, how to accurately determine the power consumption of each device in the electronic device and inform the user to become an urgent problem to be solved.
现有技术中,确定电子设备中各器件的功耗的方法是:对于电子设备中的带控制器的器件,控制器内部一般预置功耗模型,控制器可根据当前时钟频率及运行模式来估算器件的当前功耗,电子设备可通过软件接口读取该器件的功耗;对于电子设备中的不带控制器 的器件,需通过分离测试的方法确定功耗,即单独对某器件供电并采样功耗数据。在上述方法中,在确定带控制器的器件功耗时,仅适用于部分带控制器的器件,对于某些带控制器的器件并不适用;在确定不带控制器的器件功耗时,由于分离测试需要专业设备,因而无法由用户在电子设备中完成,造成了极大的不便。In the prior art, the method for determining the power consumption of each device in the electronic device is: for a device with a controller in the electronic device, the controller generally presets a power consumption model, and the controller can be based on the current clock frequency and the operation mode. Estimating the current power consumption of the device, the electronic device can read the power consumption of the device through a software interface; for the electronic device without a controller The device needs to be determined by the separation test method, that is, a device is separately powered and the power consumption data is sampled. In the above method, when determining the power consumption of the device with the controller, it is only applicable to some devices with controllers, and is not applicable to some devices with controllers; when determining the power consumption of devices without controllers, Since the separation test requires professional equipment, it cannot be completed by the user in the electronic device, which causes great inconvenience.
因此,本申请实施例提供一种确定电子设备的器件功耗的方法、电子设备以及存储介质,用以准确地确定电子设备中各器件的功耗。其中,方法和电子设备是基于同一发明构思的,由于方法及电子设备解决问题的原理相似,因此电子设备与方法的实施可以相互参见,重复之处不再赘述。Therefore, embodiments of the present application provide a method, an electronic device, and a storage medium for determining power consumption of a device of an electronic device, to accurately determine power consumption of each device in the electronic device. The method and the electronic device are based on the same inventive concept. Since the principles of the method and the electronic device are similar, the implementation of the electronic device and the method can be referred to each other, and the repeated description is not repeated.
本申请实施例中,电子设备包括但不限于智能手机、智能手表、平板电脑、虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备、个人计算机、手持式计算机、个人数字助理。In the embodiment of the present application, the electronic device includes but is not limited to a smart phone, a smart watch, a tablet computer, a virtual reality (VR) device, an augmented reality (AR) device, a personal computer, a handheld computer, and a personal number. assistant Manager.
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述。In order to make the objects, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the accompanying drawings.
需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。It should be understood that in the description of the present application, the terms "first", "second" and the like are used to distinguish the purpose of the description, and are not to be construed as indicating or implying relative importance, nor as indicating or implying. order.
参见图1,为本申请实施例提供的确定电子设备的器件功耗的方法的流程示意图。该方法包括如下步骤:1 is a schematic flowchart of a method for determining power consumption of a device of an electronic device according to an embodiment of the present application. The method comprises the following steps:
S101:确定电子设备在设定时长内的功率的频域特征,并分别确定电子设备中的N个器件的m个功率模型。S101: Determine a frequency domain characteristic of the power of the electronic device within a set duration, and determine m power models of the N devices in the electronic device, respectively.
其中,m个功率模型用于指示N个器件中的每个器件分别在Mi个使用场景下的功率的频域特征,N≥1,i=1~N,
Figure PCTCN2017089169-appb-000006
Wherein, the m power models are used to indicate the frequency domain characteristics of the power of each of the N devices in the M i use scenarios, N≥1, i=1~N,
Figure PCTCN2017089169-appb-000006
S101中,电子设备中的N个器件包括但不限于显示器、全球定位系统(Global Positioning System,GPS)、射频电路、摄像头、音频电路等;使用场景可以是通话场景、浏览网页场景、息屏场景、游戏场景等。本申请实施例中,电子设备中的N个器件中,每个器件均对应Mi(i=1~N)个典型的使用场景,即N个器件中的器件1对应M1个使用场景,N个器件中的器件2对应M2个使用场景,N个器件中的器件3对应M3个使用场景……,以此类推。因此m个功率模型即代表每个器件在该器件的至少一个使用场景下的功率模型,m个功率模型中的某一个功率模型可以用于指示某个器件在某个使用场景下的频域特征。In S101, the N devices in the electronic device include, but are not limited to, a display, a Global Positioning System (GPS), a radio frequency circuit, a camera, an audio circuit, and the like; the usage scenario may be a call scene, a webpage scene, or a screen scene. , game scenes, etc. In the embodiment of the present application, each of the N devices in the electronic device corresponds to a typical usage scenario of M i (i=1~N), that is, device 1 in the N devices corresponds to M 1 use scenarios. Device 2 in N devices corresponds to M 2 usage scenarios, device 3 in N devices corresponds to M 3 usage scenarios... and so on. Therefore, the m power models represent the power models of each device in at least one usage scenario of the device, and one of the m power models can be used to indicate the frequency domain characteristics of a certain device in a certain usage scenario. .
比如,N个器件为显示屏和GPS这两个器件,显示屏对应通话、息屏、游戏三个使用场景,GPS对应使用地图导航和未使用地图导航两个使用场景。那么,m个功率模型分别为显示屏在通话场景下的功率模型、显示屏在息屏场景下的功率模型、显示屏在游戏场景下的功率模型、GPS在使用地图导航场景下的功率模型以及GPS在未使用地图导航场景下的功率模型这五个功率模型。For example, N devices are two devices: display screen and GPS. The display screen corresponds to three usage scenarios of call, interest screen and game. GPS uses map navigation and unused map navigation. Then, the m power models are respectively the power model of the display screen in the call scene, the power model of the display screen in the interest screen scene, the power model of the display screen in the game scene, the power model of the GPS using the map navigation scene, and The five power models of the power model of GPS under the map navigation scene are not used.
需要说明的是,电子设备中的不同器件之间,其各自的使用场景可以完全不同、可以完全相同也可以部分相同,本申请实施例中对此不做限定。比如,针对电子设备中的器件1、器件2而言,其各自的使用场景可以有如下三种情况:It should be noted that the respective usage scenarios of the different devices in the electronic device may be completely different, may be identical, or may be partially the same, which is not limited in the embodiment of the present application. For example, for device 1 and device 2 in an electronic device, the respective usage scenarios can be as follows:
第一种情况First case
器件1对应A、B、C三个使用场景,器件2对应D、E、F、G四个使用场景。 Device 1 corresponds to three usage scenarios A, B, and C, and device 2 corresponds to four usage scenarios of D, E, F, and G.
第二种情况Second case
器件1对应A、B、C三个使用场景,器件2对应A、B、C三个使用场景。Device 1 corresponds to three usage scenarios of A, B, and C, and device 2 corresponds to three usage scenarios of A, B, and C.
第三种情况Third case
器件1对应A、B、C三个使用场景,器件2对应C、D两个使用场景。Device 1 corresponds to three usage scenarios of A, B, and C, and device 2 corresponds to two usage scenarios of C and D.
同样需要说明的是,电子设备中的不同器件之间,其各自的使用场景的数量可以相同也可以不同,本申请实施例中对此也不做限定。仍以器件1和器件2为例,器件1对应的使用场景的数量为2时,器件2对应的使用场景的数量可以为2也可以不为2。It should be noted that the number of the usage scenarios of the different devices in the electronic device may be the same or different, which is not limited in the embodiment of the present application. The device 1 and the device 2 are still taken as an example. When the number of usage scenarios of the device 1 is 2, the number of usage scenarios corresponding to the device 2 may be 2 or not 2.
S101中,电子设备在设定时长内的功率曲线可通过在设定时长内对电子设备的功率数据进行AD采样得到,也就是说,电子设备在设定时长内的功率曲线与采集功率数据的时间有关。假设设定时长为5分钟,那么电子设备在18:00~18:05这一时段的功率曲线与电子设备在18:05~18:10这一时段的功率曲线是不同。相应地,功率模型是某个器件在某个使用场景下的功率的固有特征,与AD采样的时间无关。In S101, the power curve of the electronic device during the set time period can be obtained by performing AD sampling on the power data of the electronic device within a set time period, that is, the power curve of the electronic device within the set time period and the collected power data. Time related. Assuming that the set duration is 5 minutes, the power curve of the electronic device during the period from 18:00 to 18:05 is different from the power curve of the electronic device during the period of 18:05 to 18:10. Accordingly, the power model is an inherent feature of the power of a device in a certain usage scenario, regardless of the time of AD sampling.
S102:根据电子设备在设定时长内的功率曲线以及m个功率模型,确定每个器件在设定时长内的功耗。S102: Determine power consumption of each device for a set duration according to a power curve of the electronic device within a set duration and m power models.
S102中,根据电子设备在设定时长内的功率曲线以及m个功率模型,可以确定出每个功率模型对应的平均功率,而每个功率模型对应的平均功率均代表一个器件在一个使用场景下的平均功率。那么,对于电子设备中的一个器件来说,该器件在设定时长内的平均功率就等于该器件在该器件每个使用场景下的平均功率之和,该器件在设定时长内的功耗等于该器件在设定时长内的平均功率对设定时长的积分。In S102, according to the power curve of the electronic device in the set duration and the m power models, the average power corresponding to each power model can be determined, and the average power corresponding to each power model represents a device in a use scenario. Average power. Then, for a device in an electronic device, the average power of the device for a set period of time is equal to the sum of the average power of the device in each usage scenario of the device, and the power consumption of the device for a set period of time. Equal to the integration of the average power of the device over the set duration to the set duration.
S101中,需要确定电子设备在设定时长内的功率曲线以及上述m个功率模型。其中,确定电子设备在设定时长内的功率曲线,具体可通过如下方式实现:确定电子设备在设定时长内的功率的第一频谱特征以及电子设备在设定时长内的第一平均功率;确定m个功率模型,具体可通过如下方式实现:分别确定N个器件的m个第二频谱特征以及与m个第二频谱特征一一对应的m个第二平均功率,m个第二频谱特征为N个器件中的每个器件分别在Mi个使用场景下的功率的频谱特征,m个第二平均功率为N个器件中的每个器件分别在Mi个使用场景下的功率的平均值。In S101, it is necessary to determine a power curve of the electronic device within a set time period and the above m power models. The determining the power curve of the electronic device for a set period of time may be specifically implemented by: determining a first spectral feature of the power of the electronic device within a set duration and a first average power of the electronic device within a set duration; Determining the m power models may be implemented by: respectively determining m second spectral features of the N devices and m second average powers corresponding to the m second spectral features, m second spectral features The spectral characteristics of the power in the M i use scenarios for each of the N devices, the m second average power being the average of the power of each of the N devices in the M i use scenarios value.
也就是说,电子设备在设定时长内的功率曲线可以由第一频谱特征和第一平均功率来表征;m个功率模型可以分别由m个第二频谱特征以及与m个第二频谱特征一一对应的m个第二平均功率来表征。That is, the power curve of the electronic device during the set duration may be characterized by the first spectral feature and the first average power; the m power models may be respectively composed of m second spectral features and one of the m second spectral features A corresponding m second average power is characterized.
频谱特征可以指示组成信号的频率分量以及每个频率分量的大小。频谱特征可以通过对时域信号进行傅里叶变换或者小波变换等方式确定。比如,通过对电子设备在设定时长内的功率进行傅里叶变换或者小波变换可以得到第一频谱特征,通过分别对m个功率模型进行傅里叶变换或者小波变换可以分别得到m个第二频谱特征。The spectral features may indicate the frequency components that make up the signal and the size of each frequency component. The spectral characteristics can be determined by performing Fourier transform or wavelet transform on the time domain signal. For example, the first spectral feature can be obtained by performing Fourier transform or wavelet transform on the power of the electronic device within a set duration, and m second can be obtained by performing Fourier transform or wavelet transform on the m power models respectively. Spectrum characteristics.
其中,通过对原始信号进行傅里叶变换可以实现用不同频率的三角函数之和去拟合原始信号,而小波变换的原理与傅里叶变换类似,只是小波变换的基底不是三角函数,而是一组小波基。小波基需满足如下两个条件:1、小波基的均值为0;2、小波基在时域和频域上都具有局部化特征(即不会蔓延到整个坐标轴)。通过小波变换可将原始信号表示为一组小波基的线性组合,从而可对原始信号进行多尺度分析。Among them, the Fourier transform of the original signal can be used to fit the original signal with the sum of trigonometric functions of different frequencies, and the principle of wavelet transform is similar to the Fourier transform, except that the base of the wavelet transform is not a trigonometric function, but A set of wavelet bases. The wavelet base needs to satisfy the following two conditions: 1. The mean value of the wavelet base is 0; 2. The wavelet base has localized features in both the time domain and the frequency domain (ie, does not spread to the entire coordinate axis). The wavelet transform can be used to represent the original signal as a linear combination of a set of wavelet bases, allowing multi-scale analysis of the original signal.
当S101中采用上述方式确定电子设备在设定时长内的功率曲线以及上述m个功率模型时,在S102中可进一步通过如下方式确定每个器件在设定时长内的功耗:根据第一频 谱特征、第一平均功率、m个第二频谱特征以及m个第二平均功率,确定N个器件的m个功率系数,m个功率系数中的每个功率系数用于指示在设定时长内该器件在该使用场景下的平均功率与第二平均功率的比值;根据m个功率系数和m个第二平均功率确定N个器件的m个平均功率;然后,针对每个器件执行如下操作:将m个平均功率中该器件分别在Mi个使用场景下的平均功率相加,得到该器件在设定时长内的平均功率。When the power curve of the electronic device within the set duration and the m power models are determined in the above manner in S101, the power consumption of each device in the set duration may be further determined in S102 by: according to the first spectrum a feature, a first average power, m second spectral features, and m second average powers, determining m power coefficients of the N devices, each of the m power coefficients being used to indicate that within the set time period The ratio of the average power of the device in the usage scenario to the second average power; determining m average powers of the N devices based on the m power coefficients and the m second average powers; then, performing the following operations for each device: m in an average power in the average power of the device, respectively, under a usage scenarios m i is added to obtain the average power of the device within the set duration.
假设电子设备中的N个器件为器件1和器件2,器件1对应A、B、C三个使用场景,器件2对应B、D两个使用场景。那么,m个功率模型为器件1在使用场景A下的功率模型、器件1在使用场景B下的功率模型、器件1在使用场景C下的功率模型、器件2在使用场景B下的功率模型以及器件2在使用场景D下的功率模型;假设第一频谱特征为F、第一平均功率为P、m个第二频谱特征分别为F1~F5、m个第二平均功率分别为P1~P5,则根据F、P、F1~F5、P1~P5可确定出五个功率系数a1、a2、a3、a4和a5。其中,a1用于指示器件1在使用场景A下的平均功率与A1的比值,a2用于指示器件1在使用场景B下的平均功率与A2的比值,a3用于指示器件1在使用场景C下的平均功率与A3的比值,a4用于指示器件2在使用场景B下的平均功率与A4的比值,a5用于指示器件2在使用场景D下的平均功率与A5的比值。根据上述五个功率系数和A1~A5可确定出五个平均功率值q1、q2、q3、q4和q5。其中,q1为设定时长内器件1在使用场景A下的平均功率,q2为设定时长内器件1在使用场景B下的平均功率,q3为设定时长内器件1在使用场景C下的平均功率,q4为设定时长内器件2在使用场景B下的平均功率,q5为设定时长内器件2在使用场景D下的平均功率。将q1、q2、q3之和对设定时长积分即可得到器件1在设定时长内的功耗,将q4、q5之和对设定时长积分即可得到器件2在设定时长内的功耗。It is assumed that N devices in the electronic device are device 1 and device 2, device 1 corresponds to three usage scenarios of A, B, and C, and device 2 corresponds to two usage scenarios of B and D. Then, the m power models are the power model of the device 1 under the use scenario A, the power model of the device 1 under the use scenario B, the power model of the device 1 under the use scenario C, and the power model of the device 2 under the use scenario B. And the power model of the device 2 in the use scenario D; the first spectrum feature is F, the first average power is P, the m second spectrum features are F1 to F5, and the m second average powers are respectively P1 to P5. Then, five power coefficients a1, a2, a3, a4, and a5 can be determined according to F, P, F1 to F5, and P1 to P5. Where a1 is used to indicate the ratio of the average power of the device 1 under the use scenario A to A1, a2 is used to indicate the ratio of the average power of the device 1 under the use scenario B to A2, and a3 is used to indicate that the device 1 is in use scenario C. The ratio of the average power to A3 below, a4 is used to indicate the ratio of the average power of device 2 under use scenario B to A4, and a5 is used to indicate the ratio of the average power of device 2 to scene A using scene D. Five average power values q1, q2, q3, q4, and q5 can be determined based on the above five power coefficients and A1 to A5. Where q1 is the average power of the device 1 under the use scenario A within the set duration, q2 is the average power of the device 1 under the use scenario B within the set duration, and q3 is the set duration of the device 1 under the use scenario C The average power, q4 is the average power of the device 2 under the use scenario B within the set duration, and q5 is the average power of the device 2 under the use scenario D for the set duration. By integrating the sum of q1, q2, and q3 with the set duration, the power consumption of the device 1 for the set duration can be obtained, and the sum of q4 and q5 can be integrated for the set duration to obtain the work of the device 2 for the set duration. Consumption.
采用上述方案,由于m个功率系数中的每个功率系数用于指示在设定时长内该器件在该使用场景下的平均功率与第二平均功率的比值,因而将m个功率系数分别与m个第二平均功率相乘,即可得到m个平均功率。得到的m个平均功率中的每个平均功率即代表某个器件在某个使用场景下的平均功率,那么,将某个器件在其所有使用场景下的平均功率相加,即可得到该器件在设定时长内的平均功率。According to the above scheme, since each of the m power coefficients is used to indicate the ratio of the average power of the device in the use scenario to the second average power within a set duration, the m power coefficients are respectively associated with m The second average power is multiplied to obtain m average powers. The average power of each of the obtained m average powers represents the average power of a certain device in a certain usage scenario. Then, the average power of a device in all its usage scenarios is added to obtain the device. The average power over the set length of time.
进一步地,确定m个功率系数的一种具体实现方式可以是:根据第一频谱特征和m个第二频谱特征分别确定每个第二频谱特征在第一频谱特征中的占比;根据确定的m个占比、第一平均功率以及m个第二平均功率确定归一化系数;将m个占比分别和归一化系数相乘得到上述m个功率系数。Further, a specific implementation manner of determining the m power coefficients may be: determining, according to the first spectral feature and the m second spectral features, a proportion of each second spectral feature in the first spectral feature; The m proportions, the first average power, and the m second average powers determine a normalization coefficient; and the m ratios are respectively multiplied by the normalization coefficients to obtain the m power coefficients.
由于m个第二频谱特征中的每个频谱特征均代表某个器件在某个使用场景下的功率的频谱特征,而该器件经历该使用场景的时长可能仅为上述设定时长内的某一部分时间段,因而该器件在设定时长内的功耗并不能直接通过第二平均功率对设定时长积分得到。因此,可以先求得m个第二频谱特征中的每个第二频谱特征在第一频谱特征中的占比,从而根据m个占比、第一平均功率以及m个第二平均功率确定归一化系数,将上述m个占比和归一化系数相乘可以得到m个功率系数。某个器件在某个使用场景下的功率系数指示在设定时长内该器件在该使用场景下的平均功率与第二平均功率的比值。Since each of the m second spectral features represents a spectral characteristic of the power of a certain device in a certain usage scenario, the duration of the device going through the usage scenario may be only a part of the set duration. The time period, therefore, the power consumption of the device for a set period of time cannot be directly integrated by the second average power for the set duration. Therefore, the proportion of each of the second second spectral features in the first spectral feature may be determined first, thereby determining the return according to the m ratio, the first average power, and the m second average powers. A coefficient of multiplication, multiplying the above m proportions and the normalization coefficient to obtain m power coefficients. The power factor of a device in a certain usage scenario indicates the ratio of the average power of the device in the usage scenario to the second average power over a set period of time.
其中,归一化系数为在设定时长内的一个固定数值。也就是说,选择在不同的时间段确定电子设备中各器件的功耗时,归一化系数会发生变化。Wherein, the normalization coefficient is a fixed value within the set duration. That is to say, the normalization coefficient changes when the power consumption of each device in the electronic device is determined to be determined in different time periods.
如前所述,第一频谱特征和第二频谱特征均可通过傅里叶变换或者小波变换得到。在进行傅里叶变换或小波变换时,第一频谱特征和m个第二频谱特征可以采用同一组基底表 示。这样,由于第一频谱特征和m个第二频谱特征是基于同一组基底表达的,因而在根据第一频谱特征和m个第二频谱特征确定上述占比时,更易于计算和实现。As mentioned before, both the first spectral feature and the second spectral feature can be obtained by Fourier transform or wavelet transform. When performing a Fourier transform or a wavelet transform, the first spectral feature and the m second spectral features may use the same set of base tables. Show. Thus, since the first spectral feature and the m second spectral features are expressed based on the same set of bases, it is easier to calculate and implement when determining the above ratio based on the first spectral feature and the m second spectral features.
以第一频谱特征和m个第二频谱特征均采用同一组小波基f1,f2......fn表示为例,那么,每个第二频谱特征在第一频谱特征中的占比可采用如下方式求解:Taking the same set of wavelet bases f 1 , f 2 . . . f n as the first spectral feature and the m second spectral features, then each second spectral feature is in the first spectral feature. The ratio can be solved as follows:
Figure PCTCN2017089169-appb-000007
Figure PCTCN2017089169-appb-000007
Figure PCTCN2017089169-appb-000008
Figure PCTCN2017089169-appb-000008
其中,F为第一频谱特征,Fi为m个第二频谱特征,bj和aij分别为第一频谱特征和m个第二频谱特征在基底下的系数,xi为占比。Where F is the first spectral feature, F i is m second spectral features, b j and a ij are coefficients of the first spectral feature and m second spectral features respectively under the base, and x i is the ratio.
进一步地,归一化系数可采用如下方式求解:Further, the normalization coefficient can be solved as follows:
Figure PCTCN2017089169-appb-000009
Figure PCTCN2017089169-appb-000009
其中,P为第一平均功率,Pi为m个第二平均功率,k为归一化系数。Where P is the first average power, P i is m second average power, and k is a normalization coefficient.
采用图1所示的确定电子设备的器件功耗的方法,由于m个功率模型用于指示N个器件中的每个器件分别在Mi个使用场景下的功率的频域特征,因而根据电子设备在设定时长内的功率曲线以及m个功率模型可以确定每个器件在该器件的每个使用场景下的平均功率,进而确定该器件在设定时长内的功耗。采用图1所示方法确定器件功耗时,不会出现现有技术中存在的对某些器件不适用的情况。由于图1所示方法可以在电子设备的使用过程中即时采集设定时长内的功率曲线并进行计算,因而采用该方法确定的各器件的功耗能准确反映该器件的当前功耗,与现有技术相比,可以提高结果的准确性。在准确确定出各器件的功耗后,可以在某个器件功耗较大时提醒用户进行相应处理或自动进行相应处理,从而降低电子设备的功耗。Using the method for determining the power consumption of the device of the electronic device shown in FIG. 1, since the m power models are used to indicate the frequency domain characteristics of the power of each of the N devices in the M i use scenarios, The power curve of the device over a set period of time and the m power models determine the average power of each device in each usage scenario of the device to determine the power consumption of the device for a set period of time. When the power consumption of the device is determined by the method shown in FIG. 1, there is no possibility that the prior art does not apply to some devices. Since the method shown in FIG. 1 can instantaneously collect and calculate the power curve within the set duration during the use of the electronic device, the power consumption of each device determined by the method can accurately reflect the current power consumption of the device, and Compared with technology, the accuracy of the results can be improved. After accurately determining the power consumption of each device, the user can be reminded to perform corresponding processing or automatically perform corresponding processing when the power consumption of a certain device is large, thereby reducing the power consumption of the electronic device.
具体实现时,执行图1所示方法的触发条件包括但不限于:In a specific implementation, the triggering conditions for performing the method shown in FIG. 1 include but are not limited to:
1、电子设备发热严重:即电子设备发热严重时由用户触发或电子设备自动触发执行图1所示方法,检测电子设备中各器件的功耗,从而在某个器件功耗较大时提醒用户进行相应处理或自动进行相应处理(比如进行降功耗操作或者关闭操作),从而可以降低电子设备的功耗、减轻电子设备的发热情况、避免由于某个器件的功耗异常导致电子设备的故障。比如,当电子设备发热严重时,通过执行图1所示的方法确定电子设备中各器件的功耗后,在中央处理器(Central Processing Unit,CPU)或液晶显示器(Liquid Crystal Display,LCD)的功耗较大时可提示用户对CPU或LCD进行降频操作,或者在GPS的功耗数据异常时对GPS自动进行关闭,从而避免GPS的功耗异常导致电子设备故障。1. The electronic device is seriously heated: when the electronic device is hot, the user triggers or the electronic device automatically triggers the method shown in Figure 1 to detect the power consumption of each device in the electronic device, thereby alerting the user when the power consumption of a device is large. Perform corresponding processing or automatically perform corresponding processing (such as performing power reduction operation or shutdown operation), thereby reducing power consumption of electronic devices, reducing heat generation of electronic devices, and avoiding malfunction of electronic devices due to abnormal power consumption of a certain device. . For example, when the electronic device is hot, the power consumption of each device in the electronic device is determined by performing the method shown in FIG. 1 on a central processing unit (CPU) or a liquid crystal display (LCD). When the power consumption is large, the user may be prompted to perform a frequency reduction operation on the CPU or the LCD, or automatically turn off the GPS when the power consumption data of the GPS is abnormal, thereby avoiding the power consumption abnormality of the GPS and causing the electronic device to malfunction.
2、电子设备的使用场景发生变化:比如电子设备由待机场景切换为通话场景、由游戏场景切换为照相场景等。当电子设备的使用场景发生变化时,电子设备中各器件的功耗也可能会发生变化,此时可通过执行图1所示方法确定电子设备中各器件的功耗,从而有助于分析电子设备中各器件的功耗变化情况,并对功耗异常的器件进行相应处理。2. The usage scene of the electronic device changes: for example, the electronic device is switched from the standby scene to the call scene, and the game scene is switched to the camera scene. When the usage scenario of the electronic device changes, the power consumption of each device in the electronic device may also change. At this time, the power consumption of each device in the electronic device may be determined by performing the method shown in FIG. The power consumption of each device in the device changes, and the devices with abnormal power consumption are processed accordingly.
此外,图1所示的方法也可应用于电子设备的研发过程中,比如在电子设备的研发过程中实时分析各器件的功耗情况,从而帮助研发人员优化电子设备的能耗。In addition, the method shown in FIG. 1 can also be applied to the development process of electronic devices, such as real-time analysis of the power consumption of each device during the development of electronic devices, thereby helping developers to optimize the energy consumption of electronic devices.
基于以上实施例,本申请还提供一种确定电子设备的器件功耗的方法,该方法可视为图1所示方法的一个具体示例。该方法包括如下步骤: Based on the above embodiments, the present application also provides a method for determining power consumption of a device of an electronic device, which may be regarded as a specific example of the method shown in FIG. 1. The method comprises the following steps:
1、选择一组小波基f1,f2......fn1. Select a set of wavelet bases f 1 , f 2 ... f n .
其中,小波基f1,f2......fn是一族函数,这一族函数的均值为0且在时域和频域都呈现局部化的特征。小波基的种类有很多,在应用时可根据工程场景和需求来进行选择。本申请实施例中对小波基f1,f2......fn的种类不做限制,例如可以是Haar Wavelet。Among them, the wavelet bases f 1 , f 2 ... f n are a family of functions, and the mean of this family of functions is 0 and exhibits localized features in both the time domain and the frequency domain. There are many types of wavelet bases, which can be selected according to engineering scenarios and requirements. The type of the wavelet bases f 1 , f 2 . . . f n is not limited in the embodiment of the present application, and may be, for example, a Haar Wavelet.
2、采样电子设备中的各器件在该器件的所有使用场景下的频率曲线得到m个频率曲线F1~Fm,并计算F1~Fm的平均功率值P1~Pm2, the sampling frequency curve of each device in electronic equipment in all usage scenarios of the device to obtain m frequency curve F 1 ~ F m, and F 1 ~ F m calculates an average power value P 1 ~ P m.
其中,F1~Fm即为图1所示方法中的m个第二特征频谱的具体示例,P1~Pm即为图1所示方法中的m个第二平均功率的具体示例。Wherein, F 1 to F m are specific examples of m second characteristic spectra in the method shown in FIG. 1, and P 1 to P m are specific examples of m second average powers in the method shown in FIG. 1 .
3、对F1~Fm分别进行小波分析,即将F1~Fm分别分解成小波基f1,f2......fn的组合,可以分别得到系数aij,其中i=1~m,j=1~n。3. Wavelet analysis is performed on F 1 to F m respectively, that is, F 1 to F m are respectively decomposed into a combination of wavelet bases f 1 , f 2 ... f n , respectively, and coefficients a ij can be obtained respectively, where i= 1 to m, j = 1 to n.
Figure PCTCN2017089169-appb-000010
Figure PCTCN2017089169-appb-000010
4、当电子设备的功耗超过一定阈值时触发功率采样,得到电子设备在设定时长内的功率曲线F,并计算对应的平均功率值P。4. When the power consumption of the electronic device exceeds a certain threshold, the power sampling is triggered, and the power curve F of the electronic device within the set duration is obtained, and the corresponding average power value P is calculated.
其中,F即为图1所示方法中的第一特征频谱的具体示例,P即为图1所示方法中的第一平均功率的具体示例。Wherein, F is a specific example of the first characteristic spectrum in the method shown in FIG. 1, and P is a specific example of the first average power in the method shown in FIG. 1.
5、对F进行小波分析,即将F同样分解成小波基f1,f2......fn的组合,可以分别得到系数bj,j=1~n。5. Perform wavelet analysis on F, that is, F is also decomposed into a combination of wavelet bases f 1 , f 2 ... f n , and coefficients b j , j=1 to n can be obtained respectively.
Figure PCTCN2017089169-appb-000011
Figure PCTCN2017089169-appb-000011
6、由于
Figure PCTCN2017089169-appb-000012
因而可以确定每个第二频谱特征在第一频谱特征中的占比xi
6, due to
Figure PCTCN2017089169-appb-000012
It is thus possible to determine the proportion x i of each second spectral feature in the first spectral feature.
7、由于
Figure PCTCN2017089169-appb-000013
因而可以确定归一化系数k。
7, due to
Figure PCTCN2017089169-appb-000013
Thus, the normalization coefficient k can be determined.
8、将占比xi分别与归一化k系数相乘得到m个功率系数k*xi8. Multiplying the ratio x i by the normalized k coefficient to obtain m power coefficients k*x i .
9、将m个功率系数k*xi分别与m个第二平均功率相乘即可分别得到m个平均功率值,m个平均功率值中的每个功率值即代表设定时长内某个器件在某个使用场景下的平均功率。9. Multiplying m power coefficients k*x i and m second average powers respectively to obtain m average power values, and each of the m average power values represents a certain set time duration. The average power of the device under a certain usage scenario.
10、将某个器件在其所有使用场景下的平均功率相加,即可得到该器件在设定时长内的平均功率,然后,将该器件在设定时长内的平均功率对设定时长积分即可得到器件在设定时长内的功耗。10. Add the average power of a device in all its usage scenarios to get the average power of the device for a set period of time. Then, integrate the average power of the device over the set duration for the set duration. You can get the power consumption of the device for a set period of time.
11、通过对电子设备中的所有器件执行步骤10即可得到电子设备中的每个器件在设定时长内的功耗。11. By performing step 10 on all devices in the electronic device, the power consumption of each device in the electronic device for a set period of time can be obtained.
本发明实施例还提供一种电子设备,在一些实施例中,该电子设备可以是例如手机的便携式电子设备,也可以是平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等具有耳机接口的通信电子设备。为了便于说明,本发明实施例以手机为例示例性说明。The embodiment of the present invention further provides an electronic device. In some embodiments, the electronic device may be a portable electronic device such as a mobile phone, or may be a tablet, a PDA (Personal Digital Assistant), or a POS (Point of Sales, sales terminal, communication computer with headset interface, etc. For convenience of description, the embodiment of the present invention exemplifies a mobile phone as an example.
图2为本发明实施例提供的手机100的部分结构的框图。如图2所示,手机100可以包括显示屏140、存储器120、处理器180、天线104、射频电路110、定位模块195、传感器150、其他输入设备130、I/O子系统170、音频电路160、电源190、耳机接口200等部件。本领域 技术人员可以理解,图2中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。FIG. 2 is a block diagram of a partial structure of a mobile phone 100 according to an embodiment of the present invention. As shown in FIG. 2, the mobile phone 100 can include a display screen 140, a memory 120, a processor 180, an antenna 104, a radio frequency circuit 110, a positioning module 195, a sensor 150, other input devices 130, an I/O subsystem 170, and an audio circuit 160. , power supply 190, headphone interface 200 and other components. Field The skilled person can understand that the structure of the mobile phone shown in FIG. 2 does not constitute a limitation on the mobile phone, and may include more or less components than those illustrated, or combine some components, or split some components, or different. Assembly of parts.
显示屏140可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单,还可以接受用户输入。具体的显示屏140可包括显示面板141,以及触控面板142。其中显示面板141可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。触控面板142,也称为触摸屏、触敏屏等,可收集用户在其上或附近的接触或者非接触操作(比如用户使用手指、触笔等任何适合的物体或附近在触控面板142上或在触控面板142附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型。),并根据预先设定的程式驱动相应的连接电子设备。可选的,触控面板142可包括触摸检测电子设备和触摸控制器两个部分。其中,触摸检测电子设备检测用户的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测电子设备上接收触摸信息,并将它转换成处理器能够处理的信息,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板142,也可以采用未来发展的任何技术实现触控面板142。进一步的,触控面板142可覆盖显示面板141,用户可以根据显示面板141显示的内容(该显示内容包括但不限于,软键盘、虚拟鼠标、虚拟按键、图标等等),在显示面板141上覆盖的触控面板142上或者附近进行操作,触控面板142检测到在其上或附近的操作后,通过I/O子系统170传送给处理器180以确定用户输入,随后处理器180根据用户输入通过I/O子系统170在显示面板141上提供相应的视觉输出。触控面板142与显示面板141可以作为两个独立的部件来实现手机100的输入和输入功能,但是在某些实施例中,可以将触控面板142与显示面板141集成而实现手机100的输入和输出功能。The display screen 140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone 100, and can also accept user input. The specific display screen 140 may include a display panel 141 and a touch panel 142. The display panel 141 can be configured by using an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. The touch panel 142, also referred to as a touch screen, a touch sensitive screen, etc., can collect contact or non-contact operations on or near the user (such as the user using any suitable object such as a finger, a stylus, or the like on or near the touch panel 142). Or the operation in the vicinity of the touch panel 142 may also include a somatosensory operation; the operation includes a single-point control operation, a multi-point control operation, and the like, and drives the corresponding connected electronic device according to a preset program. Optionally, the touch panel 142 can include two parts: a touch detection electronic device and a touch controller. Wherein, the touch detection electronic device detects the touch orientation and posture of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection electronic device, and converts it into a processing. The information that the device can process is sent to the processor 180 and can receive commands from the processor 180 and execute them. In addition, the touch panel 142 can be implemented by using various types such as resistive, capacitive, infrared, and surface acoustic waves, and the touch panel 142 can be implemented by any technology developed in the future. Further, the touch panel 142 can cover the display panel 141, and the user can display the content according to the display panel 141 (the display content includes, but is not limited to, a soft keyboard, a virtual mouse, a virtual button, an icon, etc.) on the display panel 141. Operation is performed on or near the covered touch panel 142. After detecting the operation thereon or nearby, the touch panel 142 transmits to the processor 180 through the I/O subsystem 170 to determine user input, and then the processor 180 according to the user The input provides a corresponding visual output on display panel 141 via I/O subsystem 170. The touch panel 142 and the display panel 141 can function as two independent components to implement the input and input functions of the mobile phone 100. However, in some embodiments, the touch panel 142 can be integrated with the display panel 141 to implement the input of the mobile phone 100. And output function.
手机100还可以包括存储器120,用于存储计算机可执行程序代码,所述程序代码包括指令。处理器180通过运行存储在存储器120的指令,从而执行手机100的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等。存储数据区可存储根据手机100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The handset 100 can also include a memory 120 for storing computer executable program code, the program code including instructions. The processor 180 executes various functional applications and data processing of the mobile phone 100 by executing instructions stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area. The storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.). The storage data area can store data (such as audio data, phone book, etc.) created according to the use of the mobile phone 100. Moreover, memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
手机100还可以包括处理器180。处理器180是手机100的控制中心。利用各种接口和线路连接整个手机的各个部分。通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行手机100的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理单元。处理器180可集成应用处理器、调制解调处理器,基带模块、功率管理芯片、存储器、编解码器等。其中,应用处理器主要处理操作系统、用户界面和应用程序等。调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。可以使用处理器180和存储器120实现互联网协议、无线局域网协议(例如,IEEE702.11)、3G、4G、5G通信协议等。 The handset 100 can also include a processor 180. The processor 180 is a control center of the mobile phone 100. Connect the various parts of the entire phone with a variety of interfaces and lines. The various functions and processing data of the handset 100 are performed by running or executing software programs and/or modules stored in the memory 120, as well as recalling data stored in the memory 120, thereby providing overall monitoring of the handset. Alternatively, processor 180 may include one or more processing units. The processor 180 can integrate an application processor, a modem processor, a baseband module, a power management chip, a memory, a codec, and the like. Among them, the application processor mainly deals with operating systems, user interfaces, applications, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180. The Internet Protocol, Wireless Local Area Network Protocol (e.g., IEEE 702.11), 3G, 4G, 5G communication protocols, etc., can be implemented using the processor 180 and the memory 120.
手机100还可以包括天线104,用于发射、接收射频信号。天线104可以位于手机100中的任意位置。本发明实施例示意的天线的位置仅是示例性说明。手机100可以具有一个或多个天线。手机100中的每个天线可用于覆盖单个或多个通信频带。The handset 100 can also include an antenna 104 for transmitting and receiving radio frequency signals. The antenna 104 can be located anywhere in the handset 100. The position of the antenna illustrated in the embodiment of the present invention is merely an exemplary illustration. Cell phone 100 can have one or more antennas. Each antenna in handset 100 can be used to cover a single or multiple communication bands.
手机100还包括射频电路110。用于在收发信息或通话过程中,信号的接收和发送。例如,接收基站的下行信息后,发送给处理器180处理。另外,将上行的数据发送给基站。通常,射频电路110包括至少一个功率放大器109、收发器108、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,射频电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The handset 100 also includes a radio frequency circuit 110. Used to receive and send signals during sending or receiving information or during a call. For example, after receiving the downlink information of the base station, it is sent to the processor 180 for processing. In addition, the uplink data is transmitted to the base station. Generally, the radio frequency circuit 110 includes at least one power amplifier 109, a transceiver 108, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the radio frequency circuit 110 can also communicate with the network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
手机100还可以包括功率放大器109,功率放大器用于放大要由手机100发射的射频信号。可以使用一个或多个集成电路中的一个或多个增益级来实现功率放大器109,如图2所示。可以理解的,可以有多个功率放大器109,每个功率放大器109与一个通信频带或一组通信频带相关联。为简化说明,图2以单个功率放大器109符号示意说明。The handset 100 can also include a power amplifier 109 for amplifying the radio frequency signals to be transmitted by the handset 100. Power amplifier 109 can be implemented using one or more gain stages in one or more integrated circuits, as shown in FIG. It will be appreciated that there may be a plurality of power amplifiers 109, each associated with a communication band or a group of communication bands. To simplify the description, FIG. 2 is schematically illustrated by a single power amplifier 109 symbol.
可选的,手机100还可以包括定位模块195。定位模块用于检测手机100的位置、方位等。手机100的位置或方位的检测可使用各种定位服务来执行,例如全球定位系统(Global Positioning System,GPS)、辅助式GPS(Assisted GPS,A-GPS)、基于对已注册蜂窝式电话的蜂窝式电话基站三角测量或三边测量、伽利略定位系统,或其它定位或位置服务或技术。可使用各种硬件、软件及其组合来检测手机100的位置或方位,例如GPS单元、加速计以及手机100中的其它定向和移动检测服务或技术。Optionally, the mobile phone 100 may further include a positioning module 195. The positioning module is configured to detect the position, orientation, and the like of the mobile phone 100. Detection of the location or orientation of the handset 100 can be performed using various positioning services, such as Global Positioning System (GPS), Assisted GPS (A-GPS), cellular based on registered cellular telephones. Telephone base station triangulation or trilateration, Galileo positioning system, or other positioning or location services or technologies. Various hardware, software, and combinations thereof can be used to detect the location or orientation of the handset 100, such as GPS units, accelerometers, and other orientation and motion detection services or technologies in the handset 100.
手机100还可以包括传感器150,可以包括接近传感器、环境光传感器、加速计传感器等。其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在手机100移动到耳边时,关闭显示面板141和/或背光。The handset 100 can also include a sensor 150, which can include a proximity sensor, an ambient light sensor, an accelerometer sensor, and the like. Wherein, the ambient light sensor can adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor can close the display panel 141 and/or the backlight when the mobile phone 100 moves to the ear.
接近传感器可以包括例如发光二极管(LED)和相关联的光检测器,例如光电二极管。发光二极管可以是红外发光二极管,通过发光二极管向外发射红外光。使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定手机100附近有物体。当检测到不充分的反射光时,可以确定手机100附近没有物体。Proximity sensors can include, for example, light emitting diodes (LEDs) and associated photodetectors, such as photodiodes. The light emitting diode may be an infrared light emitting diode that emits infrared light through the light emitting diode. Photodiodes are used to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the mobile phone 100. When insufficient reflected light is detected, it can be determined that there is no object near the mobile phone 100.
环境光传感器可以是能够检测进入光的光电二极管或其它光传感器。环境光传感器可以工作于可见光谱和/或红外光谱。当环境光传感器未被物体遮挡,相对于当环境光传感器被物体遮挡时,环境光传感器一般将接收到更多的光13,因此可以使用环境光传感器产生接近性数据。该数据可以单独使用或与其它传感器的接近性数据结合使用,以便手机100更准确的确定手机附近有没有物体。The ambient light sensor can be a photodiode or other light sensor capable of detecting incoming light. Ambient light sensors can operate in the visible and/or infrared spectrum. When the ambient light sensor is not obscured by the object, the ambient light sensor will typically receive more light 13 than when the ambient light sensor is blocked by the object, so ambient light sensors can be used to generate proximity data. This data can be used alone or in combination with proximity data from other sensors so that the handset 100 can more accurately determine if there are objects near the handset.
加速计传感器可检测各个方向上(一般为三轴)加速度的大小。当手机100静止时可检测出重力的大小及方向。加速计传感器可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。可以使用加 速度计确定手机100是否在运动(可能被用户拿着),或手机100是否正被用户握着,从而其左边缘或右边缘面朝下,或手机100是否正水平放置在桌面上。如果确定手机100是水平并且是静止的,可以确定手机100不太可能被握持。该数据可以与来自接近传感器的数据和其它数据组合,以辅助确定从手机100中的其它传感器获得的读数是否准确。Accelerometer sensors detect the magnitude of acceleration in all directions (typically three axes). The magnitude and direction of gravity can be detected when the handset 100 is stationary. The accelerometer sensor can be used to identify the gesture of the phone (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap). Can use plus The speedometer determines if the handset 100 is in motion (possibly held by the user), or if the handset 100 is being held by the user such that its left or right edge is facing down, or if the handset 100 is being placed horizontally on the desktop. If it is determined that the handset 100 is horizontal and stationary, it can be determined that the handset 100 is less likely to be held. This data can be combined with data from proximity sensors and other data to assist in determining whether the readings obtained from other sensors in the handset 100 are accurate.
手机100可以并行处理来自多个传感器设备(例如,接近传感器、环境光传感器等)的信号,确定手机100附近是否有物体,提升了确定手机100与物体之间距离的准确性。The mobile phone 100 can process signals from a plurality of sensor devices (eg, proximity sensors, ambient light sensors, etc.) in parallel, determine whether there is an object in the vicinity of the mobile phone 100, and improve the accuracy of determining the distance between the mobile phone 100 and the object.
至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like that can be configured in the mobile phone 100 will not be described herein.
其他输入设备130可用于接收输入的数字或字符信息,以及产生与手机100的用户设置以及功能控制有关的键信号输入。具体地,其他输入设备130可包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)等中的一种或多种。其他输入设备130与I/O子系统170的其他输入设备控制器171相连接,在其他设备输入控制器171的控制下与处理器180进行信号交互。 Other input devices 130 can be used to receive input numeric or character information, as well as generate key signal inputs related to user settings and function controls of the handset 100. Specifically, other input devices 130 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and light mice (the light mouse is not sensitive to display visual output). One or more of a surface, or an extension of a touch sensitive surface formed by a touch screen. Other input devices 130 are coupled to other input device controllers 171 of I/O subsystem 170 for signal interaction with processor 180 under the control of other device input controllers 171.
音频电路160、扬声器161,麦克风162可提供用户与手机100之间的音频接口。音频电路160可将接收到的音频数据转换后的信号,传输到扬声器161,由扬声器161转换为声音信号输出。另一方面,麦克风162将收集的声音信号转换为信号,由音频电路160接收后转换为音频数据,再将音频数据输出至射频电路110以发送给比如另一手机,或者将音频数据输出至存储器120以便进一步处理。The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the handset 100. The audio circuit 160 can transmit the converted audio data to the speaker 161 for conversion to the sound signal output by the speaker 161. On the other hand, the microphone 162 converts the collected sound signal into a signal, which is received by the audio circuit 160 and then converted into audio data, and then the audio data is output to the radio frequency circuit 110 for transmission to, for example, another mobile phone, or the audio data is output to the memory. 120 for further processing.
用户可以将耳机插入耳机接口200,耳机接口200的管脚与耳机连接,耳机的麦克风以及左右声道听筒可以提供用户与手机100之间的音频接口。音频电路160可以将音频数据转换后的信号,传输到耳机的左右声道听筒,转换为声音信号输出。另一方面,耳机的麦克风将收集的声音信号转换为电信号,通过耳机接口将电信号传递至音频电路160,进而转换为音频数据以便进一步处理。The user can insert the earphone into the earphone interface 200, and the pin of the earphone interface 200 is connected with the earphone, and the microphone of the earphone and the left and right channel earpieces can provide an audio interface between the user and the mobile phone 100. The audio circuit 160 can transmit the converted audio data signal to the left and right channel earpieces of the earphone for conversion to a sound signal output. On the other hand, the microphone of the earphone converts the collected sound signal into an electrical signal, and the electrical signal is transmitted to the audio circuit 160 through the headphone interface, and then converted into audio data for further processing.
I/O子系统170用来控制输入输出的外部设备,可以包括其他设备输入控制器171、传感器控制器172、显示控制器173。可选的,一个或多个其他输入控制设备控制器171从其他输入设备130接收信号和/或者向其他输入设备130发送信号,其他输入设备130可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)。值得说明的是,其他输入控制设备控制器171可以与任意一个或者多个上述设备连接。所述I/O子系统170中的显示控制器173从显示屏140接收信号和/或者向显示屏140发送信号。显示屏140检测到用户输入后,显示控制器173将检测到的用户输入转换为与显示在显示屏140上的用户界面对象的交互,即实现人机交互。传感器控制器172可以从一个或者多个传感器150接收信号和/或者向一个或者多个传感器150发送信号。The I/O subsystem 170 is used to control external devices for input and output, and may include other device input controllers 171, sensor controllers 172, and display controllers 173. Optionally, one or more other input control device controllers 171 receive signals from other input devices 130 and/or send signals to other input devices 130. Other input devices 130 may include physical buttons (press buttons, rocker buttons, etc.) , dial, slide switch, joystick, click wheel, light mouse (light mouse is a touch-sensitive surface that does not display visual output, or an extension of a touch-sensitive surface formed by a touch screen). It is worth noting that other input control device controllers 171 can be connected to any one or more of the above devices. Display controller 173 in I/O subsystem 170 receives signals from display 140 and/or transmits signals to display 140. After the display 140 detects the user input, the display controller 173 converts the detected user input into an interaction with the user interface object displayed on the display screen 140, ie, implements human-computer interaction. Sensor controller 172 can receive signals from one or more sensors 150 and/or send signals to one or more sensors 150.
手机100还包括给各个部件供电的电源190(比如电池)。优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。The handset 100 also includes a power source 190 (such as a battery) that powers the various components. Preferably, the power source can be logically coupled to the processor 180 through the power management system to manage functions such as charging, discharging, and power consumption through the power management system.
尽管未示出,手机100还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
本发明实施例还提供一种电子设备,如图3; An embodiment of the present invention further provides an electronic device, as shown in FIG. 3;
图3为本申请实施例提供的一种电子设备,包括第一确定单元301,第二确定单元302,以及第三确定单元303;Figure 3 is an electronic device according to an embodiment of the present application, including a first determining unit 301, a second determining unit 302, and a third determining unit 303;
其中,第一确定单元301用于确定所述电子设备在设定时长内的功率曲线;基于同一发明构思,第一确定单元确定电子设备在设定时长内的功率曲线的实施方式可以参见方法实施例中的相关描述,重复之处,不再赘述。The first determining unit 301 is configured to determine a power curve of the electronic device within a set duration; based on the same inventive concept, the first determining unit determines an implementation manner of the power curve of the electronic device within a set duration: The relevant descriptions in the examples, repetitions, will not be described again.
第二确定单元302用于分别确定所述电子设备中的N个器件的m个功率模型,所述m个功率模型用于指示所述N个器件中的每个器件分别在Mi个使用场景下的功率的频域特征,N≥1,i=1~N,
Figure PCTCN2017089169-appb-000014
基于同一发明构思,第二确定单元确定所述电子设备中的N个器件的m个功率模型的实施方式可以参见方法实施例中的相关描述,重复之处,不再赘述。
The second determination unit 302 determines respectively for the m power model of the electronic apparatus of the N devices, the m indicating the power model for each of the N devices in each device usage scenarios M i th Frequency domain characteristics of the power under, N≥1, i=1~N,
Figure PCTCN2017089169-appb-000014
Based on the same inventive concept, the implementation of the m power models of the N devices in the electronic device may be referred to the related description in the method embodiments, and the details are not described again.
第三确定单元303用于根据所述电子设备在所述设定时长内的功率曲线以及所述m个功率模型,确定每个器件在所述设定时长内的功耗。基于同一发明构思,第三确定单元确定每个器件在所述设定时长内的功耗的实施方式可以参见方法实施例中的相关描述,重复之处,不再赘述。The third determining unit 303 is configured to determine, according to the power curve of the electronic device within the set duration and the m power models, power consumption of each device within the set duration. Based on the same inventive concept, the third determining unit determines the power consumption of each device in the set duration. For details, refer to the related description in the method embodiment, and the details are not repeated.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的电子设备。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. An electronic device that implements the functions specified in one or more processes and/or block diagrams of one or more blocks of the flowchart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令电子设备的制造品,该指令电子设备实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction electronics. The instruction electronics implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请实施例的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, it is intended that the present invention cover the modifications and variations of the embodiments of the present invention.

Claims (16)

  1. 一种确定电子设备的器件功耗的方法,其特征在于,包括:A method for determining power consumption of a device of an electronic device, comprising:
    确定所述电子设备在设定时长内的功率曲线,并分别确定所述电子设备中的N个器件的m个功率模型,所述m个功率模型用于指示所述N个器件中的每个器件分别在Mi个使用场景下的功率的频域特征,N≥1,i=1~N,
    Figure PCTCN2017089169-appb-100001
    Determining a power curve of the electronic device for a set duration, and determining m power models of N devices in the electronic device, respectively, the m power models are used to indicate each of the N devices The frequency domain characteristics of the power of the device in the M i use scenarios, N≥1, i=1~N,
    Figure PCTCN2017089169-appb-100001
    根据所述电子设备在所述设定时长内的功率曲线以及所述m个功率模型,确定每个器件在所述设定时长内的功耗。And determining, according to the power curve of the electronic device within the set duration and the m power models, power consumption of each device within the set duration.
  2. 如权利要求1所述的方法,其特征在于,确定所述电子设备在设定时长内的功率曲线,包括:The method of claim 1 wherein determining a power curve of the electronic device for a set length of time comprises:
    确定所述电子设备在所述设定时长内的功率的第一频谱特征以及所述电子设备在所述设定时长内的第一平均功率;Determining a first spectral characteristic of power of the electronic device within the set duration and a first average power of the electronic device within the set duration;
    分别确定所述电子设备中的N个器件的m个功率模型,包括:Determining m power models of the N devices in the electronic device, respectively, including:
    分别确定所述N个器件的m个第二频谱特征以及m个第二平均功率,所述m个第二频谱特征与所述m个第二平均功率一一对应,所述m个第二频谱特征为所述N个器件中的每个器件分别在Mi个使用场景下的功率的频谱特征,所述m个第二平均功率为所述N个器件中的每个器件分别在Mi个使用场景下的功率的平均值。Determining m second spectral features of the N devices and m second average powers, wherein the m second spectral features are in one-to-one correspondence with the m second average powers, the m second spectra wherein said N devices wherein each device in the power spectrum at m i are respectively a usage scenario, the second average power m of the N devices respectively, each device m i th The average of the power used in the scenario.
  3. 如权利要求2所述的方法,其特征在于,根据所述电子设备在所述设定时长内的功率曲线以及所述m个功率模型,确定每个器件在所述设定时长内的功耗,包括:The method of claim 2, wherein determining the power consumption of each device during the set duration according to a power curve of the electronic device within the set duration and the m power models ,include:
    根据所述第一频谱特征、所述第一平均功率、所述m个第二频谱特征以及所述m个第二平均功率,确定所述N个器件的m个功率系数,所述m个功率系数中的每个功率系数用于指示在所述设定时长内该器件在该使用场景下的平均功率与第二平均功率的比值;Determining m power coefficients of the N devices according to the first spectral feature, the first average power, the m second spectral features, and the m second average powers, the m powers Each of the coefficients is used to indicate a ratio of an average power of the device to the second average power during the set time period;
    根据所述m个功率系数和所述m个第二平均功率确定所述N个器件的m个平均功率;Determining m average powers of the N devices according to the m power coefficients and the m second average powers;
    针对每个器件:将所述m个平均功率中该器件分别在所述Mi个使用场景下的功率相加,得到该器件在所述设定时长内的平均功率。For each device: summing the powers of the devices in the M i use scenarios in the m average powers to obtain an average power of the device within the set duration.
  4. 如权利要求3所述的方法,其特征在于,根据所述第一频谱特征、所述第一平均功率、所述m个第二频谱特征以及所述m个第二平均功率,确定所述N个器件的m个功率系数,具体包括:The method of claim 3, wherein the N is determined according to the first spectral feature, the first average power, the m second spectral features, and the m second average powers m power coefficients of each device, including:
    根据所述第一频谱特征和所述m个第二频谱特征分别确定所述每个第二频谱特征在所述第一频谱特征中的占比;Determining, by the first spectral feature and the m second spectral features, a proportion of each of the second spectral features in the first spectral feature;
    根据所述占比、所述第一平均功率以及所述m个第二平均功率确定归一化系数;Determining a normalization coefficient according to the ratio, the first average power, and the m second average powers;
    将所述占比和所述归一化系数相乘得到所述功率系数。Multiplying the ratio and the normalization coefficient to obtain the power coefficient.
  5. 如权利要求2~4任一项所述的方法,其特征在于,所述第一频谱特征和所述m个第二频谱特征均采用同一组基底表示。The method according to any one of claims 2 to 4, wherein the first spectral feature and the m second spectral features are represented by the same set of bases.
  6. 如权利要求4或5所述的方法,其特征在于,采用如下方式求解所述占比:The method according to claim 4 or 5, wherein the ratio is solved in the following manner:
    Figure PCTCN2017089169-appb-100002
    Figure PCTCN2017089169-appb-100002
    Figure PCTCN2017089169-appb-100003
    Figure PCTCN2017089169-appb-100003
    其中,F为所述第一频谱特征,Fi为所述m个第二频谱特征,fj为所述第一频谱特征和所述m个第二频谱特征的基底,bj和aij分别为所述第一频谱特征和所述m个第二频谱特征在所述基底下的系数,xi为所述占比。Wherein F is the first spectral feature, F i is the m second spectral features, and f j is a base of the first spectral feature and the m second spectral features, b j and a ij respectively The coefficient of the first spectral feature and the m second spectral features under the substrate, x i is the ratio.
  7. 如权利要求6所述的方法,其特征在于,采用如下方式求解所述归一化系数:The method of claim 6 wherein said normalization coefficients are solved in the following manner:
    Figure PCTCN2017089169-appb-100004
    Figure PCTCN2017089169-appb-100004
    其中,P为所述第一平均功率,Pi为所述m个第二平均功率,k为所述归一化系数。Where P is the first average power, P i is the m second average powers, and k is the normalization coefficient.
  8. 一种电子设备,包括:An electronic device comprising:
    一个或多个处理器;One or more processors;
    存储器;Memory
    多个应用程序;Multiple applications;
    以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行所述权利要求1-7中任一项所述的方法。And one or more programs, wherein the one or more programs are stored in the memory, the one or more programs comprising instructions that, when executed by the electronic device, cause the electronic device The method of any of claims 1-7.
  9. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,A computer readable storage medium comprising instructions, wherein when the instructions are run on an electronic device,
    使得所述电子设备执行如权利要求1-7中任一项所述的方法。The electronic device is caused to perform the method of any of claims 1-7.
  10. 一种电子设备,包括:第一确定单元、第二确定单元、以及第三确定单元;An electronic device includes: a first determining unit, a second determining unit, and a third determining unit;
    所述第一确定单元,用于确定所述电子设备在设定时长内的功率曲线;The first determining unit is configured to determine a power curve of the electronic device within a set duration;
    所述第二确定单元,用于分别确定所述电子设备中的N个器件的m个功率模型,所述m个功率模型用于指示所述N个器件中的每个器件分别在Mi个使用场景下的功率的频域特征,N≥1,i=1~N,
    Figure PCTCN2017089169-appb-100005
    The second determining unit is configured to respectively determine m power models of the N devices in the electronic device, where the m power models are used to indicate that each of the N devices is respectively at M i The frequency domain characteristics of the power in the scenario, N≥1, i=1~N,
    Figure PCTCN2017089169-appb-100005
    所述第三确定单元,用于根据所述电子设备在所述设定时长内的功率曲线以及所述m个功率模型,确定每个器件在所述设定时长内的功耗。The third determining unit is configured to determine, according to the power curve of the electronic device within the set duration and the m power models, power consumption of each device within the set duration.
  11. 如权利要求10所述的电子设备,其特征在于,The electronic device of claim 10, wherein
    所述第一确定单元,具体用于确定所述电子设备在所述设定时长内的功率的第一频谱特征以及所述电子设备在所述设定时长内的第一平均功率;The first determining unit is specifically configured to determine a first spectrum feature of the power of the electronic device within the set duration and a first average power of the electronic device within the set duration;
    所述第二确定单元,具体用于分别确定所述N个器件的m个第二频谱特征以及m个第二平均功率,所述m个第二频谱特征与所述m个第二平均功率一一对应,所述m个第二频谱特征为所述N个器件中的每个器件分别在Mi个使用场景下的功率的频谱特征,所述m个第二平均功率为所述N个器件中的每个器件分别在Mi个使用场景下的功率的平均值。The second determining unit is specifically configured to respectively determine m second spectral features of the N devices and m second average powers, where the m second spectral features and the m second average powers are one correspondence, said m second frequency spectrum wherein said N devices wherein each device in the power spectrum are used at a scene number m i, the average of m second power device of the N The average of the power of each device in the M i use scenarios.
  12. 如权利要求11所述的电子设备,其特征在于,所述第三确定单元,具体用于根据所述第一频谱特征、所述第一平均功率、所述m个第二频谱特征以及所述m个第二平均功率,确定所述N个器件的m个功率系数,所述m个功率系数中的每个功率系数用于指示在所述设定时长内该器件在该使用场景下的平均功率与第二平均功率的比值;The electronic device according to claim 11, wherein the third determining unit is specifically configured to: according to the first spectral feature, the first average power, the m second spectral features, and the m second average powers, determining m power coefficients of the N devices, each of the m power coefficients being used to indicate an average of the device in the usage scenario during the set duration The ratio of power to the second average power;
    根据所述m个功率系数和所述m个第二平均功率确定所述N个器件的m个平均功率;Determining m average powers of the N devices according to the m power coefficients and the m second average powers;
    针对每个器件:将所述m个平均功率中该器件分别在所述Mi个使用场景下的功率相加,得到该器件在所述设定时长内的平均功率。 For each device: summing the powers of the devices in the M i use scenarios in the m average powers to obtain an average power of the device within the set duration.
  13. 如权利要求11所述的电子设备,其特征在于,所述第三确定单元,具体用于根据所述第一频谱特征和所述m个第二频谱特征分别确定所述每个第二频谱特征在所述第一频谱特征中的占比;The electronic device according to claim 11, wherein the third determining unit is specifically configured to respectively determine each of the second spectral features according to the first spectral feature and the m second spectral features a percentage of the first spectral features;
    根据所述占比、所述第一平均功率以及所述m个第二平均功率确定归一化系数;Determining a normalization coefficient according to the ratio, the first average power, and the m second average powers;
    将所述占比和所述归一化系数相乘得到所述功率系数。Multiplying the ratio and the normalization coefficient to obtain the power coefficient.
  14. 如权利要求11-13所述的电子设备,其特征在于,所述第一频谱特征和所述m个第二频谱特征均采用同一组基底表示。The electronic device of claims 11-13, wherein the first spectral feature and the m second spectral features are each represented by a same set of bases.
  15. 如权利要求13或14所述的电子设备,其特征在于,所述第三确定单元用于采用如下方式求解所述占比:The electronic device according to claim 13 or 14, wherein the third determining unit is configured to solve the proportion in the following manner:
    Figure PCTCN2017089169-appb-100006
    Figure PCTCN2017089169-appb-100006
    Figure PCTCN2017089169-appb-100007
    Figure PCTCN2017089169-appb-100007
    其中,F为所述第一频谱特征,Fi为所述m个第二频谱特征,fj为所述第一频谱特征和所述m个第二频谱特征的基底,bj和aij分别为所述第一频谱特征和所述m个第二频谱特征在所述基底下的系数,xi为所述占比。Wherein F is the first spectral feature, F i is the m second spectral features, and f j is a base of the first spectral feature and the m second spectral features, b j and a ij respectively The coefficient of the first spectral feature and the m second spectral features under the substrate, x i is the ratio.
  16. 如权利要求15所述的电子设备,其特征在于,所述第三确定单元用于采用如下方式求解所述归一化系数:The electronic device according to claim 15, wherein said third determining unit is configured to solve said normalization coefficient in the following manner:
    Figure PCTCN2017089169-appb-100008
    Figure PCTCN2017089169-appb-100008
    其中,P为所述第一平均功率,Pi为所述m个第二平均功率,k为所述归一化系数。 Where P is the first average power, P i is the m second average powers, and k is the normalization coefficient.
PCT/CN2017/089169 2017-02-24 2017-06-20 Method for determining component power consumption of electronic device, electronic device and storage media WO2018152990A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780005507.8A CN108886548B (en) 2017-02-24 2017-06-20 Method for determining device power consumption of electronic equipment, electronic equipment and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710104536.1 2017-02-24
CN201710104536 2017-02-24

Publications (1)

Publication Number Publication Date
WO2018152990A1 true WO2018152990A1 (en) 2018-08-30

Family

ID=63253471

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089169 WO2018152990A1 (en) 2017-02-24 2017-06-20 Method for determining component power consumption of electronic device, electronic device and storage media

Country Status (2)

Country Link
CN (1) CN108886548B (en)
WO (1) WO2018152990A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594476A (en) * 2023-06-12 2023-08-15 深圳市创通新科科技有限公司 Power supply control method and system for notebook computer

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026571B (en) * 2019-11-11 2023-09-08 北京字节跳动网络技术有限公司 Processor down-conversion processing method and device and electronic equipment
CN112162625B (en) * 2020-09-25 2024-10-25 上海闻泰信息技术有限公司 Power consumption control method and device of electronic equipment, storage medium and terminal
CN114449622B (en) * 2020-10-30 2024-08-27 华为技术有限公司 Method and electronic device for calculating Wi-Fi power consumption

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110237201A1 (en) * 2010-01-11 2011-09-29 Coronis Sas Method and system of power management for electronic devices
US8689021B1 (en) * 2010-09-10 2014-04-01 Marvell International Ltd. System and method for selecting a power management configuration in a multi-core environment according to various operating conditions such as voltage, frequency, power mode, and utilization factor varied on a per-core basis
CN104767855A (en) * 2015-04-02 2015-07-08 工业和信息化部电信研究院 A mobile phone power consumption detection experimental system and its detection method based on an incubator
CN105188071A (en) * 2014-06-23 2015-12-23 中国移动通信集团公司 Method, device and system for testing terminal power consumption

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110237201A1 (en) * 2010-01-11 2011-09-29 Coronis Sas Method and system of power management for electronic devices
US8689021B1 (en) * 2010-09-10 2014-04-01 Marvell International Ltd. System and method for selecting a power management configuration in a multi-core environment according to various operating conditions such as voltage, frequency, power mode, and utilization factor varied on a per-core basis
CN105188071A (en) * 2014-06-23 2015-12-23 中国移动通信集团公司 Method, device and system for testing terminal power consumption
CN104767855A (en) * 2015-04-02 2015-07-08 工业和信息化部电信研究院 A mobile phone power consumption detection experimental system and its detection method based on an incubator

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594476A (en) * 2023-06-12 2023-08-15 深圳市创通新科科技有限公司 Power supply control method and system for notebook computer
CN116594476B (en) * 2023-06-12 2024-03-15 深圳市创通新科科技有限公司 Power supply control method and system for notebook computer

Also Published As

Publication number Publication date
CN108886548A (en) 2018-11-23
CN108886548B (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN108430101B (en) Antenna closing method, device, storage medium and electronic device
CN107943345B (en) Calibration method, device, storage medium and electronic device for proximity sensor
CN109271014B (en) Method and equipment for adjusting screen brightness
WO2016169465A1 (en) Method, apparatus and system for displaying screen information
CN107102864A (en) One kind puts out screen control method, device, storage medium and terminal
WO2018027551A1 (en) Message display method, user terminal and graphic user interface
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
WO2018152990A1 (en) Method for determining component power consumption of electronic device, electronic device and storage media
CN106487984B (en) A kind of method and apparatus adjusting volume
WO2018120240A1 (en) Apparatus and method for adjusting electromagnetic wave radiation parameter, and storage medium
WO2018161540A1 (en) Fingerprint registration method and related product
CN106708530A (en) Information processing method and terminal equipment
EP3809253A1 (en) Split-screen exiting method and apparatus, storage medium, and electronic device
CN107066090B (en) Method for controlling fingerprint identification module and mobile terminal
CN108418969A (en) Antenna feed point switching method and device, storage medium and electronic equipment
CN106777383B (en) File sorting method and intelligent terminal
WO2018039914A1 (en) Method for copying data, and user terminal
CN111651030B (en) Sensor detection method and device, storage medium and mobile terminal
WO2018137308A1 (en) Mobile payment method and device, and storage medium
CN106648460B (en) Step-counting data filtering method and intelligent terminal
CN106709856B (en) Graph rendering method and related equipment
WO2018214745A1 (en) Application control method and related product
CN111596827B (en) Icon display control method and device, storage medium and mobile terminal
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN110908586A (en) Keyboard display method and device and terminal equipment

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: 17898068

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17898068

Country of ref document: EP

Kind code of ref document: A1