Fan speed control method, electronic equipment and medium

By obtaining the fan speed value in the device, judging its fluctuation state, and determining the target speed value based on the maximum and minimum speed values, the problem of unstable heat dissipation caused by fan speed fluctuations is solved, achieving a more stable heat dissipation effect and a longer fan life.

CN120537767BActive Publication Date: 2025-09-19INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511046896.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-29
Publication Date
2025-09-19
Estimated Expiration
2045-07-29

AI Technical Summary

Technical Problem

During device operation, fan speed fluctuations lead to unstable heat dissipation, affecting device reliability and fan life.

Method used

By obtaining multiple speed values ​​of the fan within a preset time period, it is determined whether the fan is in a fluctuating state, and the target speed value is determined based on the maximum speed value and the minimum speed value, and the fan is controlled to run at this speed until the temperature of the target component reaches the preset condition.

Benefits of technology

It effectively suppresses the fluctuation of fan speed, improves the stability of heat dissipation effect, reduces the mechanical noise and wear of the fan, and extends the service life of the fan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120537767B_ABST
    Figure CN120537767B_ABST
Patent Text Reader

Abstract

The present application discloses a fan speed control method, electronic device and medium, which relate to the field of computer technology. The method comprises: obtaining multiple speed values ​​of at least one fan within a first preset time period. If the target fan speed is in a fluctuating state, selecting a maximum speed value and a minimum speed value from the multiple speed values, determining a target speed value based on the maximum speed value and the minimum speed value, and controlling the fan to run for a second preset time period. After the operation is completed, the temperature of the target component that affects the fan fluctuation is obtained. If the temperature is not equal to the preset temperature, a new target speed value is generated based on the maximum speed value and the minimum speed value, and the next adjustment round is entered. This process is repeated until the temperature of the target component meets the preset temperature condition, and the fan speed adjustment operation is stopped. Through the present application, the problem of fan speed fluctuation caused by frequent response to component temperature changes is avoided, and while ensuring the heat dissipation effect, the instability of the heat dissipation effect, which is sometimes strong and sometimes weak, is overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a fan speed control method, electronic equipment, and medium. Background Art

[0002] During the operation of servers and other equipment, fans are used to dissipate heat from various components within the device. The stability of the fan's speed affects the device's cooling efficiency and operational reliability. In related technologies, a baseboard management controller (BMC) regulates the fan's speed to ensure that each component in the device operates at an appropriate temperature. However, during actual device operation, the fan's speed may fluctuate over a period of time due to factors such as the dynamic changes in the load of internal components. This fluctuation not only leads to unstable cooling effects, but also shortens the fan's lifespan and increases fan noise. Therefore, how to regulate fan speed is currently a key focus. Summary of the Invention

[0003] The present application provides a fan speed control method, electronic device, and medium to at least solve the problem of suppressing fan speed fluctuations while ensuring heat dissipation effect.

[0004] The present application provides a fan speed control method, which is applied to a baseboard management controller. The method includes:

[0005] Acquire multiple rotational speed values ​​of at least one fan monitored by the baseboard management controller within a first preset time period;

[0006] When it is determined that the target fan is in a fluctuating state during the first preset time period based on a plurality of speed values ​​of the target fan during the first preset time period, selecting a maximum speed value and a minimum speed value from the plurality of speed values, wherein the target fan is one of the at least one fan;

[0007] Determine the target speed value according to the maximum speed value and the minimum speed value;

[0008] In the current speed adjustment round, controlling the target fan to operate for a second preset time period according to the target speed value;

[0009] After the target fan runs for a second preset time period, obtaining a temperature of a target component, where the target component is a component that affects the target fan to be in a fluctuating state;

[0010] When the temperature of the target component is not equal to the preset temperature, a new target speed value is generated based on the maximum speed value and the minimum speed value, and the next speed adjustment round is entered. After running again for a period of time corresponding to the second preset time period based on the new target speed value, the temperature of the target component is obtained again. When the temperature of the target component meets the preset temperature condition, the fan speed adjustment operation is stopped.

[0011] The present application also provides a fan speed control device, comprising:

[0012] A first acquisition module is configured to acquire a plurality of rotational speed values ​​of at least one fan monitored by the baseboard management controller within a first preset time period;

[0013] a first determining module configured to, when determining, based on a plurality of speed values ​​of the target fan within the first preset time period, that the target fan is in a fluctuating state during the first preset time period, select a maximum speed value and a minimum speed value from the plurality of speed values, wherein the target fan is one of the at least one fan;

[0014] A second determination module is used to determine a target speed value according to the maximum speed value and the minimum speed value;

[0015] a control module, configured to control the target fan to operate for a second preset time period according to the target speed value within a current speed adjustment round;

[0016] a second acquiring module, configured to acquire a temperature of a target component after the target fan runs for a second preset time period, the target component being a component that affects the target fan in a fluctuating state;

[0017] A generation module is used to generate a new target speed value based on the maximum speed value and the minimum speed value when the temperature of the target component is not equal to the preset temperature, and enter the next speed adjustment round to run again for a period of time corresponding to the second preset time period based on the new target speed value, and then obtain the temperature of the target component again until the temperature of the target component meets the preset temperature condition, and then stop the fan speed adjustment operation.

[0018] 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 fan speed control methods when executing the computer program.

[0019] 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 fan speed control methods are implemented.

[0020] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned fan speed control methods when executed by a processor.

[0021] Through the present application, when the fan is in a fluctuating state, the target speed value is determined based on the maximum speed value and the minimum speed value within the first preset time period, and the fan is controlled to run at the target speed value for the second preset time period. Subsequently, the target speed value is continuously adjusted according to the real-time temperature of the component, so that the temperature of the component can be gradually stabilized within the preset temperature conditions. In this temperature adjustment process, the temperature of the target component is gradually adjusted to the preset temperature condition range through targeted adjustments in rounds, effectively avoiding the problem of fan speed fluctuations caused by frequent responses to component temperature changes. While ensuring the heat dissipation effect, the instability of the heat dissipation effect, which is sometimes strong and sometimes weak, is overcome. In addition, since the fluctuation of the fan speed is reduced, the mechanical noise of the fan caused by the speed fluctuation is significantly reduced, the reliability of the fan operation is improved, and the service life of the fan is extended. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] 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.

