Temperature control method and electronic equipment

Through feedback control and PID algorithm dynamically adjusting the power consumption of each task execution module in the electronic device, the limitation of performance of static temperature control in the prior art is solved, and more efficient temperature control is achieved.

CN119088126APending Publication Date: 2024-12-06SMARTER SILICON (SHANGHAI) TECH CO LTD

Patent Information

Application Number
CN202411578191.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The temperature control logic of existing electronic devices is mainly static multi-stage temperature control, and the power consumption cannot be dynamically adjusted according to the real-time power consumption requirements of the modules internal tasks, resulting in a large limitation on the performance of the equipment during the temperature control process.

Method used

The feedback control algorithm and PID control algorithm are used to dynamically determine the target allocation power consumption of each task execution module based on the equipment case temperature and chip temperature, and the operating status of the module is controlled by the temperature control parameter to achieve temperature control.

Benefits of technology

It effectively reduces the impact of temperature control logic on equipment performance, meets the user equipment usage needs to the greatest extent, and at the same time realizes timely control of equipment temperature.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088126A_ABST
    Figure CN119088126A_ABST
Patent Text Reader

Abstract

The invention discloses a temperature control method and electronic equipment. The method comprises the following steps: acquiring an equipment shell temperature; if the equipment shell temperature meets a first condition, determining a target total power consumption value of a chip in the equipment by adopting a feedback control algorithm based on the equipment shell temperature and a shell temperature target value; determining target distribution power consumption of each task execution module based on the target total power consumption value and required power consumption of each task execution module in the chip; and performing state control on each task execution module based on the target distribution power consumption of each task execution module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of temperature control technology, and more specifically, to a temperature control method and electronic equipment. Background Art

[0002] When electronic devices are in use, they will continuously generate heat, causing the temperature of the chip system inside the device and the device surface to rise. When the device surface temperature exceeds the set threshold, the temperature will be controlled accordingly to ensure the safe use of the product. Summary of the invention

[0003] In view of this, this application provides the following technical solutions: The first aspect of the present application discloses a temperature control method, comprising: Get the device case temperature; If the device case temperature satisfies the first condition, based on the device case temperature and case temperature target value, a feedback control algorithm is used to determine a target total power consumption value of chips in the device; Determining the target allocated power consumption of each task execution module based on the target total power consumption value and the required power consumption of each task execution module in the chip in the device; Based on the target power consumption of each task execution module, the state of each task execution module is controlled.

[0004] In a possible implementation, it also includes: Get chip temperature; Based on the device case temperature and the case temperature target value, the execution condition of using the feedback control algorithm to determine the target total power consumption value of the chip also includes: The chip temperature satisfies a second condition.

[0005] In a possible implementation, if the device case temperature is greater than a first temperature, it is determined that a first condition is met; if the chip temperature is greater than a second temperature, it is determined that a second condition is met; wherein the second temperature is greater than the first temperature.

[0006] In a possible implementation, determining the target total power consumption value of the chip by using a feedback control algorithm based on the device case temperature and the case temperature target value includes: determining an error between the shell temperature target value and the device shell temperature, the shell temperature target value being greater than the first temperature; Based on the error, a PID control algorithm is used to determine a target total power consumption value of the chip.

[0007] In a possible implementation, determining the target total power consumption value of the chip based on the error by using a PID control algorithm includes: When the shell temperature of the equipment is less than the shell temperature target value and the PID control algorithm is feedback controlled, when the error between the shell temperature target value and the equipment shell temperature represents a change in the size state of the shell temperature target value and the equipment shell temperature, the current integral item of the PID control algorithm is cleared, and the integral item is the accumulated error item between the shell temperature target value and the equipment shell temperature.

[0008] In a possible implementation, determining the target allocated power consumption of each task execution module based on the target total power consumption value and the required power consumption of each task execution module in the chip in the device includes: Obtaining the required power consumption of each task execution module in the chip; The target allocated power consumption of each task execution module is determined based on the required power consumption and the power consumption allocation weight of each task execution module.

[0009] In a possible implementation, determining the target allocated power consumption of each task execution module based on the required power consumption and the power consumption allocation weight of each task execution module includes: Determine a power-weighted total value of all task execution modules in the chip based on the required power consumption and power consumption allocation weight of each task execution module; The target allocated power consumption corresponding to each task execution module is determined based on the proportion of the power weighted value of each task execution module to the total power weighted value and the target total power consumption value.

