Server fan control method and electronic equipment
By collecting the temperature values of the server fan unit and processor heat sink, calculating the temperature difference and switching the mode, the frequent start and stop problem caused by the single traditional fan control method is solved, and the fan life is extended and the temperature control is more accurate.
Patent Information
- Application Number
- CN202511223220.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-29
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-08-29
AI Technical Summary
Traditional server fan control methods have a single fan control mode, resulting in frequent starts and stops, which shortens the fan life.
By collecting the temperature values of the fan unit outlet and the processor heat sink, the temperature difference is calculated to determine whether it is greater than the mode switching threshold. If it is greater, it runs at full speed. Otherwise, the pulse width modulation duty cycle is determined according to the temperature value for regulation.
It realizes the diversification of fan control methods, avoids frequent start and stop, prolongs fan life, and improves the accuracy and response time of server temperature control.
Smart Images

Figure CN120739726A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a server fan control method and electronic equipment. Background Art
[0002] Server fans are the core executive components of data center thermal management systems, maintaining server equipment within a safe temperature range through forced convection cooling. Their mechanism of action is primarily that the fan's aerodynamically designed impeller generates directional airflow, transferring heat generated by heat-generating components like the CPU through the heat sink and ultimately out of the cabinet. Therefore, server fan control, as a core technology for intelligent speed regulation that balances cooling efficiency and energy consumption, is particularly important in server cooling.
[0003] Conventional server fan control methods utilize the characteristics of temperature sensors, such as the temperature-dependent resistance of a thermistor, to obtain the temperature of the corresponding heating element. 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 a reduced speed or even stop. However, these conventional server fan control methods employ a single control method, which can lead to frequent fan starts and stops, shortening fan lifespan. Summary of the Invention
[0004] The present application provides a server fan control method and electronic device to at least solve the problem of a traditional server fan control method in the related art, in which the fan control mode is single, which easily causes the fan to start and stop frequently and reduces the fan life.
[0005] The present application provides a server fan control method, comprising: collecting a first temperature value of an air outlet of a fan unit of a server and a second temperature value of a heat sink of a processor of the server within a current cycle; determining a mode switching threshold of the fan unit; calculating a 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 a fan control circuit to drive the fan unit to operate in a full-speed operation mode; if the temperature difference is less than or equal to the mode switching threshold, determining a pulse width modulation duty cycle of a control circuit of the fan unit according to the second temperature value; and controlling the fan control circuit to drive the fan unit to operate in a regulation mode according to the pulse width modulation duty cycle.
[0006] 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 server fan control methods when executing the computer program.
[0007] The server fan control method and electronic device provided by the embodiments of the present application collect the first temperature value of the air outlet of the fan unit of the server and the second temperature value of the radiator of the processor of the server in the current cycle; determine the mode switching threshold of the fan unit; calculate the temperature difference between the first temperature value and the preset target temperature; judge 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 operate in full-speed operation mode; if the temperature difference is less than or equal to the mode switching threshold, determine the pulse width modulation duty cycle of the control circuit of the fan unit according to the second temperature value; according to the pulse width modulation duty cycle, control the fan control circuit to drive the fan unit to operate in the regulation mode, and process the collected first temperature value of the air outlet and the second temperature value of the radiator to realize fan control in different modes, increase the fan control method, make it suitable for different server operation scenarios, avoid frequent start and stop of the fan, and improve the fan life. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] 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.
[0009] Figure 1 A schematic diagram of an application scenario of the server fan control method provided in an embodiment of the present application;
[0010] Figure 2 Schematic diagram of the process of the server fan control method provided in the embodiment of the application Figure 1 ;
[0011] Figure 3 A fan control circuit provided in an embodiment of the present application;
[0012] Figure 4 Schematic diagram of the process of the server fan control method provided in the embodiment of the application Figure 2 ;
[0013] Figure 5 A schematic diagram of the structure of a server fan control device provided in an embodiment of the present application;
[0014] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0015] 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.
[0016] 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.
[0017] Server fans are the core executive components of data center thermal management systems, maintaining server equipment within a safe temperature range through forced convection cooling. Their mechanism of action is primarily that the fan generates a directional airflow based on an aerodynamically designed impeller, transferring the heat generated by heat-generating components such as the central processing unit (CPU) into the airflow through the heat sink, and ultimately discharging it from the cabinet. Therefore, server fan control, as a core technology for intelligent speed regulation strategies to balance heat dissipation efficiency and energy consumption, is particularly important in server heat dissipation. In related technologies, traditional server fan control methods utilize the characteristics of temperature sensors, such as the temperature-dependent resistance of thermistors, to obtain the temperature value of the corresponding heating 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 running. However, in related technologies, traditional server fan control methods have a single fan control method, which can easily lead to frequent fan starts and stops, reducing fan life.
[0018] In order to solve the above technical problems, the embodiments of the present application propose the following technical concepts: the inventor considers the collected first temperature value of the air outlet of the fan unit and the second temperature value of the radiator of the processor; calculates the temperature difference between the first temperature value and the preset target temperature, and compares the temperature difference based on the mode switching threshold. If the temperature difference is greater than the mode switching threshold, the fan unit is controlled to operate in full-speed operation mode; if the temperature difference is less than or equal to the mode switching threshold, the pulse width modulation duty cycle is determined according to the second temperature value; according to the pulse width modulation duty cycle, the fan unit is controlled to operate in the control mode, and the collected first temperature value of the air outlet and the second temperature value of the radiator are processed to realize fan control in different modes, thereby increasing the fan control method, making it suitable for different server operation scenarios, avoiding frequent start and stop of the fan, and improving the fan life.
[0019] 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.
[0020] In conjunction with the specific application environment architecture or specific hardware architecture on which the execution of the server fan control method depends, the specific application environment architecture or specific hardware architecture is described here. Figure 1 , Figure 1 Schematic diagram of an application scenario of a server fan control method.
[0021] like Figure 1 As shown, the application scenario of the server fan control method includes: server 10.
[0022] The server 10 may be a single server or a cluster of multiple servers, or other devices. The server 10 includes a controller 101 , a fan unit 102 , a processor 103 , a heat sink 104 , and a fan control circuit 105 .
[0023] The controller 101 may be a microcontroller in a server or a baseboard management controller.
[0024] The controller 101 collects a first temperature value of the air outlet of the fan unit 102 of the server 10 and a second temperature value of the radiator 104 of the processor 103 of the server 10 in the current cycle; determines a mode switching threshold of the fan unit 102; calculates a temperature difference between the first temperature value and a 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, controls the fan control circuit 105 to drive the fan unit 102 to operate in full-speed operation mode; if the temperature difference is less than or equal to the mode switching threshold, determines a 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 operate in a control mode according to the pulse width modulation duty cycle.
[0025] Figure 2 Schematic diagram of the process of the server fan control method provided in the embodiment of the application Figure 1 ,like Figure 2 As shown, an embodiment of the present application provides a server fan control method, which is described in detail as follows:
[0026] S201: Collecting a first temperature value of an air outlet of a fan unit of a server and a second temperature value of a heat sink of a processor of the server in a current cycle.
[0027] Specifically, S201 includes steps a to d:
[0028] Step a: Using an analog temperature sensor, collect analog voltage signals from the air outlet of the fan unit of the server in the current cycle.
[0029] In this embodiment, the analog temperature sensor may be a thermistor or other sensors.
[0030] In this embodiment, the fan unit may be a single electric fan or a cluster of multiple electric fans.
[0031] Exemplarily, the fan unit is a 4-wire PWM fan.
[0032] Step b: using a digital temperature sensor to collect a digital temperature signal of a heat sink of a processor of the server in the current cycle.
[0033] For example, the model of the digital temperature sensor is 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 through the Steinhart-Hart equation.
[0036] Step d: Analyze the digital temperature signal into a second temperature value.
[0037] In addition, after S201, steps e to i are also included:
[0038] Step e: determining a temperature difference between a first temperature value of the air outlet and a second temperature value of the radiator;
[0039] Step f: Determine whether the temperature difference is greater than a preset temperature difference threshold.
[0040] In this embodiment, the preset temperature difference threshold is any one of ±5°C, ±6°C or ±7°C, or other temperature difference values.
[0041] Step g: 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.
[0042] Step h: If the duration is determined to be greater than a preset duration, it is determined that the analog temperature sensor and / or the digital temperature sensor is abnormal.
[0043] In this embodiment, the preset duration may be any one of 10s, 15s, or 30s, or other durations.
[0044] Step i: After determining that the analog temperature sensor and / or the digital temperature sensor is abnormal, enable the backup sensor.
[0045] In addition, after step i, steps j to k are also included:
[0046] Step j: Generate an alarm prompt based on the abnormality of the analog temperature sensor and / or the digital temperature sensor.
[0047] Step k: Control the fan control circuit to drive the fan unit to operate in full-speed operation mode.
[0048] S202: Determine a mode switching threshold of the fan unit.
[0049] Specifically, S202 includes steps a to c:
[0050] Step a: Obtain the historical temperature value and cycle duration of the air outlet in the previous cycle.
[0051] Step b: Calculate a first temperature change rate based on the first temperature value, historical temperature values of the air outlet, and the cycle duration.
[0052] In this embodiment, the calculation formula for calculating the first temperature change rate is as follows:
[0053]
[0054] Where, is the first temperature change rate; is the difference between the first temperature value and the historical temperature value of the air outlet; is the cycle duration.
[0055] Step c: determining a corresponding mode switching threshold according to the first temperature change rate.
[0056] Specifically, step c includes steps c1 to c3:
[0057] Step c1: determining the temperature change acceleration according to the first temperature change rate of the current cycle and the first temperature change rate of the previous cycle.
[0058] In this embodiment, the temperature change acceleration is determined according to the first temperature change rate of the current cycle and the first temperature change rate of the previous cycle. The calculation formula includes:
[0059]
[0060] Where, is the temperature change acceleration; is the first temperature change rate of the current cycle; is the first temperature change rate of the previous cycle.
[0061] Step c2: determining a stable temperature change rate according to the first temperature change rate of the current cycle and the first temperature change rate of the previous cycle.
[0062] In this embodiment, a calculation formula for determining a 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] Where, is a stable temperature change rate; is the weight coefficient, set .
[0065] Step c3: determining a corresponding mode switching threshold according to the temperature change acceleration, the stable temperature change rate, the first temperature value, and the preset target temperature.
[0066] In this embodiment, the calculation formula for determining the corresponding mode switching threshold according to the temperature change acceleration, the stable temperature change rate, the first temperature value, and the preset target temperature includes:
[0067]
[0068] Where, is the mode switching threshold; A is the fixed compensation system, generally 5; K1 is the first-order acceleration coefficient, generally 0.3; K2 is the second-order acceleration coefficient, generally 0.15; K3 is the exponential compensation coefficient, generally 2; is the temperature difference attenuation factor, which is generally set to 0.2; is the first temperature value; is 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 a mode switching threshold.
[0071] S205: If the temperature difference is greater than the mode switching threshold, the fan control circuit is controlled to drive the fan unit to operate in the full-speed operation mode.
[0072] Specifically, step S205 is as follows: if the temperature difference is greater than the mode switching threshold, the transistor is controlled to be turned on to control the fan control circuit to drive the fan unit to operate in the full-speed operation mode.
[0073] The transistor is an NPN transistor.
[0074] S206: If the temperature difference is less than or equal to the mode switching threshold, determine a pulse width modulation duty cycle of the control circuit of the fan unit according to the second temperature value.
[0075] Specifically, S206 includes steps a to d:
[0076] Step a: If the temperature difference is less than or equal to the mode switching threshold, the historical temperature value and cycle duration of the radiator in the previous cycle are obtained.
[0077] Step b: Calculate the second temperature change rate according to the second temperature value, the historical temperature value of the radiator and the cycle duration.
[0078] In this embodiment, the calculation formula for calculating the second temperature change rate according to the second temperature value, the historical temperature value of the radiator, and the cycle duration includes:
[0079]
[0080] Where, is the second temperature change rate; is the difference between the second temperature value and the historical temperature value of the radiator; is the cycle duration.
[0081] Step c: determining corresponding control parameters according to the second temperature change rate.
[0082] In this embodiment, the control parameter is the first control parameter or the second control parameter; accordingly, 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 change rate may be any one of 2° C. / s, 3° C. / s, or 5° C. / s, or other change rates.
[0085] Step c2: If it is determined that the second temperature change rate is greater than the first preset change rate, the corresponding control parameter is adjusted to obtain the first control parameter.
[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 reduced by 30%, and the differential 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 change rate may be any one of 0.5° C. / s, 0.6° C. / s, or 0.8° C. / s, or other change rates.
[0089] Step c4: If it is determined that the second temperature change rate is less than the second preset change rate, the corresponding control parameter is adjusted to obtain the second control parameter.
[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 differential coefficient Kd is reduced by 20% to obtain the second control parameter.
[0091] Step d: Calculate the corresponding pulse width modulation duty cycle according to the control parameters.
[0092] Specifically, step d specifically includes: calculating the corresponding pulse width modulation duty cycle according to the first control parameter or the second control parameter.
[0093] S207: Control the fan control circuit to drive the fan unit to operate in the regulation mode according to the pulse width modulation duty cycle.
[0094] Specifically, the transistor is turned off and the pulse width modulation duty cycle is output to the effect tube, which is used to control the fan control circuit to drive the fan unit to operate according to the regulation mode.
[0095] Among them, the effect tube is a MOSFET effect tube.
[0096] also, Figure 3 The fan control circuit provided in an embodiment of the present 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 module is respectively connected to the analog temperature sensor, the transistor base, the transistor collector, the effect transistor drain, the effect transistor gate, the second pin, the third ground wire and the digital pin;
[0098] Among them, the power module has a 5V output.
[0099] The second pin is the Arduino VIN pin.
[0100] Analog temperature sensor, connected to the circuit between the voltage divider resistor;
[0101] Among them, the analog temperature sensor is a thermistor.
[0102] A voltage dividing resistor is connected to the first ground line;
[0103] The transistor electrode is circuit-connected to the first load;
[0104] A first load is connected to the circuit between the drain of the effect tube and the second ground line;
[0105] The gate of the effect tube is connected to the circuit between the first pin;
[0106] Among them, the first pin is the Arduino PWM pin.
[0107] The third ground line is respectively connected to the fourth ground line, the voltage dividing resistor and the circuit between the second load;
[0108] The digital pins are respectively connected to the third pin and the circuit between the pull-up resistor.
[0109] Among them, the third pin is DS18B20 DQ; pull-up resistor 5V output.
[0110] In summary, the server fan control method provided in this embodiment collects the first temperature value of the air outlet of the fan unit of the server and the second temperature value of the radiator of the processor of the server in the current cycle; 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, controls the fan control circuit to drive the fan unit to operate in full-speed operation mode; if the temperature difference is less than or equal to the mode switching threshold, determines the pulse width modulation duty cycle of the control circuit of the fan unit according to the second temperature value; according to the pulse width modulation duty cycle, controls the fan control circuit to drive the fan unit to operate in the regulation mode, and processes the collected first temperature value of the air outlet and the second temperature value of the radiator to realize fan control in different modes, thereby increasing the fan control method, making it suitable for different server operation scenarios, avoiding frequent start and stop of the fan, and improving the fan life.
[0111] In addition, the server fan control method provided in this embodiment realizes coarse or fine control of the fan unit through flexible 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 and cycle duration of the air outlet 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; determines the corresponding mode switching threshold based on the first temperature change rate, thereby realizing dynamic adjustment of the mode switching threshold, thereby avoiding sudden changes in the fan unit speed caused by switching the fan operation mode according to the mode switching threshold, and reducing the noise and energy consumption of the fan unit.
[0113] In addition, the server fan control method provided in this embodiment determines the temperature difference between the first temperature value of the air outlet and the second temperature value of the radiator; judges whether the temperature difference is greater than a preset temperature difference threshold; if it is determined that 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 it is determined that the duration is greater than the preset duration, determines that the analog temperature sensor and / or the digital temperature sensor is abnormal; after determining that the analog temperature sensor and / or the digital temperature sensor is abnormal, enables the backup sensor, thereby avoiding server operation failures caused by single-point failures of the sensor and enhancing the operation reliability of the server.
[0114] In addition, the server fan control method provided in this embodiment generates an alarm prompt based on abnormalities of the analog temperature sensor and / or digital temperature sensor; controls the fan control circuit to drive the fan unit to operate in full-speed operation mode, and responds to sensor abnormalities by outputting alarms and running the fan unit at full speed to dissipate heat, thereby further enhancing the operating reliability of the server.
[0115] Figure 4 Schematic diagram of the process of the server fan control method provided in the embodiment of the application Figure 2 In the embodiment of the present application, Figure 2 Based on the embodiment provided, a specific implementation method of another fan unit control method after step S205 is described in detail. 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 temperature fusion value.
[0117] Specifically, S401 includes steps a and b:
[0118] Step a: Determine a weight value of the first temperature value according to the first temperature change rate.
[0119] In this embodiment, the calculation formula for determining the weight value of the first temperature value according to the first temperature change rate includes:
[0120]
[0121] Where, is the weight value; is the first temperature change rate.
[0122] Step b: According to the weight value, the first temperature value and the second temperature value are fused to obtain a corresponding temperature fusion value.
[0123] In this embodiment, the first temperature value and the second temperature value are fused according to the weight value to obtain a corresponding temperature fusion value, and the calculation formula includes:
[0124]
[0125] Where, is the temperature fusion value; is the first temperature value; is the second temperature value.
[0126] S402: Obtain historical temperature values of the air outlet and the radiator in the previous cycle and the cycle duration.
[0127] S403: Fusing the historical temperature value of the air outlet and the historical temperature value of the radiator to obtain a historical temperature fusion value.
[0128] Specifically, according to the weight value, the historical temperature value of the air outlet and the historical temperature value of the radiator are fused to obtain a historical temperature fusion value.
[0129] S404: Calculate a third temperature change rate according to the temperature fusion value, the historical temperature fusion value, and the cycle duration.
[0130] S405: Determine corresponding control parameters according to the third temperature change rate.
[0131] S406: Calculate the corresponding pulse width modulation duty cycle according to the control parameters.
[0132] S407: Control the fan control circuit to drive the fan unit to operate in the regulation mode according to the pulse width modulation duty cycle.
[0133] In summary, the server fan control method provided in this embodiment is as follows: if the temperature difference is less than or equal to the mode switching threshold, the first temperature value and the second temperature value are merged to obtain a temperature fusion value; the historical temperature value of the air outlet and the historical temperature value of the radiator in the previous cycle and the cycle duration are obtained; the historical temperature value of the air outlet and the historical temperature value of the radiator are merged to obtain a historical temperature fusion value; the third temperature change rate is calculated according to the temperature fusion value, the historical temperature fusion value and the cycle duration; the corresponding control parameter is determined according to the third temperature change rate; the corresponding pulse width modulation duty cycle is calculated according to the control parameter; according to the pulse width modulation duty cycle, the fan control circuit is controlled to drive the fan unit to operate in the control mode, and after the temperature data is merged, the operation of the fan unit is collaboratively controlled to make the control of the fan unit more precise.
[0134] 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.
[0135] Figure 5 This is a schematic diagram of the structure of the server fan control device provided in the embodiment of the present application. Figure 5 As shown, an embodiment of the present application also provides a server fan control device, including: a collection 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 collecting module 501 is configured to collect a first temperature value of an air outlet of a fan unit of a server and a second temperature value of a radiator of a processor of the server in a current period.
[0137] The first determining module 502 is configured to determine a mode switching threshold of the fan unit.
[0138] A first calculation module 503 is used to calculate the temperature difference between the first temperature value and the preset target temperature;
[0139] The first determination module 504 is configured to determine whether the temperature difference is greater than a mode switching threshold.
[0140] The first control module 505 is configured to control the fan control circuit to drive the fan unit to operate in a full-speed operation mode if the temperature difference is greater than a mode switching threshold.
[0141] The second determining module 506 is configured to determine a pulse width modulation duty cycle of a control circuit of the fan unit according to a second temperature value if the temperature difference is less than or equal to the mode switching threshold.
[0142] The second control module 507 is configured to control the fan control circuit to drive the fan unit to operate in a regulation mode according to the pulse width modulation duty cycle.
[0143] In a possible implementation, the first determining module 502 specifically includes:
[0144] The acquisition unit is used to obtain the historical temperature value of the air outlet in the previous cycle and the cycle duration.
[0145] The calculation unit is used to calculate the first temperature change rate according to the first temperature value, the historical temperature value of the air outlet and the cycle length.
[0146] A determining unit is configured to determine a corresponding mode switching threshold according to the first temperature change rate.
[0147] In a possible implementation, the second determining module 506 specifically includes:
[0148] The acquisition unit is configured to acquire the historical temperature value and cycle duration of the radiator 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 according to the second temperature value, the historical temperature value of the radiator and the cycle duration.
[0150] A determining unit is configured to determine a corresponding control parameter according to the second temperature change rate.
[0151] The second calculation unit is used to calculate the corresponding pulse width modulation duty cycle according to the control parameter.
[0152] In a possible implementation, the control parameter is the first control parameter or the second control parameter; accordingly, the determining unit specifically includes:
[0153] The first judging unit is configured to judge whether the second temperature change rate is greater than a first preset change rate.
[0154] The first adjustment unit is configured to adjust the corresponding control parameter to obtain the first control parameter if it is determined that the second temperature change rate is greater than the first preset change rate.
[0155] The second judgment unit is configured to judge 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 or equal to the first preset change rate.
[0156] The second adjustment unit is configured to adjust the corresponding control parameter to obtain the second control parameter if it is determined that the second temperature change rate is less than the second preset change rate.
[0157] Correspondingly, the second calculation unit is specifically configured to calculate a corresponding pulse width modulation duty cycle according to the first control parameter or the second control parameter.
[0158] In a possible implementation, the apparatus further includes:
[0159] The first fusion module is configured to fuse the first temperature value and the second temperature value to obtain a temperature fusion value if the temperature difference is less than or equal to the mode switching threshold.
[0160] The acquisition module is used to obtain the historical temperature values of the air outlet and the historical temperature values of the radiator in the previous cycle and the cycle duration.
[0161] The second fusion module is used to fuse the historical temperature value of the air outlet and the historical temperature value of the radiator to obtain a historical temperature fusion value.
[0162] The second calculation module is used to calculate the third temperature change rate according to the temperature fusion value, the historical temperature fusion value and the cycle duration.
[0163] The first determining module is configured to determine a corresponding control parameter according to the third temperature change rate.
[0164] The third calculation module is used to calculate the corresponding pulse width modulation duty cycle according to the control parameters.
[0165] The third control module is used to control the fan control circuit to drive the fan unit to operate in the regulation mode according to the pulse width modulation duty cycle.
[0166] In a possible implementation, the first fusion module specifically includes:
[0167] A determining unit is configured to determine a weight value of the first temperature value according to 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 a corresponding temperature fusion value.
[0169] In a possible implementation, the acquisition module 501 specifically includes:
[0170] The first acquisition unit is configured to acquire an analog voltage signal from an air outlet of a fan unit of the server in a current cycle through an analog temperature sensor.
[0171] The second acquisition unit is configured to acquire a digital temperature signal of a heat sink of a processor of the server in a current cycle through a digital temperature sensor.
[0172] The conversion unit is configured 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 a possible implementation, the apparatus further includes:
[0175] The second determining module is configured to determine a temperature difference between a first temperature value of the air outlet and a second temperature value of the radiator.
[0176] The second judgment module is used to judge whether the temperature difference value is greater than a preset temperature difference threshold.
[0177] The third determining module is configured to determine a duration during which the temperature difference value is greater than the preset temperature difference threshold value if it is determined that the temperature difference value is greater than the preset temperature difference threshold value.
[0178] The determination module is configured to determine that the analog temperature sensor and / or the digital temperature sensor is abnormal if the duration of the determination is greater than a preset duration.
[0179] The enabling module is used to enable the backup sensor after determining that the analog temperature sensor and / or the digital temperature sensor is abnormal.
[0180] In a possible implementation, the apparatus further includes:
[0181] The generation module is used to generate an alarm prompt according to an abnormality of the analog temperature sensor and / or the digital temperature sensor.
[0182] The fourth control module is used to control the fan control circuit to drive the fan unit to operate in a full-speed operation mode.
[0183] For the description of the features in the embodiment corresponding to the server fan control device, reference can be made to the relevant description of the embodiment corresponding to the server fan control method, which will not be repeated here.
[0184] Figure 6 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 6 As shown, the electronic device provided by 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, the memory 602 and the communication component 603 are connected via a bus.
[0185] During the specific implementation process, at least one processor 601 executes the computer-executable instructions stored in the memory 602 , so that the at least one processor 601 executes the above-mentioned server fan control method embodiment.
[0186] The specific implementation process of the processor 601 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.
[0187] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the application may be directly executed by a hardware processor or 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.
[0189] A bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.
[0190] 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 server fan control method embodiments when running.
[0191] 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.
[0192] 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 server fan control method embodiments are implemented.
[0193] 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 server fan control method embodiments are implemented.
[0194] 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.
[0195] The above is a detailed introduction to the server fan control method and electronic device provided by this application. This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only intended to help understand the method and core ideas of this application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of the claims of this application.
Claims
1. A server fan control method, characterized in that: include: Collecting a first temperature value of an air outlet of a fan unit of a server and a second temperature value of a radiator of a processor of the server within a current period; determining a mode switching threshold of the fan unit; Calculating a 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 a full-speed operation mode; If the temperature difference is less than or equal to the mode switching threshold, determining a pulse width modulation duty cycle of a control circuit of the fan unit according to the second temperature value; According to the pulse width modulation duty cycle, the fan control circuit is controlled to drive the fan unit to operate in a regulation mode.
2. The server fan control method according to claim 1, wherein: 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; Calculating a first temperature change rate according to the first temperature value, the historical temperature value of the air outlet, and the cycle duration; A corresponding mode switching threshold is determined according to the first temperature change rate.
3. The server fan control method according to claim 1, wherein: If the temperature difference is less than or equal to the mode switching threshold, determining a pulse width modulation duty cycle of a control circuit of the fan unit according to the second temperature value comprises: If the temperature difference is less than or equal to the mode switching threshold, obtaining a historical temperature value and cycle duration of the radiator in a previous cycle; Calculating a second temperature change rate according to the second temperature value, the historical temperature value of the radiator and the cycle duration; determining a corresponding control parameter according to the second temperature change rate; The corresponding pulse width modulation duty cycle is calculated according to the control parameter.
4. The server fan control method according to claim 3, wherein: Wherein the control parameter is the first control parameter or the second control parameter; Accordingly, determining the corresponding control parameter according to the second temperature change rate includes: determining whether the second temperature change rate is greater than a first preset temperature change rate; If it is determined that the second temperature change rate is greater than the first preset change rate, adjusting the corresponding control parameter to obtain the first control parameter; If it is determined that the second temperature change rate is less than or equal to the first preset change rate, determining whether the second temperature change rate is less than a second preset change rate; If it is determined that the second temperature change rate is less than the second preset change rate, adjusting the corresponding control parameter to obtain a second control parameter; Accordingly, the calculating of the corresponding pulse width modulation duty cycle according to the control parameter includes: The corresponding pulse width modulation duty cycle is calculated according to the first control parameter or the second control parameter.
5. The server fan control method according to claim 1, wherein: After controlling the fan control circuit to drive the fan unit to operate in a full-speed operation mode 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, fusing the first temperature value and the second temperature value 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 and the cycle duration; fusing the historical temperature value of the air outlet and the historical temperature value of the radiator to obtain a historical temperature fusion value; Calculating a third temperature change rate according to the temperature fusion value, the historical temperature fusion value, and the cycle duration; Determining a corresponding control parameter according to the third temperature change rate; Calculating a corresponding pulse width modulation duty cycle according to the control parameters; According to the pulse width modulation duty cycle, the fan control circuit is controlled to drive the fan unit to operate in a regulation mode.
6. The server fan control method according to claim 5, characterized in that: The fusing the first temperature value and the second temperature value to obtain a temperature fusion value includes: determining a weight value of the first temperature value according to the first temperature change rate; The first temperature value and the second temperature value are fused according to the weight value to obtain a corresponding temperature fusion value.
7. The server fan control method according to claim 1, wherein: The collecting of a first temperature value of an air outlet of a fan unit of a server and a second temperature value of a radiator of a processor of the server in a current cycle includes: Using an analog temperature sensor, collect analog voltage signals from the air outlet of the server's fan unit during the current cycle; The digital temperature sensor is used to collect the digital temperature signal of the heat sink of the server processor in the current cycle; converting the analog voltage signal 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, wherein: Also includes: Determine a temperature difference between a first temperature value of the air outlet and a second temperature value of the radiator; Determine whether the temperature difference 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, determining a duration for which the temperature difference value is greater than the preset temperature difference threshold; If it is determined that the duration is greater than a preset duration, it is determined that the analog temperature sensor and / or the digital temperature sensor is abnormal; After determining that the analog temperature sensor and / or the digital temperature sensor is abnormal, the backup sensor is activated.
9. The server fan control method according to claim 8, wherein: After enabling the backup sensor, the method further includes: Generate an alarm prompt according to an abnormality of the analog temperature sensor and / or the digital temperature sensor; The fan control circuit is controlled to drive the fan unit to operate in a full-speed operation mode.
10. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the server fan control method according to 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
Intelligent temperature control method, device and equipment for fan and medium
CN119778308A
Wind-liquid integrated heat dissipation device for signal processing equipment
CN222967268U
Cooler controlling apparatus of computer
KR2020130000412U
Cited By
Temperature control method and device for steaming oven
CN121421337A