[0023] Figure 1 A flow chart of a fan speed control method provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of a fan speed control method according to an embodiment of the present application;

[0025] Figure 3 A schematic structural diagram of a fan speed control device provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] 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.

[0028] 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.

[0029] 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.

[0030] First, the application scenarios of the embodiments of the present application are exemplarily introduced.

[0031] During the operation of servers and other equipment, fans serve as core heat dissipation components, and their heat dissipation performance is directly related to the equipment's operational reliability. In related technologies, fan speed is controlled by the baseboard management controller (BMC) within the device to ensure that all components operate at appropriate temperatures. The BMC primarily uses proportional-integral-derivative (PID) and linear control methods to control fan speed. The linear control method determines the fan speed based on the actual component temperature and the linear relationship between the fan speed and the component's corresponding preset temperature. The PID control method calculates the deviation between the actual component temperature and the preset temperature and uses this deviation to adjust the fan speed. Compared to the linear control method, the PID control method, as a feedback control method, offers higher precision and is therefore commonly used in related technologies to adjust fan speed.

[0032] However, with the rapid development of information technology, the variety of components in equipment such as servers is increasing, and their performance has also shown significant differences. For most components with stable performance, the baseboard management controller (BMC) can maintain a stable fan speed using a proportional-integral-derivative (PI-D) control method. However, for components with unstable performance due to design flaws or other factors, using PI-D control to control fan speed can cause fan speed fluctuations due to significant temperature fluctuations during operation. This fluctuation can destabilize the fan's cooling performance as the fan speed fluctuates, threatening the reliability of the equipment. Furthermore, frequent speed fluctuations increase mechanical losses within the fan, increase fan noise, and shorten its service life. During actual equipment operation, fan speed can fluctuate for periods of time due to factors such as frequent changes in internal component load and unstable performance. Therefore, how to suppress fan speed fluctuations while ensuring effective cooling is a key concern.

[0033] In view of this, an embodiment of the present application provides a fan speed control method to suppress fan speed fluctuations while ensuring heat dissipation effects.

[0034] Figure 1 Flowchart of a fan speed control method according to an embodiment of the present invention. The method is performed by a baseboard management controller. Figure 1 As shown, the process includes:

[0035] S101 : Acquire multiple rotational speed values ​​of at least one fan monitored by a baseboard management controller within a first preset time period.

[0036] Specifically, the baseboard management controller can monitor one or more fans. For example, in a small device, a single fan is responsible for overall cooling, and the baseboard management controller only monitors that single fan. Larger devices, such as servers, have multiple fans, such as four, forming a cooling system. In this case, the baseboard management controller will monitor the speed of all four fans simultaneously.

[0037] For example, the baseboard management controller can obtain multiple speed values ​​of the first preset time period through a speed sensor connected to the fan. The length of the first preset time period can be set according to actual conditions, such as 30 minutes, 15 minutes, etc., which is not limited here.

[0038] S102 : When it is determined that the target fan is in a fluctuating state in the first preset time period according to the multiple speed values ​​of the target fan in the first preset time period, a maximum speed value and a minimum speed value are selected from the multiple speed values.

[0039] The target fan is one of the at least one fan.

[0040] Specifically, the target fan refers to at least one fan monitored by the baseboard management controller that is in a fluctuating state. Fluctuating state refers to frequent and significant fluctuations in the fan's speed. For example, if a fan's speed rapidly increases from 7,000 rpm to 15,000 rpm within 30 seconds, then rapidly decreases to 7,000 rpm, and repeats this process, the fan is considered to be in a fluctuating state.

[0041] Exemplarily, based on the multiple speed values ​​collected, the baseboard management controller determines that the fan is in a fluctuating state if the difference between the maximum and minimum speed values ​​exceeds a preset difference (such as 2000 rpm) and the number of fluctuations within a time period exceeds a set value (such as 5 times).

[0042] It should be noted that the specific implementation of determining whether the fan is in a fluctuating state in the first preset time period based on multiple speed values ​​of the target fan in the first preset time period will be described in subsequent embodiments and will not be repeated here.

[0043] The maximum speed value refers to the maximum value among the multiple speed values ​​within the first preset time period, and the minimum speed value refers to the minimum value among the multiple speed values ​​within the first preset time period.

[0044] S103: Determine a target speed value according to the maximum speed value and the minimum speed value.

[0045] For example, the target speed can be determined by calculating the average of the maximum and minimum speeds, for example, (15,000 + 7,000) / 2 = 11,000 rpm, and 11,000 rpm is used as the target speed for the current round. Of course, depending on the characteristics of the target component, a value between the maximum and minimum speeds can be selected as the target speed.

[0046] S104 , in the current speed adjustment round, controlling the target fan to operate for a second preset time period according to the target speed value.

[0047] Specifically, a speed adjustment cycle refers to the period during which the fan speed is adjusted. In the embodiment of the present application, each time the baseboard management controller controls the fan to operate for a period of time (the period corresponding to the second preset time period) based on the target speed value and generates a new target speed value based on the maximum speed value and the minimum speed value, this is called a speed adjustment cycle.

[0048] The second preset time period refers to the duration during which the fan runs at the target speed value. For example, the baseboard management controller sends a control signal including the target speed value and the second preset time period to the fan to instruct the fan to run at the target speed value during the second preset time period.

[0049] S105 : After the target fan runs for a second preset time period, obtain the temperature of a target component, where the target component is a component that affects the target fan to be in a fluctuating state.

[0050] Specifically, the target component refers to the component in the device that causes the target fan to fluctuate. Device components include, but are not limited to, the central processing unit (CPU), NVMe (Non-Volatile Memory Express), hard drives, graphics processing units (GPUs), memory (MEMs), hard disk drives (HDDs), and network adapters. For example, if frequent CPU load changes cause fan speed fluctuations, the CPU is the target component.

[0051] For example, the baseboard management controller may collect the temperature of the target component through a temperature sensor installed on the target component.