[0010] In a possible implementation, the state control of each task execution module based on the target allocated power consumption of each task execution module includes: The temperature control parameters of each task execution module are determined based on the target allocated power consumption of each task execution module, so that each task execution module operates based on its corresponding temperature control parameter.

[0011] In a possible implementation, determining the temperature control parameters of each task execution module based on the target allocated power consumption of each task execution module includes: Determine the temperature control state of each task execution module based on the target allocated power consumption of each task execution module and the preset mapping relationship between power consumption and temperature control state, wherein the temperature control state represents the demand level of the task execution module to perform temperature control processing; The temperature control parameters of each task execution module are determined based on the temperature control state.

[0012] In a possible implementation, obtaining the device case temperature includes: Obtaining a plurality of temperature values ​​detected by a plurality of sensors for detecting the surface temperature of the device; The obtained temperature values ​​are fitted to obtain the device shell temperature.

[0013] A second aspect of the present application provides an electronic device, including: Shell temperature acquisition module, used to obtain the shell temperature of the equipment; A total power consumption determination module, configured to determine a target total power consumption value of the chip in the device by using a feedback control algorithm based on the device case temperature and the case temperature target value when the device case temperature satisfies a first condition; An allocated power consumption determination module, configured to determine a target allocated power consumption of each task execution module based on the target total power consumption value and the required power consumption of each task execution module in the chip; The state control module is used to control the state of each task execution module based on the target allocation power consumption of each task execution module. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0015] Figure 1 A flow chart of a temperature control method disclosed in an embodiment of the present application; Figure 2 A flowchart of determining a target total power consumption value of a chip disclosed in an embodiment of the present application; Figure 3 A flowchart of determining target allocation power consumption disclosed in an embodiment of the present application; Figure 4 A schematic diagram of the implementation architecture of the temperature control solution disclosed in the embodiment of the present application; Figure 5 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application; Figure 6 A schematic diagram of the structure of another electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0016] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0017] The embodiments of the present application can be applied to electronic devices. The present application does not limit the product form of the electronic device, which can include but is not limited to smart phones, tablet computers, wearable devices, personal computers (PCs), netbooks, etc., and can be selected according to application requirements.

[0018] Figure 1 This is a flow chart of a temperature control method disclosed in an embodiment of the present application. Figure 1 The method shown is a technical improvement at the operating system level of electronic devices. Figure 1 As shown, the temperature control method may include: Step 101: Obtain device case temperature.

[0019] The device shell temperature may be detected by a temperature sensor disposed near the housing of the electronic device and in contact with the housing of the device. Specifically, it may be the temperature directly detected by the temperature sensor, or it may be calculated based on several temperature values ​​detected by several temperature sensors disposed at different positions of the housing of the device, and this application does not impose any fixed restrictions on this.

[0020] Step 102: If the device case temperature satisfies the first condition, a feedback control algorithm is used to determine a target total power consumption value of chips in the device based on the device case temperature and the case temperature target value.

[0021] The device shell temperature satisfies the first condition, which may be that the device shell temperature is greater than the first temperature. When the device shell temperature is greater than the first temperature, it is determined that the temperature inside the electronic device is already relatively high, or has a trend of continuing to rise, and temperature control processing is required in a timely manner. Therefore, a feedback control algorithm can be used to determine the target total power consumption value of the chip in the device based on a predetermined shell temperature target value.

[0022] It is understandable that the user directly contacts the device shell, so the shell temperature control takes into account the user experience. The increase in the device shell temperature is caused by the operation of the chip or circuit structure inside the device, and the user directly feels the device shell temperature, not the temperature of the chip or other circuit structure inside the device. Therefore, the threshold for temperature control of the device shell temperature is actually lower than the threshold for temperature control of the chip inside the device.

[0023] The chip in the device can be understood as a chip system, which includes various processing chips and some functional circuits in the electronic device. These processing chips and functional circuits will continuously generate heat during operation. The target total power consumption value is the limit of the overall power consumption of the entire chip system. The processing chips include but are not limited to CPU, GPU, NPU, etc., and functional circuits such as switch control circuit, buck-boost control circuit, etc.

[0024] In the embodiment of the present application, the target total power consumption value can be understood as the maximum available power consumption of the system that can be determined based on the current device shell temperature and the shell temperature target value when there is a temperature control demand. It can be understood that the power consumption of the system is usually proportional to the heat generated by the chip of the electronic device. The greater the system power consumption, the higher the heat generated by the chip system. Under the premise of knowing the current device shell temperature and shell temperature target value, in order to achieve the purpose of temperature control and slow down the temperature rise trend of the system, the target total power consumption value of the chip in the device can be determined by a certain algorithm.

