CN110716592B - Temperature control method and related equipment - Google Patents

Temperature control method and related equipment Download PDF

Info

Publication number
CN110716592B
CN110716592B CN201910968941.7A CN201910968941A CN110716592B CN 110716592 B CN110716592 B CN 110716592B CN 201910968941 A CN201910968941 A CN 201910968941A CN 110716592 B CN110716592 B CN 110716592B
Authority
CN
China
Prior art keywords
power consumption
target
preset
temperature
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910968941.7A
Other languages
Chinese (zh)
Other versions
CN110716592A (en
Inventor
王猛猛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910968941.7A priority Critical patent/CN110716592B/en
Publication of CN110716592A publication Critical patent/CN110716592A/en
Application granted granted Critical
Publication of CN110716592B publication Critical patent/CN110716592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D23/00Control of temperature
    • G05D23/19Control of temperature characterised by the use of electric means
    • 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

Abstract

The application discloses a temperature control method and related equipment, which are applied to electronic equipment, wherein the method comprises the following steps: the method comprises the steps of determining first power consumption corresponding to a target application mode of the electronic equipment in a first preset time period, if the first power consumption exceeds a preset threshold value, obtaining current temperature and preset temperature corresponding to a target position of the electronic equipment, determining a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature, and determining a target PID control parameter corresponding to the target application mode according to a mapping relation between preset application and the preset PID control parameter.

Description

Temperature control method and related equipment
Technical Field
The present disclosure relates to electronic technologies, and in particular, to a temperature control method and related device.
Background
At present, with the rapid development of internet economy in recent years, the popularity of electronic devices has become higher and higher, users can complete various business operations through the electronic devices, the requirements on the performance of mobile phones have become higher and higher, and with the continuous improvement of the performance of mobile phones and the continuous increase of application program loads, the power consumption of mobile phones has become higher and higher, and the performance of electronic devices is reduced.
Disclosure of Invention
The embodiment of the application provides a temperature control method and related equipment, which are beneficial to improving the performance of electronic equipment.
In a first aspect, an embodiment of the present application provides a temperature control method applied to an electronic device, where the method includes:
determining first power consumption corresponding to a target application mode of the electronic equipment in a first preset time period;
acquiring a current temperature and a preset temperature corresponding to a target position of the electronic equipment;
determining a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature;
determining a target PID control parameter corresponding to the target application mode according to a mapping relation between a preset application mode and a preset PID control parameter;
and adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function so as to adjust the first power consumption of the electronic equipment to a second power consumption.
In a second aspect, an embodiment of the present application provides a temperature control apparatus applied to an electronic device, where the apparatus includes: a determining unit, an obtaining unit and an adjusting unit, wherein,
the determining unit is used for determining first power consumption corresponding to a target application mode of the electronic equipment in a first preset time period;
the acquisition unit is used for acquiring the current temperature and the preset temperature corresponding to the target position of the electronic equipment;
the determining unit is further configured to determine a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature;
the determining unit is further configured to determine a target PID control parameter corresponding to the target application mode according to a mapping relationship between a preset application mode and a preset PID control parameter;
the adjusting unit is configured to adjust the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function, so that the first power consumption of the electronic device is adjusted to a second power consumption.
In a third aspect, an embodiment of the present application provides a temperature control method applied to an electronic device, where the method includes:
determining a target application mode corresponding to the electronic equipment;
determining a target temperature control level corresponding to the target application mode according to a mapping relation between a preset application mode and the temperature control level;
acquiring a current temperature corresponding to a target position of the electronic equipment;
and adjusting the current temperature corresponding to the target position to be a preset temperature based on the target temperature control level.
In a fourth aspect, an embodiment of the present application provides a temperature control apparatus applied to an electronic device, where the apparatus includes: a determining unit, an obtaining unit and an adjusting unit, wherein,
the determining unit is used for determining a target application mode corresponding to the electronic equipment;
the determining unit is further configured to determine a target temperature control level corresponding to the target application mode according to a mapping relationship between a preset scene and the temperature control level;
the acquisition unit is used for acquiring a first temperature corresponding to a target position of the electronic equipment;
the adjusting unit is configured to adjust the current temperature corresponding to the target position to a preset temperature based on the target temperature control level.
In a fifth aspect, embodiments of the present application provide an electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing some or all of the steps described in the methods according to the first and third aspects of the embodiments of the present application.
In a sixth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is executed by a processor to implement some or all of the steps described in the methods according to the first and third aspects of the present application.
In a seventh aspect, this application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps described in the methods according to the first and third aspects of this application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the electronic device may determine first power consumption corresponding to the target application mode in a first preset time period, if the first power consumption exceeds a preset threshold, obtain a current temperature and a preset temperature corresponding to a target position of the electronic device, determine a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature, and determine a target PID control parameter corresponding to the target application mode according to a mapping relationship between the preset application mode and a preset PID control parameter.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present disclosure;
fig. 1B is a schematic flow chart of a temperature control method according to an embodiment of the present disclosure;
fig. 1C is a schematic view of a scenario of a temperature control method provided in an embodiment of the present application;
fig. 2A is a schematic flow chart of a temperature control method according to an embodiment of the present disclosure;
fig. 2B is a schematic structural diagram of a temperature control method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a temperature control device according to an embodiment of the present disclosure;
FIG. 5 is a schematic flow chart of a temperature control method provided in an embodiment of the present application;
FIG. 6 is a schematic flow chart of a temperature control method provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a temperature control device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
The electronic device related to the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices (smart watches, smart bracelets, wireless headsets, augmented reality/virtual reality devices, smart glasses), computing devices or other processing devices connected to wireless modems, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application, the electronic device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, the sensor 170 includes a camera, where:
the electronic device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuitry 110 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) display screens, operations associated with performing wireless communication functionality, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, to name a few.
The electronic device 100 may include input-output circuitry 150. The input-output circuit 150 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to the external device. The input-output circuit 150 may further include a sensor 170. Sensor 170 may include an ambient light sensor, a temperature sensor, a proximity sensor based on light and capacitance, a fingerprint identification module, a touch sensor (e.g., based on an optical touch sensor and/or a capacitive touch sensor, wherein the touch sensor may be part of a touch display screen, and may also be used independently as a touch sensor structure), an acceleration sensor, a camera, and other sensors, etc., the camera may be a front camera or a rear camera, the fingerprint identification module may be integrated below the display screen for collecting fingerprint images, the fingerprint identification module may be at least one of: optical fingerprint identification module, capacitanc fingerprint identification module, inductance type fingerprint identification module, ultrasonic fingerprint identification module etc. do not do the restriction here.
Input-output circuit 150 may also include one or more display screens, such as display screen 130. The display 130 may include one or a combination of liquid crystal display, organic light emitting diode display, electronic ink display, plasma display, display using other display technologies. The display screen 130 may include an array of touch sensors (i.e., the display screen 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 100 may also include an audio component 140. The audio component 140 may be used to provide audio input and output functionality for the electronic device 100. The audio components 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 120 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control the operation of electronic device 100, and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from electronic device 100.
The electronic device described above with reference to fig. 1A may be configured to implement the following functions:
determining first power consumption corresponding to a target application mode of the electronic equipment in a first preset time period;
acquiring a current temperature and a preset temperature corresponding to a target position of the electronic equipment;
determining a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature;
determining a target PID control parameter corresponding to the target application mode according to a mapping relation between a preset application mode and a preset PID control parameter;
and adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function so as to adjust the first power consumption of the electronic equipment to a second power consumption.
As shown in fig. 1B, fig. 1B is a schematic flowchart of a temperature control method provided in an embodiment of the present application, and is applied to the electronic device shown in fig. 1A, where the method includes:
step 101, determining a first power consumption corresponding to a target application mode of the electronic device in a first preset time period.
The first preset time period may be set by a user or default, the first preset time period may be 30s, 1min, 10min, 1h, and so on, which is not limited herein, and the target application mode may include at least one of the following: video applications, chat applications, gaming applications, voice applications, shopping applications, camera applications, reading applications, live applications, and the like, without limitation; different applications may correspond to different application modes and may also be understood as application scenarios, for example, a game application may correspond to different game application modes, and since power consumption corresponding to different modes in different application modes may be different, for example, the game application mode performs more data interaction with the server compared to the reading application mode, and various modules in the electronic device operate at a higher speed compared to the reading application mode, then the first power consumption corresponding to the game application scenario in the first preset time period may be larger.
When the target application mode is opened by the foreground of the electronic device, due to the occurrence of situations such as an excessively long opening time or interaction and data update of the target application mode with a server during a working process, various modules (e.g., a Central Processing Unit (CPU)) in the electronic device may operate at a high speed, etc., which increases first power consumption of the electronic device in a first preset time period, and at the same time of increasing the first power consumption, the internal heat of the electronic device is increased, which may cause a temperature rise problem of a temperature at a position of a housing, a processor, a frame, etc., in the electronic device, thereby causing a performance degradation of the electronic device.
In an implementation manner of the present application, determining a first power consumption corresponding to a target application mode of the electronic device in a first preset time period may include the following steps:
acquiring N input parameters corresponding to the electronic equipment, wherein N is an integer greater than 1;
acquiring N power consumption curves corresponding to the N input parameters in the first preset time period, wherein each input parameter corresponds to one power consumption curve;
and determining first power consumption corresponding to the target application mode of the electronic equipment in the first preset time period according to the N power consumption curves.
Wherein, the input parameters may include at least two of the following: the power consumption curve can change according to the length of time, so that the power consumption curve corresponding to each input parameter of the electronic equipment in a first preset time period can be obtained, and the power consumption curve reflects the problem of power consumption to a certain extent.
In an implementation manner of the present application, determining, according to the N power consumption curves, a first power consumption of the electronic device corresponding to the target application mode in the first preset time period may include the following steps:
determining N average power consumption rates of the electronic equipment in the first preset time period according to the N power consumption curves, wherein each power consumption curve corresponds to one average power consumption rate;
determining N average power consumptions corresponding to the N input parameters according to the N average power consumption rates, wherein each power consumption curve corresponds to one average power consumption;
and summing the N average power consumptions to obtain the first power consumption.
In the target application mode, the power consumption rate corresponding to each input parameter is changed in real time within the first preset time period, so that the first power consumption corresponding to the electronic device can be determined according to the average power consumption rate corresponding to the N input parameters.
Specifically, N average power consumption rates corresponding to the target application mode may be determined according to the N power consumption curves, each input parameter corresponds to one average power consumption rate, and the average power consumption corresponding to each input parameter may be determined according to the N average power consumption rates, where the first power consumption represents a power loss corresponding to the N input parameters in a first preset time period, and therefore, the N average power consumptions are summed to obtain the first power consumption corresponding to the target application mode.
Optionally, before the determining of the first power consumption corresponding to the target application mode by the electronic device in the first preset period, the method may further include the following steps:
acquiring N initial power consumptions corresponding to the N input parameters in a second preset time period, wherein the second preset time period is earlier than the first preset time period;
acquiring N weights corresponding to the N input parameters, wherein each input parameter corresponds to one weight, and the sum of the N weights is 1;
determining power consumption evaluation values corresponding to the N input parameters according to the N weights and the N initial power consumptions to obtain N power consumption evaluation values;
selecting at least one power consumption evaluation value corresponding to the power consumption evaluation values exceeding a preset evaluation value from the N power consumption evaluation values;
acquiring at least one input parameter corresponding to the at least one power consumption evaluation value;
adjusting the at least one input parameter to obtain at least one target input parameter after parameter adjustment;
and maintaining the operation of the target application mode based on the at least one target input parameter, and executing the step of determining the first power consumption of the electronic equipment corresponding to the target application mode in a first preset period.
The second preset time period can be set by a user or default by a system, and can be earlier than the first preset time period, for example, the second preset time period can be 10min within the time period of 19: 00-19: 10, and the second preset time period can be 10min within the time period of 19: 10-19: 20; because the electronic device can generate heat continuously during operation, the corresponding power consumption is different in different time periods.
In addition, when the internal power consumption of the electronic equipment is increased, the internal power consumption of the electronic equipment can be reduced by changing the forward input mode of the system corresponding to the whole electronic equipment, namely, the internal power consumption of the electronic equipment is reduced by regulating and controlling the N input parameters in a second preset time period, so that the aim of reducing the temperature rise is fulfilled.
In specific implementation, the electronic device may preset a weight corresponding to each input parameter, where the higher the weight is, the more power consumption generated by the electronic device is, the greater the influence on the problem of temperature rise in the electronic device is, or the greater the weight is, the worse the user experience is, and N initial power consumptions corresponding to the N input parameters within a second preset time period may be obtained for the N input parameters.
Further, since power consumption is varied in real time, the initial power consumption may be different from the first power consumption, and determining power consumption evaluation values corresponding to the N input parameters according to the N weights and the N initial power consumptions to obtain N power consumption evaluation values, the power consumption evaluation value reflects the influence of the input parameters on the power consumption of the electronic equipment in a certain sense, and the larger the power consumption evaluation value is, indicating that the influence thereof on power consumption is larger, that is, indicating that the effect of adjusting the input parameter on reducing initial power consumption is larger, and therefore, at least one power consumption evaluation value corresponding to more than a preset evaluation value may be selected, the preset evaluation value can be set by a user or defaulted by a system, and at least one input parameter corresponding to the power consumption evaluation value is acquired, the at least one target input parameter may be obtained by adjusting the at least one input parameter, and the target input parameter may include at least one of: charging rate, background applications, frame rate, CPU frequency, GPU frequency, screen brightness, system sound, etc., without limitation; the normal work or working state of the target application mode can be maintained or kept through at least one target input parameter, so that the effect of preliminarily reducing the internal power consumption of the electronic equipment is achieved.
As shown in table 1 below, a table of relationships between input parameters and weights, as shown in the table, the input parameters include: the charging rate, the background application, the frame rate, the CPU frequency, the GPU frequency, the screen brightness, the system sound, and the like, different weights may be set for different input parameters, the weights may be set according to user experiences, the larger the weight is, the greater the influence on the user experience is, the larger the power consumption evaluation value is, the greater the influence on the power consumption is, in addition, the table may also include an initial power consumption corresponding to each input parameter, the initial power consumption may refer to an initial power consumption corresponding to each input parameter in a second preset time period, the initial power consumption may be obtained based on parameters such as power consumption and power consumption rate, the power consumption evaluation value corresponding to each input parameter may be determined, for example, if the input parameter corresponding to the power consumption evaluation value exceeding the preset evaluation value is obtained as the screen brightness, the initial power consumption corresponding to the second preset time period inside the electronic device may be reduced by reducing the current screen brightness step by step, the specific regulation and control manner is not limited herein.
TABLE 1 relationship between input parameters and weights
Inputting parameters Weight of Initial power consumption
Rate of charge K1 P1
Background applications K2 P2
Frame rate K3 P3
CPU frequency K4 P4
GPU frequency K5 P5
Brightness of screen K6 P6
System sound K7 P7
And 102, acquiring a current temperature and a preset temperature corresponding to a target position of the electronic equipment.
Wherein, the electronic device may include a temperature sensor, the current temperature of the electronic device at the target position may be obtained by the temperature sensor, the step of obtaining the current temperature and the preset temperature corresponding to the target position of the electronic device may be performed when the first power consumption exceeds a preset threshold, the preset threshold may be set by a user or default, the preset threshold is equivalent to a valve for controlling the electronic device to open a negative feedback mechanism, the first power consumption corresponding to the target application mode of the electronic device changes with time, and as the running time of the target application mode increases, when the first power consumption exceeds the preset threshold, the temperatures corresponding to different components inside the electronic device become higher and higher, therefore, the temperature may be obtained for a certain position inside the electronic device, specifically, the current temperature corresponding to the target position inside the electronic device may be obtained, the target location may include at least one of: the temperature of the housing, the temperature of the screen, the temperature of the bezel, the temperature of the inside of the processor, the temperature of the speaker, the temperature of the power management chip, etc., without limitation.
In addition, different preset temperatures can be set for different internal positions of the electronic device, where the preset temperature may refer to a normal temperature corresponding to an internal position of the electronic device when the electronic device normally operates, or a temperature when the preset temperature is a temperature corresponding to a target position so that a system corresponding to the electronic device reaches a stable state of power consumption output.
And 103, determining a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature.
The current temperature can change along with the change of time, so different target temperature difference functions can be set for different current temperatures and preset temperatures, the target temperature difference functions can be set by users or defaulted by a system, the target temperature difference functions represent the change relation between the temperature and the time, and are functions related to the time.
Optionally, determining a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature may include the following steps:
determining a temperature difference corresponding to the target position based on the preset temperature and the current temperature;
and determining the target temperature difference function e (t) corresponding to the temperature difference according to the mapping relation between the preset temperature difference and the preset temperature difference function, wherein e (t) is a function of the temperature difference with respect to time.
The temperature is changed in real time along with time, so that different temperature difference functions can be preset by the electronic equipment, different preset temperature differences can correspond to different temperature difference functions, and the negative feedback mechanism can be controlled through the temperature difference functions, so that the purpose of cooling is achieved.
And step 104, determining a target PID control parameter corresponding to the target application mode according to a mapping relation between a preset application mode and a preset PID control parameter.
The PID controller (proportional-integral-derivative controller) is a feedback loop component commonly used in industrial control applications, and is composed of a proportional (proportional) unit P, an integral (integral) unit I and a derivative (derivative) unit D, and a negative feedback mechanism corresponding to the electronic device can be realized by the PID controller, and temperature control can be realized by adjusting the temperature based on the negative feedback mechanism through a temperature reduction method.
Further, the PID control parameter may include at least one of: a proportional factor, an integral factor, a differential factor, etc., which are not limited herein; in different applications of electronic equipment such as games, videos, news, cameras, reading and the like, the heating characteristics are different, and if all application scenes use the same PID control parameters, the temperature requirements of all the scenes cannot be met, so that different PID control parameters can be adopted for different scenes, and each application scene can correspond to one group of PID control parameters.
And 105, adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function, so that the first power consumption of the electronic equipment is adjusted to be second power consumption.
After determining the PID control parameter corresponding to the target application mode, the current temperature may be controlled to the preset temperature by the target temperature difference function within a certain period of time, so as to minimize the temperature difference between the current temperature and the preset temperature, thereby reducing the temperature rise of the electronic device.
In an implementation manner of the present application, adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function, so that the first power consumption of the electronic device is adjusted to the second power consumption, may include the following steps:
determining the adjustment range of the second power consumption as the first power consumption of the electronic equipment in the first preset time period
Figure BDA0002231440150000071
Wherein, PiThe average power consumption corresponding to any one input parameter is obtained;
acquiring a preset PID control formula:
Figure BDA0002231440150000072
wherein, Kp、KiAnd KdRespectively representing a proportional parameter, an integral parameter and a differential parameter, P (t) is
Figure BDA0002231440150000073
Any one of the values;
adjusting the first power consumption of the electronic device to the second power consumption by adjusting the proportional parameter, the integral parameter, and the derivative parameter based on the PID control formula and the target temperature difference function e (t).
Wherein, the PID control formula can be set by the user or defaulted by the system, and the PID control formula can be set by the user or the system
Figure BDA0002231440150000074
The integrator is used for summing the average powers corresponding to all input parameters, which can be understood as parameters affecting the power consumption during the operation of the electronic device
Figure BDA0002231440150000075
Differentiator
Figure BDA0002231440150000076
And a proportioner Kpe (t) are all functions related to a target temperature difference function, the proportional parameter represents the proportional relation between input power consumption and output power consumption, the sensitivity of the whole temperature control method can be adjusted by adjusting the parameter, an error in a past period is introduced into an integral parameter, the stable speed of a system corresponding to the whole temperature control method corresponding to the electronic equipment can be accelerated, a steady-state error can be eliminated, and a differential parameter mainly relates to a variation trend, so that the error can be eliminated as soon as possible.
In addition, since the actual heating conditions corresponding to different application scenarios are different, for example, the power consumption corresponding to the video application is relatively larger than that of the reading application, and therefore, the target proportional parameter, the target integral parameter, and the target differential parameter corresponding to the target application mode can be obtained for the target application mode.
Further, since the target temperature difference function is also changed from time to time, the first power can be adjusted based on the target temperature difference function by adjusting the target proportional parameter, the target integral parameter and the target differential parameter, and by the above formula
Figure BDA0002231440150000078
The internal switching minimizes the temperature difference between the preset temperature and the current temperature corresponding to the target position in the electronic device, and even approaches 0, which is the second power consumption in the second power consumption range
Figure BDA0002231440150000077
Therefore, the power can be adjusted by adjusting the PID parameters in a targeted manner, so that the temperature in the electronic equipment is reduced.
Optionally, after the adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function so that the first power consumption of the electronic device is adjusted to a second power consumption, the method further includes:
determining a temperature difference between the current temperature and the preset temperature;
when the temperature difference approaches zero and the second power is greater than
Figure BDA0002231440150000081
Setting the value corresponding to the P (t) to be a preset value, and resetting the target temperature difference function e (t).
If the electronic device is in an extreme environment, for example, the external environment is high in temperature, during the process of adjusting the PID control parameter, the electronic device may overshoot, and when the electronic device controls the PID control parameter, the temperature corresponding to the target position of the electronic device has reached the preset temperature, and when the temperature difference has reached the requirement, the second power output by the system far exceeds the maximum value
Figure BDA0002231440150000082
Starting from the adjustment of the PID control parameter, at this time, the system inside the electronic device is in an unstable state, or the system cannot reach a stable state in time after the recovery of the subsequent external influence factor due to the long-time accumulation of the integral parameter, so to avoid the above situation, a preset value is set for the output second power, that is, P (t), and if the above situation occurs, P (t) can be set) The value of (a) is set as a preset value, and the value corresponding to the target temperature difference function e (t) is reset at this time, so as to avoid the occurrence of overshoot, which is a quantity for measuring the adjustment quality, and it can be understood that, when the system reaches a steady state, the control action is too large, so that the output of the system exceeds the steady state value, therefore, the above method can be adopted to promote the system to return to an initial state within a short time, or expect the stable state to return, so as to enable the system corresponding to the electronic device to reach a stable state.
As shown in fig. 1C, a scene diagram of a temperature control method provided in this embodiment of the application is shown, wherein if the target application mode is a video application, when a user performs video with another person, due to continuous transceiving of video data, a CPU occupation ratio in an electronic device may be increased, thereby increasing power consumption, and therefore, when first power consumption in a first preset time period exceeds a preset threshold, which may be understood as maximum power consumption that the electronic device can bear, a target PID control parameter corresponding to the video application may be obtained, a current temperature corresponding to a target portion (a heating portion) of the electronic device and a preset temperature are obtained, the preset temperature is lower than the current temperature, and a target temperature difference function corresponding to the preset temperature is determined, and power consumption of the electronic device is reduced through the target temperature difference function and the target PID control parameter, so as to maintain power consumption of the electronic device at a second power consumption, meanwhile, the temperature of the target part is reduced, the second power consumption is smaller than the first power consumption, and all temperature control is processed in the background without any operation of a user, so that the user experience is improved, and the performance of the electronic equipment is improved.
It can be seen that, in the embodiment of the present application, a first power consumption corresponding to a target application mode of an electronic device in a first preset time period may be determined, if the first power consumption exceeds a preset threshold, a current temperature and a preset temperature corresponding to a target position of the electronic device are obtained, a target temperature difference function corresponding to the target position is determined according to the current temperature and the preset temperature, and a target PID control parameter corresponding to the target application mode is determined according to a mapping relationship between the preset application mode and a preset PID control parameter.
Referring to fig. 2A, fig. 2A is a schematic flow chart of a temperature control method according to an embodiment of the present application, applied to the electronic device shown in fig. 1A, where the temperature control method includes:
step 201, acquiring N initial power consumptions corresponding to the N input parameters in a second preset time period, where the second preset time period is earlier than the first preset time period.
Step 202, obtaining N weights corresponding to the N input parameters, where each input parameter corresponds to a weight, and the sum of the N weights is 1.
Step 203, determining power consumption evaluation values corresponding to the N input parameters according to the N weights and the N initial power consumptions, and obtaining N power consumption evaluation values.
And 204, selecting at least one power consumption evaluation value corresponding to the power consumption evaluation values exceeding a preset evaluation value from the N power consumption evaluation values.
Step 205, acquiring at least one input parameter corresponding to the at least one power consumption evaluation value.
And step 206, adjusting the at least one input parameter to obtain at least one target input parameter after parameter adjustment.
Step 207, maintaining the operation of the target application mode based on the at least one target input parameter.
And 208, determining first power consumption corresponding to the target application mode of the electronic equipment in a first preset time period.
And 209, acquiring the current temperature and the preset temperature corresponding to the target position of the electronic equipment.
And 210, determining a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature.
And step 211, determining a target PID control parameter corresponding to the target application mode according to a mapping relationship between a preset application mode and a preset PID control parameter.
And 212, adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function, so that the first power consumption of the electronic device is adjusted to a second power consumption.
The detailed description of the steps 201 to 212 may refer to the corresponding steps of the temperature control method described in the above fig. 1B, and will not be repeated herein.
As shown in fig. 2B, a schematic structural diagram of a temperature control method provided in an embodiment of the present application is shown, where the forward control method in fig. 2B corresponds to the method corresponding to steps 201 to 207 in fig. 2A, and the negative feedback control method in fig. 2B corresponds to the method corresponding to steps 208 to 212 in fig. 2A.
Wherein, the input parameters can be understood as parameters affecting the power consumption during the operation of the electronic device, the electronic device adjusts the initial power consumption of the target application mode corresponding to the electronic device by adjusting the plurality of input parameters, generally speaking, the purpose of adjusting the plurality of input parameters is to reduce the initial power consumption, thereby realizing the control of the forward power consumption, but the problem of temperature rise at some positions in the electronic device can be brought while controlling the power consumption in the forward direction, therefore, a negative feedback control method related to a target temperature difference function can be added to feedback and restrict the whole temperature control system, at this time, after a first preset time period, the power consumption of the electronic device for the target application mode is the first power consumption, the electronic device can be adjusted from the first power consumption to the second power consumption by the negative feedback control method, generally speaking, the initial power consumption > the first power consumption > the second power consumption, therefore, automatic temperature control adjustment is achieved, and meanwhile the system corresponding to the whole electronic device is enabled to reach a stable state.
It can be seen that, in the embodiment of the present application, the electronic device may obtain N initial power consumptions corresponding to N input parameters in a second preset time period, where the second preset time period is earlier than the first preset time period, obtain N weights corresponding to the N input parameters, where each input parameter corresponds to one weight, and a sum of the N weights is 1, determine power consumption estimated values corresponding to the N input parameters according to the N weights and the N initial power consumptions, obtain N power consumption estimated values, select at least one power consumption estimated value corresponding to more than the preset estimated value from the N power consumption estimated values, obtain at least one input parameter corresponding to the at least one power consumption estimated value, adjust the at least one input parameter, obtain at least one target input parameter after parameter adjustment, determine a first power consumption corresponding to the target application mode in the first preset time period based on that the at least one target input parameter maintains the operation of the target application mode, if the first power consumption exceeds a preset threshold value, the current temperature and the preset temperature corresponding to the target position of the electronic equipment are obtained, the target temperature difference function corresponding to the target position is determined according to the current temperature and the preset temperature, the target PID control parameter corresponding to the target application mode is determined according to the mapping relation between the preset application mode and the preset PID control parameter, the current temperature is adjusted to be the preset temperature based on the target PID control parameter and the target temperature difference function, so that the first power consumption of the electronic equipment is adjusted to be the second power consumption, therefore, the forward control and the reverse control can be combined, the internal temperature of the electronic equipment is reduced while the power consumption of the electronic equipment is adjusted (reduced), and the performance of the electronic equipment is improved.
In accordance with the foregoing embodiments, please refer to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in the drawing, the electronic device includes a processor, a memory, a communication interface, a display screen, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and in an embodiment of the present application, the program includes instructions for performing the following steps:
determining first power consumption corresponding to a target application mode of the electronic equipment in a first preset time period;
acquiring a current temperature and a preset temperature corresponding to a target position of the electronic equipment;
determining a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature;
determining a target PID control parameter corresponding to the target application mode according to a mapping relation between a preset application mode and a preset PID control parameter;
and adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function so as to adjust the first power consumption of the electronic equipment to a second power consumption.
It can be seen that, in the embodiment of the present application, the electronic device determines first power consumption corresponding to a target application mode in a first preset time period, if the first power consumption exceeds a preset threshold, a current temperature and a preset temperature corresponding to a target position of the electronic device are obtained, a target temperature difference function corresponding to the target position is determined according to the current temperature and the preset temperature, and a target PID control parameter corresponding to the target application mode is determined according to a mapping relationship between the preset application mode and a preset PID control parameter.
In an implementation manner of the present application, in terms of determining a first power consumption corresponding to a target application mode of the electronic device in a first preset time period, the instructions in the program are specifically configured to perform the following operations:
acquiring N input parameters corresponding to the electronic equipment, wherein N is an integer greater than 1;
acquiring N power consumption curves corresponding to the N input parameters in the first preset time period, wherein each input parameter corresponds to one power consumption curve;
and determining first power consumption corresponding to the target application mode of the electronic equipment in the first preset time period according to the N power consumption curves.
In an implementation manner of the present application, in terms of determining, according to the N power consumption curves, a first power consumption corresponding to the target application mode by the electronic device in the first preset time period, the instructions in the program are specifically configured to:
determining N average power consumption rates of the electronic equipment in the first preset time period according to the N power consumption curves, wherein each power consumption curve corresponds to one average power consumption rate;
determining N average power consumptions corresponding to the N input parameters according to the N average power consumption rates, wherein each power consumption curve corresponds to one average power consumption;
and summing the N average power consumptions to obtain the first power consumption.
In an implementation manner of the present application, before determining that the electronic device has a first power consumption corresponding to a target application mode in a first preset time period, the instructions in the program are specifically configured to perform the following operations:
acquiring N initial power consumptions corresponding to the N input parameters in a second preset time period, wherein the second preset time period is earlier than the first preset time period;
acquiring N weights corresponding to the N input parameters, wherein each input parameter corresponds to one weight, and the sum of the N weights is 1;
determining power consumption evaluation values corresponding to the N input parameters according to the N weights and the N initial power consumptions to obtain N power consumption evaluation values;
selecting at least one power consumption evaluation value corresponding to the power consumption evaluation values exceeding a preset evaluation value from the N power consumption evaluation values;
acquiring at least one input parameter corresponding to the at least one power consumption evaluation value;
adjusting the at least one input parameter to obtain at least one target input parameter after parameter adjustment;
and maintaining the operation of the target application mode based on the at least one target input parameter, and executing the step of determining the first power consumption of the electronic equipment corresponding to the target application mode in a first preset period.
In an implementation manner of the present application, in terms of determining the target temperature difference function corresponding to the target position according to the current temperature and the preset temperature, the instructions in the program are specifically configured to perform the following operations:
determining a temperature difference corresponding to the target position based on the preset temperature and the current temperature;
and determining the target temperature difference function e (t) corresponding to the temperature difference according to the mapping relation between the preset temperature difference and the preset temperature difference function, wherein e (t) is a function of the temperature difference with respect to time.
In an implementation manner of the present application, in adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function, so that the first power consumption of the electronic device is adjusted to the second power consumption, the instructions in the program are specifically configured to perform the following operations:
determining the adjustment range of the second power consumption as the first power consumption of the electronic equipment in the first preset time period
Figure BDA0002231440150000101
Wherein, PiThe average power consumption corresponding to any one input parameter is obtained;
acquiring a preset PID control formula:
Figure BDA0002231440150000102
wherein, Kp、KiAnd KdRespectively representing a proportional parameter, an integral parameter and a differential parameter, P (t) is
Figure BDA0002231440150000111
Any one of the values;
adjusting the first power consumption of the electronic device to the second power consumption by adjusting the proportional parameter, the integral parameter, and the derivative parameter based on the PID control formula and the target temperature difference function e (t).
In an implementation manner of the present application, based on the target PID control parameter and the target temperature difference function, the current temperature is adjusted to the preset temperature, so that after the first power consumption of the electronic device is adjusted to the second power consumption, the instructions in the program are specifically configured to perform the following operations:
determining a temperature difference between the current temperature and the preset temperature;
when the temperature difference approaches zero and the second power is greater than
Figure BDA0002231440150000112
Setting the value corresponding to the P (t) to be a preset value, and resetting the target temperature difference function e (t).
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing 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.
It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present application, which is used to execute the method implemented by the embodiment of the method of the present application.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a temperature control device according to an embodiment of the present application, applied to an electronic device, where the temperature control device includes: a determination unit 401, an acquisition unit 402, and an adjustment unit 403, wherein,
the determining unit 401 is configured to determine a first power consumption corresponding to a target application mode of the electronic device in a first preset time period;
the obtaining unit 402 is configured to obtain a current temperature and a preset temperature corresponding to a target position of the electronic device;
the determining unit 401 is further configured to determine a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature;
the determining unit 401 is further configured to determine a target PID control parameter corresponding to the target application mode according to a mapping relationship between a preset application mode and a preset PID control parameter;
the adjusting unit 403 is configured to adjust the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function, so that the first power consumption of the electronic device is adjusted to a second power consumption.
It can be seen that, in the embodiment of the present application, the temperature control device may determine first power consumption of the electronic device corresponding to the target application mode in a first preset time period, if the first power consumption exceeds a preset threshold, obtain a current temperature and a preset temperature corresponding to a target position of the electronic device, determine a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature, and determine a target PID control parameter corresponding to the target application mode according to a mapping relationship between the preset application mode and the preset PID control parameter.
In an implementation manner of the present application, in terms of determining a first power consumption corresponding to a target application mode of the electronic device in a first preset time period, the determining unit 402 is specifically configured to:
acquiring N input parameters corresponding to the electronic equipment, wherein N is an integer greater than 1;
acquiring N power consumption curves corresponding to the N input parameters in the first preset time period, wherein each input parameter corresponds to one power consumption curve;
and determining first power consumption corresponding to the target application mode of the electronic equipment in the first preset time period according to the N power consumption curves.
In an implementation manner of the present application, in terms of determining, according to the N power consumption curves, a first power consumption corresponding to the target application mode by the electronic device in the first preset time period, the determining unit 402 is specifically configured to:
determining N average power consumption rates of the electronic equipment in the first preset time period according to the N power consumption curves, wherein each power consumption curve corresponds to one average power consumption rate;
determining N average power consumptions corresponding to the N input parameters according to the N average power consumption rates, wherein each power consumption curve corresponds to one average power consumption;
and summing the N average power consumptions to obtain the first power consumption.
In an implementation manner of the present application, before determining a first power consumption corresponding to a target application mode of the electronic device in a first preset time period, the determining unit 402 is specifically configured to:
acquiring N initial power consumptions corresponding to the N input parameters in a second preset time period, wherein the second preset time period is earlier than the first preset time period;
acquiring N weights corresponding to the N input parameters, wherein each input parameter corresponds to one weight, and the sum of the N weights is 1;
determining power consumption evaluation values corresponding to the N input parameters according to the N weights and the N initial power consumptions to obtain N power consumption evaluation values;
selecting at least one power consumption evaluation value corresponding to the power consumption evaluation values exceeding a preset evaluation value from the N power consumption evaluation values;
acquiring at least one input parameter corresponding to the at least one power consumption evaluation value;
adjusting the at least one input parameter to obtain at least one target input parameter after parameter adjustment;
and maintaining the operation of the target application mode based on the at least one target input parameter, and executing the step of determining the first power consumption of the electronic equipment corresponding to the target application mode in a first preset period.
In an implementation manner of the present application, in terms of determining a target temperature difference function corresponding to the target location according to the current temperature and the preset temperature, the determining unit 402 is specifically configured to:
determining a temperature difference corresponding to the target position based on the preset temperature and the current temperature;
and determining the target temperature difference function e (t) corresponding to the temperature difference according to the mapping relation between the preset temperature difference and the preset temperature difference function, wherein e (t) is a function of the temperature difference with respect to time.
In an implementation manner of the present application, in adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function, so that the first power consumption of the electronic device is adjusted to the second power consumption, the control unit 403 is specifically configured to:
determining the adjustment range of the second power consumption as the first power consumption of the electronic equipment in the first preset time period
Figure BDA0002231440150000121
Wherein, PiThe average power consumption corresponding to any one input parameter is obtained;
acquiring a preset PID control formula:
Figure BDA0002231440150000122
wherein, Kp、KiAnd KdRespectively representing a proportional parameter, an integral parameter and a differential parameter, P (t) is
Figure BDA0002231440150000123
Any one of the values;
adjusting the first power consumption of the electronic device to the second power consumption by adjusting the proportional parameter, the integral parameter, and the derivative parameter based on the PID control formula and the target temperature difference function e (t).
It should be noted that the determining unit 401, the obtaining unit 402, and the adjusting unit 403 may be implemented by a processor.
The electronic device described above with reference to fig. 1A may also be configured to implement the following functions:
determining a target application mode corresponding to the electronic equipment;
determining a target temperature control level corresponding to the target application mode according to a mapping relation between a preset application mode and the temperature control level;
acquiring a current temperature corresponding to a target position of the electronic equipment;
and adjusting the current temperature corresponding to the target position to be a preset temperature based on the target temperature control level.
As shown in fig. 5, fig. 5 is a schematic flowchart of a temperature control method provided in an embodiment of the present application, and is applied to the electronic device shown in fig. 1A, where the method includes:
step 501, determining a target application mode corresponding to the electronic device.
Wherein, the application mode may include at least one of the following: a game application mode, a reading application mode, a video application mode, a voice application mode, etc., which are not limited herein; each application mode may correspond to an application scenario, and in different application modes, due to an excessively long opening time or occurrence of situations such as interaction between the electronic device and a server and data update during a working process of the target application mode, various modules (e.g., a Central Processing Unit (CPU)) in the electronic device may operate at a high speed, which increases an internal temperature of the electronic device, thereby reducing performance of the electronic device.
Step 502, determining a target temperature control level corresponding to the target application mode according to a mapping relation between a preset application mode and the temperature control level.
The electronic equipment can preset different temperature control levels aiming at different application modes in advance, the higher the temperature control level is, the greater the influence of the corresponding application mode on the temperature is, and the target temperature control level corresponding to the target application mode can be determined according to the mapping relation between the preset application mode and the temperature control level.
For example, as shown in table 2 below, the table is a corresponding relationship table between the application modes and the temperature control levels, wherein the temperature control levels can be divided into 3 levels, each level can correspond to a different application mode, and the higher the temperature control level is, the greater the influence of the application mode corresponding to the temperature control level on the temperature is, as shown in the table, the game application mode and the video application mode can be divided into three levels of temperature control levels, the voice application mode can be divided into two levels of temperature control levels, and the reading application mode can be divided into one level of temperature control levels.
TABLE 2 relationship between application modes and temperature control levels
Figure BDA0002231440150000131
Step 503, obtaining a current temperature corresponding to the target position of the electronic device.
Wherein the target position may include at least one of: the temperature of the housing, the temperature of the screen, the temperature of the bezel, the temperature of the inside of the processor, the temperature of the speaker, the temperature of the power management chip, etc., without limitation.
Step 504, based on the target temperature control level, adjusting the current temperature corresponding to the target position to a preset temperature.
The preset temperature is generally lower than the current temperature, and the preset temperature can be set by a user or defaulted by a system, in addition, the preset temperature can also be a temperature interval, and the current temperature can be adjusted to any value in the temperature interval within a certain period of time.
Optionally, in the step 504, based on the target temperature control level, adjusting the current temperature corresponding to the target position to a preset temperature may include the following steps:
acquiring at least one input parameter corresponding to the target application mode;
determining a weight corresponding to each input parameter in the at least one input parameter based on the target temperature control level to obtain at least one weight, wherein each input parameter corresponds to one weight;
adjusting the current temperature corresponding to the target position to the preset temperature based on the at least one input parameter and the at least one weight.
Wherein, the input parameters may include at least one of the following: charging rate, background application, screen brightness, system sound, mobile phone frame rate, Central Processing Unit (CPU) frequency, Graphics Processing Unit (GPU) frequency, hardware module, etc., which are not limited herein, the input parameters may be understood as the parameters during the operation of the electronic device, some parameters influencing the temperature also influence the power consumption corresponding to the electronic equipment when the temperature rises, the electronic equipment reduces the temperature by adjusting the input parameters, specifically, the electronic equipment can preset the weight corresponding to each input parameter aiming at different temperature control levels, the higher the weight is, the greater the influence of the weight on the temperature is, wherein each temperature control level corresponds to a set of input parameters, each input parameter corresponds to a weight, the input parameters can be adjusted and controlled in a targeted manner to achieve the effect of cooling, so that the temperature control efficiency can be improved.
In addition, different PID control parameters may be set for different temperature control levels, and the PID control parameters may include at least one of: a proportional factor, an integral factor, a differential factor, etc., which are not limited herein; the application scene modes corresponding to different temperature control levels are different, the heating characteristics of the electronic equipment in different application modes such as games, videos, news, cameras and reading are different, and if all application scenes use the same PID control parameters, the temperature requirements of all the scenes cannot be met, so that different PID control parameters can be adopted for different temperature control levels, and each temperature control level can correspond to one group of PID control parameters.
For example, as shown in table 3, a mapping relationship between the temperature control level and the weight corresponding to the input parameter is shown, if the input parameter includes at least one of the following: the charging rate, the screen brightness and the central processor frequency can be weighted according to the three input parameters corresponding to each temperature control level, the larger the weight is, the larger the influence of the weight on the temperature is, wherein the sum of the weights corresponding to at least one input parameter corresponding to each temperature control level is 1, and therefore, the target position of the electronic device can be cooled by regulating and controlling different input parameters, for example, if the target application mode corresponds to a game application mode, the corresponding temperature control level is three, the weight corresponding to the input parameter corresponding to the temperature control level of three can be obtained, as can be known from the table, the proportion of the central processing unit frequency is the largest, the frequency of the central processing unit can be mainly regulated, and two input parameters, namely the charging rate and the screen brightness, can be regulated in an auxiliary mode, so that the temperature of the electronic equipment aiming at the target position is regulated to be the preset temperature from the current temperature.
TABLE 3, a table of mapping relationships between weights corresponding to temperature control levels and input parameters
Figure BDA0002231440150000141
It can be seen that, in the embodiment of the application, the electronic device may determine a target application mode corresponding to the electronic device, determine a target temperature control level corresponding to the target application mode according to a mapping relationship between a preset application mode and a temperature control level, obtain a current temperature corresponding to a target position of the electronic device, and adjust the current temperature corresponding to the target position to the preset temperature based on the target temperature control level, so that the temperature corresponding to the target position is controlled in a graded manner, thereby achieving a cooling effect and improving the performance of the electronic device.
Referring to fig. 6, fig. 6 is a schematic flow chart of a temperature control method according to an embodiment of the present application, applied to the electronic device shown in fig. 1A, where the temperature control method includes:
step 601, determining first power consumption corresponding to a target application mode of the electronic device in a first preset time period.
Step 602, obtaining a current temperature and a preset temperature corresponding to a target position of the electronic device.
Step 603, determining a target PID control parameter corresponding to the target application mode according to a mapping relationship between a preset application mode and a preset PID control parameter.
The specific description of steps 601 to 603 may refer to the corresponding steps of the temperature control method described in fig. 1B, and will not be repeated herein.
And step 604, determining a target temperature control level corresponding to the target application mode according to a mapping relation between a preset application mode and the temperature control level.
Step 605, determining a weight corresponding to each input parameter in the at least one input parameter based on the target temperature control level to obtain at least one weight, wherein each input parameter corresponds to one weight.
The detailed description of step 604 and step 605 may refer to the response step of the temperature control method described in fig. 5, and will not be described herein again.
Step 606, adjusting the current temperature to the preset temperature based on the target PID control parameter, the at least one input parameter and the at least one weight, so as to adjust the first power consumption of the electronic device to a second power consumption.
The power consumption problem of the electronic device is more and more concerned with the continuous improvement of the performance requirement of the electronic device, and the increase of the internal temperature of the electronic device can cause the increase of the internal power consumption of the electronic device, so the power consumption can be reduced by reducing the temperature.
It can be seen that, in the embodiment of the present application, an electronic device may determine first power consumption of the electronic device corresponding to a target application mode in a first preset time period, obtain a current temperature and a preset temperature corresponding to a target position of the electronic device, determine a target PID control parameter corresponding to the target application mode according to a mapping relationship between the preset application mode and a preset PID control parameter, determine a target temperature control level corresponding to the target application mode according to a mapping relationship between the preset application mode and the temperature control level, determine a weight corresponding to each input parameter in at least one input parameter based on the target temperature control level, and obtain at least one weight, where each input parameter corresponds to one weight, adjust the current temperature to the preset temperature based on the target PID control parameter, the at least one input parameter, and the at least one weight, so as to adjust the first power consumption of the electronic device to a second power consumption, therefore, the power consumption in the electronic equipment can be further reduced by regulating and controlling the internal temperature of the electronic equipment, and the performance of the electronic equipment is favorably improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a temperature control device according to an embodiment of the present application, applied to an electronic device, where the temperature control device includes: a determining unit 701, an obtaining unit 702, and an adjusting unit 703, wherein,
the determining unit 701 is configured to determine a target application mode corresponding to the electronic device;
the determining unit 701 is further configured to determine a target temperature control level corresponding to the target application mode according to a mapping relationship between a preset scene and the temperature control level;
the acquiring unit 702 is configured to acquire a first temperature corresponding to a target position of the electronic device;
the adjusting unit 703 is configured to adjust the current temperature corresponding to the target position to a preset temperature based on the target temperature control level.
It can be seen that, in the embodiment of the present application, the temperature control device may determine a target application mode corresponding to the electronic device, determine a target temperature control level corresponding to the target application mode according to a mapping relationship between a preset application mode and the temperature control level, obtain a current temperature corresponding to a target position of the electronic device, and adjust the current temperature corresponding to the target position to the preset temperature based on the target temperature control level, so that the temperature corresponding to the target position is controlled in a graded manner, thereby achieving a cooling effect and improving the performance of the electronic device.
It should be noted that the determining unit 701, the obtaining unit 702, and the adjusting unit 703 may be implemented by a processor.
In a possible example, in terms of adjusting the current temperature corresponding to the target position to a preset temperature based on the target temperature control level, the adjusting unit 703 is specifically configured to:
acquiring at least one input parameter corresponding to the target application mode;
determining a weight corresponding to each input parameter in the at least one input parameter based on the target temperature control level to obtain at least one weight, wherein each input parameter corresponds to one weight;
adjusting the current temperature corresponding to the target position to the preset temperature based on the at least one input parameter and the at least one weight.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units 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 may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A temperature control method is applied to electronic equipment, and is characterized by comprising the following steps:
determining first power consumption corresponding to a target application mode of the electronic equipment in a first preset time period;
acquiring a current temperature and a preset temperature corresponding to a target position of the electronic equipment;
determining a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature;
determining a target PID control parameter corresponding to the target application mode according to a mapping relation between a preset application mode and a preset PID control parameter; and adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function so as to adjust the first power consumption of the electronic equipment to a second power consumption.
2. The method of claim 1, wherein the determining a first power consumption corresponding to the electronic device for a target application mode in a first preset time period comprises:
acquiring N input parameters corresponding to the electronic equipment, wherein N is an integer greater than 1;
acquiring N power consumption curves corresponding to the N input parameters in the first preset time period, wherein each input parameter corresponds to one power consumption curve;
and determining first power consumption corresponding to the target application mode of the electronic equipment in the first preset time period according to the N power consumption curves.
3. The method of claim 2, wherein the determining, according to the N power consumption curves, a first power consumption of the electronic device corresponding to the target application mode in the first preset time period comprises:
determining N average power consumption rates of the electronic equipment in the first preset time period according to the N power consumption curves, wherein each power consumption curve corresponds to one average power consumption rate;
determining N average power consumptions corresponding to the N input parameters according to the N average power consumption rates, wherein each power consumption curve corresponds to one average power consumption;
and summing the N average power consumptions to obtain the first power consumption.
4. The method of claim 2, wherein prior to the determining the first power consumption corresponding to the electronic device for the target application mode for the first preset period, the method further comprises:
acquiring N initial power consumptions corresponding to the N input parameters in a second preset time period, wherein the second preset time period is earlier than the first preset time period;
acquiring N weights corresponding to the N input parameters, wherein each input parameter corresponds to one weight, and the sum of the N weights is 1;
determining power consumption evaluation values corresponding to the N input parameters according to the N weights and the N initial power consumptions to obtain N power consumption evaluation values;
selecting at least one power consumption evaluation value corresponding to the power consumption evaluation values exceeding a preset evaluation value from the N power consumption evaluation values;
acquiring at least one input parameter corresponding to the at least one power consumption evaluation value;
adjusting the at least one input parameter to obtain at least one target input parameter after parameter adjustment;
and maintaining the operation of the target application mode based on the at least one target input parameter, and executing the step of determining the first power consumption of the electronic equipment corresponding to the target application mode in a first preset period.
5. The method of claim 1, wherein determining the target temperature difference function corresponding to the target position according to the current temperature and the preset temperature comprises:
determining a temperature difference corresponding to the target position based on the preset temperature and the current temperature;
and determining the target temperature difference function e (t) corresponding to the temperature difference according to the mapping relation between the preset temperature difference and the preset temperature difference function, wherein e (t) is a function of the temperature difference with respect to time.
6. The method according to any one of claims 2-4, wherein the adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function, such that the first power consumption of the electronic device is adjusted to a second power consumption, comprises:
determining the adjustment range of the second power consumption as the first power consumption of the electronic equipment in the first preset time period
Figure FDA0002974408710000021
Wherein, PiThe average power consumption corresponding to any one input parameter is obtained;
acquiring a preset PID control formula:
Figure FDA0002974408710000022
wherein, Kp、KiAnd KdRespectively represent a referenceA number, an integral parameter and a differential parameter, P (t) is
Figure FDA0002974408710000023
Any one of the values;
based on the PID control formula and a target temperature difference function e (t), adjusting the current temperature of the electronic device to the preset temperature by adjusting the proportional parameter, the integral parameter and the differential parameter, so that the first power consumption of the electronic device is adjusted to the second power consumption.
7. The method of claim 6, wherein after the adjusting the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function such that the first power consumption of the electronic device is adjusted to a second power consumption, the method further comprises:
determining a temperature difference between the current temperature and the preset temperature;
when the temperature difference approaches zero and the second power is greater than
Figure FDA0002974408710000024
Setting the value corresponding to the P (t) to be a preset value, and resetting the target temperature difference function e (t).
8. A temperature control device, applied to an electronic apparatus, the device comprising: a determining unit, an obtaining unit and an adjusting unit, wherein,
the determining unit is used for determining first power consumption corresponding to a target application mode of the electronic equipment in a first preset time period;
the acquisition unit is used for acquiring the current temperature and the preset temperature corresponding to the target position of the electronic equipment;
the determining unit is further configured to determine a target temperature difference function corresponding to the target position according to the current temperature and the preset temperature;
the determining unit is further configured to determine a target PID control parameter corresponding to the target application mode according to a mapping relationship between a preset application mode and a preset PID control parameter;
the adjusting unit is configured to adjust the current temperature to the preset temperature based on the target PID control parameter and the target temperature difference function, so that the first power consumption of the electronic device is adjusted to a second power consumption.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method of any one of claims 1-7.
CN201910968941.7A 2019-10-12 2019-10-12 Temperature control method and related equipment Active CN110716592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910968941.7A CN110716592B (en) 2019-10-12 2019-10-12 Temperature control method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910968941.7A CN110716592B (en) 2019-10-12 2019-10-12 Temperature control method and related equipment