[0052] S106, when the temperature of the target component is not equal to the preset temperature, a new target speed value is generated according to the maximum speed value and the minimum speed value, and the next speed adjustment round is entered to run again according to the new target speed value for a period of time corresponding to the second preset time period, and then the temperature of the target component is obtained again until the temperature of the target component meets the preset temperature condition, and the fan speed adjustment operation is stopped.

[0053] Specifically, the preset temperature condition refers to the temperature standard that the target component needs to reach in advance. For example, the preset temperature condition can be a fixed temperature value or a temperature range. For example, the preset temperature condition of NVMe hardware is set to 60℃±2℃. The present embodiment of the application does not specifically limit the preset temperature condition and can be set according to the actual situation of the component.

[0054] It can be understood that when the temperature of the target component is equal to the preset temperature, the target fan is controlled to maintain the target speed value.

[0055] In an embodiment of the present application, when the fan is in a fluctuating state, the target speed value is determined based on the maximum speed value and the minimum speed value within the first preset time period, and the fan is controlled to run at the target speed value for the second preset time period. Subsequently, the target speed value is continuously adjusted according to the real-time temperature of the component, so that the temperature of the component can be gradually stabilized within the preset temperature conditions. During this temperature adjustment process, the temperature of the target component is gradually adjusted to the preset temperature condition range through targeted adjustments in rounds, effectively avoiding the problem of fan speed fluctuations caused by frequent responses to component temperature changes. While ensuring the heat dissipation effect, the instability of the heat dissipation effect, which is sometimes strong and sometimes weak, is overcome. In addition, since the fluctuation of the fan speed is reduced, the mechanical noise of the fan caused by the speed fluctuation is significantly reduced, the reliability of the fan operation is improved, and the service life of the fan is extended.

[0056] In some embodiments, when there are multiple components using the target fan for heat dissipation, in the above S101, multiple speed values ​​of the target fan within the first preset time period are obtained in the following manner:

[0057] First, at a first moment in a first preset time period, for each component, a proportional-integral-differential control algorithm corresponding to the component is used to obtain a rotational speed value generated based on the component.

[0058] The first moment is any moment within the first preset time period. For example, if the first book is shortened to 10:00-10:30, the first moment can be any specific time such as 10:01 or 10:20.

[0059] Specifically, the proportional-integral-differential control algorithm is a closed-loop control algorithm that utilizes proportional, integral, and differential control functions. It adjusts the output by calculating the deviation between the target value and the actual value. In the embodiment of the present application, the deviation between the temperature of the component and the preset temperature is used to adjust the fan speed. For example, for component 1, the preset temperature is 60 degrees. When the actual temperature is 65 degrees, the proportional-integral-differential control algorithm will calculate the required fan speed value based on the temperature difference (proportional term), the temperature difference accumulation time (integral term), and the temperature difference change rate (differential term) to reduce the temperature of component 1.

[0060] Then, a maximum value is selected from the rotation speed values ​​generated based on each component as the rotation speed value at the first moment.

[0061] Specifically, when multiple components share a single fan for cooling, their temperatures and cooling requirements may differ. By selecting the maximum speed value from the speed values ​​generated for each component as the initial speed value, the component with the most pressing cooling needs can be satisfied, ensuring that its temperature is effectively controlled and guaranteeing safe and stable operation of the entire device. For example, the CPU requires a speed of 15,000 rpm to cool down, while the NVMe, due to its higher temperature, requires 17,000 rpm to meet its cooling needs. While selecting a lower speed value would still meet the CPU's cooling needs, the NVMe temperature might continue to rise, impacting device stability. Selecting the maximum speed value at that moment not only meets the NVMe's high cooling needs and reduces its temperature, but also provides sufficient cooling capacity for the CPU, preventing any component from experiencing problems due to insufficient cooling.

[0062] For example, in a device where components 1, 2, and 3 all use a target fan for heat dissipation, at a specific moment, the baseboard management controller (BMC) determines the speed value generated for each component based on the temperature of each component, thereby determining the speed value to control the fan at that moment. Specifically, the BMC obtains the temperature of component 1 through the sensor corresponding to component 1 and calculates the speed value corresponding to component 1 based on its temperature (also called the speed value generated for component 1). The BMC obtains the temperature of component 2 through the sensor corresponding to component 2 and calculates the speed value corresponding to component 2 based on its temperature (also called the speed value generated for component 2). The BMC obtains the temperature of component 3 through the sensor corresponding to component 3 and calculates the speed value corresponding to component 3 based on its temperature (also called the speed value generated for component 3). The BMC then selects the maximum value among the speed values ​​generated for component 1, component 2, and component 3 as the speed value for that moment, which is used to control the operation of the target fan.

[0063] It is understandable that if the fan speed is not in a fluctuating state within the current period of time, such as the first preset time period, the baseboard management controller uses the proportional-integral-differential control algorithm to calculate multiple speed values ​​based on the temperature of each component, and then selects the maximum value from the speed values ​​of the multiple fans as the speed value for controlling the fan. If the fan speed is in a fluctuating state within the current period of time, the baseboard management controller will determine which component each speed value is generated based on based on the multiple speed values ​​within the period of time, and determine the component as the target component. For the target component, the baseboard management controller determines the speed value generated based on the target component based on the fan speed control method provided in the embodiment of the present application; for other components other than the target component, the baseboard management controller determines the speed value based on other components based on the proportional-integral-differential control algorithm. The baseboard management controller selects the maximum value from the speed values ​​of all components as the speed value for controlling the fan, and controls the fan operation.

[0064] In some embodiments, in the above S102, determining whether the target fan is in a fluctuating state in the first preset time period according to multiple speed values ​​of the target fan in the first preset time period specifically includes the following steps:

[0065] First, speed fluctuation data of the target fan is determined according to a plurality of speed values ​​of the target fan within a first preset time period.