[0025] Step 103: Determine the target allocated power consumption of each task execution module based on the target total power consumption value and the required power consumption of each task execution module in the chip within the device.

[0026] The task amount of each task module (processor or functional circuit) in the chip system varies with the working state of the electronic device and the running application, and the required power consumption of each task module varies accordingly in different time periods. In the implementation, the required power consumption of each task execution module can be obtained in real time. Under the premise of having a total power consumption limit (target total power consumption value), the target allocated power consumption of each task execution module can be determined in proportion according to the required power consumption of each task execution module; or, in other implementations, different weights are configured for different processors based on the importance of the work content executed by each processor, real-time requirements, etc. When determining the target allocated power consumption of each task execution module, the weight and required power consumption of each task execution module can be combined to comprehensively determine the target allocated power consumption of each task execution module.

[0027] Step 104: Based on the target allocated power consumption of each task execution module, the state of each task execution module is controlled.

[0028] After determining the target allocated power consumption of each task execution module, the target allocated power consumption of each task execution module can be used as a standard to perform state control on each task execution module accordingly, so that each task execution module operates according to working parameters that match or correspond to its target allocated power consumption, thereby indirectly controlling the heat generation of each task execution module and achieving temperature control of the electronic equipment.

[0029] In traditional solutions, the temperature control logic of the device shell temperature is mostly implemented by static multi-level temperature control, including: monitoring the device shell temperature and fitting related temperature sensors, notifying the multi-level temperature control algorithm when the temperature changes; when the device shell temperature is greater than the temperature threshold of the first gear of the multi-level temperature control configuration, the multi-level temperature control algorithm is enabled; the multi-level temperature control algorithm matches the appropriate temperature gear according to the temperature of the device, and then performs specific operations of the corresponding temperature gear; when the device temperature changes continuously, different temperature gears will be changed according to the temperature, and when the device temperature is lower than the temperature threshold of the first gear, the algorithm will also exit. This static multi-level temperature control algorithm implementation cannot allocate power consumption according to the actual power consumption requirements inside the chip, and often imposes relatively large performance restrictions when the device heat is controlled.

[0030] In the temperature control method described in this embodiment, the temperature control logic of the device shell temperature is not a static multi-level temperature control algorithm, but can dynamically determine the allocated power consumption of each task execution module according to the real-time power consumption requirements of each task execution module of the chip in the device, thereby minimizing the impact of the temperature control logic on the device performance as much as possible on the basis of effectively realizing temperature control, and meeting the user's device usage requirements to the greatest extent.

[0031] In other implementations, the temperature control method may obtain the chip temperature in addition to the device case temperature. Based on the device case temperature and the case temperature target value, the execution conditions for using a feedback control algorithm to determine the target total power consumption value of the chip may also include: the chip temperature satisfies a second condition.

[0032] Specifically, if the device case temperature is greater than the first temperature, it is determined that the first condition is met; if the chip temperature is greater than the second temperature, it is determined that the second condition is met; wherein the second temperature is greater than the first temperature. Since the second temperature represents the chip temperature, and the device case temperature is usually a passive temperature rise caused by the operation of the chip inside the device, the chip temperature inside the device must be higher than the device case temperature at the same time. For example, the first temperature can be 42°C and the second temperature can be 60°C.

[0033] Although the technical solution of this application is implemented based on the temperature control logic of the device shell temperature, in this embodiment, the execution conditions for determining the execution of the temperature control logic include not only the device shell temperature requirements, but also the chip temperature requirements; the chip temperature requirements are to exclude the case temperature increase caused by other components of the electronic device. For example, when the charging module performs a charging operation, the device shell temperature will increase. This situation is essentially not caused by the operation of the chip in the device. Therefore, the restriction on the power consumption of each task execution module of the chip cannot essentially solve the problem of shell temperature increase.

[0034] In one implementation, obtaining the device shell temperature may include: obtaining a plurality of temperature values ​​detected by a plurality of sensors for detecting the surface temperature of the device; and performing fitting processing on the obtained plurality of temperature values ​​to obtain the device shell temperature.

