CN111522425A - Power consumption control method of electronic equipment and electronic equipment - Google Patents

Power consumption control method of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN111522425A
CN111522425A CN201910106542.XA CN201910106542A CN111522425A CN 111522425 A CN111522425 A CN 111522425A CN 201910106542 A CN201910106542 A CN 201910106542A CN 111522425 A CN111522425 A CN 111522425A
Authority
CN
China
Prior art keywords
power consumption
actual
electronic device
period
peripheral devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910106542.XA
Other languages
Chinese (zh)
Inventor
夏兵
李刚
任雁蒙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910106542.XA priority Critical patent/CN111522425A/en
Publication of CN111522425A publication Critical patent/CN111522425A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/324Power saving characterised by the action undertaken by lowering clock frequency

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a power consumption control method of electronic equipment and the electronic equipment, wherein the method comprises the following steps: the electronic equipment collects the actual power consumption of at least one system-level chip and the actual power consumption of the peripheral devices in a first period, and then calculates the actual total power consumption of the electronic equipment in the first period. Because the actual total power consumption in the first period is equal to the sum of the actual power consumption of the system-on-chip and the actual power consumption of the peripheral devices in the first period, when the electronic device determines that the actual total power consumption in the first period is greater than or equal to the first power consumption threshold, the power consumption of all or part of the peripheral devices is reduced, so that the overall power consumption of the electronic device can be reduced without reducing the frequency of the processor, the system performance is ensured, and the power consumption control is realized.

Description