[0066] Specifically, speed fluctuation data can be quantitative data reflecting the degree of speed fluctuation. Exemplarily, speed fluctuation data includes, but is not limited to, the difference between the maximum and minimum speed values, the standard deviation of the speed, and the speed fluctuation frequency. Here, the speed fluctuation frequency refers to the number of times the fan speed repeats a complete fluctuation cycle from deviating from a baseline value to returning to the baseline value. For example, the number of times the fan speed increases from a first speed value to a second speed value and then returns to the first speed value. For example, if the fan speed changes from "7000 rpm - 15000 rpm - 7000 rpm" five times within a first preset time period, the speed fluctuation frequency is 5. Furthermore, speed fluctuation data can also be the number of times the difference between the speed values ​​at two adjacent moments within the first preset time period alternates between positive and negative. The number of positive and negative alternations refers to the number of times the difference between the speed values ​​at two adjacent moments changes from positive to negative, or vice versa. The present embodiment does not limit the time difference between two adjacent moments; for example, it can be 30 seconds. For example, there are 6 speed values ​​in the first preset time period, and the differences between two adjacent moments are 7000, -6900, 7200, -7300, and 7100 respectively. The number of positive and negative alternations is 4 times, 7000→-6900, -6900→7200, 7200→-7300, and -7300→7100.

[0067] Then, when the rotation speed fluctuation data satisfies a preset fluctuation condition, it is determined that the target fan is in a fluctuation state during a first preset time period.

[0068] Specifically, the preset fluctuation condition is used to determine whether the fan is in a fluctuation state, and can be determined based on the performance parameters of the fan, the heat dissipation requirements of the fan, and the like.

[0069] For example, the preset fluctuation condition may be that the difference between the maximum and minimum fan speeds is greater than a preset difference, such as 2000 rpm. The preset fluctuation condition may also be that the standard deviation of the speed is greater than a preset standard deviation (e.g., 100 rpm), the speed fluctuation frequency is greater than a preset frequency (e.g., 10), the speed difference between two adjacent moments is greater than a preset value for a preset number of times, or the number of alternating positive and negative values ​​between two adjacent moments is greater than a preset number of alternations.

[0070] In this embodiment of the present application, the speed fluctuation data includes the difference between the maximum and minimum speed values ​​of the fan, as well as the number of times the difference between the speed values ​​at two adjacent moments alternates between positive and negative. The preset fluctuation condition is that the difference between the maximum and minimum speed values ​​of the fan is greater than a preset difference (e.g., 2000 rpm), and the number of times the difference between the speed values ​​at two adjacent moments alternates between positive and negative is greater than the preset number of alternations, i.e., the difference between the speed values ​​at two adjacent moments within a first preset time period frequently alternates between positive and negative values. If the speed fluctuation data of the fan during the first preset time period meets this preset fluctuation condition, then the fan is determined to be in a fluctuating state.

[0071] In the embodiments of the present application, by comparing specific speed fluctuation data with preset fluctuation conditions, the baseboard management controller can more accurately determine whether a fan is in a fluctuating state. Furthermore, the preset fluctuation conditions can be flexibly adjusted based on different fan models, equipment operating environments, and other factors, enhancing the flexibility and applicability of determining fan fluctuation conditions.

[0072] Of course, in other embodiments, the baseboard management controller may further determine whether the fan is in a fluctuating state based on the changing trends of multiple speed values ​​within a first preset time period. For example, if the speed value shows irregular alternating increases and decreases, and the amplitude of the change is large, then the fan is determined to be in a fluctuating state. For example, the fan speeds are 7000 rpm, 14000 rpm, 7100 rpm, 143000 rpm, 7000 rpm, and 14100 rpm, respectively. The speed fluctuates, there is no stable upward or downward trend, and the amplitude of the change is also large, so it is determined to be in a fluctuating state.

[0073] In some embodiments, in the above S103 , the target speed value is determined by determining an average value between the maximum speed value and the minimum speed value, and using the average value as the target speed value.

[0074] Specifically, the maximum speed value refers to the maximum value among multiple speed values ​​of the target fan within the first preset time period. The minimum speed value refers to the minimum value among multiple speed values ​​of the target fan within the first preset time period. For example, if the speed values ​​of the target fan within 30 seconds are 7000 rpm, 10000 rpm, 12000 rpm, and 15000 rpm, respectively, the maximum speed value is 15000 rpm, the minimum speed value is 7000 rpm, and the target speed value is 11000 rpm.

[0075] In the embodiment of the present application, the average value lies between the maximum and minimum speed values, taking into account the actual fan operation within the first preset time period and providing a reasonable speed value to accelerate the target component temperature to reach the preset temperature condition. Furthermore, the baseboard management controller uses the average value as the target speed value, which allows for rapid calculation without consuming excessive computing resources, enabling faster adjustment of the target speed and improving the timeliness of speed adjustments.

[0076] In some other embodiments, in the above S103, the target speed value may also be determined by:

[0077] First, the weight of the maximum speed value and the weight of the minimum speed value are determined according to the duration and / or frequency of the maximum speed value and the minimum speed value respectively appearing within the first preset time period.

[0078] Specifically, the duration refers to the total length of time that the speed value appears continuously within the first preset time period. For example, if the first preset time period is 10 minutes, the maximum speed value appears for a total of 2 minutes, and the minimum speed value appears for a total of 5 seconds.

[0079] Frequency refers to the number of times the speed value appears in the first preset time period. For example, in the first preset time period, the maximum speed value appears once and the minimum speed value appears five times.

[0080] In one possible implementation, the weight of the speed value is positively correlated with its duration. Similarly, the weight of the speed value is positively correlated with its frequency. That is, the longer the duration of a speed value and the greater its frequency, the greater the weight associated with that speed value. Conversely, the shorter the duration of a speed value and the lower its frequency, the smaller the weight associated with that speed value.

[0081] Then, according to the weight of the maximum speed value and the weight of the minimum speed value, the maximum speed value and the minimum speed value are weighted and summed to obtain the target speed value.

[0082] In this way, by determining the target speed value based on the actual operating conditions of the maximum speed value and the minimum speed value within the first preset time period, it can be more consistent with the actual operating conditions of the target fan speed. For example, if the maximum speed value appears for a long time and with a high frequency, it means that it has a greater impact on heat dissipation. By assigning higher weights to speed values ​​that appear for a longer time and with a higher frequency, the target speed value can be made closer to the actual operating status of the fan. For example, if the target fan runs at a maximum speed of 15,000 rpm for 8 seconds and a minimum speed of 7,000 rpm for only 2 seconds, the weight of the maximum speed value can be made higher than the weight of the minimum speed value, so that the target speed value more accurately matches the heat dissipation requirements of the target component.