[0035] The fitting process can be, but is not limited to, linear fitting. In one implementation, the temperature sensor related to the device shell temperature fitting can be monitored. When the temperature of the related temperature sensor changes, it will be reported to the execution body of the device shell temperature control logic through the NetlinkEvent (event reporting mechanism) event in the Kernel (kernel), and the shell temperature of the device will be fitted through the linear fitting algorithm. When the shell temperature of the device changes, the PID algorithm will be notified in time. The specific fitting algorithm formula is as follows: Among them, T1, T2, and T3 represent the temperature values ​​of temperature sensors at different positions. T device represents the shell temperature fitting temperature, and A, B, C, and D are constants.

[0036] Figure 2 This is a flow chart of determining the target total power consumption value of a chip disclosed in an embodiment of the present application. Figure 2 As shown, the determining the target total power consumption value of the chip by using a feedback control algorithm based on the device shell temperature and the shell temperature target value may include: Step 201: Determine an error between the shell temperature target value and the device shell temperature, the shell temperature target value being greater than the first temperature.

[0037] Among them, the shell temperature target value can be a pre-configured target value, such as 45°C. The error between the shell temperature target value and the device shell temperature can be understood as the difference between the shell temperature target value and the device shell temperature. In actual applications, the shell temperature target value is greater than the first temperature, such as 45°C is greater than 42°C. The reason why the shell temperature target value is set to be greater than the threshold (first temperature) of the shell temperature triggering the temperature control logic is that after the shell temperature reaches the first temperature, the temperature will most likely continue to rise above the shell temperature target value. If the temperature control is performed after the device shell temperature rises to the shell temperature target value, the actual temperature control will be delayed. Therefore, it is necessary to perform temperature control in advance during the rising process of the device shell temperature before it rises to the shell temperature target value to ensure the timeliness of temperature control.

[0038] Step 202: Based on the error, a PID control algorithm is used to determine a target total power consumption value of the chip.

[0039] In this embodiment, the error between the shell temperature target value and the device shell temperature is used as an input of a PID algorithm to perform PID control and determine the target total power consumption of the chip.

[0040] In the specific implementation, when the device shell temperature T device When it is greater than the trigger temperature Ttrigger (first temperature) of the PID algorithm, T SOC-Max (Chip temperature)>T SOC-Trigger (second temperature), the PID control algorithm is enabled. SOC-Max , which can be the chip temperature measured by the sensor. In implementation, several temperature sensors can also be arranged near the chip to detect the chip temperature, and the maximum value of the temperature values ​​detected by the several temperature sensors can be determined as T SOC-Max Alternatively, in other implementations, the temperature values ​​collected by several temperature sensors may be fitted, and the obtained fitting value may be determined as T SOC-Max Alternatively, the average value of the temperature values ​​collected by several temperature sensors can be used to determine T SOC-Max , this application is for T SOC-Max There is no fixed limit on the determination.

[0041] After the PID control algorithm is enabled, the shell temperature target value T is calculated. target and the device case temperature T device After the error is calculated, the error value is used as the input of the PID algorithm, and the SustainablePower (sustainable energy) and PID parameters are used to obtain the total power consumption value TotalPower of the SOC chip. The specific formula is as follows: Among them, Err represents the error value between the target temperature and the actual shell temperature, LastErr and LastTime correspond to the previous error value and its corresponding time respectively; among them, P, I, and D represent the linear, integral, and differential terms of the target temperature error respectively, and I_CutOff when calculating the I term means that each error will be accumulated and counted only when it is less than this value; TotalPower represents the power consumption value of the whole SOC, among which SustaibablePower is the power consumption value corresponding to TargetTemp, and the parameters of SustainablePower, p, i, d, and I_CutOff can all be given by configuration.

[0042] Specifically, using a PID control algorithm to determine the target total power consumption value of the chip may include: when the device shell temperature is less than the shell temperature target value and the PID control algorithm is feedback controlled, when the error between the shell temperature target value and the device shell temperature represents a change in the size state of the shell temperature target value and the device shell temperature, clearing the current integral item of the PID control algorithm, the integral item being the accumulated error item between the shell temperature target value and the device shell temperature.

[0043] In this embodiment, when the shell temperature of the device exceeds the shell temperature target value, that is, when Err is less than 0, the cumulative item of the error can be immediately cleared. If the cumulative item of the error is not cleared, the error integral item accumulated when Err is greater than 0 needs to be slowly reduced under the action of the error integral item after Err is less than 0. The cumulative reduction of the error integral item takes a time process, which will cause the overall power consumption of the chip to be higher, and the chip temperature will rise faster during this period. The processing of immediately clearing the cumulative item of the error after the shell temperature of the device exceeds the shell temperature target value reduces the original process of clearing the error item through cumulative reduction, and the overall power consumption of the chip is more reasonable, and the temperature rise will be relatively slow.

