Fan speed control method, device, electronic device and storage medium
By obtaining the real-time temperature of the air inlet and outlet sides of the computing power unit, determining the temperature difference change trend and adjusting the fan speed, the problem of untimely fan speed adjustment in the existing technology is solved, and rapid heat dissipation and equipment stability of the computing power unit are achieved.
Patent Information
- Application Number
- CN202110328258.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-26
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2041-03-26
AI Technical Summary
In the prior art, electronic devices with high computing power experience a rapid internal temperature rise during operation, leading to untimely adjustment of fan speed using ambient temperature, resulting in unstable device operation.
By obtaining the real-time temperatures of the air inlet and outlet sides of the computing unit, the temperature difference trend is determined, and the fan speed is adjusted according to the temperature difference trend and the real-time air inlet temperature to achieve timely temperature control.
The timeliness of fan speed control is improved, the time from the start of heat dissipation to the temperature equilibrium of the computing unit is shortened, and the working stability of the equipment is improved.
Smart Images

Figure CN115126711B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of heat dissipation of electronic equipment, and in particular to a method and device for controlling fan speed, an electronic device, and a storage medium. Background Art
[0002] During the operation of electronic devices, the temperature inside the electronic devices will gradually rise. Therefore, many electronic devices are equipped with fans to dissipate the internal temperature of the electronic devices and cool them down to prevent damage to the electronic devices due to high temperatures.
[0003] Existing technologies typically employ PID control strategies to dissipate heat and cool electronic devices by adjusting the fan speed based on the ambient temperature. However, for some high-performance electronic devices, internal temperatures rise rapidly during operation. Using ambient temperature to adjust the fan speed can result in inaccurate adjustments, leading to unstable device operation. Summary of the Invention
[0004] The present application provides a fan speed control method, device, electronic device and storage medium to timely control the fan temperature according to the heat dissipation conditions of the computing power unit to improve the convergence speed.
[0005] In a first aspect, the present application provides a method for controlling fan speed, the method comprising:
[0006] Obtaining the real-time air inlet temperature of the air inlet side of the computing power unit and the real-time air outlet temperature of the air outlet side of the computing power unit;
[0007] Determining a temperature difference change trend between the air inlet side and the air outlet side according to the real-time air inlet temperature and the real-time air outlet temperature;
[0008] The fan speed is adjusted according to the temperature difference change trend and the real-time air inlet temperature to dissipate heat from the computing unit.
[0009] In a second aspect, the present application further provides a fan speed control device, the device comprising:
[0010] A temperature acquisition module, configured to acquire the real-time air inlet temperature of the air inlet side of the computing unit and the real-time air outlet temperature of the air outlet side of the computing unit;
[0011] a trend determination module, configured to determine a temperature difference change trend between the air inlet side and the air outlet side according to the real-time air inlet temperature and the real-time air outlet temperature;
[0012] The speed adjustment module is used to adjust the fan speed according to the temperature difference change trend and the real-time air inlet temperature to dissipate heat for the computing unit.
[0013] In the third aspect, the present application also provides an electronic device, which includes a computing unit, a fan and a fan speed control device; the air inlet side and the air outlet side of the computing unit are provided with sensors for collecting temperature, which are used to collect the real-time air inlet temperature of the air inlet side and the real-time air outlet temperature of the air outlet side; the fan speed control device is used to execute the computer program according to the real-time air inlet temperature of the air inlet side and the real-time air outlet temperature of the air outlet side and implement the fan speed control method as described above when executing the computer program, so as to adjust the speed of the fan and dissipate heat to the computing unit.
[0014] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the fan speed control method as described above.
[0015] The present application discloses a method, device, electronic device and storage medium for controlling fan speed. By obtaining the real-time inlet air temperature on the air inlet side and the real-time outlet air temperature on the air outlet side of the computing power unit, the temperature difference change trend between the air inlet side and the air outlet side is determined, and then the fan speed is adjusted according to the temperature difference change trend and the real-time inlet air temperature. The fan speed is regulated to dissipate heat for the computing power unit. While adjusting the fan speed based on the real-time inlet air temperature, the temperature difference change trend is also used as a condition for adjusting the fan speed. The fan can be timely temperature-controlled according to the heat dissipation of the computing power unit, realizing rapid changes in the fan speed, shortening the time from the start of heat dissipation to the temperature reaching a balance point during the operation of the computing power unit, and improving the convergence speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are 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.
[0017] Figure 1 is a schematic block diagram of an electronic device provided in an embodiment of the present application;
[0018] Figure 2 This is a schematic diagram of the structure of a computing unit in an electronic device provided in an embodiment of the present application;
[0019] Figure 3 This is a schematic flow chart of a fan speed control method provided in an embodiment of the present application;
[0020] Figure 4This is a schematic flow chart of the sub-steps of a method for controlling fan speed provided in an embodiment of the present application;
[0021] Figure 5 This is a flow chart of fan speed control provided by an embodiment of the present application;
[0022] Figure 6 An embodiment of the present application also provides a schematic block diagram of a device for controlling fan speed. DETAILED DESCRIPTION
[0023] The following will be combined with the 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 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.
[0024] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0025] It should be understood that the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0026] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0027] The embodiments of the present application provide a method, device, electronic device, and storage medium for controlling fan speed. The fan speed control method can be used to quickly control the fan speed to achieve heat dissipation for a computing unit.
[0028] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.
[0029] See also Figure 1 , Figure 1This is a schematic block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 includes a chassis, within which a computing unit, a fan, and a control board are located. The fan and the control board are connected by signal, and the control board is used to control the rotation of the fan. The chassis is provided with an air inlet and an air outlet. When the fan rotates within the chassis, air flows through the inlet and outlet, dissipating heat from the computing unit.
[0030] The computing unit includes at least one computing board, which may include a chip such as a GPU. There are many ways to arrange the computing boards in the computing unit. For example, multiple computing boards can be arranged in a regular array, such as Figure 2 As shown in .
[0031] The air inlet and air outlet sides of the computing unit are respectively provided with temperature sensors for collecting real-time air inlet temperature and real-time air outlet temperature. In the specific implementation process, the temperature sensors can be set at the air inlet and air outlet of the chassis, or at the air inlet side of the computing unit close to the air inlet of the chassis and the air outlet side of the computing unit close to the air outlet of the chassis, such as Figure 2 As shown in, where Figure 2 The circle in the figure represents the temperature sensor.
[0032] In addition, due to the possibility of temperature errors in the temperature collected by the temperature sensor, temperature sensor damage, or partial or complete cessation of a computing unit, these factors may cause certain data errors in the collected real-time air inlet temperature or real-time air outlet temperature. Therefore, multiple temperature sensors can be set to reduce the error in the temperature collected by the temperature sensors.
[0033] At this point, there are multiple real-time inlet temperatures and outlet temperatures collected. These temperatures can be filtered and processed to reduce errors in the temperature data. For example, averaging, variance, or other methods can be used to reduce errors.
[0034] It is understandable that there can be one or more computing units. When there is only one computing unit, multiple temperature sensors can be set at the air inlet and outlet of the computing unit respectively. When there are multiple computing units, multiple temperature sensors can be set at the air inlet and outlet of each computing unit respectively. Figure 2 As shown in , a temperature sensor is set at the air inlet and outlet of each computing unit to collect real-time air inlet temperature and real-time air outlet temperature.
[0035] The temperature sensor sends the collected real-time inlet air temperature and outlet air temperature to the control board of the electronic device. The control board controls the fan speed based on the real-time inlet air temperature and outlet air temperature to dissipate heat for the computing unit.
[0036] Among them, if the control board determines that the heat dissipation of the computing power unit needs to be strengthened, the fan speed can be increased to enable the fan to quickly dissipate heat from the computing power unit. If the control board determines that the heat dissipation of the computing power unit needs to be weakened, the fan speed can be reduced. If the control board determines that the temperature has reached the equilibrium point, the fan speed can be controlled to remain unchanged and the fan speed will not be adjusted.
[0037] The control board includes a memory and a processor. The memory may include a non-volatile storage medium and an internal memory.
[0038] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, which, when executed, can enable the processor to execute any one of the fan speed control methods.
[0039] The processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
[0040] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any one of the fan speed control methods.
[0041] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0042] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0043] like Figure 1 As shown, after the electronic device is turned on, the computing unit in the electronic device starts to work, and the temperature sensors arranged on the air inlet and air outlet sides of the computing unit also start to collect temperature.
[0044] The computing unit continuously generates heat during operation. The temperature sensor on the air inlet side collects the real-time inlet air temperature of the computing unit, and the temperature sensor on the air outlet side collects the real-time outlet air temperature of the computing unit. The collected real-time inlet air temperature and real-time outlet air temperature are sent to the control board of the electronic device. The control board adjusts the speed of the fan in the electronic device according to the real-time inlet air temperature and real-time outlet air temperature to dissipate heat from the computing unit.
[0045] After receiving the real-time inlet and outlet temperatures, the processor on the control board determines the temperature difference trend between the inlet and outlet sides based on the real-time inlet temperatures. Specifically, the processor calculates the real-time temperature difference between the real-time inlet and outlet temperatures at the same moment and determines the temperature difference trend based on the real-time temperature differences at multiple moments. If the real-time temperature difference gradually increases, the temperature difference trend is considered to be rising. If the real-time temperature difference gradually decreases, the temperature difference trend is considered to be falling. If the real-time temperature difference tends to remain unchanged, the temperature difference trend is considered to be flat.
[0046] The processor also determines the temperature change trend at the air inlet side based on the real-time air inlet temperature. Specifically, the temperature change trend is determined based on the real-time air inlet temperature at multiple moments. If the real-time air inlet temperature gradually increases, the temperature change trend is considered to be an upward trend. If the real-time air inlet temperature gradually decreases, the temperature change trend is considered to be a downward trend. If the real-time air inlet temperature tends to remain unchanged, the temperature change trend is considered to be a flat trend.
[0047] The control board then adjusts the duty cycle of the fan in the electronic device based on the temperature difference change trend obtained by the processor and the temperature change trend of the real-time inlet air temperature on the inlet side to adjust the fan speed and dissipate heat for the computing power unit.
[0048] When the temperature difference change trend and / or the temperature change trend is rising, the fan speed needs to be increased; when the temperature difference change trend is falling and / or the temperature change trend is falling, the fan speed needs to be reduced; when the temperature difference change trend is rising and the temperature change trend is falling or remaining constant, the fan speed needs to be increased; when the temperature difference change trend is falling and the temperature change trend is falling or remaining constant, the fan speed needs to be reduced; when the temperature difference change trend is remaining constant and the temperature change trend is rising, the fan speed needs to be increased; when the temperature difference change trend is remaining constant and the temperature change trend is falling, the fan speed needs to be kept unchanged; when the temperature difference change trend is remaining constant and the temperature change trend is remaining constant, the adjustment strategy is determined according to the target temperature difference.
[0049] In one embodiment, the processor is configured to execute a computer program stored in the memory to implement the following steps:
[0050] Obtain the real-time air inlet temperature of the air inlet side of the computing power unit and the real-time air outlet temperature of the air outlet side of the computing power unit; determine the temperature difference change trend between the air inlet side and the air outlet side based on the real-time air inlet temperature and the real-time air outlet temperature; adjust the fan speed based on the temperature difference change trend and the real-time air inlet temperature to dissipate heat for the computing power unit.
[0051] In one embodiment, when adjusting the fan speed according to the temperature difference change trend and the real-time inlet air temperature, the processor is configured to implement:
[0052] Determine the temperature change trend of the air inlet side according to the real-time air inlet temperature; adjust the fan speed based on the temperature change trend and the temperature difference change trend; wherein, the temperature change trend of the air inlet side includes at least one of an upward trend, a downward trend and a flat trend, and the temperature difference change trend includes at least one of an upward trend, a downward trend and a flat trend.
[0053] In one embodiment, when implementing the adjusting of the fan speed based on the temperature change trend and the temperature difference change trend, the processor is configured to implement:
[0054] When the temperature change trend is an upward trend, the rotation speed of the fan is increased; when the temperature change trend is a downward trend or a flat trend, the rotation speed of the fan is adjusted according to the temperature difference change trend.
[0055] In one embodiment, when implementing the adjusting the rotation speed of the fan according to the temperature difference change trend, the processor is configured to implement:
[0056] When the temperature difference variation trend is a downward trend, the rotation speed of the fan is reduced; when the temperature difference variation trend is an upward trend, the rotation speed of the fan is increased.
[0057] In one embodiment, when implementing the adjusting the rotation speed of the fan according to the temperature difference change trend, the processor is configured to implement:
[0058] When the temperature change trend is a downward trend and the temperature difference change trend is a flat trend, execute the step of obtaining the real-time inlet air temperature of the air inlet side of the computing power unit and the real-time outlet air temperature of the air outlet side of the computing power unit; when the temperature change trend is a flat trend and the temperature difference change trend is a flat trend, adjust the fan speed according to the current real-time temperature difference and the preset target temperature difference.
[0059] In one embodiment, when adjusting the speed of the fan according to the current real-time temperature difference and the preset target temperature difference, the processor is configured to implement:
[0060] If the current real-time temperature difference is greater than the preset target temperature difference, increase the speed of the fan; if the current real-time temperature difference is less than the preset target temperature difference, reduce the speed of the fan; if the current real-time temperature difference is equal to the preset target temperature difference, execute the steps of obtaining the real-time inlet temperature of the air inlet side of the computing power unit and the real-time outlet temperature of the air outlet side of the computing power unit.
[0061] In one embodiment, the processor is further configured to implement:
[0062] Determine the duration of the current real-time temperature difference being equal to the preset target temperature difference; if the duration is greater than or equal to the preset duration, execute the step of obtaining the real-time inlet air temperature of the inlet side of the computing power unit and the real-time outlet air temperature of the outlet side of the computing power unit.
[0063] In one embodiment, the real-time inlet air temperature and the real-time outlet air temperature each include multiple values, and the processor is further configured to implement:
[0064] The maximum and minimum values of the real-time inlet air temperatures are removed from the multiple real-time inlet air temperatures to obtain the real-time inlet air temperature after removal; the maximum and minimum values of the real-time outlet air temperatures are removed from the multiple real-time outlet air temperatures to obtain the real-time outlet air temperature after removal; the average value of the real-time inlet air temperatures after removal and the average value of the real-time outlet air temperatures after removal are calculated to obtain the real-time average inlet air temperature and the real-time average outlet air temperature.
[0065] In one embodiment, when adjusting the fan speed according to the temperature difference change trend and the real-time inlet air temperature, the processor is configured to implement:
[0066] The duty cycle of the fan is adjusted according to the temperature difference variation trend and the real-time inlet air temperature to regulate the rotation speed of the fan.
[0067] See also Figure 3 , Figure 3 This is a schematic flow chart of a fan speed control method provided in an embodiment of the present application. This fan speed control method combines the real-time inlet air temperature and the temperature difference change trend to achieve fan speed control, dissipate heat from the computing power unit, and improve the timeliness of speed control.
[0068] like Figure 3 As shown, the fan speed control method specifically includes: steps S201 to S203.
[0069] S201: Obtain a real-time air inlet temperature on an air inlet side of a computing power unit and a real-time air outlet temperature on an air outlet side of the computing power unit.
[0070] When an electronic device is powered on and the computing unit begins operating, it generates heat continuously, and this heat generation varies depending on the operating state. Excessively high temperatures can affect the unit's operating state and even damage it. Therefore, fans are required to dissipate the heat generated by the computing unit during operation to ensure its operational stability.
[0071] In order to regulate the fan to dissipate heat for the computing unit, the temperature sensors installed on the air inlet and air outlet sides of the computing unit begin to continuously collect the real-time air inlet temperature on the air inlet side and the real-time air outlet temperature on the air outlet side of the computing unit after the computing unit starts working.
[0072] In one embodiment, the real-time inlet air temperature and the real-time outlet air temperature each include multiple values, and the fan speed control method further includes: removing the maximum value and the minimum value of the real-time inlet air temperature from the multiple real-time inlet air temperatures to obtain the real-time inlet air temperature after removal; removing the maximum value and the minimum value of the real-time outlet air temperature from the multiple real-time outlet air temperatures to obtain the real-time outlet air temperature after removal; calculating the average value of the real-time inlet air temperatures after removal and the average value of the real-time outlet air temperatures after removal to obtain the real-time average inlet air temperature and the real-time average outlet air temperature.
[0073] To reduce the error in the temperatures collected by the temperature sensors, multiple temperature sensors can be installed on the air inlet and outlet sides of the computing unit. The multiple real-time air inlet and air outlet temperatures collected by the multiple temperature sensors are filtered and processed to reduce data errors.
[0074] For example, the maximum and minimum values of the real-time inlet air temperatures can be removed from the multiple real-time inlet air temperatures collected to obtain the real-time inlet air temperature after removal. The average value of the real-time inlet air temperature after removal is calculated to obtain the real-time average inlet air temperature, and the real-time average inlet air temperature is used as the temperature for subsequently determining the temperature difference change trend.
[0075] For example, if there are five real-time inlet air temperatures, and the five real-time inlet air temperatures are T in1 、T in2 、T in3 、T in4 and T in5 Among the five real-time inlet air temperatures, the maximum value is T in3 , the minimum value is T in1 , then the real-time inlet air temperature after removing the removed real-time inlet air temperature obtained by screening multiple real-time inlet air temperatures is T in2 、T in4 and T in5 , the calculated average air inlet temperature for
[0076] Similarly, the maximum and minimum values of the real-time outlet air temperatures can be removed from the multiple real-time outlet air temperatures collected to obtain the real-time outlet air temperature after removal. The average value of the real-time outlet air temperature after removal is calculated to obtain the real-time average outlet air temperature, and the real-time average outlet air temperature is used as the temperature for subsequently determining the temperature difference change trend.
[0077] For example, if there are five real-time outlet air temperatures, and the five real-time outlet air temperatures are T out1 、T out2 、T out3 、T out4 and T out5 Among the five real-time air outlet temperatures, the maximum value is T out3 , the minimum value is T out1 , then the real-time outlet air temperature after screening multiple real-time outlet air temperatures is T out2 、T out4 and T out5 , the calculated average air outlet temperature for
[0078] S202: Determine a temperature difference change trend between the air inlet side and the air outlet side according to the real-time air inlet temperature and the real-time air outlet temperature.
[0079] The real-time temperature difference between the air inlet side and the air outlet side is calculated based on the real-time air inlet temperature and the real-time air outlet temperature, and the temperature difference trend between the air inlet side and the air outlet side is determined based on the calculated real-time temperature difference. For example, the difference between the real-time air outlet temperature and the real-time air inlet temperature at the same time can be calculated, and the calculated difference is used as the real-time temperature difference between the air inlet side and the air outlet side.
[0080] Since the real-time inlet air temperature and the real-time outlet air temperature are both real-time and continuous, the temperature difference change trend can be determined based on the change of the real-time temperature difference within a time interval. The temperature difference change trend includes at least one of an upward trend, a downward trend, and a flat trend.
[0081] For example, if the calculated real-time temperature difference value gradually increases, it is considered that the temperature difference change trend between the air inlet side and the air outlet side is an upward trend; if the calculated real-time temperature difference value gradually decreases, it is considered that the temperature difference change trend between the air inlet side and the air outlet side is a downward trend; if the calculated real-time temperature difference value tends to remain unchanged, it is considered that the temperature difference change trend between the air inlet side and the air outlet side is a flat trend.
[0082] It should be noted that the fact that the value of the real-time temperature difference tends to be constant may mean that the value change of the real-time temperature difference does not exceed a preset threshold value, wherein the preset threshold value may be pre-set.
[0083] It is understandable that if the real-time average air inlet temperature and the real-time average air outlet temperature are calculated, the real-time temperature difference can be calculated based on the real-time average air inlet temperature and the real-time average air outlet temperature. The specific calculation method can be as described above.
[0084] In one embodiment, when there are multiple computing units, since each computing unit has a real-time inlet temperature and a real-time outlet temperature, the maximum value of the real-time inlet temperature and the real-time outlet temperature of each computing unit can be selected to calculate the real-time temperature difference. In other words, the difference between the maximum real-time inlet temperature of the multiple computing units and the maximum real-time outlet temperature of the multiple computing units is calculated, and the difference is used as the real-time temperature difference.
[0085] S203: Adjust the fan speed according to the temperature difference change trend and the real-time air inlet temperature to dissipate heat for the computing unit.
[0086] After determining the temperature difference trend between the air inlet side and the air outlet side, the fan speed is adjusted based on the temperature difference trend and the real-time air inlet temperature, so that the fan dissipates heat from the computing unit. In one embodiment, adjusting the fan speed may include adjusting the fan duty cycle based on the temperature difference trend and the real-time air inlet temperature to regulate the fan speed.
[0087] When adjusting the fan speed, you can change the fan speed by adjusting the fan duty cycle. Generally speaking, the higher the fan duty cycle, the faster the fan speed, the higher the fan power consumption, the better the heat dissipation effect, and the smaller the temperature difference between the air outlet and the air outlet of the computing unit.
[0088] For example, a fan can be controlled via PWM. If the fan's current duty cycle is PWM1, and Delta is the step size used for each adjustment, then increasing the fan speed will result in the fan's duty cycle PWM2 being: PWM2 = PWM1 + Delta. Decreasing the fan speed will result in the fan's duty cycle PWM2 being: PWM2 = PWM1 - Delta. When the fan is initially started, the fan's current duty cycle PWM1 is the initial value, for example, 40.
[0089] In one embodiment, the value of Delta may be a preset fixed value.
[0090] In another embodiment, the Delta value can be calculated based on the current real-time temperature difference and the target temperature difference. The target temperature difference is pre-set, and after the fan is regulated, the temperature difference between the air inlet and air outlet of the computing unit reaches the target temperature difference, achieving temperature convergence.
[0091] It is understood that the target temperature difference can be a specific value or a temperature range. For example, the target temperature difference can be 25 degrees Celsius or degrees Celsius.
[0092] For example, the calculation formula for Delta can be: Among them, diff represents the target temperature difference, and current_diff represents the real-time temperature difference.
[0093] In one embodiment, if Figure 4 As shown, step S203 specifically includes step S2031 and step S2032.
[0094] S2031. Determine a temperature change trend of the air inlet side according to the real-time air inlet temperature.
[0095] Since the real-time inlet air temperature is real-time and continuous, the temperature change trend of the inlet side can be determined based on the real-time inlet air temperature. The temperature change trend of the inlet side includes at least one of an upward trend, a downward trend, and a flat trend.
[0096] For example, if the value of the real-time inlet air temperature collected gradually increases, it is considered that the real-time inlet air temperature on the inlet side is gradually rising, and the temperature change trend is an upward trend; if the value of the real-time inlet air temperature collected gradually decreases, it is considered that the real-time inlet air temperature on the inlet side is gradually decreasing, and the temperature change trend is a downward trend; if the value of the real-time inlet air temperature collected tends to remain unchanged, it is considered that the temperature change trend on the inlet side is a flat trend.
[0097] It should be noted that the fact that the value of the real-time inlet air temperature tends to be constant may mean that the value change of the real-time inlet air temperature does not exceed a preset threshold value, wherein the preset threshold value may be pre-set.
[0098] S2032: Adjust the fan speed based on the temperature change trend and the temperature difference change trend.
[0099] After obtaining the temperature change trend, the fan speed can be adjusted according to the temperature change trend and the temperature difference change trend.
[0100] For example, as shown in the following table, the fan speed may be adjusted differently according to different temperature change trends and temperature difference change trends.
[0101]
[0102] Among them, when the temperature difference change trend and / or the temperature change trend is rising, the fan speed needs to be increased; when the temperature difference change trend is falling and / or the temperature change trend is falling, the fan speed needs to be reduced; when the temperature difference change trend is rising, and the temperature change trend is falling or remaining constant, the fan speed needs to be increased; when the temperature difference change trend is falling, and the temperature change trend is falling or remaining constant, the fan speed needs to be reduced; when the temperature difference change trend is remaining constant, and the temperature change trend is rising, the fan speed needs to be increased; when the temperature difference change trend is remaining constant, and the temperature change trend is falling, the fan speed needs to be kept unchanged; when the temperature difference change trend is remaining constant, and the temperature change trend is remaining constant, the adjustment strategy is determined according to the target temperature difference.
[0103] Exemplarily, the target temperature difference adjustment strategy may be to calculate the difference between the real-time inlet air temperature and the real-time outlet air temperature at this time to obtain the real-time temperature difference, and adjust the fan speed according to the numerical relationship between the real-time temperature difference and the target temperature difference.
[0104] In one embodiment, the step of adjusting the fan speed may include the following steps: when the temperature change trend is an upward trend, increasing the fan speed; when the temperature change trend is a downward trend or a flat trend, adjusting the fan speed according to the temperature difference change trend.
[0105] If the temperature trend is rising, it indicates that the real-time inlet air temperature of the computing unit is gradually increasing. In this case, the fan speed needs to be increased. For example, the fan duty cycle can be increased by increasing the step size based on the current duty cycle to increase the fan speed.
[0106] When the temperature change trend is a downward trend, it means that the real-time inlet air temperature on the air inlet side of the computing power unit is gradually decreasing. At this time, the fan speed can be adjusted according to the temperature difference change trend.
[0107] When the temperature change trend is flat, it means that the real-time inlet air temperature of the computing unit is stable. The fan speed can be adjusted according to the temperature difference change trend.
[0108] It can be understood that when the temperature difference trend is an upward trend, it means that the heat generated by the computing unit during operation is gradually increasing, and the fan speed needs to be increased to dissipate the heat generated by the computing unit. When the temperature difference trend is a downward trend, it means that the heat generated by the computing unit during operation is gradually decreasing, and the fan speed needs to be reduced.
[0109] In one embodiment, when the temperature change trend is a downward trend or a flat trend, the step of adjusting the fan speed according to the temperature difference change trend may include: when the temperature difference change trend is a downward trend, reducing the fan speed; when the temperature difference change trend is an upward trend, increasing the fan speed.
[0110] When the temperature change trend is downward and the temperature difference change trend is also downward, the fan speed needs to be reduced. When the temperature change trend is flat and the temperature difference change trend is downward, it means that the heat generated by the computing power unit during operation is gradually decreasing, and the fan speed needs to be reduced.
[0111] When the temperature change trend is downward and the temperature difference change trend is upward, it means that the real-time air inlet temperature on the air inlet side of the computing unit is gradually decreasing, but the real-time air outlet temperature on the air outlet side of the computing unit is gradually increasing. This means that the heat generated by the computing unit is gradually increasing during operation, and the fan speed needs to be increased.
[0112] When the temperature change trend is flat and the temperature difference change trend is rising, it means that the heat generated by the computing unit during operation is gradually increasing, and the fan speed needs to be increased.
[0113] In one embodiment, when the temperature change trend is a downward trend or a flat trend, the step of adjusting the fan speed according to the temperature difference change trend may include: when the temperature change trend is a downward trend and the temperature difference change trend is a flat trend, executing the step of obtaining the real-time inlet air temperature of the air inlet side of the computing power unit and the real-time outlet air temperature of the air outlet side of the computing power unit; when the temperature change trend is a flat trend and the temperature difference change trend is a flat trend, adjusting the fan speed according to the current real-time temperature difference and the preset target temperature difference.
[0114] If the temperature trend is decreasing and the temperature difference trend is stable, the fan speed can be temporarily adjusted to obtain the real-time inlet and outlet temperatures for a new round of judgment. If both the temperature trend and the temperature difference trend are stable, the fan speed can be adjusted based on the pre-set target temperature difference and the current real-time temperature difference.
[0115] The current real-time temperature difference refers to the absolute value of the difference between the current real-time inlet air temperature and the real-time outlet air temperature, and the target temperature difference may be pre-set.
[0116] In one embodiment, a duration during which both the temperature change trend and the temperature difference change trend remain constant can be obtained. When the temperature change trend remains constant for longer than a first preset time, and the temperature difference change trend remains constant for longer than a second preset time, the fan speed can be adjusted based on the real-time temperature difference and a preset target temperature difference. The first duration and the second duration can be the same or different.
[0117] In one embodiment, the step of adjusting the fan speed according to the target temperature difference may include: if the current real-time temperature difference is greater than the preset target temperature difference, increasing the fan speed; if the current real-time temperature difference is less than the preset target temperature difference, reducing the fan speed; if the current real-time temperature difference is equal to the preset target temperature difference, executing the step of obtaining the real-time inlet temperature of the inlet side of the computing power unit and the real-time outlet temperature of the outlet side of the computing power unit.
[0118] Among them, if the current real-time temperature difference is greater than the preset target temperature difference, it means that the temperature of the computing unit is greater than the target temperature at this time, and it is necessary to increase the fan speed to dissipate heat to reduce the current real-time temperature difference. If the current real-time temperature difference is less than the preset target temperature difference, it means that the temperature of the computing unit is less than the target temperature at this time, and it is necessary to reduce the fan speed to increase the current real-time temperature difference. If the current real-time temperature difference is equal to the target temperature difference, it is not necessary to adjust the fan speed, re-obtain the real-time inlet temperature and real-time outlet temperature, and make the next judgment.
[0119] In one embodiment, the method further includes: determining the duration during which the current real-time temperature difference is equal to the preset target temperature difference; if the duration is greater than or equal to the preset duration, executing the step of obtaining the real-time inlet air temperature of the inlet side of the computing power unit and the real-time outlet air temperature of the outlet side of the computing power unit.
[0120] When the current real-time temperature difference is determined to be equal to the preset target temperature difference, the duration of the two equalization is determined. If the duration is greater than or equal to the preset duration, it is considered that steady state has been reached, and the fan is not adjusted. The real-time inlet and outlet temperatures are re-obtained and the next judgment is made. Otherwise, the fan speed is adjusted again.
[0121] The fan speed control method provided in the above embodiment obtains the real-time inlet temperature of the air inlet side and the real-time outlet temperature of the air outlet side of the computing power unit, determines the temperature difference change trend between the air inlet side and the air outlet side, and then adjusts the fan speed according to the temperature difference change trend and the real-time inlet temperature. The fan speed is regulated to dissipate heat from the computing power unit. While adjusting the fan speed based on the real-time inlet temperature, the temperature difference change trend is also used as a condition for adjusting the fan speed. The fan temperature can be timely regulated according to the heat dissipation of the computing power unit, achieving rapid changes in the fan speed, shortening the time from the start of heat dissipation to the temperature reaching the equilibrium point during the operation of the computing power unit, and improving the convergence speed.
[0122] See also Figure 5 , is a flow chart of fan speed control provided in an embodiment of the present application.
[0123] like Figure 5 As shown, the temperature sensor first collects the real-time inlet air temperature of the air inlet side of the computing unit and the real-time outlet air temperature of the air outlet side of the computing unit, and then determines the temperature change trend of the real-time inlet air temperature and the temperature difference change trend between the air inlet side and the air outlet side.
[0124] If the temperature change trend on the air inlet side is a downward trend, it means that the real-time air inlet temperature on the air inlet side is lower than the temperature at the previous moment; if the temperature change trend on the air inlet side is an upward trend, it means that the real-time air inlet temperature on the air inlet side is higher than the temperature at the previous moment; if the temperature change trend on the air inlet side is a flat trend, it means that the real-time air inlet temperature is basically the same as the temperature at the previous moment.
[0125] Similarly, if the temperature difference change trend between the air inlet side and the air outlet side is a downward trend, it means that the real-time temperature difference between the real-time inlet air temperature on the air inlet side and the real-time outlet air temperature on the air outlet side has decreased relative to the previous moment; if the temperature difference change trend between the air inlet side and the air outlet side is an upward trend, it means that the real-time temperature difference between the real-time inlet air temperature on the air inlet side and the real-time outlet air temperature on the air outlet side has increased relative to the previous moment; if the temperature difference change trend between the air inlet side and the air outlet side is a flat trend, it means that the real-time temperature difference between the real-time inlet air temperature on the air inlet side and the real-time outlet air temperature on the air outlet side is basically the same relative to the previous moment.
[0126] If the temperature change trend on the air inlet side is rising, it is considered that the ambient temperature of the computing unit is beginning to rise. It is necessary to increase the fan duty cycle to increase the fan speed and improve the heat dissipation of the computing unit. For example, if the current fan duty cycle is PWM1, and Delta is the step size during each fan adjustment, the adjusted fan duty cycle PWM2 is: PWM2 = PWM1 + Delta.
[0127] If the temperature change trend on the air inlet side is a downward trend, and the temperature difference change trend between the air inlet side and the air outlet side is a flat trend, it is considered that the heat generated by the computing power unit during operation has been dissipated in a timely manner, and the fan speed can be temporarily unregulated.
[0128] If the temperature change trend on the air inlet side is decreasing or remaining flat, and the temperature difference between the air inlet and air outlet is increasing, it is considered that the heat generated by the computing unit during operation is gradually increasing. The fan duty cycle needs to be increased to increase the fan speed and dissipate the generated heat in a timely manner. The adjusted fan duty cycle PWM2 is: PWM2 = WM1 + elta.
[0129] If the temperature change trend on the air inlet side is decreasing or stable, and the temperature difference between the air inlet and air outlet sides is decreasing, it is considered that the heat generated by the computing unit during operation has decreased. The fan duty cycle needs to be reduced to reduce the fan speed. For example, the adjusted fan duty cycle PWM2 is: PWM2 = PWM1 - Delta.
[0130] If the temperature change trend on the air inlet side is flat, and the temperature difference change trend between the air inlet side and the air outlet side is also flat, then determine the relationship between the real-time temperature difference and the preset target temperature difference. If the real-time temperature difference is less than the target temperature difference, it is considered that the fan speed is too fast and the fan speed needs to be reduced. At this time, the adjusted fan duty cycle PWM2 is: PWM2 = PWM1-Delta; if the real-time temperature difference is greater than the target temperature difference, it is considered that the fan speed is too slow and cannot provide sufficient heat dissipation for the computing power unit. The fan speed needs to be increased. At this time, the adjusted fan duty cycle PWM2 is: PWM2 = PWM1+Delta; if the real-time temperature difference is equal to the target temperature difference, it is considered that the fan speed is appropriate and the fan speed is not adjusted.
[0131] See also Figure 6 , Figure 6 The embodiment of the present application also provides a schematic block diagram of a fan speed control device, which is used to execute the above-mentioned fan speed control method. The fan speed control device can be configured as follows: Figure 1 In the control panel.
[0132] like Figure 6 As shown, the fan speed control device 300 includes: a temperature acquisition module 301 , a trend determination module 302 and a speed adjustment module 303 .
[0133] The temperature acquisition module 301 is used to obtain the real-time air inlet temperature of the air inlet side of the computing unit and the real-time air outlet temperature of the air outlet side of the computing unit.
[0134] The trend determination module 302 is configured to determine a trend of a temperature difference between the air inlet side and the air outlet side according to the real-time air inlet temperature and the real-time air outlet temperature.
[0135] The speed adjustment module 303 is used to adjust the fan speed according to the temperature difference change trend and the real-time air inlet temperature to dissipate heat for the computing unit.
[0136] The speed adjustment module 303 includes a temperature trend submodule 3031 and a trend adjustment submodule 3032 .
[0137] Specifically, the temperature trend submodule 3031 is used to determine the temperature change trend of the air inlet side according to the real-time air inlet temperature; the trend adjustment submodule 3032 is used to adjust the fan speed based on the temperature change trend and the temperature difference change trend.
[0138] It should be noted that, those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the fan speed control device and each module described above can refer to the corresponding processes in the aforementioned fan speed control method embodiment, and will not be repeated here.
[0139] The fan speed control device can be implemented as a computer program. Figure 1 Runs on the electronic devices shown.
[0140] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement any fan speed control method provided in the embodiment of the present application.
[0141] The computer-readable storage medium may be an internal storage unit of the computer device described in the aforementioned embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a SmartMedia Card (SMC), a Secure Digital (SD) card, a flash memory card, etc., equipped on the computer device.
[0142] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for controlling fan speed, characterized in that: include: Obtaining the real-time air inlet temperature of the air inlet side of the computing power unit and the real-time air outlet temperature of the air outlet side of the computing power unit; Determining a temperature difference change trend between the air inlet side and the air outlet side according to the real-time air inlet temperature and the real-time air outlet temperature; adjusting the fan speed according to the temperature difference change trend and the real-time air inlet temperature to dissipate heat from the computing unit; The adjusting the fan speed according to the temperature difference change trend and the real-time inlet air temperature includes: determining a temperature change trend of the air inlet side according to the real-time air inlet temperature; adjusting the fan speed based on the temperature change trend and the temperature difference change trend; The adjusting the fan speed according to the temperature difference change trend and the real-time inlet air temperature includes: Adjusting the duty cycle of the fan according to the temperature difference change trend and the real-time inlet air temperature to regulate the speed of the fan; Among them, the adjusted duty cycle PWM2 = PWM1 ± Delta, PWM1 is the current duty cycle, PWM2 is the duty cycle of the fan after adjustment, and Delta is the step size of the fan each time it is adjusted. diff represents the target temperature difference, which is set by the user according to actual needs. current_diff represents the real-time temperature difference, which is the difference between the maximum real-time inlet air temperature of multiple computing power units and the maximum real-time outlet air temperature of multiple computing power units at the current moment.
2. The fan speed control method according to claim 1, characterized in that: The temperature change trend at the air inlet side includes at least one of an upward trend, a downward trend, and a flat trend, and the temperature difference change trend includes at least one of an upward trend, a downward trend, and a flat trend.
3. The fan speed control method according to claim 1, characterized in that: The adjusting the fan speed based on the temperature change trend and the temperature difference change trend includes: When the temperature change trend is an upward trend, increasing the speed of the fan; When the temperature change trend is a downward trend or a flat trend, the rotation speed of the fan is adjusted according to the temperature difference change trend.
4. The method for controlling fan speed according to claim 1 or 3, characterized in that: The adjusting the rotation speed of the fan according to the temperature difference change trend includes: When the temperature difference change trend is a downward trend, reducing the speed of the fan; When the temperature difference change trend is an upward trend, the rotation speed of the fan is increased.
5. The method for controlling fan speed according to claim 3, wherein: The adjusting the rotation speed of the fan according to the temperature difference change trend includes: When the temperature change trend is a downward trend and the temperature difference change trend is a flat trend, performing the step of obtaining the real-time inlet air temperature of the air inlet side of the computing power unit and the real-time outlet air temperature of the air outlet side of the computing power unit; When the temperature change trend is a flat trend and the temperature difference change trend is a flat trend, the rotation speed of the fan is adjusted according to the current real-time temperature difference and the preset target temperature difference.
6. The method for controlling fan speed according to claim 5, characterized in that: The adjusting the speed of the fan according to the current real-time temperature difference and the preset target temperature difference includes: If the current real-time temperature difference is greater than the preset target temperature difference, increasing the speed of the fan; If the current real-time temperature difference is less than the preset target temperature difference, reducing the speed of the fan; If the current real-time temperature difference is equal to the preset target temperature difference, the step of obtaining the real-time inlet air temperature of the air inlet side of the computing power unit and the real-time outlet air temperature of the air outlet side of the computing power unit is performed.
7. The fan speed control method according to claim 6, characterized in that: The method further comprises: Determine the duration of time during which the current real-time temperature difference is equal to the preset target temperature difference; If the duration is greater than or equal to the preset duration, the step of obtaining the real-time inlet air temperature of the inlet air side of the computing power unit and the real-time outlet air temperature of the outlet air side of the computing power unit is performed.
8. The fan speed control method according to claim 1, characterized in that: The real-time air inlet temperature and the real-time air outlet temperature each include a plurality of temperatures, and the method further includes: removing a maximum value and a minimum value of the real-time inlet air temperature from the plurality of real-time inlet air temperatures to obtain the real-time inlet air temperature after removal; removing the maximum and minimum values of the real-time outlet air temperatures from the plurality of real-time outlet air temperatures to obtain the real-time outlet air temperature after removal; The average value of the real-time inlet air temperature after the removal and the average value of the real-time outlet air temperature after the removal are calculated to obtain the real-time average inlet air temperature and the real-time average outlet air temperature.
9. A fan speed control device, characterized in that: include: A temperature acquisition module, configured to acquire the real-time air inlet temperature of the air inlet side of the computing unit and the real-time air outlet temperature of the air outlet side of the computing unit; a trend determination module, configured to determine a temperature difference change trend between the air inlet side and the air outlet side according to the real-time air inlet temperature and the real-time air outlet temperature; a speed adjustment module, configured to adjust the fan speed according to the temperature difference change trend and the real-time air inlet temperature to dissipate heat from the computing unit; The speed adjustment module includes a temperature trend submodule and a trend adjustment submodule: A temperature trend submodule, configured to determine a temperature change trend of the air inlet side according to the real-time air inlet temperature; a trend adjustment submodule, configured to adjust the fan speed based on the temperature change trend and the temperature difference change trend; The speed adjustment module is further configured to adjust the fan's duty cycle according to the temperature difference change trend and the real-time inlet air temperature, so as to regulate the fan's speed; Among them, the adjusted duty cycle PWM2 = PWM1 ± Delta, PWM1 is the current duty cycle, PWM2 is the duty cycle of the fan after adjustment, and Delta is the step size of the fan each time it is adjusted. diff represents the target temperature difference, which is set by the user according to actual needs. current_diff represents the real-time temperature difference, which is the difference between the maximum real-time inlet air temperature of multiple computing power units and the maximum real-time outlet air temperature of multiple computing power units at the current moment.
10. An electronic device, characterized in that: The electronic device includes a computing unit, a fan, a memory and a processor; The air inlet side and the air outlet side of the computing unit are provided with sensors for collecting temperature, which are used to collect the real-time air inlet temperature of the air inlet side and the real-time air outlet temperature of the air outlet side; The memory is used to store computer programs; The processor is used to execute the computer program according to the real-time inlet air temperature on the inlet side and the real-time outlet air temperature on the outlet side and implement the fan speed control method as described in any one of claims 1 to 8 when executing the computer program, so as to adjust the fan speed and dissipate heat for the computing power unit.
11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the fan speed control method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for multiple wind grade rotate speed control
CN103307713A
Server power supply cooling structure and control method thereof
CN107704059A