[0083] Of course, the baseboard management controller may also determine the weight of the maximum rotation speed value and the weight of the minimum rotation speed value according to the difference between the temperature of the target component and the preset temperature.

[0084] Exemplarily, the baseboard management controller determines the weight of the maximum rotation speed value and the weight of the minimum rotation speed value according to the difference between the temperature of the target component and the preset temperature and the maximum allowable deviation.

[0085] Exemplarily, the specific formula for determining the weight of the maximum speed value and the weight of the minimum speed value is as follows:

[0086]

[0087]

[0088] in, is the weight of the maximum speed value, is the weight of the minimum speed value, is the difference between the target component’s temperature and the preset temperature, The preset maximum allowable deviation.

[0089] here, It can be called the temperature deviation coefficient. When the temperature deviation coefficient is positive, it is a high temperature deviation. When the temperature deviation coefficient is negative, it is a low temperature deviation.

[0090] In this way, the weights of the maximum speed value and the minimum speed value change dynamically with the temperature deviation of the component, achieving a precise match between the speed weight and the heat dissipation requirement: when the temperature deviation is high, the maximum speed weight is automatically increased to enhance heat dissipation and quickly reduce the component temperature; when the temperature deviation is low, the minimum speed weight is automatically increased to reduce energy consumption and avoid excessive heat dissipation. While meeting the temperature control requirements of the component, the fan loss is reduced, and the reliability of fan speed control is improved. It is suitable for scenarios that are sensitive to temperature and need to balance heat dissipation and energy consumption.

[0091] In some embodiments, the preset temperature condition is that a difference between the temperature of the target component and a preset temperature is within a preset difference range.

[0092] For example, if the preset temperature is 60° C. and the preset difference range is ±1° C., the preset temperature condition is that the target component temperature is between 59° C. and 61° C. The embodiment of the present application does not make a specific setting for the preset difference range, and it can be limited according to actual conditions.

[0093] In a possible implementation, in the above S106, when the temperature of the target component is not equal to the preset temperature, a new target speed value is generated according to the maximum speed value and the minimum speed value. The specific steps include:

[0094] When the temperature of the target component is greater than the preset temperature, a new target speed value is generated according to the speed average value determined by the maximum speed value and the minimum speed value, and the maximum speed value.

[0095] In this way, based on the average speed value, the smooth form of fan speed adjustment is guaranteed, the sudden increase in speed caused by directly using the maximum speed value is avoided, the mechanical loss and noise of the fan are reduced, and the heat dissipation capacity is enhanced by combining with the maximum speed value, so that the new target speed value can more specifically improve the heat dissipation capacity, accelerate the cooling speed of the target component, and make the temperature of the target component approach the preset temperature faster.

[0096] Exemplarily, the average value between the average speed value and the maximum speed value is used as the new target speed value.

[0097] For example, if the maximum speed is 15,000 rpm, the minimum speed is 7,000 rpm, and the average speed is 11,000 rpm, then when the temperature of the target component is greater than the preset temperature, the new target speed may be (15,000 + 7,000) ÷ 2 = 11,000 rpm.

[0098] In one possible implementation, in S106 above, when the temperature of the target component is lower than a preset temperature, the method provided in the embodiment of the present application further includes:

[0099] A new target speed value is generated based on the speed average value determined by the maximum speed value and the minimum speed value, and the minimum speed value.

[0100] In this way, based on the average speed value, the sudden drop in speed caused by directly adopting the minimum speed value is avoided, the smoothness of the speed adjustment process is ensured, the mechanical loss and noise of the fan are reduced, and the heat dissipation intensity is appropriately weakened in combination with the minimum speed value, so that the new target speed value can reduce heat dissipation more specifically, thereby slowing down the cooling rate of the target component and making the temperature of the target component approach the preset temperature faster.

[0101] Exemplarily, the average value between the maximum rotational speed value and the average rotational speed value is used as the new target rotational speed value.

[0102] Continuing with the above example where the maximum speed is 15,000 rpm, the minimum speed is 7,000 rpm, and the average speed is 11,000 rpm, if the temperature of the target component is lower than the preset temperature, the new target speed can be (15,000 + 7,000) ÷ 2 = 11,000 rpm.

[0103] Figure 2 Figure 1 is a schematic diagram of a fan speed control method. Figure 2 In the present invention, multiple components utilize the current fan for heat dissipation. The fan speed control method specifically includes the following steps: First, the baseboard management controller determines whether the current fan is in a fluctuating state based on multiple speed values ​​within a first preset time period. If the current fan is in a fluctuating state, a target component is determined from the multiple components, i.e., the component that affects the current fan's fluctuation. If the current fan is not in a fluctuating state, the current speed value is maintained. Next, the average between the maximum and minimum speed values ​​of the multiple speed values ​​is used as the target speed value, and the current fan is controlled to operate at this target speed value for a second preset time period. After the current fan has operated for the second preset time period, the temperature of the target component is obtained, and it is determined whether the temperature of the target component is greater than a preset temperature to generate a new target speed value. If the temperature of the target component is greater than the preset temperature, a new target speed value is generated based on the average speed value between the maximum and minimum speed values, as well as the maximum speed value. If the temperature of the target component is less than the preset temperature, a new target speed value is generated based on the average speed value determined from the maximum and minimum speed values, as well as the minimum speed value. The new target speed value is used to control the current fan to operate at the new target speed value for a period corresponding to the second preset time period. After controlling the current fan to run again for a period of time corresponding to the second preset time period, the temperature of the target component is obtained again to determine whether the temperature of the target component is greater than the preset temperature, so as to adjust the fan speed value until the temperature of the target component meets the preset temperature condition, and stop the fan speed adjustment operation.