Publications (2)

Publication Number Publication Date
CN110716592A CN110716592A (en) 2020-01-21
CN110716592B true CN110716592B (en) 2021-05-04

Family

ID=69212592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910968941.7A Active CN110716592B (en) 2019-10-12 2019-10-12 Temperature control method and related equipment

Country Status (1)

Country Link
CN (1) CN110716592B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258350B (en) * 2020-03-11 2022-05-06 Oppo广东移动通信有限公司 User terminal equipment
CN111552330B (en) * 2020-04-03 2021-08-03 深圳市优博讯科技股份有限公司 Screen heating control method and system applied to terminal starting
CN111708391A (en) * 2020-06-18 2020-09-25 浙江鲜达环保科技有限公司 Temperature control method, system and computer readable storage medium
CN111858206B (en) * 2020-06-30 2023-01-10 苏州浪潮智能科技有限公司 Temperature control method, device, equipment and storage medium of memory chip
CN111954285A (en) * 2020-08-05 2020-11-17 Oppo广东移动通信有限公司 Power saving control method and device, terminal and readable storage medium
CN112690656A (en) * 2020-12-02 2021-04-23 深圳拓邦股份有限公司 Instant heating type water dispenser power control method and device and instant heating type water dispenser
CN113259160A (en) * 2021-05-11 2021-08-13 杭州安恒信息安全技术有限公司 Point location information early warning method and device for industrial control network and electronic device
CN113342085B (en) * 2021-06-17 2022-11-08 南昌黑鲨科技有限公司 Method and system for identifying external auxiliary heat dissipation equipment
CN113917959B (en) * 2021-10-28 2022-09-16 北京半导体专用设备研究所(中国电子科技集团公司第四十五研究所) Temperature control method and device based on control regulator and electronic equipment
CN114063675B (en) * 2021-11-12 2022-07-19 维沃移动通信有限公司 Temperature control method and device
CN116679235A (en) * 2022-02-22 2023-09-01 荣耀终端有限公司 Leakage detection method for electronic device, electronic equipment and storage medium
CN117413236A (en) * 2022-05-13 2024-01-16 北京小米移动软件有限公司 Terminal control method, device, readable storage medium and chip
CN115877938B (en) * 2022-12-23 2024-01-12 摩尔线程智能科技(北京)有限责任公司 GPU control method, device, equipment, storage medium and program product
CN116301139A (en) * 2023-05-11 2023-06-23 河北因朵科技有限公司 Energy-saving temperature and humidity regulation system for archive warehouse
CN116841332B (en) * 2023-06-06 2024-02-06 迪森(常州)能源装备有限公司 Autoclave temperature control method and system for carbon fiber product molding

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103918189A (en) * 2011-11-10 2014-07-09 三星电子株式会社 System and method for controlling temperature in mobile device
CN104765438A (en) * 2015-04-29 2015-07-08 集怡嘉数码科技(深圳)有限公司 Method for controlling power consumption and mobile terminal
CN107357392A (en) * 2017-07-20 2017-11-17 广东欧珀移动通信有限公司 Mobile terminal temperature rise control method, mobile terminal and readable storage medium storing program for executing
CN109032290A (en) * 2018-06-27 2018-12-18 北京小米移动软件有限公司 The temprature control method and device of terminal device
CN109710003A (en) * 2018-12-26 2019-05-03 联想(北京)有限公司 Temprature control method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8190930B2 (en) * 2009-03-30 2012-05-29 Intel Corporation Methods and apparatuses for controlling thread contention
CN103790846B (en) * 2012-10-31 2016-02-17 英业达科技有限公司 Fan rotational frequency control method and device
US9565081B2 (en) * 2014-05-19 2017-02-07 Ebay Inc. Phone thermal context
ES2761860T3 (en) * 2015-03-27 2020-05-21 Guangdong Oppo Mobile Telecommunications Corp Ltd Charging control device and power adapter
CN106190821A (en) * 2016-07-01 2016-12-07 四川简因科技有限公司 A kind of hand-held bluetooth PCR instrument being integrated with photoelectric detection system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103918189A (en) * 2011-11-10 2014-07-09 三星电子株式会社 System and method for controlling temperature in mobile device
CN104765438A (en) * 2015-04-29 2015-07-08 集怡嘉数码科技(深圳)有限公司 Method for controlling power consumption and mobile terminal
CN107357392A (en) * 2017-07-20 2017-11-17 广东欧珀移动通信有限公司 Mobile terminal temperature rise control method, mobile terminal and readable storage medium storing program for executing
CN109032290A (en) * 2018-06-27 2018-12-18 北京小米移动软件有限公司 The temprature control method and device of terminal device
CN109710003A (en) * 2018-12-26 2019-05-03 联想(北京)有限公司 Temprature control method and system