[0044] Figure 3 This is a flow chart of determining target allocation power consumption disclosed in an embodiment of the present application. Figure 3 As shown, determining the target allocated power consumption of each task execution module based on the target total power consumption value and the required power consumption of each task execution module in the chip may include: Step 301: Obtain the required power consumption of each task execution module in the chip.

[0045] Specifically, the RequestPower (current power consumption, requested power consumption) of each task execution module (CPU, GPU, NPU, etc.) in the chip can be obtained according to the interface of each module. For example, the CPU can calculate the Request Power of each CPU cluster through the current frequency and the utilization rate of each core, and then through the conversion of frequency and power consumption.

[0046] Step 302: Determine the target allocated power consumption of each task execution module based on the required power consumption and the power consumption allocation weight of each task execution module.

[0047] Specifically, the total power-weighted value of all task execution modules in the chip can be first determined based on the required power consumption and power consumption allocation weights of each task execution module; and then the target allocated power consumption corresponding to each task execution module can be determined based on the proportion of the power-weighted value of each task execution module to the total power-weighted value and the target total power consumption value.

[0048] In the implementation, the total SOC target power consumption calculated by the previous PID control algorithm is allocated to sub-modules such as CPU, GPU, and NPU. The specific allocation formula is as follows: in weight i is the weight value of power consumption allocated to different task execution modules, RequestPower i It is the power consumption value (required power consumption) requested by different task execution modules, CoolingDevicePower i is the power consumption value assigned to each task execution module.

[0049] The above content introduces in detail the specific implementation of determining the target allocated power consumption of each task execution module, which is convenient for technical personnel in the field to better understand and implement the technical solution of the present application.

[0050] In the aforementioned embodiments, the state control of each task execution module based on the target allocated power consumption of each task execution module may include: determining the temperature control parameters of each task execution module based on the target allocated power consumption of each task execution module, so that each task execution module operates based on its corresponding temperature control parameters.

[0051] Each task execution module has different temperature control parameters when it has different target allocated power consumption. Specifically, several temperature control parameters can be set for the task execution module, and different temperature control parameters correspond to different allocated power consumption intervals. When the target allocated power consumption returned by the task execution module is obtained, the allocated power consumption interval in which it is located can be determined first, and then the temperature control parameters corresponding to the allocated power consumption area can be determined as the temperature control parameters currently matched by the task execution module.

[0052] Specifically, determining the temperature control parameters of each task execution module based on the target allocated power consumption of each task execution module may include: determining the temperature control state of each task execution module based on the target allocated power consumption of each task execution module and a mapping relationship between preset power consumption and temperature control state, the temperature control state characterizing the demand level of the task execution module to perform temperature control processing; determining the temperature control parameters of each task execution module based on the temperature control state.

[0053] Among them, the mapping relationship between power consumption and temperature control state is pre-configured, which can be obtained by technical personnel in the field based on experience and experimental calibration. The temperature control state represents the demand level of the task execution module to perform temperature control processing, and different demand levels correspond to different temperature control parameters. Specifically, each task execution module can limit some specific services (such as CPU and GPU frequency limits) according to the temperature control parameters to achieve the corresponding power consumption value.

[0054] Therefore, the temperature control scheme at the operating system level sends temperature control requirement data to the temperature control scheme executor, that is, each task execution module. The temperature control scheme executor, that is, each task execution module, configures its own working parameters based on the temperature control requirement data, such as working frequency, working voltage, etc. to change its own heat production and achieve temperature control.

[0055] Figure 4 This is a schematic diagram of the implementation architecture of the temperature control solution disclosed in the embodiment of this application. Figure 4 As shown, in the implementation of the solution, the temperature data is first monitored, and then it is determined whether the device shell temperature is greater than the first temperature, and then it is further determined whether the chip temperature is greater than the second temperature. When the above judgments are all true, the PID control algorithm is triggered. In the process, the target total power consumption and the target allocated power consumption of each task execution module are determined in combination with the required power consumption of each task execution module, and then the temperature control parameters of the task execution module are obtained based on the corresponding relationship between the preset power consumption and the temperature control parameters, and sent to each task execution module. Each task execution module controls its own operating status based on the temperature control parameters. Figure 4 In the figure, the oval content on the right indicates the pre-configured data content, including PID parameter configuration, the corresponding relationship conversion table between power consumption and temperature control parameters, the weight configuration of each task execution module, each temperature threshold, etc.