[0104] In the embodiment of the present application, the new target speed value is determined based on the average value and the maximum / minimum speed value, rather than directly adjusting the speed value to the maximum or minimum speed value. This avoids large fluctuations in the new target speed value, reduces mechanical losses and noise in the fan, and ensures stable fan heat dissipation. Furthermore, when the temperature of the target component is higher than the preset temperature, a new target speed value is generated based on the average value and the maximum speed value, which can improve the heat dissipation capacity and accelerate the cooling rate. When the temperature of the target component is lower than the preset temperature, the average value and the minimum speed value are combined to adjust the speed and reduce heat dissipation, avoiding excessive cooling, thereby quickly bringing the temperature of the target component closer to the preset temperature condition.

[0105] In some embodiments, in the above S106, when there are multiple components that affect the target fan in a fluctuating state, and when the temperatures of the multiple components are not equal to the preset temperature, a new target speed value is generated according to the maximum speed value and the minimum speed value. The specific steps include:

[0106] When the temperature of at least one component is greater than the preset temperature corresponding to the component, a new target speed value is generated according to the speed average value determined by the maximum speed value and the minimum speed value, and the maximum speed value.

[0107] This way, when at least one component's temperature exceeds its corresponding preset temperature, a new target speed value is generated by combining the average and maximum speed values. This prioritizes heat dissipation, preventing device failures caused by individual component overheating and ensuring that all component temperatures remain within a safe range, ensuring overall safe device operation. For example, if the CPU and memory temperatures exceed the limit, increasing the new target speed value will simultaneously enhance heat dissipation for both components, preventing further temperature increases.

[0108] When the temperatures of all components are lower than the preset temperatures corresponding to the components, a new target speed value is generated according to the speed average value determined by the maximum speed value and the minimum speed value, and the minimum speed value.

[0109] In this way, since the temperatures of all components are lower than the preset temperature, it means that the current heat dissipation capacity is sufficient. By adjusting towards the minimum speed value, the temperature of each component can be gradually raised to near the preset temperature, avoiding unnecessary over-heating and avoiding excessively low component temperatures due to excessive heat dissipation, ensuring that all components operate within the appropriate temperature range.

[0110] In some embodiments, when there are multiple components that utilize a target fan for heat dissipation, and a first component is the component that causes the target fan to be in a fluctuating state within a first preset time period, and a second component again causes the target fan to be in a fluctuating state within a third preset time period after the first preset time period, the method provided in this embodiment of the application further includes the following steps a1-a2:

[0111] a1. Obtain multiple rotational speed values ​​of a target fan within a third preset time period.

[0112] Among them, the i-th speed value within the third preset time period is a speed value determined based on the i-th speed value generated by the first component and the i-th speed value generated by the second component. The third preset time period is the time period most recently after the second preset time period, and i is a positive integer.

[0113] In a possible implementation, in step a1 above, the i-th speed value of the target fan within the third preset time period is obtained by:

[0114] First, an i-th speed value generated by the first component within a third preset time period is obtained. The i-th speed value generated by the first component is a target speed value generated by the target fan in the second preset time period.

[0115] Then, a proportional-integral-differential control algorithm is used to obtain the i-th speed value generated based on the second component within a third preset time period.

[0116] Finally, a maximum value is selected from the i-th speed value generated based on the first component and the i-th speed value generated based on the second component as the i-th speed value of the target fan in the third preset time period.

[0117] a2. Determine a new target speed value according to multiple speed values ​​of the target fan within the third preset time period, so as to control the target fan to operate within a fourth preset time period after the third preset time period.

[0118] The fourth preset time period is equal to the second preset time period.

[0119] This improves cooling efficiency by comprehensively considering the cooling needs of different components when multiple components alternately affect fan speed. Furthermore, by periodically adjusting the speed, mechanical wear and tear caused by frequent fan starts and stops or large speed adjustments is reduced, extending the fan's service life.

[0120] In a possible implementation, after the target fan runs for a fourth preset time period at the target rotational speed value determined within the third preset time period, the temperature of the target component is acquired.

[0121] It can be understood that the target component at this time may be the second component and the first component, or may be only the second component.

[0122] If the multiple speed values ​​within the third preset time period are all the i-th speed values ​​generated based on the second component, that is, the i-th speed value generated based on the second component is greater than the i-th speed value generated by the first component, then the target component is the second component.

[0123] If some of the multiple speed values ​​in the third preset time period are based on the i-th speed value generated by the second component, and some are based on the i-th speed value generated by the first component, the target components are the first component and the second component.

[0124] In the above S106, when the temperature of the target component is not equal to the preset temperature, a new target speed value is generated according to the maximum speed value and the minimum speed value. The specific steps include:

[0125] First, a new maximum speed value and a new minimum speed value are selected from a plurality of speed values ​​of the target fan within a third preset time period.

[0126] Then, based on the new maximum speed value and the new minimum speed value, the latest target speed value is generated and the next speed adjustment round is entered.

[0127] In this way, based on the actual operation of the fan within the third preset time period, the maximum speed value and the minimum speed value are updated in time, so that the latest target speed value generated is more in line with the current heat dissipation requirements under the influence of fan fluctuations caused by multiple components, ensuring the accuracy of the fan speed adjustment.

[0128] The above mainly introduces the solution provided in the embodiment of the present application from the perspective of method.

[0129] 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.

[0130] The present application also provides a fan speed control device in an embodiment, which is used to implement the above-mentioned embodiments and preferred embodiments. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0131] This embodiment provides a fan speed control device, such as Figure 3 Shown, including:

[0132] A first acquisition module 301 is configured to acquire a plurality of rotational speed values ​​of at least one fan monitored by a baseboard management controller within a first preset time period;

[0133] a first determining module 302 configured to select a maximum speed value and a minimum speed value from the plurality of speed values ​​when determining, based on a plurality of speed values ​​of the target fan within the first preset time period, that the target fan is in a fluctuating state during the first preset time period, wherein the target fan is one of the at least one fan;

[0134] A second determining module 303 is configured to determine a target speed value according to the maximum speed value and the minimum speed value;

[0135] A control module 304 is configured to control the target fan to operate for a second preset time period according to the target speed value within the current speed adjustment round;

