Temperature control method and device, electronic equipment and storage medium
By obtaining parameter information of the temperature control device, determining the temperature range and formulating a temperature control plan, the business interruption caused by the overheating protection mechanism is solved, and the effective cooling of electronic components and business continuity and stability are achieved.
Patent Information
- Application Number
- CN202510577920.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-08-15
AI Technical Summary
In the prior art, the overheating protection mechanism triggers the power outage and other measures to directly interrupt the ongoing business processes, causing great interference to application scenarios such as data processing and equipment control.
By obtaining the first parameter information of the target temperature control device, determining the temperature range, and formulating a temperature control plan according to the interval, including frequency control and core number control, avoiding the triggering of overheating protection measures.
While ensuring the effective cooling of electronic components, ensure the continuity and stability of the business and achieve the normal operation of the business during the temperature control process.
Smart Images

Figure CN120491701A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to temperature control methods, devices, electronic devices, and storage media. Background Art
[0002] During the operation of electronic equipment, core electronic components undertake key functions such as data processing and signal transmission. When electronic components are in high-load working conditions or continuously running for a long time, the physical processes such as electron migration and impedance loss inside them will generate a lot of heat, causing the temperature of the components themselves to continue to rise. When the temperature reaches the critical threshold, the material properties and circuit stability inside the electronic components will be seriously affected. To prevent the components from being damaged by high temperatures, they are often equipped with overheating protection mechanisms. Once triggered, they will take measures such as power off. However, this protection behavior will directly interrupt the ongoing business process, causing great interference to application scenarios such as data processing and equipment control.
[0003] Therefore, how to ensure business continuity and stability while ensuring effective cooling of electronic components is an urgent problem that needs to be solved. Summary of the Invention
[0004] The present application provides a temperature control method, device, electronic device and storage medium to at least solve the problem in the related art that when the overheat protection mechanism is triggered, measures such as power outage will be taken, directly interrupting the ongoing business process and causing great interference to application scenarios such as data processing and equipment control.
[0005] The present application provides a temperature control method, comprising:
[0006] Acquire first parameter information of a target temperature control device, where the first parameter information at least includes temperature;
[0007] Determine the temperature range that the temperature falls into. Different temperature ranges correspond to different temperature control solutions;
[0008] A temperature control scheme for controlling the temperature of the target temperature control device is determined according to the temperature range, and the temperature control of the target temperature control device is performed; the temperature control scheme includes controlling the operating frequency of the target temperature control device and / or controlling whether the core of the target temperature control device is disabled.
[0009] The present application also provides a temperature control device, comprising:
[0010] A first acquiring unit, configured to acquire first parameter information of a target temperature control device, where the first parameter information at least includes temperature;
[0011] A first determining unit is used to determine a temperature range within which the temperature falls, where different temperature ranges correspond to different temperature control schemes;
[0012] A control unit is used to determine a temperature control scheme for temperature control of a target temperature control device according to a temperature range, and to perform temperature control on the target temperature control device; the temperature control scheme includes regulating the operating frequency of the target temperature control device and / or regulating whether the core of the target temperature control device is disabled.
[0013] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned temperature control methods when executing the computer program.
[0014] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned temperature control methods are implemented.
[0015] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned temperature control methods when executed by a processor.
[0016] This application determines a temperature control solution, including frequency control and core count control, based on the temperature range within which the temperature of the target temperature-controlled component's first parameter information falls. This prevents overheating protection measures, which could cause service interruptions, from being triggered by excessive temperatures. Therefore, it solves the technical problem of ensuring effective cooling of electronic components while also ensuring service continuity and stability, achieving the technical effect of maintaining normal service operation while maintaining temperature control. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] Figure 1 A schematic flow chart of a temperature control method provided in an embodiment of the present disclosure;
[0019] Figure 2 A schematic diagram of a temperature management process provided by an embodiment of the present disclosure;
[0020] Figure 3 A schematic diagram of another temperature management process provided by an embodiment of the present disclosure;
[0021] Figure 4 A schematic diagram of another temperature management process provided by an embodiment of the present disclosure;
[0022] Figure 5 A schematic structural diagram of a temperature control device provided in an embodiment of the present disclosure;
[0023] Figure 6 A schematic structural diagram of another temperature control device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0025] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0026] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0027] The embodiment of the present application provides a temperature control method, Figure 1 A flow chart of a temperature control method provided in an embodiment of the present disclosure.
[0028] like Figure 1 As shown, the method comprises the following steps:
[0029] Step 101: Acquire first parameter information of a target temperature control device, where the first parameter information at least includes temperature.
[0030] In some embodiments, the target temperature control device is a core computing component of an electronic device, such as a central processing unit or a graphics processing unit, which generates a large amount of heat during complex computing processes such as data processing and graphics rendering. The acquisition of the first parameter information can be based on the sensor integrated inside the device. Taking the central processing unit as an example, the digital temperature sensor is embedded in the core silicon chip of the central processing unit and directly senses the temperature changes in the core area. These sensors convert the physical quantity of temperature into an electrical signal based on the temperature sensitivity of semiconductors, and then perform signal amplification, filtering and other processing through specific circuits. Finally, the analog signal is converted into a digital signal through an analog-to-digital conversion module and transmitted to the management chip on the motherboard or the system monitoring software.
[0031] Step 102: determine the temperature range that the temperature falls into, and different temperature ranges correspond to different temperature control solutions.
[0032] Different temperature ranges are divided based on pre-set temperature thresholds, aiming to match the most suitable temperature control solution for the temperature control device according to the actual temperature conditions, so as to achieve accurate and efficient temperature control.
[0033] Temperature intervals are defined by setting multiple thresholds on the temperature axis, dividing the entire temperature range into several continuous, non-overlapping sub-intervals. These thresholds are determined based on a variety of factors, including the temperature control device's application scenario, operating requirements, and temperature control accuracy. In practice, these thresholds can be set based on actual needs and are not limited in this embodiment.
[0034] Determine the interval that the temperature falls into and compare the acquired temperature with a pre-set temperature threshold. Specifically, if the actual temperature is greater than or equal to the lower limit of a certain interval and less than the upper limit of the interval, the temperature is considered to fall into this interval.
[0035] Different temperature ranges correspond to different temperature control schemes, which can be formulated based on the working characteristics and requirements of the temperature control device under different temperature conditions. In actual applications, they can be set according to actual needs. The embodiments of this application do not limit this.
[0036] Step 103 , determining a temperature control scheme for controlling the temperature of the target temperature control device according to the temperature range, and executing temperature control on the target temperature control device; the temperature control scheme includes controlling the operating frequency of the target temperature control device and / or controlling whether the core of the target temperature control device is disabled.
[0037] The "regulation of the operating frequency of the target temperature control device" involved in the temperature control solution refers to the dynamic adjustment of the operating frequency of the core components of the target temperature control device according to different temperature ranges.
[0038] Taking the CPU as an example, when the temperature is in a higher range, such as the warning temperature range, the system may significantly reduce the CPU's operating frequency. This is because the CPU's power consumption is positively correlated with the cube of the operating frequency. Lowering the frequency can significantly reduce power consumption, thereby reducing heat generation. Specifically, the system uses the clock generator and power management chip on the motherboard to change the CPU's main frequency, multiplier, and other parameters to achieve frequency regulation.
[0039] Controlling whether to disable the core of a target temperature-controlled device is often used in extreme high-temperature situations. Modern CPUs and GPUs mostly use multi-core or multi-unit architectures. Taking a common 8-core CPU as an example, when the temperature is too high and cannot be effectively controlled by reducing the operating frequency, the system will disable some cores according to pre-set rules. This operation is achieved through the coordinated operation of the operating system's power management module and the underlying hardware control logic. The system will send instructions to the CPU to shut down the power supply or clock signal of a specific core, causing it to enter a low-power sleep state, thereby reducing overall power consumption and heat generation.
[0040] Optionally, the first parameter information further includes an operating frequency and a number of cores; the temperature range includes a critical temperature range and a warning temperature range; determining a temperature control scheme for regulating the temperature of the target temperature-controlled device based on the temperature range, and executing temperature control on the target temperature-controlled device includes:
[0041] When the temperature falls within the critical temperature range, determining the temperature control solution to be regulating the operating frequency of the temperature control device; wherein the regulating of the operating frequency includes core operating frequency control and non-core operating frequency control;
[0042] The operating frequency refers to the number of operating cycles of the core components of the target temperature control device per unit time, which directly affects the performance output and energy consumption level of the temperature control device; the number of cores refers to the number of computing or functional units with independent processing capabilities in the temperature control device. The multi-core design can process different tasks in parallel, improving the overall processing efficiency and response speed of the temperature control device.
[0043] See also Figure 2 , Figure 2 A schematic diagram of a temperature management process provided by an embodiment of the present disclosure is shown as follows: Figure 2 As shown, when obtaining the first parameter information of the target temperature control device (ie Figure 2 After obtaining the CPU temperature, power consumption, frequency, and core count, the system determines whether the temperature is greater than or equal to the critical temperature. The critical temperature range is close to the upper limit of the normal operating temperature of the target temperature control device. While this range does not directly affect normal device operation, it is close to the limit and requires timely measures to prevent further temperature deviation. The warning temperature range is outside the normal operating range and may pose a serious threat to the performance, lifespan, and even safety of the target temperature control device. Once the temperature falls into this range, more stringent temperature control measures must be immediately initiated.
[0044] Core operating frequency control focuses on the core components that perform critical functions in the temperature control device, and adjusts the operating frequency of non-core components such as auxiliary heat dissipation devices or secondary data processing units accordingly. A strategy of moderate reduction or maintenance can be adopted to maintain the balance of the overall system operation while ensuring the temperature control effect.
[0045] Please continue reading Figure 2 After determining that the temperature is less than the critical temperature, determine whether the temperature is greater than or equal to the warning temperature. If the temperature falls within the warning temperature range, determine whether the temperature control solution is to disable the core of the target temperature control device and / or adjust the operating frequency of the target temperature control device.
[0046] When temperatures are too high, in addition to minimizing the operating frequency of core components, some cores can be disabled to quickly reduce device power consumption and prevent damage caused by continued temperature increases. By synergizing multiple control methods, the safety and reliability of target temperature-controlled components are maximized, achieving effective temperature control even under extreme temperature conditions.
[0047] Optionally, the first parameter information further includes power consumption; and determining that the temperature control solution is to regulate the operating frequency of the temperature control device includes:
[0048] When the power consumption is greater than or equal to the thermal design power and the frequency is greater than the preset frequency, reducing the core frequency by a first preset frequency value;
[0049] Power consumption refers to the amount of electrical energy consumed per unit time during the operation of a target temperature control device. It is a key indicator for measuring the operating load and energy consumption of the device and is usually measured in watts.
[0050] Thermal design power (TDP) is a benchmark parameter that defines the maximum power consumption allowed during design to ensure stable and safe performance of a temperature-controlled device under normal operating conditions. This value is determined by multiple factors, including the device's manufacturing process, thermal design, and material properties. It serves as a key indicator of safe and appropriate temperature-controlled device operation.
[0051] The preset frequency is a frequency threshold that is pre-set based on the performance characteristics and application scenario requirements of the temperature control device and is used to divide different control strategies. In some embodiments, it can be set to 1000 MHz.
[0052] See also Figure 3 , Figure 3 Another temperature management process diagram provided in the embodiment of the present application; Figure 3 As described above, when it is determined that the power consumption of the central processing unit is greater than or equal to 90% of the thermal design power and the CPU frequency is greater than or equal to 1 GHz, the core frequency is reduced to a first preset frequency value. By reducing the operating speed of the core components, the computing or working intensity thereof is reduced, thereby effectively reducing heat generation and relieving heat dissipation pressure. It should be noted that Figure 3 This is only an exemplary description and is not intended to be a specific limitation on a specific target temperature control device.
[0053] In some embodiments, based on a fuzzy control algorithm, the collected parameter information can be used as input variables, and through steps such as fuzzy rule reasoning and defuzzification, the optimal operating frequency adjustment value and core disabling strategy can be obtained. For example, when determining whether to disable the core, not only the temperature and operating frequency are considered, but also parameters such as current harmonics are comprehensively considered and determined through calculation and logical judgment.
[0054] When the power consumption is less than the thermal design power or the frequency is less than or equal to the preset frequency, the core frequency is reduced to a second preset frequency value.
[0055] Please continue reading Figure 3 When the power consumption is lower than the thermal design power or the operating frequency is at or below the preset frequency, it means that the operating load of the device is relatively low, but in order to further optimize energy consumption and temperature control, the core frequency still needs to be appropriately reduced. At this time, the second preset frequency value is usually lower than the first preset frequency value, because the operating pressure of the device itself is relatively small and no large frequency adjustment is required. By lowering the second preset frequency value, the energy consumption and heat generation of the core components can be reduced to a certain extent, and the obvious impact of excessive frequency reduction on device performance can be avoided, thereby achieving a balanced regulation between energy consumption, temperature and performance, and ensuring that the target temperature control device can operate efficiently and stably under various working conditions.
[0056] Optionally, determining whether the temperature control scheme is to control whether to disable a core of a target temperature control device and / or to control an operating frequency of the target temperature control device includes:
[0057] Disable a preset number of cores of the target temperature control device;
[0058] See also Figure 4 , Figure 4 Another temperature management process diagram provided in the embodiment of the present application; Figure 4 As described, when it is determined that the temperature is greater than or equal to the warning temperature, half of the cores of the central processing unit are turned off. The core of the target temperature control device generally refers to the unit module that undertakes the main calculation, control or function implementation, such as the computing core in a multi-core processor, the core processing unit in a multi-module temperature control device, etc. The preset number is the number of core units that need to be turned off in advance based on the device's architectural design, performance redundancy and temperature control requirements. In some embodiments, it can be set to half of the total number of cores. For example, if the number of cores is n, the preset number can be set to n / 2. By disabling these cores, the computing load and energy consumption during system operation are directly reduced, thereby effectively reducing heat generation, quickly alleviating heat dissipation pressure under extreme temperature conditions, and ensuring device safety.
[0059] Obtaining second parameter information of the target temperature control device, and when determining in the second parameter information that the operating frequency of the target temperature control device is greater than the base frequency and the operating frequency is greater than the preset frequency, reducing the core operating frequency by a second preset frequency value;
[0060] Please continue reading Figure 4 After shutting down half of the CPU cores, the second parameter information is re-obtained. The base frequency is the minimum guaranteed frequency for the normal operation of the target temperature control device. It represents the lower limit of the frequency at which the device can maintain basic functions and stable operation, and is determined by the device's hardware design and basic performance requirements.
[0061] If the remaining cores remain operating at high frequencies, exceeding both the base and preset frequencies, even after shutting down a preset number of cores, this indicates high system computing intensity and a high risk of overheating. Lowering the second preset frequency, such as 100 MHz, can further reduce the operating speed and power consumption of core components, maintaining a continuous temperature reduction while ensuring normal operation of basic device functions.
[0062] Optionally, determine the temperature range that the temperature falls into. Different temperature ranges correspond to different temperature control solutions, including:
[0063] Determine whether the temperature falls within the critical temperature range;
[0064] When it is determined that the temperature does not fall within the critical temperature range, determining whether the temperature falls within the warning temperature range;
[0065] When it is determined that the temperature does not fall into the warning temperature range, it is determined to cancel the regulation of the operating frequency of the target temperature control device and the number of cores of the target temperature control device.
[0066] After eliminating critical temperature conditions, the system further assesses the temperature condition. The warning temperature range represents temperatures outside the normal operating range, potentially posing a serious threat to the performance, lifespan, and even safety of the target temperature control device. If the temperature does not fall within the critical temperature range, the system continues to compare the temperature against the warning temperature range threshold.
[0067] Please continue reading Figure 2 When the target temperature-controlled device's temperature is within the normal range—that is, it has neither reached the critical temperature warning range nor entered the dangerous warning range—it indicates that the target temperature-controlled device is in a safe and stable operating state. At this point, to maximize the device's performance and prevent unnecessary adjustments from impacting device performance, the system will stop adjusting the operating frequency and core count.
[0068] The cancellation of operating frequency regulation means that the operating speed of core components or non-core components will no longer be adjusted, and they will be restored to the default or optimal performance state; the cancellation of core number regulation means that core disabling or enabling operations will no longer be performed, and all core units will operate in normal working mode.
[0069] Through this strategy, the temperature control system achieves an optimized balance between the performance and energy consumption of the target temperature control device while ensuring the safe operation of the equipment, ensuring its efficient and stable operation under normal operating conditions.
[0070] Optionally, when it is determined that the temperature does not fall within the warning temperature range, determining to cancel regulation of the operating frequency and the number of cores of the target temperature control device includes:
[0071] Obtaining third parameter information of the target temperature control device;
[0072] Determine whether a core of the target temperature control device is disabled according to the core number in the third parameter information;
[0073] When the core of the target temperature control device is disabled, determining to enable all cores of the target temperature control device and restore the operating frequency of the target temperature control device to an initial operating frequency;
[0074] When the core of the target temperature control device is not disabled, determining to restore the frequency of the target temperature control device to an initial operating frequency.
[0075] The third parameter information refers to the relevant data that needs to be collected again to accurately determine and restore the operating status of the target temperature control device. This data includes key parameters such as the number of cores and operating frequency. By analyzing the specific value of the number of cores in the third parameter information and comparing it with the normal configuration of the device, it is determined whether any cores are disabled. If the core count is less than the normal configuration, it indicates that some cores are disabled; otherwise, it indicates that all cores are enabled.
[0076] When the system determines that a core is disabled, it enables all cores. In some embodiments, a control circuit can send an activation signal to the disabled core, causing it to re-enter the operating state. Simultaneously, the operating frequency of the target temperature control device is restored to its initial operating frequency. The initial operating frequency refers to the default operating frequency when the device is normally started and no frequency adjustment is performed. This frequency is pre-set based on the device's design performance and application requirements. By restoring the initial operating frequency, the device can operate at optimal performance when all cores are enabled.
[0077] When the system determines that all cores are enabled, although the core count is correct, the operating frequency may have changed due to previous thermal control adjustments. Restore the frequency of the target thermally controlled device to its initial operating frequency.
[0078] Through the above steps, the temperature control system can accurately restore the operating frequency and core number configuration of the target temperature-controlled device when the temperature is within the normal range, ensuring that the device operates stably at optimal performance, and realizing the temperature control system's refined management and regulation of the device's operating status.
[0079] Optionally, after determining that the temperature control scheme is to control whether to disable the core of the target temperature control device and / or to control the operating frequency of the target temperature control device, the method further includes:
[0080] Obtaining fourth parameter information of the target temperature control device, and determining whether the temperature in the fourth parameter information is greater than or equal to the warning temperature;
[0081] If it is determined that the temperature is lower than the warning temperature, determining whether a core of the target temperature control device is disabled according to the number of cores in the fourth parameter information;
[0082] When the core of the target temperature control device is disabled, determining to enable all cores of the target temperature control device and restore the operating frequency of the target temperature control device to an initial operating frequency;
[0083] When the core of the target temperature control device is not disabled, determining to restore the frequency of the target temperature control device to an initial operating frequency.
[0084] The operating process of the temperature control system also includes the stages of continuous monitoring and dynamic adjustment.
[0085] The fourth parameter information covers parameters such as temperature, number of cores, and operating frequency; when the system determines that a core is disabled, the operation of all cores is enabled. In some embodiments, an activation signal can be sent to the disabled core through the control circuit to enable it to re-enter the working state. At the same time, the operating frequency of the target temperature control device is restored to the initial operating frequency. The initial operating frequency refers to the default operating frequency when the device is started normally and no frequency adjustment is performed. The frequency is pre-set according to the design performance and application requirements of the device. By restoring the initial operating frequency, it is ensured that the device can operate at the best performance state when all cores are enabled.
[0086] When the system determines that all cores are enabled, although the core count is correct, the operating frequency may have changed due to previous thermal control adjustments. Restore the frequency of the target thermally controlled device to its initial operating frequency.
[0087] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0088] The embodiment of the present application also provides a temperature control device,
[0089] Figure 5 A schematic diagram of the structure of a temperature control device provided in an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, including:
[0090] A first acquiring unit 21 is configured to acquire first parameter information of a target temperature control device, where the first parameter information includes at least temperature;
[0091] A first determining unit 22 is used to determine a temperature range within which the temperature falls, where different temperature ranges correspond to different temperature control schemes;
[0092] The control unit 23 is used to determine a temperature control scheme for temperature control of the target temperature control device according to the temperature range, and perform temperature control on the target temperature control device; the temperature control scheme includes regulating the operating frequency of the target temperature control device and / or regulating whether the core of the target temperature control device is disabled.
[0093] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the first parameter information also includes the operating frequency and the number of cores; the temperature range includes the critical temperature range and the warning temperature range; the control unit 23 is further used to:
[0094] When the temperature falls within the critical temperature range, determining the temperature control solution to be regulating the operating frequency of the temperature control device; wherein the regulating of the operating frequency includes core operating frequency control and non-core operating frequency control;
[0095] When the temperature falls into the warning temperature range, the temperature control solution is determined to be whether to disable the core of the target temperature control device and / or to adjust the operating frequency of the target temperature control device.
[0096] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the first parameter information also includes power consumption; the control unit 23 is further configured to:
[0097] When the power consumption is greater than or equal to the thermal design power and the frequency is greater than the preset frequency, reducing the core frequency by a first preset frequency value;
[0098] When the power consumption is less than the thermal design power or the frequency is less than or equal to the preset frequency, the core frequency is reduced to a second preset frequency value.
[0099] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the control unit 23 is also used for:
[0100] Disable a preset number of cores of the target temperature control device;
[0101] Obtaining second parameter information of the target temperature control device, and when determining in the second parameter information that the operating frequency of the target temperature control device is greater than the base frequency and the operating frequency is greater than the preset frequency, reducing the core operating frequency by a second preset frequency value;
[0102] When it is determined in the second parameter information that the operating frequency of the target temperature control device is less than or equal to the basic frequency or the operating frequency is less than or equal to the preset frequency, the non-core operating frequency is set to the lowest operating frequency.
[0103] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the first determining unit 22 is further configured to:
[0104] Determine whether the temperature falls within the critical temperature range;
[0105] When it is determined that the temperature does not fall within the critical temperature range, determining whether the temperature falls within the warning temperature range;
[0106] When it is determined that the temperature does not fall into the warning temperature range, it is determined to cancel the regulation of the operating frequency of the target temperature control device and the number of cores of the target temperature control device.
[0107] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the first determining unit 22 is further configured to:
[0108] Obtaining third parameter information of the target temperature control device;
[0109] Determine whether a core of the target temperature control device is disabled according to the core number in the third parameter information;
[0110] When the core of the target temperature control device is disabled, determining to enable all cores of the target temperature control device and restore the operating frequency of the target temperature control device to an initial operating frequency;
[0111] When the core of the target temperature control device is not disabled, determining to restore the frequency of the target temperature control device to an initial operating frequency.
[0112] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 6 As shown, the device also includes:
[0113] a second acquiring unit 24 configured to acquire fourth parameter information of the target temperature-controlled device after the control unit 23 determines that the temperature control scheme is to control whether to disable the core of the target temperature-controlled device and / or to control the operating frequency of the target temperature-controlled device, and determine whether the temperature in the fourth parameter information is greater than or equal to the warning temperature;
[0114] a second determining unit 25 for determining whether to disable a core of the target temperature control device according to the number of cores in the fourth parameter information when it is determined that the temperature is lower than the warning temperature;
[0115] a third determining unit 26 , configured to determine, when a core of the target temperature control device is disabled, to enable all cores of the target temperature control device and restore the operating frequency of the target temperature control device to an initial operating frequency;
[0116] The fourth determining unit 27 is configured to determine, when the core of the target temperature control device is not disabled, to restore the frequency of the target temperature control device to the initial operating frequency.
[0117] For the description of the features in the embodiment corresponding to the temperature control device, please refer to the relevant description of the embodiment corresponding to the temperature control method, and no further details will be given here.
[0118] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above-mentioned temperature control method embodiments.
[0119] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above-mentioned temperature control method embodiments when running.
[0120] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0121] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above-mentioned temperature control method embodiments are implemented.
[0122] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned temperature control method embodiments are implemented.
[0123] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0124] The above is a detailed introduction to a temperature control method, device, electronic device and storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A temperature control method, characterized in that: include: Acquire first parameter information of a target temperature control device, where the first parameter information includes at least temperature; Determine the temperature range within which the temperature falls, where different temperature ranges correspond to different temperature control schemes; Determine a temperature control scheme for temperature control of the target temperature control device according to the temperature range, and perform temperature control on the target temperature control device; the temperature control scheme includes regulating the operating frequency of the target temperature control device and / or regulating whether the core of the target temperature control device is disabled.
2. The temperature control method according to claim 1, characterized in that: The first parameter information further includes an operating frequency and a core number; the temperature range includes a critical temperature range and a warning temperature range; determining a temperature control scheme for regulating the temperature of the target temperature control device according to the temperature range, and executing temperature control on the target temperature control device includes: When the temperature falls within the critical temperature range, determining that the temperature control scheme is to regulate the operating frequency of the temperature control device; wherein the regulating of the operating frequency includes core operating frequency control and non-core operating frequency control; When the temperature falls within the warning temperature range, the temperature control solution is determined to be a regulation of whether to disable a core of the target temperature control device and / or a regulation of an operating frequency of the target temperature control device.
3. The temperature control method according to claim 2, characterized in that: The first parameter information also includes power consumption; and determining that the temperature control solution is to regulate the operating frequency of the temperature control device includes: When the power consumption is greater than or equal to the thermal design power and the frequency is greater than the preset frequency, reducing the core frequency by a first preset frequency value; When the power consumption is less than the thermal design power or the frequency is less than or equal to the preset frequency, the core frequency is reduced by a second preset frequency value.
4. The temperature control method according to claim 2, characterized in that: Determining whether the temperature control scheme is to control whether to disable the core of the target temperature control device and / or to control the operating frequency of the target temperature control device includes: disabling a preset number of cores of the target temperature control device; obtaining second parameter information of the target temperature control device, and when determining in the second parameter information that the operating frequency of the target temperature control device is greater than the base frequency and the operating frequency is greater than the preset frequency, reducing the core operating frequency by a second preset frequency value; When it is determined in the second parameter information that the operating frequency of the target temperature control device is less than or equal to the basic frequency or the operating frequency is less than or equal to the preset frequency, the non-core operating frequency is set to a minimum operating frequency.
5. The temperature control method according to claim 1, wherein: Determining the temperature range within which the temperature falls, where different temperature ranges correspond to different temperature control solutions, includes: determining whether the temperature falls within the critical temperature range; When it is determined that the temperature does not fall within the critical temperature range, determining whether the temperature falls within the warning temperature range; When it is determined that the temperature does not fall within the warning temperature range, it is determined to cancel the regulation of the operating frequency of the target temperature control device and the number of cores of the target temperature control device.
6. The temperature control method according to claim 5, characterized in that: When it is determined that the temperature does not fall within the warning temperature range, determining to cancel the regulation of the operating frequency of the target temperature control device and the number of cores of the target temperature control device includes: Acquiring third parameter information of the target temperature control device; Determining whether a core of the target temperature control device is disabled according to the core number in the third parameter information; When the core of the target temperature control device is disabled, determining to enable all cores of the target temperature control device and restore the operating frequency of the target temperature control device to an initial operating frequency; When the core of the target temperature control device is not disabled, it is determined to restore the frequency of the target temperature control device to an initial operating frequency.
7. The temperature control method according to claim 4, characterized in that: After determining that the temperature control scheme is to control whether to disable the core of the target temperature control device and / or to control the operating frequency of the target temperature control device, the method further includes: Obtaining fourth parameter information of the target temperature control device, and determining whether the temperature in the fourth parameter information is greater than or equal to a warning temperature; If it is determined that the temperature is lower than the warning temperature, determining whether a core of the target temperature control device is disabled according to the number of cores in the fourth parameter information; When the core of the target temperature control device is disabled, determining to enable all cores of the target temperature control device and restore the operating frequency of the target temperature control device to an initial operating frequency; When the core of the target temperature control device is not disabled, it is determined to restore the frequency of the target temperature control device to an initial operating frequency.
8. A temperature control device, characterized in that: include: A first acquiring unit, configured to acquire first parameter information of a target temperature control device, wherein the first parameter information includes at least temperature; A first determining unit is used to determine a temperature range within which the temperature falls, where different temperature ranges correspond to different temperature control schemes; A control unit is used to determine a temperature control scheme for temperature control of the target temperature control device according to the temperature range, and perform temperature control of the target temperature control device; the temperature control scheme includes regulating the operating frequency of the target temperature control device and / or regulating whether the core of the target temperature control device is disabled.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the temperature control method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the temperature control method according to any one of claims 1 to 7 are implemented.