Also Published As

Publication number Publication date
CN110716592A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN110716592B (en) Temperature control method and related equipment
CN109741279B (en) Image saturation adjusting method and device, storage medium and terminal
CN107038715B (en) Image processing method and device
CN109741288B (en) Image processing method, image processing device, storage medium and electronic equipment
CN111179861B (en) Brightness calibration method and device, storage medium and terminal
CN108495056A (en) Photographic method, mobile terminal and computer readable storage medium
CN111158455A (en) Power consumption control method and device, storage medium and terminal
CN106710535B (en) A kind of screen backlight adjusting method, device and mobile terminal
US10402157B2 (en) Volume processing method and device and storage medium
CN108200421B (en) White balance processing method, terminal and computer readable storage medium
CN108108137B (en) Display control method and related product
CN107040661A (en) Control method, device and the mobile terminal of mobile terminal playing volume
CN112188708B (en) Music accompaniment method and device based on mobile terminal and terminal equipment
US20220319378A1 (en) Screen color temperature control method, apparatus, storage medium, and mobile terminal
CN110930964B (en) Display screen brightness adjusting method and device, storage medium and terminal
CN107508983A (en) volume adjusting method, device, storage medium and terminal device
CN108259233A (en) Graphics processor GPU method for parameter configuration and mobile terminal in a kind of mobile terminal
CN110365851B (en) Power supply method and related product
CN109840153B (en) Terminal resource optimization method, device, system, terminal and medium
CN110971822A (en) Picture processing method and device, terminal equipment and computer readable storage medium
CN107329547B (en) Temperature control method and device and mobile terminal
CN110611347B (en) Charging control method and related product
CN115173495A (en) Charging control method, charging control device and storage medium
CN111372001A (en) Image fusion method and device, storage medium and mobile terminal
CN107508986B (en) Volume adjusting method and device, storage medium and terminal 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
GR01 Patent grant
GR01 Patent grant