Power consumption control method of electronic equipment and electronic equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a power consumption control method for an electronic device and an electronic device.
Background
Along with the performance of electronic equipment such as smart phones, tablet computers and intelligent wearable equipment is stronger and stronger, the heat generation is also larger and larger, and the temperature control becomes one of the key elements of the performance management of the electronic equipment. With the development of various services (such as applications) on electronic equipment and the improvement of requirements on hardware performance, various overheating problems of terminals emerge endlessly, and temperature control becomes an urgent concern.
At present, an existing temperature control scheme for a mobile phone mainly relies on power consumption control (IPA) of an intelligent electronic device, monitors the temperature and load of the electronic device in real time, and automatically reduces the operating frequency of a System On Chip (SOC) when the temperature is too high, for example, the temperature threshold of the electronic device of the mobile phone is 40 ℃, and the mobile phone limits the CPU frequency to below 1.5GHz when the temperature exceeds 40 ℃. Although power consumption can be reduced and temperature control can be achieved, the reduction of the working frequency can affect normal processing of services, and the mobile phone may have the problems of picture blocking, slow application starting speed, slow page refreshing, or frame dropping during sliding probabilistically, which causes poor use experience for users.
Disclosure of Invention
The application provides a power consumption control method of electronic equipment and the electronic equipment, which are used for improving the influence on the system performance while reducing the power consumption of a terminal.
In a first aspect, an embodiment of the present application provides a method for controlling power consumption of an electronic device, where the method is applied to the electronic device, and the method includes: the electronic equipment collects the actual power consumption of at least one system-level chip and the actual power consumption of the M peripheral devices in a first period, and then the electronic equipment calculates the actual total power consumption in the first period. Because the actual total power consumption in the first period is equal to the sum of the actual power consumption of the at least one system-level chip and the actual power consumption of the M peripheral devices, when the electronic device determines that the actual total power consumption is greater than or equal to the first power consumption threshold, the electronic device reduces the power consumption of all or part of the M peripheral devices.
In the embodiment of the application, the method can control the system power consumption of the electronic equipment by reducing the power consumption of the peripheral device without reducing the frequency of the SOC, thereby ensuring that the system performance of the electronic equipment is not obviously reduced.
In one possible design, when the electronic device determines that the actual total power consumption in the first period is greater than or equal to the first power consumption threshold, for a first operating parameter of a first peripheral device of the N peripheral devices, the following may be performed: the first working parameter is reduced from the first parameter value to the second parameter value, and then the actual power consumption of at least one system-level chip and the actual power consumption of the M peripheral devices in the second period are collected, so that the actual total power consumption of the electronic equipment in the second period can be calculated. If the actual total power consumption in the second period is still larger than or equal to the first power consumption threshold, reducing the first working parameter from the second parameter value to a third parameter value again; and if the actual total power consumption in the second time period is smaller than the first power consumption threshold, stopping reducing the second parameter value.
In the embodiment of the present application, the gradually decreasing of the value of the first operating parameter is to make the adjustment of the power consumption of the electronic device to be imperceptible to the user as much as possible, so as to ensure the user experience.
In one possible design, after the electronic device reduces the first operating parameter to the second parameter value, when it is determined that the actual total power consumption in the second period is smaller than a second power consumption threshold, where the second power consumption threshold is smaller than the first power consumption threshold, the following processing is performed for the first operating parameter of the first peripheral device: increasing the first working parameter from the second parameter value to a third parameter value, and acquiring the actual power consumption of at least one system-level chip and the actual power consumption of M peripheral devices in a third period; calculating the actual total power consumption of the electronic equipment in the third time period, and increasing the first peripheral device from the third parameter value to a fourth parameter value when the actual total power consumption in the third time period is determined to be smaller than the second power consumption threshold; and stopping increasing the fourth parameter value when the actual total power consumption in the third time period is determined to be larger than or equal to the second power consumption threshold.
The first working parameter comprises any one of screen brightness, loudspeaker volume, charging voltage, charging current, Bluetooth transmitting power, WIFI transmitting power and modem transmitting power.
In the embodiment of the present application, the value of the operating parameter is gradually increased, so as to make the adjustment of the power consumption of the electronic device to be imperceptible to the user as much as possible, so as to ensure the user experience of the user.
In one possible design, after the electronic device reduces the first working parameter from the second parameter value to the third parameter value, when the third parameter value is a preset minimum value, acquiring actual power consumption of at least one system-level chip and actual power consumption of M peripheral devices in a fourth time period, calculating actual total power consumption of the electronic device in the fourth time period, and when determining that the actual total power consumption in the fourth time period is greater than a first power consumption threshold, reducing the power consumption of each system-level chip according to a sequence of priorities of the system-level chips from low to high, wherein the at least one system-level chip comprises a CPU, and the priority of the CPU is highest.
In a possible design, the at least one system-on-chip further includes a DDR (double data rate), a GPU (graphics processing unit), and the electronic device reduces the operating frequency of each system-on-chip step by step according to a sequence from a low priority to a high priority of each system-on-chip, wherein the sequence from the low priority to the high priority of each system-on-chip is the DDR, the GPU, and the CPU.
In the embodiment of the application, the working frequency of the CPU is not reduced as much as possible so as to ensure that the system performance of the electronic equipment is not obviously reduced.
In one possible design, the electronic device may determine the first power consumption threshold according to at least one of a current ambient light level, an operating state, a temperature rise rate, and a current ambient temperature and a temperature of the electronic device.
In one possible design, when the electronic device determines that the current electronic device temperature of the electronic device is higher than the set temperature value, the first actual power consumption of the at least one system-on-chip and the first actual power consumption of the M peripheral devices in the first period are collected.
In a second aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. Wherein the memory is used to store one or more computer programs; the one or more computer programs stored in the memory, when executed by the processor, enable the electronic device to implement any of the possible design methodologies of any of the aspects described above.
In a third aspect, the present application further provides an apparatus including a module/unit for performing the method of any one of the possible designs of any one of the above aspects. These modules/units may be implemented by hardware, or by hardware executing corresponding software.
In a fourth aspect, this embodiment also provides a computer-readable storage medium, which includes a computer program and when the computer program runs on an electronic device, causes the electronic device to execute any one of the possible design methods of any one of the above aspects.
In a fifth aspect, the present application further provides a computer program product, which when run on a terminal, causes the electronic device to execute any one of the possible design methods of any one of the above aspects.
In a sixth aspect, an embodiment of the present application further provides a chip, which is coupled to the memory and configured to execute the computer program stored in the memory, so that the electronic device performs any one of the possible design methods of the foregoing aspects.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of an android system architecture provided in an embodiment of the present application;
fig. 4a and fig. 4b are schematic flow charts of a power consumption control method of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart of a power consumption control method of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a regulation cycle provided in an embodiment of the present application;
FIG. 7 is a schematic illustration of a statistical curve provided by an embodiment of the present application;
fig. 8 is a schematic diagram of a power consumption control apparatus of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For ease of understanding, examples are given in part to illustrate concepts related to embodiments of the present application.
A System On Chip (SOC) mainly includes an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a Central Processing Unit (CPU), a double data rate synchronous dynamic random access memory (DDR SDRAM), a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and a Neural Network Processor (NPU). Each SOC may be separately deployed in the electronic device or integrated in one integrated circuit, and the actual power consumption of the SOC refers to the battery power consumption of the CPU, the GPU, the NPU, and other chips during the working process. In which, the actual power consumption of the SOC is converted into heat energy, which increases the working temperature of the chip and aggravates the silicon failure, resulting in the degradation of the reliability and performance of the SOC.
The peripheral devices refer to peripheral equipment such as a screen, a loudspeaker and Bluetooth, and the actual power consumption of the peripheral devices refers to the battery power consumption generated by the display screen, the loudspeaker, the Bluetooth and the like in the working process of the electronic equipment.
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
The power consumption control method of the electronic device provided in the embodiment of the present application may be applied to the electronic device 100 shown in fig. 1, in which the electronic device 100 in fig. 1 may communicate with the server 200 through a communication network, and the electronic devices 100 may also communicate with each other through the communication network. The communication network may be a local area network or a wide area network (wan) switched by a relay device. For example, when the electronic device 100 communicates with the video server 200 through the communication network, the electronic device 100 receives the multimedia data stream from the video server 200 in real time, and decodes and plays the multimedia data stream, and during the process of processing the multimedia data stream, the electronic device 100 has high power consumption due to high-load operations of devices such as a processor, a video decoder, and a display screen, and the temperature of the electronic device may be increased continuously, so that the electronic device adjusts the power consumption of the peripheral device by using the power consumption control method provided in the embodiment of the present application.
When the communication network is a local area network, the communication network may be a wifi hotspot network, a wifi P2P network, a bluetooth network, a zigbee network, or a Near Field Communication (NFC) network, for example. When the communication network is a wide area network, the communication network may be, for example, a third generation mobile communication technology (3rd-generation wireless telephone technology, 3G) network, a fourth generation mobile communication technology (4G) network, a fifth generation mobile communication technology (5th-generation mobile communication technology, 5G) network, a Public Land Mobile Network (PLMN) for future evolution, the internet, or the like. In the scenario shown in fig. 1, data, such as interactive pictures, texts, and videos, or results of processing objects such as pictures, texts, or videos by the interactive electronic device, may be interacted between different electronic devices through a communication network.
In some embodiments of the present application, the electronic device 100 shown in fig. 1 may be a portable electronic device, such as a mobile phone, a tablet computer, a wearable device (e.g., a smart watch) with wireless communication function, and the like, that also includes other functions, such as personal digital assistant and/or music player functions. Exemplary embodiments of the portable electronic device include, but are not limited to, a mount
Figure BDA0001966870160000041
Figure BDA0001966870160000042
Or other operating system. The portable electronic device may also be other portable electronic devices such as laptop computers (laptop) with touch sensitive surfaces (e.g., touch panels), etc. It should also be understood that in some other embodiments of the present application, the electronic device 100 may not be a portable electronic device, but may be a desktop computer with a touch-sensitive surface (e.g., a touch panel).
Exemplarily, as shown in fig. 2, the following takes the electronic device 100 as an example to specifically describe the embodiment.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, a SIM card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a Neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a display screen serial interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via a USB interface. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna module 1, the antenna module 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the cellular network antenna may be multiplexed into a wireless local area network diversity antenna. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power Amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be an LCD (liquid crystal display), an OLED (organic light-emitting diode), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode), a flexible light-emitting diode (FLED), a miniature, a Micro-o led, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens, N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: MPEG1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. Further, the memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones to collect sound signals and reduce noise, and may further identify sound sources and perform directional recording functions.
The headphone interface 170D is used to connect a wired headphone. The earphone interface may be a USB interface, or may be an open mobile electronic device platform (OMTP) standard interface of 3.5mm, or a cellular telecommunications industry asSOCiation (cellular telecommunications industry asSOCiation of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". May be disposed on the display screen 194. For detecting a touch operation acting thereon or thereabout. The detected touch operation may be passed to the application processor to determine the type of touch event and provide a corresponding visual output via the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194. In the embodiment of the application, the touch panel is used for receiving touch operations such as a first operation, a confirmation operation of the language setting control, a closing operation, and an exit operation.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in the headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a Subscriber Identity Module (SIM). The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into and pulled out of the SIM card interface. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the electronic device 100. Fig. 3 is a block diagram of the software configuration of the electronic apparatus 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include phone, camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
An embodiment of the present application provides a method for controlling power consumption of an electronic device, where as shown in fig. 4a, the method may be executed by the electronic device, and the method includes:
step 401, the electronic device collects actual power consumption of at least one SOC and actual power consumption of M peripheral devices in a first period, and calculates actual total power consumption of the electronic device in the first period.
The duration corresponding to the first period may be 50ms, and the actual total power consumption in the first period is equal to the sum of the actual power consumption of the system-on-chip and the actual power consumption of the M peripheral devices in the first period. For example, the system-on-chip in the mobile phone has a CPU and a GPU, and the peripheral devices have a screen and a speaker, then the first actual total power consumption includes the power consumption of the CPU, the power consumption of the GPU, the power consumption of the screen, and the power consumption of the speaker.
For example, for SOCs such as CPUs, DDRs and GPUs, the calculation formula of power consumption is UIt, where U is a voltage value, I is a current value, and t is an operating time; calculating the average power consumption for the power consumption difference value of the given model of LCD (LCD upper limit brightness order-current brightness order), wherein the LCD measuring range is 255 orders, and the average power consumption is 1.XmA orders; the average power consumption is calculated for the speaker power consumption difference value (volume upper limit value-current volume).
That is, the mobile phone can calculate the actual power consumption of the CPU by collecting the voltage and current of the CPU and combining the duration corresponding to the first time period; for a screen, a speaker and the like, the power consumption corresponding to the screen can be determined according to the brightness and the volume of the screen, and various power consumption methods for acquiring the SOC and peripheral devices are provided in the prior art, which are not listed here.
Step 402, when the actual total power consumption in the first time period is greater than or equal to a preset first power consumption threshold, the electronic device reduces the power consumption of the N peripheral devices, so that the actual total power consumption of the electronic device is controlled within the first power consumption threshold.
The N peripheral devices are all or part of the M peripheral devices, and N and M are positive integers greater than or equal to 1. That is, the electronic device reduces the power consumption of all or part of the peripheral devices, so that the actual total power consumption of the electronic device can be controlled within the first power consumption threshold.
Specifically, the electronic device may reduce power consumption by reducing the power consumption budget configured by each peripheral device for the next time period. That is to say, in the embodiment of the present application, the electronic device reduces the power consumption budget of all or part of the peripheral devices in the next period, and ensures that the power consumption budget of the system-on-chip is not reduced as much as possible, so as to ensure that the operating frequency of the SOC remains unchanged, thereby ensuring the performance stability of the system, and avoiding the problems of stumbling, slow refresh rate, and the like. For example, the system-on-chip in the mobile phone includes a CPU and a GPU, and the peripheral devices include a screen and a speaker. And if the mobile phone detects that the actual total power consumption of the mobile phone in the first time interval exceeds a preset first power consumption threshold value, reducing the power consumption budgets of the screen and the loudspeaker in the next time interval so that the actual total power consumption of the mobile phone can fall back to be within the preset first power consumption threshold value. The method can control the system power consumption of the electronic equipment by reducing the power consumption of the peripheral device without reducing the working frequency of the SOC, thereby ensuring that the system performance of the electronic equipment is not obviously reduced.
It should be noted that, before performing step 401, the electronic device may determine the first power consumption threshold according to a current state, where the current state may include at least one of its own electronic device temperature, ambient light brightness, operating state, temperature rising rate, and current ambient temperature. For example, the environmental temperature in winter and summer are different, so the first power consumption threshold preset by the mobile phone in summer is greater than the first power consumption threshold in winter, and in addition, the indoor and outdoor environmental light brightness is different, so the temperature rise amplitude when the mobile phone is irradiated is also different, and therefore, the specific value of the first power consumption threshold is also different under different environmental light brightness.
In a possible embodiment, when the electronic device determines that the first actual total power consumption is greater than or equal to the first power consumption threshold, any one of the following manners may be performed for the first operating parameter of the first peripheral device of the N peripheral devices.
It should be noted that the first peripheral device is any one of the N peripheral devices, and the first operating parameter is any one of screen brightness, speaker volume, charging voltage, charging current, bluetooth transmission power, wireless fidelity WIFI transmission power, and modem transmission power.
Specifically, the embodiments of the present application focus on the following three ways in conjunction with fig. 4 b.
In the first mode, the processor of the electronic device issues the lowest parameter value of the first operating parameter to the first peripheral device at the first time, and the first peripheral device immediately reduces the current first operating parameter from the first parameter value to the lowest parameter value.
For example, the processor of the handset issues the lowest brightness level 2 of the screen brightness to the screen at a first time, which immediately reduces the screen brightness from brightness level 4 to brightness level 2.
In a second mode, the processor of the electronic device issues the lowest parameter value of the first operating parameter to the first peripheral device at the first time T1, and the first peripheral device gradually decreases the first operating parameter from the first parameter value to the lowest parameter value in multiple times according to the set step length in the following second time period T2.
For example, the processor of the mobile phone issues the lowest brightness level 2 of the screen brightness to the screen at the first time t1, and the screen brightness is reduced from brightness level 4 to brightness level 3, and then from brightness level 3 to brightness level 2.
Third, the electronic device issues the second parameter value of the first operating parameter to the first peripheral device at a first time T1, then the first peripheral device immediately reduces the first operating parameter from the first parameter value to the second parameter value, then the electronic device further counts the actual total power consumption in a second time period T2, if the actual total power consumption in the second time period T2 is still greater than the first power consumption threshold, the electronic device issues the third parameter value of the first operating parameter to the first peripheral device at a second time T2, then the first peripheral device immediately reduces the first operating parameter from the second parameter value to the third parameter value, and the above steps are repeatedly executed in sequence until the actual total power consumption of the electronic device is less than the first power consumption threshold, and then the reduction of the parameter value of the first operating parameter is stopped. The reason for gradually reducing the value of the first operating parameter is to make the adjustment of the power consumption of the electronic device imperceptible to the user as much as possible, so as to ensure the user experience.
In a fourth mode, the electronic device issues the first compensation value of the first operating parameter to the first peripheral device at a first time t1, then the first peripheral device immediately determines a second parameter value obtained by subtracting the first compensation value from the first parameter value of the first operating parameter and reduces the second parameter value to the second parameter value, then the electronic device further counts the actual total power consumption in the second time period T2, and if the actual total power consumption in the second time period T2 is still greater than the first power consumption threshold, the electronic device issues a second compensated value of the first operating parameter to the first peripheral device at a second time t2, the first peripheral device then immediately determines a third parameter value of the first operating parameter that decreases from the second parameter value to the second offset value, and reducing to a third parameter value, and repeating the steps in sequence until the actual total power consumption of the electronic equipment is less than the first power consumption threshold, and stopping reducing the parameter value of the first working parameter.
For example, the processor of the mobile phone issues the brightness level 3 of the screen brightness to the screen at the first time T1, the screen first reduces the screen brightness from the brightness level 4 to the brightness level 3, then the processor of the mobile phone counts the actual total power consumption in the second time period T2, if the actual total power consumption in the second time period T2 is greater than or equal to the first power consumption threshold, the processor of the mobile phone issues the brightness level 2 of the screen brightness to the screen at the second time T2, the screen first reduces the screen brightness from the brightness level 3 to the brightness level 2, the processor of the mobile phone counts the actual total power consumption in the third time period T3, and if the actual total power consumption in the third time period T3 is less than the first power consumption threshold, the reduction of the screen brightness is stopped.
It should be noted that, when the power consumption of the peripheral device is reduced, the current operation state of the electronic device needs to be considered. If the electronic equipment is running the first service, determining the priority order of each peripheral device to be a first peripheral device, a second peripheral device and a third peripheral device, namely the first peripheral device is least related to the first service, the second peripheral device and the third peripheral device, preferentially reducing the first working parameter of the first peripheral device, then reducing the second working parameter of the second peripheral device and finally reducing the third working parameter of the third peripheral device.
And if the electronic equipment is running the second service and only the first peripheral device is determined to be irrelevant to the second service, only reducing the first working parameter of the first peripheral device.
By way of example, the current operating state may refer to a video being played on the electronic device, or a game being played on the electronic device, such as a chat application being currently running on the electronic device. For example, when the electronic device is in the running state of a battle game, the priority of each peripheral device may be bluetooth, a speaker and a screen in descending order, the mobile phone may give priority to reducing the bluetooth transmission power, and then the volume of the speaker and the brightness of the screen, because the user is more concerned about the interface response speed when playing the game, the bluetooth transmission power, the volume and the brightness are moderately reduced, which does not greatly affect the user experience, and if the operating frequency of the CPU is reduced, the electronic device may be stuck. For another example, when the electronic device is currently in a music playing operation state, the priority of each peripheral device may be from low to high, namely bluetooth and the screen, and the mobile phone may give priority to reducing the bluetooth transmission power and then the brightness of the screen. Since when listening to music, reducing the volume may have some impact on the user experience, but reducing the brightness of the screen generally does not have an impact on the user experience.
In a possible embodiment, after the electronic device reduces the values of the operating parameters of the peripheral devices according to the method, if the temperature of the electronic device is lower than the temperature threshold value in a plurality of consecutive periods, and it is determined that the actual total power consumption of the electronic device is smaller than the second power consumption threshold in a certain period, the values of the operating parameters of the N peripheral devices are increased. Wherein the second power consumption threshold is less than the first power consumption threshold. For example, assuming that the first power consumption threshold is PL0, the second power consumption threshold may be PL0 multiplied by 80%.
Referring to fig. 4b, assuming that the electronic device temperature of the electronic device is lower than the temperature threshold value in the T2 time period, if the actual total power consumption in the T2 time period is lower than the second power consumption threshold, the processor may perform any one of the following manners.
In the first mode, after the processor of the electronic device issues the preset parameter value of the first operating parameter to the first peripheral device at the second time t2, the first peripheral device immediately increases the first operating parameter from the second parameter value to the preset parameter value.
For example, the processor of the mobile phone issues a preset brightness level of 4 for the screen brightness to the screen at the second time t2, and the screen immediately increases the screen brightness from brightness level 2 to brightness level 4.
In the second mode, after the processor of the electronic device issues the preset parameter value of the first operating parameter to the peripheral device, the peripheral device gradually increases the first operating parameter from the second parameter value to the preset parameter value in multiple times according to the set step length in the following third time period T3.
For example, the processor of the mobile phone issues a preset brightness level 4 of the screen brightness to the screen at a second time t2, and the screen brightness is increased from brightness level 2 to brightness level 3, and then from brightness level 3 to brightness level 4.
Third, the processor of the electronic device issues the third parameter value of the first operating parameter to the first peripheral device at the second time T2, then the first peripheral device immediately increases the current first operating parameter from the second parameter value to the third parameter value, then the electronic device further counts the actual total power consumption in the third time period T3, if the actual total power consumption in the third time period T3 is still less than the second power consumption threshold, the electronic device issues the fourth parameter value of the first operating parameter to the first peripheral device at the third time T3, then the first peripheral device immediately increases the first operating parameter from the third parameter value to the fourth parameter value, and the above steps are repeatedly executed in sequence until the actual total power consumption of the electronic device falls within the threshold interval that is less than the first power consumption threshold and is greater than or equal to the second power consumption threshold. The reason for gradually increasing the value of the first operating parameter is to make the adjustment of the power consumption of the electronic device imperceptible to the user as much as possible, so as to ensure the user experience.
For example, the processor of the mobile phone issues the brightness level 3 of the screen brightness to the screen at the second time T2, the screen first increases the screen brightness from the brightness level 2 to the brightness level 3, then the processor of the mobile phone counts the actual total power consumption in the third time period T3, if the actual total power consumption in the third time period T3 is less than the second power consumption threshold, the processor of the mobile phone issues the brightness level 4 of the screen brightness to the screen at the third time T3, the screen first increases the screen brightness from the brightness level 3 to the brightness level 4, the processor of the mobile phone counts the actual total power consumption in the third time period T3, and if the actual total power consumption in the third time period T3 is less than the first power consumption threshold and greater than or equal to the second power consumption threshold, the increase of the screen brightness is stopped.
In a possible embodiment, if at least one system-on-chip includes a CPU, the electronic device reduces the first operating parameter from the second parameter value to the third parameter value, and if the third parameter value is a preset minimum value, acquires actual power consumption of the at least one system-on-chip and actual power consumption of the M peripheral devices in a fourth period, and calculates actual total power consumption of the electronic device in the fourth period, and if the actual total power consumption in the fourth period is greater than or equal to the first power consumption threshold, the electronic device reduces the power consumption of the system-on-chip in an order from low to high in priority of the system-on-chip, where the priority of the CPU is highest.
That is to say, after the electronic device reduces the values of the operating parameters of all the peripheral devices to the preset minimum value according to the power consumption control method, if the actual total power consumption in the next time period is still greater than the first power consumption threshold, the power consumption of each system-level chip is reduced according to the sequence from low to high of the priority of each system-level chip.
In a possible embodiment, if at least one system-on-chip includes a DDR, a GPU, and a CPU, and the priority of each system-on-chip is from low to high as the DDR, the GPU, and the CPU, the electronic device reduces the power consumption of each system-on-chip according to the priority of each system-on-chip from low to high. Because the priority of the CPU is highest, that is to say, the electronic device does not reduce the operating frequency of the CPU as much as possible, so as to ensure that the system performance of the electronic device is not obviously reduced.
It should be noted that, after the electronic device adjusts the operating frequency of the SOC according to the above method, if the actual total power consumption of the electronic device is determined to be far less than the second power consumption threshold in the next period, the operating frequency of the SOC is preferentially increased. Specifically, the electronic device may also increase the value of the operating frequency of the SOC multiple times according to the above method, and details are not repeated here.
The following describes in detail a power consumption control method of an electronic device according to an embodiment of the present application with reference to fig. 5, by taking the electronic device as a mobile phone and taking the mobile phone playing a video in a video application as an example.
Step 501, when the mobile phone plays a video, a temperature sensor of the mobile phone detects a current temperature of the electronic device, and a processor of the mobile phone determines a temperature threshold, a maximum power consumption budget and a minimum power consumption budget according to a current ambient light brightness, an operating state, a temperature rise rate, a current ambient temperature, a temperature of the electronic device, and the like.
Specifically, the mobile phone may determine in advance what scene the user is in according to the usage state of the mobile phone, for example, according to a user mode (e.g., an intelligent power saving mode), a charging state of the electronic device, an ambient light brightness value, a screen turning on/off condition, and the number of active applications of the mobile phone. And determining the temperature threshold value, the maximum power consumption budget and the minimum power consumption budget according to the identification result, and generating a corresponding relation table between the temperature threshold value and the maximum power consumption budget as well as the minimum power consumption budget. And then the mobile phone can search the corresponding relation table according to the current temperature of the electronic equipment so as to determine the corresponding temperature threshold value, the maximum power consumption budget and the minimum power consumption budget.
Step 502, if the current temperature of the electronic device is greater than the temperature threshold value, the processor of the mobile phone collects the actual power consumption values of the SOC and the peripheral device in the first regulation and control period in real time, and calculates the actual total power consumption of the mobile phone in the first regulation and control period.
Specifically, the mobile phone collects power consumption values of the SOC and the peripheral device for a plurality of times in the first regulation and control period T0, and collects power consumption values of each SOC and peripheral device in a fixed statistical period each time. And then summing the multiple power consumption values of each device to obtain the total power consumption of the device in a regulation period T0, and finally summing the power consumption of all peripheral devices and the power consumption of the SOC to obtain the total power consumption of the electronic equipment in the regulation period T0.
For example, as shown in fig. 6, assuming that a regulation and control period T0 is 50ms, and a statistical period T is 5ms, the statistical module performs statistics on power consumption of each SOC and peripheral device in a statistical period 5ms every 5ms, for 5 times in total. Suppose that the power consumptions of the CPU at t (1), t (2), t (3), t (4), t (5) are denoted by p1(1), p1(2), p1(3), p1(4) and p1(5), respectively, the power consumptions of the GPU at t (1), t (2), t (3), t (4), t (5) are denoted by p2(1), p2(2), p2(3), p2(4) and p2(5), the power consumptions of the screen at t (1), t (2), t (3), t (4), t (5) are denoted by p3(1), p3(2), p3(3), p3(4) and p3(5), and the power consumptions of the speaker at t (1), t (2), t (3), t (4), t (5) are denoted by p4(1), p4(2), p 4), p4 (26) and p4, respectively. Then the CPU, GPU, screen, speaker, within t (1), total power consumption c (1) ═ Σ (p1(1), p2(1), p3(1), p4(1), p5(1)), and so on, the CPU, GPU, screen, speaker, within t (2), total power consumption c (2) ═ Σ (p1(2), p2(2), p3(2), p4(2), p5(2)), the CPU, GPU, screen, speaker, within t (3), total power consumption c (3) ∑ (p1(3), p2(3), p3(3), p4(3), p5(3)), the CPU, GPU, screen, speaker, within t (4), total power consumption c (4) ═ 1(4), p2(4), p3(4), p4(4), p 24 (4), p 595 (p 595), p 595) (p 595), and p 595), p4(5), p5 (5)).
Based on the above statistical results, the final total power consumption value P1 of the CPU, GPU, screen, and speaker within the regulation period 50ms is ═ Σ (c (1), c (1), c (2), c (3), c (4), and c (5)).
Step 503, the processor of the mobile phone compares whether the actual total power consumption of the SOC and the peripheral device in the first regulation and control period is lower than a preset maximum power consumption budget, if so, step 504 is executed, otherwise, step 505 is executed.
In step 504, the processor does not adjust the power consumption of the peripheral device and the SOC device.
And 505, reducing the power consumption budgets of all the peripheral devices by the processor in n continuous regulation and control periods, and sending the parameter values of the working parameters corresponding to the reduced power consumption budgets to the corresponding peripheral devices.
Specifically, in the embodiment of the present application, the processor may reduce the power consumption budget of each peripheral device for multiple times in multiple regulation and control cycles. Continuing with the above example, for example, when the total actual power consumption value P1 of the CPU, the GPU, the screen, and the speaker in the first regulation period 50ms is greater than the maximum power consumption budget, the processor decreases the values of the power operating parameters of the screen and the speaker in the second regulation period, further, counts the total actual power consumption value P1 of the CPU, the GPU, the screen, and the speaker in the second regulation period 50ms, and if P1 is still greater than the maximum power consumption budget, the processor continues to decrease the operating parameters of the peripheral device for multiple times in the third regulation period. The power consumption of the mobile phone is adjusted in a control period, so that the adjustment of the power consumption of the mobile phone is not sensed by a user, the performance stability of the mobile phone in the control period is guaranteed, and the use experience of the user is guaranteed.
Step 506, the processor of the mobile phone collects the actual power consumption of the SOC and the peripheral device in the (n + 1) th regulation and control period in real time, and calculates the actual total power consumption of the mobile phone in the (n + 1) th regulation and control period.
And 507, stopping adjusting the power consumption of the peripheral device when the actual total power consumption of the mobile phone in the (n + 1) th regulation and control period is lower than the preset maximum power consumption budget.
Step 508, when the actual total power consumption of the mobile phone in the (n + 1) th regulation and control period is lower than the preset minimum power consumption budget, increasing the power consumption budgets of all the peripheral devices in a plurality of subsequent regulation and control periods, and sending the values of the working parameters corresponding to the increased power consumption budgets to the corresponding peripheral devices.
Step 509, when the actual total power consumption of the mobile phone in the (n + 1) th regulation and control period is still greater than the preset maximum power consumption budget and the values of the working parameters of all the peripheral devices are adjusted to the minimum value, the SOC except the CPU is reduced in frequency step by step.
Specifically, the mobile phone reduces the power consumption of each system-on-chip according to the priority of each system-on-chip from low to high. The priority of each system-level chip can be DDR, GPU and CPU from low to high. Because the priority of the CPU is highest, that is to say, the electronic device does not reduce the operating frequency of the CPU as much as possible, so as to ensure that the system performance of the electronic device is not obviously reduced.
Therefore, in the embodiment of the application, when the actual power consumption is lower than the minimum power consumption budget, the processor can control the system power consumption not to be lower than the minimum rated power consumption under the condition that the system power consumption is not higher than the rated maximum power consumption budget, so as to achieve the purpose of improving the performance of the mobile phone.
Illustratively, assume that the total power consumption statistical curve of the handset during playing video is shown in fig. 7. It can be seen from the figure that the power consumption of the mobile phone is changed frequently during the process of playing the video, and if the operating frequency of the CPU is directly reduced to a set threshold value in a place with the strongest demand, the video playing may be jammed. Therefore, in the embodiment of the present application, for the waveform shown in the interval a, that is, when the actual total power consumption of the mobile phone far exceeds the maximum power consumption budget 2600 mw, the mobile phone sends the values of the operating parameters to the screen and the speaker, the display screen reduces the brightness of the display screen, and the speaker reduces the volume of the speaker, so as to reduce the heat generation of the peripheral devices of the mobile phone. After the adjustment, the total power consumption of the mobile phone is basically controlled between 1800 milliwatts and 2600 milliwatts, and the working frequency of the SOC is not changed, so that the image quality definition and the fluency during video playing are ensured. For the waveform shown in the interval B, if the actual total power consumption of the mobile phone is far lower than the minimum power consumption of 500 milliwatt-hour, the values of the working parameters are sent to the screen and the loudspeaker, the display screen increases the brightness of the display screen, and the loudspeaker increases the volume of the loudspeaker. Therefore, the power consumption of the mobile phone does not exceed the maximum power consumption budget, and the performance of peripheral devices of the mobile phone can be improved.
Further, if the temperature of the mobile phone is still gradually increased after all the peripheral devices of the mobile phone are adjusted, and the actual total power consumption of the mobile phone still exceeds the maximum power consumption budget, the operating frequency of the SOC outside the CPU can be reduced to ensure the operating frequency of the CPU, and prevent the problems of stutter, slow refresh rate, and the like.
The embodiment of the application provides a power consumption control device of an electronic device, which can be obtained by improving the existing IPA and can be integrated in the electronic device. The device is mainly used for collecting the power consumption of each SOC and each peripheral device in each regulation and control period in real time, then adjusting the power consumption budget of each peripheral device in the next regulation and control period according to the maximum power consumption budget, and issuing an instruction to each peripheral device, wherein the instruction comprises an adjustment strategy corresponding to the adjusted power consumption budget. For example, the adjustment strategy can be strategies of reducing the brightness of a display screen, reducing the volume of a loudspeaker, reducing the power of a WiFi device, reducing the transmission power of a wireless Modem and the like. The device achieves the purpose of not reducing the power consumption budget of the SOC as far as possible by reducing the power consumption budget of the peripheral devices, thereby avoiding the occurrence of SOC frequency reduction or frequency limitation, realizing good temperature control effect and ensuring the system performance.
As shown in fig. 8, the power consumption control device of the electronic device includes a temperature control module 301, an acquisition module 302, a processing module 303, and a sending module 304.
The temperature control module 301 is configured to monitor a temperature of the electronic device, determine whether the temperature of the electronic device is greater than a temperature threshold, and determine a maximum power consumption budget and a minimum power consumption budget of the system according to a scene recognition result. The temperature control module 801 may be configured to perform the step 501 in the embodiment corresponding to fig. 5, and all relevant contents related to the embodiment of the method in fig. 5 may be referred to in the description of the function of the temperature control module 801, which is not described herein again. Illustratively, the temperature control module 801 of fig. 8 may be implemented by the sensor module 180 and the processor 110 of fig. 2.
And the collecting module 802 is configured to collect actual power consumption of each SOC and each peripheral device in each statistical period. The statistics module 802 may be configured to execute the step 502 in the embodiment corresponding to fig. 5, and relevant contents related to the embodiment of the method in fig. 5 may be referred to the functional description of the acquisition module 802, which is not described herein again. Illustratively, the acquisition module 802 of fig. 8 may be implemented by the sensor module 180 and the processor 110 of fig. 2.
And the processing module 803 is configured to adjust the power consumption of each peripheral device according to a difference between the maximum power consumption budget and the actual total power consumption. The processing module 803 may be configured to execute steps 503 to 505 in the embodiment corresponding to fig. 5, and relevant contents related to the embodiment of the method in fig. 5 may be referred to as a functional description of the processing module 803, which is not described herein again. The processing module 803 of fig. 8 may be implemented by the processor 110 of fig. 2, for example.
And the transceiver module 804 is configured to send the adjusted values of the operating parameters to each peripheral device. The transceiver module 804 in fig. 8 may be implemented by a communication interface between the processor 110 and the peripheral device in fig. 2.
Illustratively, when the temperature control module 801 detects that the current temperature of the electronic equipment is 65 degrees, the maximum power consumption budget value PL0 corresponding to the current temperature is determined, the acquisition module 802 acquires the SOC in the mobile phone and the total power consumption P1 of the peripheral devices in the previous control cycle, and then the processing module 803 calculates the actual total power consumption P1 of the equipment and then compares the P1 with the PL 0. When P1 is greater than PL0, the processing module 803 issues the value of the operating parameter in the next statistical cycle to each peripheral device through the transceiving module 804. Then, the acquisition module 802 continues to detect whether the actual total power consumption in the next statistical period is lower than the maximum power consumption budget value PL0, and if not, continues to issue the value of the working parameter until the actual total power consumption is lower than the maximum power consumption budget value PL 0.
The power consumption control device of the electronic device has a function of implementing the electronic device designed by the method. The unit modules may be implemented by hardware in the terminal, or may be implemented by executing corresponding software by hardware in the terminal, which is not limited in this embodiment of the application.
Finally, the power consumption control device of the electronic equipment can achieve the purpose of not reducing the power consumption budget of the SOC as far as possible by reducing the power consumption budget of the peripheral devices, thereby avoiding the occurrence of SOC frequency reduction or frequency limitation, realizing a good temperature control effect and ensuring the system performance.
An embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and when the computer program runs on an electronic device, the electronic device is caused to execute any one of the possible implementations of the data transmission method.
Embodiments of the present application further provide a computer program product, which when run on an electronic device, causes the electronic device to execute any one of the possible implementations of the data transmission method.
In other embodiments of the present application, an embodiment of the present application discloses an electronic device, which may include, as shown in fig. 9: one or more processors 901; a memory 902; a display 903; one or more application programs (not shown); and one or more computer programs 904, which may be connected via one or more communication buses 905. Wherein the one or more computer programs 904 are stored in the memory 902 and configured to be executed by the one or more processors 901, the one or more computer programs 904 comprising instructions which may be used to perform the steps as in the respective embodiment of fig. 5.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (18)