[0136] A second acquisition module 305 is configured to acquire a temperature of a target component after the target fan runs for a second preset time period, where the target component is a component that causes the target fan to be in a fluctuating state;

[0137] The generation module 306 is used to generate a new target speed value according to the maximum speed value and the minimum speed value when the temperature of the target component is not equal to the preset temperature, and enter the next speed adjustment round to run again according to the new target speed value for a period of time corresponding to the second preset time period, and then obtain the temperature of the target component again until the temperature of the target component meets the preset temperature condition, and then stop the fan speed adjustment operation.

[0138] Through the device provided by the embodiment of the present application, when the fan is in a fluctuating state, the target speed value is determined based on the maximum speed value and the minimum speed value within the first preset time period, and the fan is controlled to run at the target speed value for the second preset time period. Subsequently, the target speed value is continuously adjusted according to the real-time temperature of the component, so that the temperature of the component can be gradually stabilized within the preset temperature conditions. In this temperature adjustment process, the temperature of the target component is gradually adjusted to the preset temperature condition range through targeted adjustments in rounds, effectively avoiding the problem of fan speed fluctuations caused by frequent responses to component temperature changes. While ensuring the heat dissipation effect, the instability of the heat dissipation effect, which is sometimes strong and sometimes weak, is overcome. In addition, since the fluctuation of the fan speed is reduced, the mechanical noise of the fan caused by the speed fluctuation is significantly reduced, the reliability of the fan operation is improved, and the service life of the fan is extended.

[0139] In a possible implementation, the first determining module 302 is specifically configured to determine the speed fluctuation data of the target fan according to multiple speed values ​​of the target fan within a first preset time period;

[0140] When the rotation speed fluctuation data satisfies a preset fluctuation condition, it is determined that the target fan is in a fluctuation state during a first preset time period.

[0141] In a possible implementation, the second determining module 303 is specifically configured to determine an average value between the maximum speed value and the minimum speed value, and use the average value as the target speed value.

[0142] In one possible implementation, the preset temperature condition is that the difference between the temperature of the target component and the preset temperature is within a preset difference range. The generation module 306 is specifically used to generate a new target speed value based on the average speed value determined by the maximum speed value and the minimum speed value, and the maximum speed value when the temperature of the target component is greater than the preset temperature.

[0143] In a possible implementation, the generation module 306 is specifically configured to generate a new target speed value according to a speed average value determined from the maximum speed value and the minimum speed value, and the minimum speed value when the temperature of the target component is lower than a preset temperature.

[0144] In one possible implementation, when there are multiple components that affect the target fan in a fluctuating state, and when the temperatures of the multiple components are not equal to the preset temperature, the generation module 306 is specifically used to generate a new target speed value based on the average speed value determined by the maximum speed value and the minimum speed value, and the maximum speed value when the temperature of at least one component is greater than the preset temperature corresponding to the component.

[0145] In one possible implementation, the generation module 306 is specifically used to generate a new target speed value based on the average speed value determined by the maximum speed value and the minimum speed value, and the minimum speed value when the temperatures of all components are lower than the preset temperatures corresponding to each component.

[0146] In one possible implementation, when there are multiple components that use the target fan for heat dissipation, and the component that affects the target fan to be in a fluctuating state within the first preset time period is the first component, and there is a second component that affects the target fan to be in a fluctuating state again within the third preset time period after the first preset time period, the first acquisition module 301 is also used to obtain multiple speed values ​​of the target fan within the third preset time period, wherein the i-th speed value within the third preset time period is a speed value determined based on the i-th speed value generated by the first component and the i-th speed value generated by the second component, the third preset time period is the time period most recently after the second preset time period, and i is a positive integer.

[0147] The second determination module 303 is also used to determine a new target speed value based on multiple speed values ​​of the target fan within the third preset time period, and to control the target fan to operate within a fourth preset time period after the third preset time period, wherein the length of the fourth preset time period is equal to the length of the second preset time period.

[0148] In one possible implementation, the first acquisition module 301 is specifically configured to acquire an i-th speed value generated by the first component within a third preset time period, where the i-th speed value generated by the first component is a target speed value generated by the target fan in the second preset time period.

[0149] Obtaining an i-th speed value generated by the second component within a third preset time period using a proportional-integral-differential control algorithm;

[0150] A maximum value is selected from the i-th speed value generated based on the first component and the i-th speed value generated based on the second component as the i-th speed value of the target fan in the third preset time period.

[0151] In one possible implementation, the generating module 306 is further configured to select a new maximum speed value and a new minimum speed value from a plurality of speed values ​​of the target fan within a third preset time period when the temperature of the target component is not equal to the preset temperature;

[0152] According to the new maximum speed value and the new minimum speed value, the latest target speed value is generated and the next speed adjustment round is entered.

[0153] In one possible implementation, when there are multiple components using the target fan for heat dissipation, the first acquisition module 301 is specifically configured to, at a first moment within a first preset time period, for each component, obtain a rotational speed value generated by the component using a proportional-integral-differential control algorithm corresponding to the component;

[0154] A maximum value is selected from the rotation speed values ​​generated based on each component as the rotation speed value at a first moment, where the first moment is any moment within a first preset time period.

[0155] In one possible implementation, the second determining module 303 is specifically configured to determine a weight corresponding to the maximum speed value and a weight corresponding to the minimum speed value according to a duration and / or a frequency during which the maximum speed value and the minimum speed value appear within a first preset time period;

[0156] According to the weight corresponding to the maximum speed value and the weight corresponding to the minimum speed value, the maximum speed value and the minimum speed value are weighted and summed to obtain the target speed value.

[0157] For the description of the features in the embodiment corresponding to the fan speed control device, reference can be made to the relevant description of the embodiment corresponding to the fan speed control method, which will not be repeated here.

[0158] The embodiment of the present application also provides an electronic device, such as Figure 4As shown, it includes a memory 10 and a processor 20. The memory 10 stores a computer program, and the processor 20 is configured to run the computer program to execute the steps in any of the above fan speed control method embodiments.

[0159] 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 of the above-mentioned fan speed control method embodiments when running.

[0160] 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.

[0161] 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 of any of the above-mentioned fan speed control method embodiments are implemented.