[0056] In one example, the electronic device uses a Linux operating system and executes the temperature control solution in the above embodiment in a device thermal management daemon (Device Thermal Daemon) of the system.

[0057] Its chip system SOC contains multiple CoolingDevice, that is, cooling devices, corresponding to the task execution modules, such as CPU, GPU, NPU, etc.; during the operation of the Linux operating system, the temperature sensors related to the device shell temperature fitting are monitored. When the temperature of the relevant temperature sensors changes, the event will be reported to the Device Thermal Daemon through the NetlinkEvent (a mechanism used for inter-process communication (IPC) in the Linux kernel, mainly used for communication between user space programs and the kernel) in the Linux Kernel, and the temperature values ​​collected by the aforementioned related sensors are fitted to the device shell temperature through a linear fitting algorithm. When the shell temperature of the device changes, the PID algorithm will be notified in time. For example, when the device shell temperature reaches 42°C (the first temperature) and the temperature of the SOC reaches 60°C (the second temperature), the shell temperature control logic is triggered, the PID control algorithm is enabled, and the target total power consumption is determined. The system obtains the RequestPower (current power consumption) of each CoolingDevice, such as CPU, GPU, and NPU, according to the interface provided by each processing module, and then determines the target allocated power consumption of each CoolingDevice in combination with its required power consumption; According to the target allocated power consumption value of each CoolingDevice in the previous step, the CoolingState of the CoolingDevice is determined through the Power2State conversion table of the target allocated power consumption value of each CoolingDevice and the actual CoolingState (temperature control state), and is set to the sys node corresponding to each CoolingDevice. Then, the corresponding processing module of each CoolingDevice can limit some specific services (such as frequency or voltage limiting of CPU and GPU) according to the set CoolingState to achieve the corresponding power consumption value (target allocated power consumption) and realize temperature control.

[0058] The Power2State conversion table can convert the specified power (target allocated power) into the corresponding cooling state (CoolingState). Taking the corresponding CoolingDevice as the CPU as an example, the Power2State conversion table links the target allocated power with the cooling state of the CPU, thereby allowing the system to adjust the CPU frequency according to the power budget to control the temperature.

[0059] In the Linux Thermal framework, cooling devices are drivers responsible for implementing cooling measures and are the executors of temperature control. These cooling devices maintain a cooling level, called State (corresponding to CoolingState). The higher the State value, the greater the cooling demand of the system. Cooling devices perform cooling behaviors according to different levels of cooling demand. Their cooling behaviors are mainly to reduce power consumption by reducing frequency and voltage. Specifically, the purpose of changing power consumption can be achieved by changing frequency and voltage.

[0060] In addition, in the implementation, the temperature of the SOC may continue to rise during the shell temperature control process. If the chip temperature rises to reach the trigger threshold of the chip temperature control logic, the shell temperature control logic can be exited and the chip temperature control logic can be executed normally.

[0061] The temperature control scheme disclosed in the present application can dynamically allocate power consumption according to the power consumption requirements of the internal components of the chip system, so as to be more adaptable to the usage of different scenarios and have less restrictions on the overall performance of the chip system. In addition, it should be noted that in actual applications, the triggering conditions of temperature control can be adjusted based on the actual usage of the device. For example, in the charging state, there can be a larger trigger shell temperature threshold (corresponding to the first temperature) and a smaller chip temperature threshold (corresponding to the second temperature) than in the non-charging state. This design prevents the chip from heating up because charging will generate more heat. The object triggered and controlled by the present application scheme is the device shell temperature, not the temperature of the underlying device node, and the algorithm details therein are improved (when the size state of the shell temperature target value and the device shell temperature in the PID control algorithm changes, the current integral term of the PID control algorithm is cleared to zero), which plays the most direct control role on the user's physical experience.

[0062] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0063] The method is described in detail in the embodiments disclosed in the above-mentioned application. The method of the application can be implemented by various forms of devices. Therefore, the application also discloses a device, and a specific embodiment is given below for detailed description.

[0064] Figure 5 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. Figure 5 As shown, the electronic device 50 may include: The shell temperature obtaining module 501 is used to obtain the shell temperature of the device.

[0065] The total power consumption determination module 502 is used to determine the target total power consumption value of the chips in the device by using a feedback control algorithm based on the device case temperature and the case temperature target value when the device case temperature meets the first condition.

[0066] The allocated power consumption determination module 503 is used to determine the target allocated power consumption of each task execution module based on the target total power consumption value and the required power consumption of each task execution module in the chip in the device.