1. A power consumption control method of an electronic device is applied to the electronic device comprising at least one system-on-chip and M peripheral devices, and is characterized by comprising the following steps:
acquiring the actual power consumption of the at least one system-level chip and the actual power consumption of the M peripheral devices in a first period;
calculating the actual total power consumption of the electronic equipment in the first period, wherein the actual total power consumption in the first period is equal to the sum of the actual power consumption of the at least one system-on-chip and the actual power consumption of the M peripheral devices in the first period;
and when the actual total power consumption in the first period is determined to be greater than or equal to a first power consumption threshold, reducing the power consumption of N peripheral devices in the M peripheral devices, wherein M is a positive integer and N is a positive integer not greater than M.
2. The method of claim 1, wherein the electronic device reduces power consumption of N of the M peripheral devices, comprising:
for a first working parameter of a first peripheral device of the N peripheral devices, performing the following processing:
reducing the first operating parameter from a first parameter value to a second parameter value;
acquiring the actual power consumption of the at least one system-level chip and the actual power consumption of the M peripheral devices in a second period;
calculating the actual total power consumption of the electronic equipment in the second time period, wherein the actual total power consumption in the second time period is equal to the sum of the actual power consumption of the at least one system-on-chip and the actual power consumption of the M peripheral devices in the second time period;
when the actual total power consumption in the second period is determined to be larger than or equal to the first power consumption threshold, reducing the first peripheral device from the second parameter value to a third parameter value;
and stopping reducing the second parameter value when the actual total power consumption in the second time period is determined to be smaller than the first power consumption threshold.
3. The method of claim 2, further comprising:
determining that the actual total power consumption in the second time period is smaller than a second power consumption threshold, wherein the second power consumption threshold is smaller than the first power consumption threshold, and executing the following processing for the first working parameter of the first peripheral device:
increasing the first operating parameter from the second parameter value to a third parameter value;
acquiring the actual power consumption of the at least one system-level chip and the actual power consumption of the M peripheral devices in a third period;
calculating the actual total power consumption of the electronic equipment in the third time period, wherein the actual total power consumption in the second time period is equal to the sum of the actual power consumption of at least one system-level chip and the actual power consumption of the M peripheral devices in the third time period;
when the actual total power consumption in the third period is determined to be smaller than the second power consumption threshold, increasing the first peripheral device from the third parameter value to a fourth parameter value;
and stopping increasing the fourth parameter value when the actual total power consumption in the third time period is determined to be greater than or equal to the second power consumption threshold.
4. The method of claim 2 or 3, wherein the first operating parameter is any one of screen brightness, speaker volume, charging voltage, charging current, Bluetooth transmitting power, wireless fidelity (WIFI) transmitting power, and modem transmitting power.
5. The method of claim 2, wherein the at least one system-on-chip comprises a Central Processing Unit (CPU);
after the electronic device reduces the first operating parameter from the second parameter value to a third parameter value, the method further includes:
when the third parameter value is a preset minimum value, acquiring the actual power consumption of the at least one system-level chip and the actual power consumption of the M peripheral devices in a fourth period;
calculating the actual total power consumption of the electronic equipment in the fourth period, wherein the actual total power consumption in the fourth period is equal to the sum of the actual power consumption of the at least one system-on-chip and the actual power consumption of the M peripheral devices in the fourth period;
and when the actual total power consumption in the fourth time period is determined to be larger than or equal to the first power consumption threshold, reducing the power consumption of each system-level chip according to the sequence of the priority of each system-level chip from low to high, wherein the priority of the CPU is the highest.
6. The method of claim 5, wherein said at least one system-on-chip further comprises double data Rate synchronous dynamic random Access memory (DDR), Graphics Processor (GPU);
the electronic equipment reduces the power consumption of each system-level chip according to the sequence of the priority of each system-level chip from low to high, and the method comprises the following steps:
and reducing the working frequency of each system-level chip step by step according to the sequence of the priority of each system-level chip from low to high, wherein the sequence of the priority of each system-level chip from low to high is DDR, GPU and CPU.
7. The method according to any of claims 1 to 6, wherein before the electronic device collects the actual power consumption of the at least one system-on-chip and the actual power consumption of the M peripheral devices in the first time period, the method further comprises:
and determining the first power consumption threshold according to at least one of the current ambient light brightness, the running state, the temperature rising rate, the current ambient temperature and the electronic equipment temperature.
8. The method according to any of claims 1 to 6, wherein before the electronic device collects the actual power consumption of the at least one system-on-chip and the actual power consumption of the M peripheral devices in the first time period, the method further comprises:
and determining that the current electronic equipment temperature of the electronic equipment is higher than a set temperature value.
9. An electronic device comprising at least one system-on-chip, M peripheral devices and a memory, the at least one system-on-chip comprising a processor;
the memory for storing one or more computer programs;
the memory stores one or more computer programs that, when executed by the processor, cause the electronic device to perform:
acquiring the actual power consumption of the at least one system-level chip and the actual power consumption of the M peripheral devices in a first period;
calculating the actual total power consumption of the electronic equipment in the first period, wherein the actual total power consumption in the first period is equal to the sum of the actual power consumption of the at least one system-on-chip and the actual power consumption of the M peripheral devices in the first period;
and when the actual total power consumption in the first period is determined to be greater than or equal to a first power consumption threshold, reducing the power consumption of N peripheral devices in the M peripheral devices, wherein M is a positive integer and N is a positive integer not greater than M.
10. The electronic device of claim 9, wherein the one or more computer programs stored by the memory, when executed by the processor, further cause the electronic device to perform:
for a first working parameter of a first peripheral device of the N peripheral devices, performing the following processing:
reducing the first operating parameter from a first parameter value to a second parameter value;
acquiring the actual power consumption of the at least one system-level chip and the actual power consumption of the M peripheral devices in a second period;
calculating the actual total power consumption of the electronic equipment in the second time period, wherein the actual total power consumption in the second time period is equal to the sum of the actual power consumption of the at least one system-on-chip and the actual power consumption of the M peripheral devices in the second time period;
when the actual total power consumption in the second period is determined to be larger than or equal to the first power consumption threshold, reducing the first peripheral device from the second parameter value to a third parameter value;
and stopping reducing the second parameter value when the actual total power consumption in the second time period is determined to be smaller than the first power consumption threshold.
11. The electronic device of claim 10, wherein the one or more computer programs stored by the memory, when executed by the processor, further cause the electronic device to perform:
determining that the actual total power consumption in the second time period is smaller than a second power consumption threshold, wherein the second power consumption threshold is smaller than the first power consumption threshold, and executing the following processing for the first working parameter of the first peripheral device:
increasing the first operating parameter from the second parameter value to a third parameter value;
acquiring the actual power consumption of the at least one system-level chip and the actual power consumption of the M peripheral devices in a third period;
calculating the actual total power consumption of the electronic equipment in the third time period, wherein the actual total power consumption in the second time period is equal to the sum of the actual power consumption of at least one system-level chip and the actual power consumption of the M peripheral devices in the third time period;
when the actual total power consumption in the third period is determined to be smaller than the second power consumption threshold, increasing the first peripheral device from the third parameter value to a fourth parameter value;
and stopping increasing the fourth parameter value when the actual total power consumption in the third time period is determined to be greater than or equal to the second power consumption threshold.
12. The electronic device of claim 10 or 11, wherein the first operating parameter is any one of screen brightness, speaker volume, charging voltage, charging current, bluetooth transmit power, WIFI wireless fidelity (WIFI) transmit power, modem transmit power.
13. The electronic device of claim 10, wherein the at least one system-on-chip comprises a Central Processing Unit (CPU);
the memory stores one or more computer programs that, when executed by the processor, further cause the electronic device to perform:
when the third parameter value is a preset minimum value, acquiring the actual power consumption of the at least one system-level chip and the actual power consumption of the M peripheral devices in a fourth period;
calculating the actual total power consumption of the electronic equipment in the fourth period, wherein the actual total power consumption in the fourth period is equal to the sum of the actual power consumption of the at least one system-on-chip and the actual power consumption of the M peripheral devices in the fourth period;
and when the actual total power consumption in the fourth time period is determined to be larger than or equal to the first power consumption threshold, reducing the power consumption of each system-level chip according to the sequence of the priority of each system-level chip from low to high, wherein the priority of the CPU is the highest.
14. The electronic device of claim 13, wherein the at least one system-on-chip further comprises a double-data-rate synchronous dynamic random access memory (DDR), a Graphics Processor (GPU);
the memory stores one or more computer programs that, when executed by the processor, further cause the electronic device to perform:
and reducing the working frequency of each system-level chip step by step according to the sequence of the priority of each system-level chip from low to high, wherein the sequence of the priority of each system-level chip from low to high is DDR, GPU and CPU.
15. The electronic device of any of claims 9-14, wherein the one or more computer programs stored by the memory, when executed by the processor, further cause the electronic device to perform:
and determining the first power consumption threshold according to at least one of the current ambient light brightness, the running state, the temperature rising rate, the current ambient temperature and the electronic equipment temperature.
16. The electronic device of any of claims 9-14, wherein the one or more computer programs stored by the memory, when executed by the processor, further cause the electronic device to perform:
and determining that the current electronic equipment temperature of the electronic equipment is higher than a set temperature value.
17. A computer storage medium, characterized in that the computer-readable storage medium comprises a computer program which, when run on an electronic device, causes the electronic device to execute the power consumption control method of the electronic device according to any one of claims 1 to 8.
18. A chip coupled with a memory for executing a computer program stored in the memory for performing the method of any one of claims 1 to 8.
CN201910106542.XA 2019-02-02 2019-02-02 Power consumption control method of electronic equipment and electronic equipment Pending CN111522425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910106542.XA CN111522425A (en) 2019-02-02 2019-02-02 Power consumption control method of electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910106542.XA CN111522425A (en) 2019-02-02 2019-02-02 Power consumption control method of electronic equipment and electronic equipment