[0162] 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 fan speed control method embodiments are implemented.

[0163] 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.

[0164] The above is a detailed introduction to a fan speed control method, electronic device, and 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 ideas 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 fan speed control method, characterized in that: Applied to a baseboard management controller, the method includes: Acquire multiple rotational speed values ​​of at least one fan monitored by the baseboard management controller within a first preset time period; When it is determined that the target fan is in a fluctuating state during the first preset time period based on a plurality of speed values ​​of the target fan during the first preset time period, selecting a maximum speed value and a minimum speed value from the plurality of speed values, wherein the target fan is one of the at least one fan; determining a target speed value according to the maximum speed value and the minimum speed value; In the current speed adjustment round, controlling the target fan to operate for a second preset time period according to the target speed value; After the target fan runs for the second preset time period, obtaining a temperature of a target component, where the target component is a component that affects the target fan to be in a fluctuating state; When the temperature of the target component is not equal to the preset temperature, a new target speed value is generated according to the maximum speed value and the minimum speed value, and the next speed adjustment round is entered to run again according to the new target speed value for a period of time corresponding to the second preset time period, and then obtain the temperature of the target component again until the temperature of the target component meets the preset temperature condition, and then stop the fan speed adjustment operation.

2. The method according to claim 1, characterized in that Determining whether the target fan is in a fluctuating state in the first preset time period according to the plurality of speed values ​​of the target fan in the first preset time period includes: determining speed fluctuation data of the target fan according to the plurality of speed values ​​of the target fan within the first preset time period; When the rotation speed fluctuation data satisfies a preset fluctuation condition, it is determined that the target fan is in a fluctuation state during the first preset time period.

3. The method according to claim 1 or 2, characterized in that The determining of the target speed value according to the maximum speed value and the minimum speed value includes: An average value between the maximum speed value and the minimum speed value is determined, and the average value is used as the target speed value.

4. The method according to claim 1 or 2, characterized in that When the temperature of the target component is not equal to the preset temperature, generating a new target speed value according to the maximum speed value and the minimum speed value, including: When the temperature of the target component is greater than the preset temperature, the new target speed value is generated according to a speed average value determined from the maximum speed value and the minimum speed value, and the maximum speed value.

5. The method according to claim 4, characterized in that When the temperature of the target component is lower than the preset temperature, the method further includes: The new target speed value is generated according to a speed average value determined from the maximum speed value and the minimum speed value, and the minimum speed value.

6. The method according to claim 1 or 2, characterized in that When there are multiple components that affect the target fan being in a fluctuating state, and when the temperatures of the multiple components are not equal to the preset temperature, generating a new target speed value according to the maximum speed value and the minimum speed value includes: When the temperature of at least one component is greater than a preset temperature corresponding to the component, the new target speed value is generated according to a speed average value determined from the maximum speed value and the minimum speed value, and the maximum speed value.

7. The method according to claim 6, characterized in that The method further comprises: When the temperatures of all components are lower than the preset temperatures corresponding to the components, the new target speed value is generated according to the speed average value determined by the maximum speed value and the minimum speed value, and the minimum speed value.

8. The method according to claim 1 or 2, characterized in that When there are multiple components that utilize the target fan for heat dissipation, and a first component is the component that causes the target fan to be in a fluctuating state within the first preset time period, and a second component is present again that causes the target fan to be in a fluctuating state within a third preset time period after the first preset time period, the method further includes: Obtaining a plurality of speed values ​​of the target fan within the third preset time period, wherein the i-th speed value within the third preset time period is a speed value determined based on the i-th speed value generated by the first component and the i-th speed value generated by the second component, the third preset time period being a time period most recent after the second preset time period, and i being a positive integer; Based on the multiple speed values ​​of the target fan within the third preset time period, a new target speed value is determined to control the target fan to operate within a fourth preset time period after the third preset time period, wherein the length of the fourth preset time period is equal to the length of the second preset time period.

9. The method according to claim 8, characterized in that Obtaining the i-th speed value of the target fan within the third preset time period includes: Acquire an i-th speed value generated by the first component within the third preset time period, wherein the i-th speed value generated by the first component is a target speed value generated by the target fan in the second preset time period; Obtaining an i-th speed value generated by the second component within a third preset time period using a proportional-integral-differential control algorithm; A maximum value is selected from the i-th speed value generated based on the first component and the i-th speed value generated based on the second component as the i-th speed value of the target fan in the third preset time period.

10. The method according to claim 8, characterized in that When the temperature of the target component is not equal to the preset temperature, generating a new target speed value according to the maximum speed value and the minimum speed value, including: Selecting a new maximum speed value and a new minimum speed value from a plurality of speed values ​​of the target fan within the third preset time period; According to the new maximum speed value and the new minimum speed value, the latest target speed value is generated and then the next speed adjustment round is entered.

11. The method according to claim 1 or 2, characterized in that When there are multiple components that utilize the target fan for heat dissipation, obtaining multiple rotation speed values ​​of the target fan monitored by the baseboard management controller within a first preset time period includes: At a first moment within the first preset time period, for each of the components, using a proportional-integral-differential control algorithm corresponding to the component to obtain a speed value generated based on the component; A maximum value is selected from the rotational speed values ​​generated based on each of the components as the rotational speed value at the first moment, where the first moment is any moment within the first preset time period.

12. The method according to claim 1 or 2, characterized in that The determining of the target speed value according to the maximum speed value and the minimum speed value includes: Determining a weight corresponding to the maximum speed value and a weight corresponding to the minimum speed value according to durations and / or frequencies of occurrence of the maximum speed value and the minimum speed value within the first preset time period; According to the weight corresponding to the maximum speed value and the weight corresponding to the minimum speed value, the maximum speed value and the minimum speed value are weightedly summed to obtain the target speed value.

13. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the fan speed control method according to any one of claims 1 to 12 when executing the computer program.

14. 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 fan speed control method according to any one of claims 1 to 12 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the fan speed control method according to any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Method and device for controlling rotating speed of fan

    CN101660539A

  • Fan performance real-time monitoring method and system, terminal and storage medium

    CN115048270A