[0067] The state control module 504 is used to control the state of each task execution module based on the target allocation power consumption of each task execution module.

[0068] The electronic device described in this embodiment can dynamically determine the allocated power consumption of each task execution module according to the real-time power consumption requirements of each task execution module of the chip in the device, thereby minimizing the impact of temperature control logic on device performance as much as possible on the basis of effectively realizing temperature control, thereby meeting the user's device usage requirements to the greatest extent.

[0069] In one implementation, the electronic device may further include: a temperature acquisition module for obtaining the chip temperature; based on the device case temperature and the case temperature target value, the execution condition of using a feedback control algorithm to determine the target total power consumption value of the chip also includes: the chip temperature satisfies the second condition.

[0070] In one implementation, if the device case temperature is greater than a first temperature, it is determined that a first condition is met; if the chip temperature is greater than a second temperature, it is determined that a second condition is met; wherein the second temperature is greater than the first temperature.

[0071] In one implementation, the total power consumption determination module may include: an error determination module, used to determine the error between the shell temperature target value and the device shell temperature, the shell temperature target value being greater than the first temperature; a total power consumption determination submodule, used to determine the target total power consumption value of the chip based on the error using a PID control algorithm.

[0072] In one implementation, the total power consumption determination submodule can be specifically used for: when the device shell temperature is less than the shell temperature target value and the PID control algorithm feedback control is performed, when the error between the shell temperature target value and the device shell temperature represents a change in the size state of the shell temperature target value and the device shell temperature, the current integral item of the PID control algorithm is cleared, and the integral item is the accumulated error item between the shell temperature target value and the device shell temperature.

[0073] In one implementation, the allocated power consumption determination module may include: a demand determination module, used to obtain the required power consumption of each task execution module in the chip; and a power consumption allocation module, used to determine the target allocated power consumption of each task execution module based on the required power consumption and power consumption allocation weight of each task execution module.

[0074] In one implementation, the power consumption allocation module can be specifically used to: determine the total power-weighted value of all task execution modules in the chip based on the required power consumption of each task execution module and the power consumption allocation weight; determine the target allocated power consumption corresponding to each task execution module based on the proportion of the power-weighted value of each task execution module to the total power-weighted value and the target total power consumption value.

[0075] In one implementation, the state control module may be specifically configured to determine the temperature control parameters of each task execution module based on the target allocated power consumption of each task execution module, so that each task execution module operates based on its corresponding temperature control parameter.

[0076] In one implementation, the state control module can be specifically used to: determine the temperature control state of each task execution module based on the target allocated power consumption of each task execution module and the mapping relationship between the preset power consumption and the temperature control state, the temperature control state characterizing the requirement level of the task execution module to perform temperature control processing; determine the temperature control parameters of each task execution module based on the temperature control state.

[0077] In one implementation, the shell temperature acquisition module may be specifically used to: obtain a plurality of temperature values ​​detected by a plurality of sensors for detecting the surface temperature of the device; and perform fitting processing on the obtained plurality of temperature values ​​to obtain the device shell temperature.

[0078] The specific implementation of the above electronic device and the modules it contains, as well as other possible implementations, can be found in the corresponding parts of the method embodiment, which will not be repeated here.

[0079] Any one of the electronic devices described in the above embodiments includes a processor and a memory. The shell temperature acquisition module, the total power consumption determination module, the allocated power consumption determination module, the state control module, etc. in the above embodiments are all stored in the memory as program modules, and the processor executes the above program modules stored in the memory to implement corresponding functions.

[0080] The processor includes a kernel, which retrieves the corresponding program module from the memory. One or more kernels can be set, and the processing of the access data can be realized by adjusting the kernel parameters.

[0081] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0082] In an exemplary embodiment, a computer-readable storage medium is also provided, which can be directly loaded into the internal memory of a computer and contains software code. After being loaded and executed by a computer, the computer program can implement the steps shown in any embodiment of the above-mentioned temperature control method.

[0083] In an exemplary embodiment, a computer program product is also provided, which can be directly loaded into the internal memory of a computer, wherein the computer program contains software codes, and after being loaded and executed by a computer, the computer program can implement the steps shown in any embodiment of the temperature control method described above.

[0084] Furthermore, an embodiment of the present application also provides an electronic device. Figure 6 This is a schematic diagram of the structure of another electronic device disclosed in an embodiment of the present application. Figure 6 As shown, the electronic device 60 includes at least one processor 601, and at least one memory 602 and a bus 603 connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute the above-mentioned temperature control method.