Publications (1)

Publication Number Publication Date
CN111522425A true CN111522425A (en) 2020-08-11

Family

ID=71900078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910106542.XA Pending CN111522425A (en) 2019-02-02 2019-02-02 Power consumption control method of electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN111522425A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966149A (en) * 2020-10-27 2020-11-20 成都万创科技有限责任公司 Temperature control method and device for tablet computer
CN112558748A (en) * 2020-11-26 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 Server power consumption limiting method, device, equipment and readable storage medium
CN114510139A (en) * 2020-11-16 2022-05-17 深圳市万普拉斯科技有限公司 Frequency modulation method and device and electronic equipment
WO2023142906A1 (en) * 2022-01-28 2023-08-03 荣耀终端有限公司 Power consumption control method and apparatus
CN117130454A (en) * 2023-03-31 2023-11-28 荣耀终端有限公司 Power consumption adjustment method and electronic equipment
WO2024001994A1 (en) * 2022-06-28 2024-01-04 华为技术有限公司 Energy-saving management method and apparatus, and computing device and computer-readable storage medium
WO2024031803A1 (en) * 2022-08-11 2024-02-15 瑞声光电科技(常州)有限公司 Loudspeaker power consumption control method and apparatus, storage medium, and electronic device
CN114510139B (en) * 2020-11-16 2024-06-04 深圳市万普拉斯科技有限公司 Frequency modulation method and device and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2136701A1 (en) * 1993-12-28 1995-06-29 Toshiyuki Uehara Power supply control circuit
US20060242441A1 (en) * 2005-04-26 2006-10-26 Pantech Co., Ltd. Method for controlling power in mobile phone, and mobile phone implementing the same
CN104503563A (en) * 2014-12-30 2015-04-08 中科创达软件股份有限公司 Electricity saving method and device of electronic equipment
CN104798005A (en) * 2012-12-28 2015-07-22 英特尔公司 Total platform power control
CN104881104A (en) * 2015-03-11 2015-09-02 小米科技有限责任公司 Intelligent equipment, intelligent equipment performance improvement method and intelligent equipment performance improvement device
CN105573463A (en) * 2014-10-17 2016-05-11 深圳市中兴微电子技术有限公司 Power consumption management method and device
CN106708232A (en) * 2017-02-28 2017-05-24 联想(北京)有限公司 Electronic device and control method
CN107493596A (en) * 2017-09-30 2017-12-19 北京小米移动软件有限公司 Reduce the method and device of mobile terminal power consumption
CN108388331A (en) * 2018-03-06 2018-08-10 合肥联宝信息技术有限公司 I/O port control circuits and control method, electronic equipment and its control method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2136701A1 (en) * 1993-12-28 1995-06-29 Toshiyuki Uehara Power supply control circuit
US20060242441A1 (en) * 2005-04-26 2006-10-26 Pantech Co., Ltd. Method for controlling power in mobile phone, and mobile phone implementing the same
CN104798005A (en) * 2012-12-28 2015-07-22 英特尔公司 Total platform power control
CN105573463A (en) * 2014-10-17 2016-05-11 深圳市中兴微电子技术有限公司 Power consumption management method and device
CN104503563A (en) * 2014-12-30 2015-04-08 中科创达软件股份有限公司 Electricity saving method and device of electronic equipment
CN104881104A (en) * 2015-03-11 2015-09-02 小米科技有限责任公司 Intelligent equipment, intelligent equipment performance improvement method and intelligent equipment performance improvement device
CN106708232A (en) * 2017-02-28 2017-05-24 联想(北京)有限公司 Electronic device and control method
CN107493596A (en) * 2017-09-30 2017-12-19 北京小米移动软件有限公司 Reduce the method and device of mobile terminal power consumption
CN108388331A (en) * 2018-03-06 2018-08-10 合肥联宝信息技术有限公司 I/O port control circuits and control method, electronic equipment and its control method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966149A (en) * 2020-10-27 2020-11-20 成都万创科技有限责任公司 Temperature control method and device for tablet computer
CN111966149B (en) * 2020-10-27 2021-03-09 成都万创科技股份有限公司 Temperature control method and device for tablet computer
CN114510139A (en) * 2020-11-16 2022-05-17 深圳市万普拉斯科技有限公司 Frequency modulation method and device and electronic equipment
CN114510139B (en) * 2020-11-16 2024-06-04 深圳市万普拉斯科技有限公司 Frequency modulation method and device and electronic equipment
CN112558748A (en) * 2020-11-26 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 Server power consumption limiting method, device, equipment and readable storage medium
CN112558748B (en) * 2020-11-26 2023-05-12 山东云海国创云计算装备产业创新中心有限公司 Method, device and equipment for limiting power consumption of server and readable storage medium
WO2023142906A1 (en) * 2022-01-28 2023-08-03 荣耀终端有限公司 Power consumption control method and apparatus
WO2024001994A1 (en) * 2022-06-28 2024-01-04 华为技术有限公司 Energy-saving management method and apparatus, and computing device and computer-readable storage medium
WO2024031803A1 (en) * 2022-08-11 2024-02-15 瑞声光电科技(常州)有限公司 Loudspeaker power consumption control method and apparatus, storage medium, and electronic device
CN117130454A (en) * 2023-03-31 2023-11-28 荣耀终端有限公司 Power consumption adjustment method and electronic equipment

