Server fan control methods and electronic devices
By collecting temperature values from server fan units and processor heatsinks, calculating temperature differences and pulse width modulation duty cycles, the problem of frequent start-stop caused by the single traditional fan control method is solved, thereby extending fan life and improving the precision of temperature control.
Patent Information
- Application Number
- CN202511223220.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-29
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2045-08-29
AI Technical Summary
Traditional server fan control methods rely on a single control approach, leading to frequent start-stop cycles and reduced fan lifespan.
By collecting the temperature values of the fan unit's air outlet and the processor heatsink, calculating the temperature difference, and determining whether it exceeds the mode switching threshold, if it does, the fan unit runs at full speed; if it is less than or equal to the temperature value, the pulse width modulation duty cycle is determined based on the temperature value to control the operating mode of the fan unit.
It enables diversified fan control methods, avoids frequent start-stop, improves fan lifespan, and enhances the accuracy and response time of server temperature control.
Smart Images

Figure CN120739726B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a server fan control method and electronic device. Background Technology
[0002] Server fans are core components of data center thermal management systems, maintaining server equipment within safe temperature ranges through forced convection cooling. Their mechanism primarily involves the fan's aerodynamically designed impeller generating directional airflow, transferring heat from components like the central processing unit (CPU) through heat sinks into the airflow, ultimately expelling it from the server rack. Therefore, server fan control, as a core technology for intelligent speed adjustment strategies balancing cooling efficiency and energy consumption, is particularly crucial in server heat dissipation.
[0003] In related technologies, traditional server fan control methods utilize the characteristics of temperature sensors, such as the resistance of thermistors changing with temperature, to obtain the temperature value of the corresponding heat-generating element. When the temperature value exceeds a set temperature threshold, the controller controls the fan to run at full speed; when the temperature signal does not exceed the set threshold, the controller controls the fan to run at low speed or stop. However, in related technologies, traditional server fan control methods have a single fan control mode, which easily leads to frequent fan start-stop, reducing fan lifespan. Summary of the Invention
[0004] This application provides a server fan control method and electronic device to at least solve the problem that traditional server fan control methods in the related art have a single fan control mode, which easily leads to frequent fan start-stop and reduced fan life.
[0005] This application provides a server fan control method, including: acquiring a first temperature value of the air outlet of the server's fan unit and a second temperature value of the server's processor heatsink within the current period; determining a mode switching threshold for the fan unit; calculating the temperature difference between the first temperature value and a preset target temperature; determining whether the temperature difference is greater than the mode switching threshold; if the temperature difference is greater than the mode switching threshold, controlling the fan control circuit to drive the fan unit to operate in full-speed mode; if the temperature difference is less than or equal to the mode switching threshold, determining the pulse width modulation duty cycle of the fan unit's control circuit based on the second temperature value; and controlling the fan control circuit to drive the fan unit to operate in a control mode based on the pulse width modulation duty cycle.
[0006] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of any of the above-described server fan control methods.
[0007] The server fan control method and electronic device provided in this application collect a first temperature value of the air outlet of the server's fan unit and a second temperature value of the server's processor heatsink within the current period; determine a mode switching threshold for the fan unit; calculate the temperature difference between the first temperature value and a preset target temperature; determine whether the temperature difference is greater than the mode switching threshold; if the temperature difference is greater than the mode switching threshold, control the fan control circuit to drive the fan unit to run at full speed; if the temperature difference is less than or equal to the mode switching threshold, determine the pulse width modulation duty cycle of the fan unit's control circuit based on the second temperature value; and control the fan control circuit to drive the fan unit to run in a control mode based on the pulse width modulation duty cycle. By processing the collected first temperature value of the air outlet and the second temperature value of the heatsink, different modes of fan control are achieved, increasing the fan control methods, making it suitable for different server operating scenarios, avoiding frequent fan start-stop, and improving fan lifespan. Attached Figure Description
[0008] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0009] Figure 1 This is a schematic diagram illustrating an application scenario of the server fan control method provided in the embodiments of this application;
[0010] Figure 2 A flowchart illustrating the server fan control method provided in this application embodiment. Figure 1 ;
[0011] Figure 3 The fan control circuit provided in the embodiments of this application;
[0012] Figure 4 A flowchart illustrating the server fan control method provided in this application embodiment. Figure 2 ;
[0013] Figure 5 This is a schematic diagram of the server fan control device provided in an embodiment of this application;
[0014] Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0015] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0016] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0017] Server fans are core components of data center thermal management systems, maintaining server equipment within safe temperature ranges through forced convection cooling. Their mechanism primarily involves the fan's aerodynamically designed impeller generating directional airflow, transferring heat from components like the central processing unit (CPU) through heat sinks into the airflow and ultimately expelling it from the server rack. Therefore, server fan control, as a core technology for intelligent speed adjustment strategies balancing cooling efficiency and energy consumption, is crucial in server heat dissipation. Traditional server fan control methods utilize the characteristics of temperature sensors, such as the resistance of thermistors changing with temperature, to obtain the temperature value of the corresponding heat-generating component. When the temperature exceeds a set threshold, the controller controls the fan to run at full speed; when the temperature signal does not exceed the threshold, the controller controls the fan to run at low speed or stop. However, traditional server fan control methods are simplistic and prone to frequent fan starts and stops, reducing fan lifespan.
[0018] To address the aforementioned technical problems, this application proposes the following technical concept: The inventors consider the first temperature value of the fan unit's air outlet and the second temperature value of the processor's heatsink; calculate the temperature difference between the first temperature value and a preset target temperature, and compare it with a mode switching threshold. If the temperature difference is greater than the mode switching threshold, the fan unit is controlled to operate at full speed; if the temperature difference is less than or equal to the mode switching threshold, the pulse width modulation duty cycle is determined based on the second temperature value; based on the pulse width modulation duty cycle, the fan unit is controlled to operate in a control mode. By processing the first temperature value of the air outlet and the second temperature value of the heatsink, different fan control modes are achieved, increasing the fan control methods and making it suitable for different server operating scenarios, avoiding frequent fan start-stop and improving fan lifespan.
[0019] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0020] This section describes the specific application environment architecture or hardware architecture upon which the server fan control method depends. (References) Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario for server fan control methods.
[0021] like Figure 1 As shown, the application scenarios of this server fan control method include: server 10.
[0022] Server 10 can be a single server or a cluster of multiple servers, or other devices. Server 10 includes a controller 101, a fan unit 102, a processor 103 and a heat sink 104, as well as a fan control circuit 105.
[0023] The controller 101 can be a microcontroller within a server or a baseboard management controller.
[0024] The controller 101 collects the first temperature value of the air outlet of the fan unit 102 of the server 10 and the second temperature value of the heat sink 104 of the processor 103 of the server 10 within the current period; determines the mode switching threshold of the fan unit 102; calculates the temperature difference between the first temperature value and the preset target temperature; determines whether the temperature difference is greater than the mode switching threshold; if the temperature difference is greater than the mode switching threshold, it controls the fan control circuit 105 to drive the fan unit 102 to run in full-speed mode; if the temperature difference is less than or equal to the mode switching threshold, it determines the pulse width modulation duty cycle of the control circuit of the fan unit 102 according to the second temperature value; and controls the fan control circuit 105 to drive the fan unit 102 to run in the control mode according to the pulse width modulation duty cycle.
[0025] Figure 2 A flowchart illustrating the server fan control method provided in this application embodiment. Figure 1 ,like Figure 2 As shown, an embodiment of this application provides a server fan control method, which is described in detail below:
[0026] S201: Collect the first temperature value of the air outlet of the server's fan unit and the second temperature value of the server's processor heat sink within the current cycle.
[0027] Specifically, S201 includes steps a~d:
[0028] Step a: Collect the analog voltage signal of the air outlet of the server's fan unit during the current cycle using an analog temperature sensor.
[0029] In this embodiment, the simulated temperature sensor can be a thermistor or other sensors.
[0030] In this embodiment, the fan unit can be a single fan or a cluster of multiple fans.
[0031] For example, the fan unit is a 4-wire PWM fan.
[0032] Step b: Collect the digital temperature signal of the server's processor heatsink during the current period using a digital temperature sensor.
[0033] For example, the digital temperature sensor is model DS18B20.
[0034] Step c: Convert the analog voltage signal into a first temperature value.
[0035] Specifically, the analog voltage signal is converted into a first temperature value using the Steinhart-Hart equation.
[0036] Step d: Decipher the digital temperature signal into a second temperature value.
[0037] In addition, following S201, step e~i is also included:
[0038] Step e: Determine the temperature difference between the first temperature value of the air outlet and the second temperature value of the radiator;
[0039] Step f: Determine whether the temperature difference value is greater than the preset temperature difference threshold.
[0040] In this embodiment, the preset temperature difference threshold is any one of ±5℃, ±6℃ or ±7℃, or it can be other temperature difference values.
[0041] Step g: If the temperature difference value is determined to be greater than the preset temperature difference threshold, then determine the duration for which the temperature difference value is greater than the preset temperature difference threshold.
[0042] Step h: If the duration is longer than the preset duration, the analog temperature sensor and / or digital temperature sensor is determined to be abnormal.
[0043] In this embodiment, the preset duration can be any of 10s, 15s, or 30s, or other durations.
[0044] Step i: After determining that the analog temperature sensor and / or digital temperature sensor is malfunctioning, activate the backup sensor.
[0045] In addition, after step i, steps j~k are also included:
[0046] Step j: Generate an alarm message based on the abnormality of the analog temperature sensor and / or digital temperature sensor.
[0047] Step k: Control the fan control circuit to drive the fan unit to run at full speed.
[0048] S202: Determine the mode switching threshold for the fan unit.
[0049] Specifically, S202 includes steps a~c:
[0050] Step a: Obtain the historical temperature value of the air outlet and the cycle duration in the previous cycle.
[0051] Step b: Calculate the first temperature change rate based on the first temperature value, the historical temperature value of the air outlet, and the cycle duration.
[0052] In this embodiment, the calculation formula for the first temperature change rate, based on the first temperature value, the historical temperature value of the air outlet, and the cycle duration, includes:
[0053]
[0054] In the formula, This is the first rate of temperature change; This is the difference between the first temperature value and the historical temperature value at the air outlet. The duration of the cycle.
[0055] Step c: Determine the corresponding mode switching threshold based on the first temperature change rate.
[0056] Specifically, step c includes steps c1 to c3:
[0057] Step c1: Determine the acceleration of temperature change based on the first temperature change rate of the current cycle and the first temperature change rate of the previous cycle.
[0058] In this embodiment, the calculation formula for determining the temperature change acceleration based on the first temperature change rate of the current period and the first temperature change rate of the previous period includes:
[0059]
[0060] In the formula, This refers to the acceleration due to temperature change. This represents the first rate of temperature change in the current cycle. This represents the first temperature change rate of the previous cycle.
[0061] Step c2: Determine the stable temperature change rate based on the first temperature change rate of the current cycle and the first temperature change rate of the previous cycle.
[0062] In this embodiment, the calculation formula for determining the stable temperature change rate based on the first temperature change rate of the current cycle and the first temperature change rate of the previous cycle includes:
[0063]
[0064] In the formula, For a stable rate of temperature change; Set as weighting coefficient .
[0065] Step c3: Determine the corresponding mode switching threshold based on the temperature change acceleration, stable temperature change rate, first temperature value, and preset target temperature.
[0066] In this embodiment, the calculation formula for determining the corresponding mode switching threshold based on temperature change acceleration, stable temperature change rate, first temperature value, and preset target temperature includes:
[0067]
[0068] In the formula, K1 is the mode switching threshold; A is the fixed compensation system, typically set to 5; K2 is the first-order acceleration coefficient, typically set to 0.3; K3 is the second-order acceleration coefficient, typically set to 0.15; K4 is the exponential compensation coefficient, typically set to 2. This is the temperature difference attenuation factor, typically set to 0.2; This is the first temperature value; The preset target temperature.
[0069] S203: Calculate the temperature difference between the first temperature value and the preset target temperature.
[0070] S204: Determine whether the temperature difference is greater than the mode switching threshold.
[0071] S205: If the temperature difference is greater than the mode switching threshold, the fan control circuit will drive the fan unit to run at full speed.
[0072] Specifically, step S205 is as follows: if the temperature difference is greater than the mode switching threshold, the control transistor is turned on to control the fan control circuit to drive the fan unit to run in full-speed mode.
[0073] The transistor is an NPN transistor.
[0074] S206: If the temperature difference is less than or equal to the mode switching threshold, the pulse width modulation duty cycle of the fan unit's control circuit is determined based on the second temperature value.
[0075] Specifically, S206 includes steps a~d:
[0076] Step a: If the temperature difference is less than or equal to the mode switching threshold, obtain the historical temperature value of the radiator and the cycle duration in the previous cycle.
[0077] Step b: Calculate the second temperature change rate based on the second temperature value, the historical temperature value of the radiator, and the cycle duration.
[0078] In this embodiment, the calculation formula for the second temperature change rate, based on the second temperature value, the historical temperature value of the radiator, and the period duration, includes:
[0079]
[0080] In the formula, This is the second rate of temperature change; This is the difference between the second temperature value and the historical temperature value of the radiator. The duration of the cycle.
[0081] Step c: Determine the corresponding control parameters based on the second temperature change rate.
[0082] In this embodiment, the control parameter is either a first control parameter or a second control parameter; correspondingly, step c specifically includes steps c1 to c4:
[0083] Step c1: Determine whether the second temperature change rate is greater than the first preset change rate.
[0084] In this embodiment, the second preset rate of change can be any one of 2℃ / s, 3℃ / s, or 5℃ / s, or other rates of change.
[0085] Step c2: If it is determined that the second temperature change rate is greater than the first preset change rate, then adjust the corresponding control parameters to obtain the first control parameters.
[0086] For example, if it is determined that the second temperature change rate is greater than the first preset change rate, the proportional coefficient Kp is increased by 20%, the integral coefficient Ki is decreased by 30%, and the derivative coefficient Kd is increased by 50% to obtain the first control parameter.
[0087] Step c3: If it is determined that the second temperature change rate is less than or equal to the first preset change rate, then determine whether the second temperature change rate is less than the second preset change rate.
[0088] In this embodiment, the second preset rate of change can be any one of 0.5℃ / s, 0.6℃ / s, or 0.8℃ / s, or other rates of change.
[0089] Step c4: If the second temperature change rate is determined to be less than the second preset change rate, then adjust the corresponding control parameters to obtain the second control parameters.
[0090] For example, if it is determined that the second temperature change rate is less than the second preset change rate, the proportional coefficient Kp is reduced by 10%, the integral coefficient Ki is increased by 40%, and the derivative coefficient Kd is reduced by 20% to obtain the second control parameter.
[0091] Step d: Calculate the corresponding pulse width modulation duty cycle based on the control parameters.
[0092] Specifically, step d includes: calculating the corresponding pulse width modulation duty cycle based on the first control parameter or the second control parameter.
[0093] S207: Based on the pulse width modulation duty cycle, control the fan control circuit to drive the fan unit to operate according to the control mode.
[0094] Specifically, the transistor is turned off, and the pulse width modulation duty cycle is output to the effect transistor to control the fan control circuit to drive the fan unit to operate according to the control mode.
[0095] Among them, the effect transistor is a MOSFET effect transistor.
[0096] also, Figure 3 The fan control circuit provided in the embodiments of this application specifically includes: a power module, an analog temperature sensor, a voltage divider resistor, a first ground line, a transistor base, a transistor collector, a first load, a second ground line, an effect transistor drain, an effect transistor gate, a first pin, a second pin, a third ground line, a fourth ground line, a voltage divider resistor, a second load, a digital pin, a third pin, and a pull-up resistor.
[0097] The power supply module is connected to the analog temperature sensor, the base of the transistor, the collector of the transistor, the drain of the effect transistor, the gate of the effect transistor, the second pin, the third ground line, and the digital pins respectively.
[0098] The power supply module has a 5V output.
[0099] The second pin is the Arduino VIN pin.
[0100] The circuit connection between the analog temperature sensor and the voltage divider resistor;
[0101] The simulated temperature sensor is a thermistor.
[0102] The voltage divider resistor is connected to the first ground wire in the circuit.
[0103] The transistor electrode is connected in circuitry to the first load.
[0104] The first load is connected to the circuit between the drain of the effect transistor and the second ground.
[0105] The gate of the effect transistor is connected to the first pin via a circuit.
[0106] The first pin is the Arduino PWM pin.
[0107] The third ground wire is connected to the fourth ground wire, the voltage divider resistor, and the second load in the circuit.
[0108] The digital pins are connected to the circuit between the third pin and the pull-up resistor, respectively.
[0109] The third pin is the DS18B20 DQ; it has a 5V output with a pull-up resistor.
[0110] In summary, the server fan control method provided in this embodiment collects the first temperature value of the air outlet of the server's fan unit and the second temperature value of the server's processor heatsink within the current period; determines the mode switching threshold of the fan unit; calculates the temperature difference between the first temperature value and the preset target temperature; determines whether the temperature difference is greater than the mode switching threshold; if the temperature difference is greater than the mode switching threshold, the fan control circuit is controlled to drive the fan unit to run at full speed; if the temperature difference is less than or equal to the mode switching threshold, the pulse width modulation duty cycle of the fan unit's control circuit is determined based on the second temperature value; and based on the pulse width modulation duty cycle, the fan control circuit is controlled to drive the fan unit to run in a control mode. By processing the collected first temperature value of the air outlet and the second temperature value of the heatsink, different modes of fan control are achieved, increasing the fan control methods, making it applicable to different server operating scenarios, avoiding frequent fan start-stop, and improving fan lifespan.
[0111] In addition, the server fan control method provided in this embodiment enables coarse or fine control of the fan unit by flexibly switching between full-speed operation mode and control mode, thereby shortening the response time of fan unit control and improving the precise control of server temperature.
[0112] In addition, the server fan control method provided in this embodiment obtains the historical temperature value of the air outlet and the cycle duration in the previous cycle; calculates the first temperature change rate based on the first temperature value, the historical temperature value of the air outlet and the cycle duration; and determines the corresponding mode switching threshold based on the first temperature change rate. This realizes the dynamic adjustment of the mode switching threshold, which avoids sudden changes in fan unit speed caused by switching the fan operation mode based on the mode switching threshold, and reduces the noise and energy consumption of the fan unit.
[0113] Furthermore, the server fan control method provided in this embodiment determines the temperature difference between a first temperature value at the air outlet and a second temperature value at the heat sink; determines whether the temperature difference is greater than a preset temperature difference threshold; if the temperature difference is greater than the preset temperature difference threshold, determines the duration for which the temperature difference is greater than the preset temperature difference threshold; if the duration is greater than the preset duration, determines that the analog temperature sensor and / or digital temperature sensor is abnormal; after determining that the analog temperature sensor and / or digital temperature sensor is abnormal, a backup sensor is activated, thereby avoiding server operation failures caused by single-point sensor failures and enhancing the operational reliability of the server.
[0114] In addition, the server fan control method provided in this embodiment generates an alarm prompt based on the abnormality of the analog temperature sensor and / or digital temperature sensor; controls the fan control circuit to drive the fan unit to run in full-speed mode; and responds to sensor abnormalities by outputting alarms and running the fan unit at full speed to dissipate heat, thereby further enhancing the operational reliability of the server.
[0115] Figure 4 A flowchart illustrating the server fan control method provided in this application embodiment. Figure 2 In the embodiments of this application, in Figure 2 Based on the provided embodiments, a detailed explanation of the specific implementation method for another fan unit control method after step S205 is given. For example... Figure 4 As shown, the method includes:
[0116] S401: If the temperature difference is less than or equal to the mode switching threshold, the first temperature value and the second temperature value are fused to obtain a fused temperature value.
[0117] Specifically, S401 includes steps a~b:
[0118] Step a: Determine the weight value of the first temperature value based on the first temperature change rate.
[0119] In this embodiment, the formula for calculating the weight value of the first temperature value based on the first temperature change rate includes:
[0120]
[0121] In the formula, These are weight values; This represents the first rate of temperature change.
[0122] Step b: Based on the weight values, the first temperature value and the second temperature value are fused to obtain the corresponding fused temperature value.
[0123] In this embodiment, the first temperature value and the second temperature value are fused according to the weight value to obtain the corresponding temperature fusion value. The calculation formula includes:
[0124]
[0125] In the formula, This is the temperature fusion value; This is the first temperature value; This is the second temperature value.
[0126] S402: Obtain the historical temperature values of the air outlet and the radiator in the previous cycle, as well as the cycle duration.
[0127] S403: Combine the historical temperature values of the air outlet and the radiator to obtain the historical temperature fusion value.
[0128] Specifically, based on the weighted values, the historical temperature values of the air outlet and the radiator are merged to obtain a historical temperature fusion value.
[0129] S404: Calculate the third temperature change rate based on the temperature fusion value, historical temperature fusion value, and cycle duration.
[0130] S405: Determine the corresponding control parameters based on the third temperature change rate.
[0131] S406: Calculate the corresponding pulse width modulation duty cycle based on the control parameters.
[0132] S407: Based on the pulse width modulation duty cycle, the fan control circuit drives the fan unit to operate according to the control mode.
[0133] In summary, the server fan control method provided in this embodiment, if the temperature difference is less than or equal to the mode switching threshold, fuses the first and second temperature values to obtain a fused temperature value; acquires the historical temperature values of the air outlet and the heat sink in the previous cycle, along with the cycle duration; fuses the historical temperature values of the air outlet and the heat sink to obtain a historical fused temperature value; calculates a third temperature change rate based on the fused temperature value, the historical fused temperature value, and the cycle duration; determines the corresponding control parameters based on the third temperature change rate; calculates the corresponding pulse width modulation duty cycle based on the control parameters; and controls the fan control circuit to drive the fan unit to operate according to the control mode based on the pulse width modulation duty cycle. By fusing the temperature data, the operation of the fan unit is controlled collaboratively, making the control of the fan unit more precise.
[0134] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0135] Figure 5 This is a schematic diagram of the server fan control device provided in an embodiment of this application. Figure 5 As shown, embodiments of this application also provide a server fan control device, including: a data acquisition module 501, a first determination module 502, a first calculation module 503, a first judgment module 504, a first control module 505, a second determination module 506, and a second control module 507.
[0136] The acquisition module 501 is used to acquire the first temperature value of the air outlet of the server's fan unit and the second temperature value of the server's processor heat sink within the current period.
[0137] The first determining module 502 is used to determine the mode switching threshold of the fan unit.
[0138] The first calculation module 503 is used to calculate the temperature difference between the first temperature value and the preset target temperature.
[0139] The first judgment module 504 is used to determine whether the temperature difference is greater than the mode switching threshold.
[0140] The first control module 505 is used to control the fan control circuit to drive the fan unit to run at full speed if the temperature difference is greater than the mode switching threshold.
[0141] The second determining module 506 is used to determine the pulse width modulation duty cycle of the fan unit's control circuit based on the second temperature value if the temperature difference is less than or equal to the mode switching threshold.
[0142] The second control module 507 is used to control the fan control circuit to drive the fan unit to operate according to the control mode based on the pulse width modulation duty cycle.
[0143] In one possible implementation, the first determining module 502 specifically includes:
[0144] The acquisition unit is used to acquire the historical temperature value of the air outlet and the cycle duration in the previous cycle.
[0145] The calculation unit is used to calculate the first temperature change rate based on the first temperature value, the historical temperature value of the air outlet, and the cycle duration.
[0146] The determining unit is used to determine the corresponding mode switching threshold based on the first temperature change rate.
[0147] In one possible implementation, the second determining module 506 specifically includes:
[0148] The acquisition unit is used to acquire the historical temperature value of the radiator and the cycle duration in the previous cycle if the temperature difference is less than or equal to the mode switching threshold.
[0149] The first calculation unit is used to calculate the second temperature change rate based on the second temperature value, the historical temperature value of the radiator, and the cycle duration.
[0150] The determination unit is used to determine the corresponding control parameters based on the second temperature change rate.
[0151] The second calculation unit is used to calculate the corresponding pulse width modulation duty cycle based on the control parameters.
[0152] In one possible implementation, the control parameter is either a first control parameter or a second control parameter; correspondingly, the determining unit specifically includes:
[0153] The first judgment unit is used to determine whether the second temperature change rate is greater than the first preset change rate.
[0154] The first adjustment unit is used to adjust the corresponding control parameters to obtain the first control parameters if it is determined that the second temperature change rate is greater than the first preset change rate.
[0155] The second judgment unit is used to determine whether the second temperature change rate is less than the second preset change rate if the second temperature change rate is determined to be less than or equal to the first preset change rate.
[0156] The second adjustment unit is used to adjust the corresponding control parameters to obtain the second control parameters if it is determined that the second temperature change rate is less than the second preset change rate.
[0157] Accordingly, the second calculation unit is specifically used to calculate the corresponding pulse width modulation duty cycle based on the first control parameter or the second control parameter.
[0158] In one possible implementation, the device further includes:
[0159] The first fusion module is used to fuse the first temperature value and the second temperature value to obtain a fused temperature value if the temperature difference is less than or equal to the mode switching threshold.
[0160] The acquisition module is used to acquire the historical temperature values of the air outlet and the radiator in the previous cycle, as well as the cycle duration.
[0161] The second fusion module is used to fuse the historical temperature values of the air outlet and the radiator to obtain the historical temperature fusion value.
[0162] The second calculation module is used to calculate the third temperature change rate based on the temperature fusion value, historical temperature fusion value, and cycle duration.
[0163] The first determining module is used to determine the corresponding control parameters based on the third temperature change rate.
[0164] The third calculation module is used to calculate the corresponding pulse width modulation duty cycle based on the control parameters.
[0165] The third control module is used to control the fan control circuit to drive the fan unit to operate according to the control mode based on the pulse width modulation duty cycle.
[0166] In one possible implementation, the first fusion module specifically includes:
[0167] The determining unit is used to determine the weight value of the first temperature value based on the first temperature change rate.
[0168] The fusion unit is used to fuse the first temperature value and the second temperature value according to the weight value to obtain the corresponding temperature fusion value.
[0169] In one possible implementation, the acquisition module 501 specifically includes:
[0170] The first acquisition unit is used to acquire the analog voltage signal of the air outlet of the server's fan unit within the current period using an analog temperature sensor.
[0171] The second acquisition unit is used to acquire the digital temperature signal of the server's processor heatsink within the current period using a digital temperature sensor.
[0172] The conversion unit is used to convert the analog voltage signal into a first temperature value.
[0173] The parsing unit is used to parse the digital temperature signal into a second temperature value.
[0174] In one possible implementation, the device further includes:
[0175] The second determining module is used to determine the temperature difference between the first temperature value of the air outlet and the second temperature value of the radiator.
[0176] The second judgment module is used to determine whether the temperature difference value is greater than the preset temperature difference threshold.
[0177] The third determining module is used to determine the duration for which the temperature difference value is greater than the preset temperature difference threshold if the temperature difference value is determined to be greater than the preset temperature difference threshold.
[0178] The determination module is used to determine that the analog temperature sensor and / or digital temperature sensor is abnormal if the determination duration exceeds a preset duration.
[0179] The enable module is used to activate a backup sensor after determining that the analog temperature sensor and / or digital temperature sensor is malfunctioning.
[0180] In one possible implementation, the device further includes:
[0181] The generation module is used to generate alarm prompts based on abnormalities in analog and / or digital temperature sensors.
[0182] The fourth control module is used to control the fan control circuit to drive the fan unit to run at full speed.
[0183] For a description of the features in the embodiment corresponding to the server fan control device, please refer to the relevant description of the embodiment corresponding to the server fan control method, which will not be repeated here.
[0184] Figure 6 A schematic diagram of the structure of the electronic device provided in this application. Figure 6 As shown, the electronic device provided in this embodiment includes at least one processor 601 and a memory 602. Optionally, the electronic device further includes a communication component 603. The processor 601, memory 602, and communication component 603 are connected via a bus.
[0185] In a specific implementation, at least one processor 601 executes computer execution instructions stored in memory 602, causing at least one processor 601 to execute the above-described server fan control method embodiment.
[0186] The specific implementation process of processor 601 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0187] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0188] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0189] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0190] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described server fan control method embodiments when it is run.
[0191] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0192] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above-described server fan control method embodiments.
[0193] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above-described server fan control method embodiments.
[0194] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can 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.
[0195] The above provides a detailed description of a server fan control method and electronic device provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and its core ideas. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A server fan control method, characterized in that, include: Collect the first temperature value of the air outlet of the server's fan unit and the second temperature value of the server's processor heat sink within the current period; Determine the mode switching threshold of the fan unit; Calculate the temperature difference between the first temperature value and the preset target temperature; Determine whether the temperature difference is greater than the mode switching threshold; If the temperature difference is greater than the mode switching threshold, the fan control circuit will drive the fan unit to run at full speed. If the temperature difference is less than or equal to the mode switching threshold, the pulse width modulation duty cycle of the control circuit of the fan unit is determined based on the second temperature value. Based on the pulse width modulation duty cycle, the fan control circuit drives the fan unit to operate according to the control mode.
2. The server fan control method according to claim 1, characterized in that, Determining the mode switching threshold of the fan unit includes: Obtain the historical temperature value and cycle duration of the air outlet in the previous cycle; The first temperature change rate is calculated based on the first temperature value, the historical temperature value of the air outlet, and the cycle duration. The corresponding mode switching threshold is determined based on the first temperature change rate.
3. The server fan control method according to claim 1, characterized in that, If the temperature difference is less than or equal to the mode switching threshold, then determining the pulse width modulation duty cycle of the fan unit's control circuit based on the second temperature value includes: If the temperature difference is less than or equal to the mode switching threshold, then the historical temperature value of the radiator and the cycle duration in the previous cycle are obtained. The second temperature change rate is calculated based on the second temperature value, the historical temperature value of the radiator, and the cycle duration. The corresponding control parameters are determined based on the second temperature change rate; The corresponding pulse width modulation duty cycle is calculated based on the control parameters.
4. The server fan control method according to claim 3, characterized in that, The control parameter is either the first control parameter or the second control parameter; Accordingly, determining the corresponding control parameters based on the second temperature change rate includes: Determine whether the second temperature change rate is greater than the first preset change rate; If it is determined that the second temperature change rate is greater than the first preset change rate, then the corresponding control parameters are adjusted to obtain the first control parameters; If it is determined that the second temperature change rate is less than or equal to the first preset change rate, then it is determined whether the second temperature change rate is less than the second preset change rate. If it is determined that the second temperature change rate is less than the second preset change rate, then the corresponding control parameters are adjusted to obtain the second control parameters; Accordingly, the step of calculating the corresponding pulse width modulation duty cycle based on the control parameters includes: The corresponding pulse width modulation duty cycle is calculated based on the first control parameter or the second control parameter.
5. The server fan control method according to claim 2, characterized in that, After controlling the fan control circuit to drive the fan unit to operate at full speed if the temperature difference is greater than the mode switching threshold, the method further includes: If the temperature difference is less than or equal to the mode switching threshold, the first temperature value and the second temperature value are fused to obtain a temperature fusion value. Obtain the historical temperature value of the air outlet and the historical temperature value of the radiator in the previous cycle, as well as the cycle duration. The historical temperature values of the air outlet and the radiator are combined to obtain a historical temperature fusion value. The third temperature change rate is calculated based on the temperature fusion value, the historical temperature fusion value, and the cycle duration. The corresponding control parameters are determined based on the third temperature change rate. Calculate the corresponding pulse width modulation duty cycle based on the control parameters; Based on the pulse width modulation duty cycle, the fan control circuit drives the fan unit to operate according to the control mode.
6. The server fan control method according to claim 5, characterized in that, The step of fusing the first temperature value and the second temperature value to obtain a fused temperature value includes: The weight value of the first temperature value is determined based on the first temperature change rate; Based on the weight values, the first temperature value and the second temperature value are fused to obtain the corresponding fused temperature value.
7. The server fan control method according to claim 1, characterized in that, The acquisition of the first temperature value of the air outlet of the server's fan unit and the second temperature value of the server's processor heatsink within the current period includes: The analog voltage signal at the air outlet of the server's fan unit is collected during the current cycle by using an analog temperature sensor. The digital temperature signal of the server's processor heatsink is collected using a digital temperature sensor during the current period. The analog voltage signal is converted into the first temperature value; The digital temperature signal is parsed into the second temperature value.
8. The server fan control method according to claim 7, characterized in that, Also includes: Determine the temperature difference between the first temperature value of the air outlet and the second temperature value of the radiator; Determine whether the temperature difference value is greater than a preset temperature difference threshold; If it is determined that the temperature difference value is greater than the preset temperature difference threshold, then the duration for which the temperature difference value is greater than the preset temperature difference threshold is determined. If the duration is determined to be longer than the preset duration, then the analog temperature sensor and / or the digital temperature sensor is determined to be abnormal. If the analog temperature sensor and / or the digital temperature sensor are found to be malfunctioning, a backup sensor is activated.
9. The server fan control method according to claim 8, characterized in that, Following the activation of the backup sensor, the following is also included: An alarm is generated based on an anomaly in the analog temperature sensor and / or the digital temperature sensor. The fan control circuit drives the fan unit to operate at full speed.
10. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the server fan control method as described in any one of claims 1 to 9 when executing the computer program.
Citation Information
Patent Citations
Intelligent control fan heat radiation system and method for charging pile
CN108430191A
Heat dissipation control system and method and immersed liquid cooling system
CN117769224A