[0085] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0086] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0087] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0088] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A temperature control method, comprising: Get the device case temperature; If the device case temperature satisfies the first condition, based on the device case temperature and case temperature target value, a feedback control algorithm is used to determine a target total power consumption value of chips in the device; Determining the target allocated power consumption of each task execution module based on the target total power consumption value and the required power consumption of each task execution module in the chip in the device; Based on the target power consumption of each task execution module, the state of each task execution module is controlled.

2. The temperature control method according to claim 1, further comprising: Get chip temperature; Based on the device case temperature and the case temperature target value, the execution condition of using the feedback control algorithm to determine the target total power consumption value of the chip also includes: The chip temperature satisfies a second condition.

3. The temperature control method according to claim 2, wherein: If the device shell temperature is greater than the first temperature, it is determined that the first condition is met; if the chip temperature is greater than the second temperature, it is determined that the second condition is met; wherein the second temperature is greater than the first temperature.

4. The temperature control method according to claim 3, wherein the step of determining the target total power consumption value of the chip by using a feedback control algorithm based on the device case temperature and the case temperature target value comprises: determining an error between the shell temperature target value and the device shell temperature, the shell temperature target value being greater than the first temperature; Based on the error, a PID control algorithm is used to determine a target total power consumption value of the chip.

5. The temperature control method according to claim 4, wherein the step of determining the target total power consumption value of the chip based on the error by using a PID control algorithm comprises: When the shell temperature of the equipment is less than the shell temperature target value and the PID control algorithm is feedback controlled, when the error between the shell temperature target value and the equipment shell temperature represents a change in the size state of the shell temperature target value and the equipment shell temperature, the current integral item of the PID control algorithm is cleared, and the integral item is the accumulated error item between the shell temperature target value and the equipment shell temperature.

6. The temperature control method according to claim 1, wherein the determining the target allocated power consumption of each task execution module based on the target total power consumption value and the required power consumption of each task execution module in the chip in the device comprises: Obtaining the required power consumption of each task execution module in the chip; The target allocated power consumption of each task execution module is determined based on the required power consumption and the power consumption allocation weight of each task execution module.

7. The temperature control method according to claim 6, wherein the step of determining the target allocated power consumption of each task execution module based on the required power consumption and the power consumption allocation weight of each task execution module comprises: Determine a power-weighted total value of all task execution modules in the chip based on the required power consumption and power consumption allocation weight of each task execution module; The target allocated power consumption corresponding to each task execution module is determined based on the proportion of the power weighted value of each task execution module to the total power weighted value and the target total power consumption value.

8. The temperature control method according to claim 1, wherein the state control of each task execution module is performed based on the target allocated power consumption of each task execution module, comprising: The temperature control parameters of each task execution module are determined based on the target allocated power consumption of each task execution module, so that each task execution module operates based on its corresponding temperature control parameter.

9. The temperature control method according to claim 8, wherein the step of determining the temperature control parameters of each task execution module based on the target allocated power consumption of each task execution module comprises: Determine the temperature control state of each task execution module based on the target allocated power consumption of each task execution module and the preset mapping relationship between power consumption and temperature control state, wherein the temperature control state represents the demand level of the task execution module to perform temperature control processing; The temperature control parameters of each task execution module are determined based on the temperature control state.

10. The temperature control method according to claim 1, wherein: Get the device case temperature, including: Obtaining a plurality of temperature values ​​detected by a plurality of sensors for detecting the surface temperature of the device; The obtained temperature values ​​are fitted to obtain the device shell temperature.

11. An electronic device, comprising: Shell temperature acquisition module, used to obtain the shell temperature of the equipment; A total power consumption determination module, configured to determine a target total power consumption value of chips in the device by using a feedback control algorithm based on the device case temperature and the case temperature target value when the device case temperature satisfies a first condition; An allocated power consumption determination module, configured to determine a target allocated power consumption of each task execution module based on the target total power consumption value and the required power consumption of each task execution module in the chip; The state control module is used to control the state of each task execution module based on the target allocation power consumption of each task execution module.

Citation Information

Patent Citations

  • A power control method and device

    CN108268082A

  • Mobile terminal surface temperature control method and device.

    CN109960295A

  • Power consumption processing method and related device

    CN114564097A

  • Method and device for adjusting power, storage medium and terminal

    CN117939611A

  • Method for automatically optimizing power consumption

    US20210132679A1

Cited By

  • Method and device for determining shell temperature of optical module, optical module and electronic equipment

    CN121783373A