Similar Documents

Publication Publication Date Title
CN113362783B (en) Refresh rate switching method and electronic equipment
CN109814766B (en) Application display method and electronic equipment
CN112789651B (en) Frequency adjustment method and device applied to terminal and electronic equipment
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
CN109559270B (en) Image processing method and electronic equipment
CN111522425A (en) Power consumption control method of electronic equipment and electronic equipment
US20230117194A1 (en) Communication Service Status Control Method, Terminal Device, and Readable Storage Medium
CN114089933A (en) Display parameter adjusting method, electronic device, chip and readable storage medium
CN113722058A (en) Resource calling method and electronic equipment
CN113722030A (en) Display method, electronic equipment and computer storage medium
CN111356222A (en) Transmission power adjustment method, terminal, storage medium, and electronic device
CN111031492B (en) Call demand response method and device and electronic equipment
CN114461057A (en) VR display control method, electronic device and computer readable storage medium
WO2022170856A1 (en) Method for establishing connection, and electronic device
CN111372329B (en) Connection establishing method and terminal equipment
CN114221402A (en) Charging method and device of terminal equipment and terminal equipment
CN116048217B (en) Electronic equipment operation method and device and electronic equipment
WO2023030168A1 (en) Interface display method and electronic device
CN113923372B (en) Exposure adjusting method and related equipment
CN113918003A (en) Method and device for detecting time length of skin contacting screen and electronic equipment
CN114827098A (en) Method and device for close shooting, electronic equipment and readable storage medium
CN114398108A (en) Electronic device, drive loading method thereof, and medium
CN115529379B (en) Method for preventing Bluetooth audio Track jitter, electronic equipment and storage medium
CN116703691B (en) Image processing method, electronic device, and computer storage medium
CN116048831B (en) Target signal processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination