Fan mixed insertion control method, server and electronic equipment
By using the feedback source of temperature changes in the server to dynamically correct the PID parameters, the problem of poor temperature control after mixing fans of different models is solved, and dynamic adjustment of fan speed and good heat dissipation effect are achieved.
Patent Information
- Application Number
- CN202310180642.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2043-02-28
AI Technical Summary
In the existing technology, different models of fans cannot be mixed and matched and inserted into the server hardware interface at will, resulting in inconvenient fan replacement and poor temperature control effect. It is also unable to adapt to the mismatch between PID algorithm parameters and speed control curves of different models of fans.
Through mathematical modeling, the target speed, actual speed and acceleration of temperature changes are used as feedback sources of the PID controller, and the PID parameters are dynamically corrected so that the PID algorithm parameters and temperature changes of any type of fan gradually approach the optimal value, thereby realizing dynamic adjustment of the fan speed.
This ensures that any type of fan can be mixed and plugged into the server while still maintaining good heat dissipation, improving fan adjustment efficiency and energy-saving performance.
Smart Images

Figure CN116221161B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of servers, and in particular to a fan hybrid plug-in control method, a server, and an electronic device. Background Art
[0002] For servers, fans of different models can be mixed and inserted at will as long as the hardware interfaces are consistent. However, in order to obtain the ideal heat dissipation effect in the prior art, the type of fan inserted into each hardware interface is obtained in advance, and the parameters and speed control curve of the proportional integral derivative (PID) algorithm are set according to the fan type to control the fan speed to achieve the expected temperature control effect. When a server fan is damaged and needs to be replaced, it is necessary to confirm the model information of the damaged fan before replacing it. Other models of fans that are compatible with the hardware interface cannot be used at will, making the replacement of server fans not convenient enough; if different types of fans are mixed and inserted at will, the temperature control effect will be poor because the parameters and speed control curve of the PID algorithm used do not match the fan. Summary of the Invention
[0003] The embodiments of the present application provide a control method, server, and electronic device for mixed fan insertion, which can realize the arbitrary mixing and insertion of fans of other models. The PID controller can adapt to and match the fan of this model, and the server temperature control effect will be better.
[0004] In the first aspect, an embodiment of the present application provides a control method for mixed fan insertion, the method comprising: obtaining a first PID parameter of a PID controller, the PID controller being used to control the fan speed; obtaining the actual temperature during operation, and calculating temperature change information based on the actual temperature, the temperature change information including the actual temperature change rate and / or change acceleration; determining a second PID parameter based on the temperature change information; and modifying the configuration parameters of the PID controller from the first PID parameter to the second PID parameter to adjust the fan speed. In this way, the present application uses mathematical modeling to use the target temperature change rate, the actual temperature change rate, and the acceleration as feedback sources of the PID controller, and dynamically corrects the PID parameters of the PID controller according to the actual temperature change rate during operation, so that the PID algorithm parameters and actual temperature changes of any type of fan gradually approach the optimal, achieving a good fan regulation and heat dissipation effect when mixed with any type of fan.
[0005] In some possible implementations, the first PID parameters include a P parameter, and determining a second PID parameter based on temperature change information includes: if the actual temperature change rate exceeds a first threshold, reducing the P parameter to reduce the temperature change rate. In this way, since the temperature drops faster than the set rate, the fan speed is too high, which is not conducive to energy conservation. Therefore, the P parameter of the PID controller is dynamically modified based on the actual temperature change rate during operation, slowing the cooling rate to facilitate energy conservation.
[0006] In some possible implementations, the first PID parameters include a P parameter, and determining a second PID parameter based on temperature change information includes increasing the P parameter to increase the temperature change rate when the actual temperature change rate is less than a first threshold. In this way, since the temperature drops slower than the set value, the fan speed is too slow to achieve optimal cooling. Therefore, the P parameter of the PID controller is dynamically modified based on the actual temperature change rate and acceleration during operation, thereby increasing the temperature drop rate to achieve optimal cooling.
[0007] In some possible implementations, the first PID parameters include an I parameter. Determining a second PID parameter based on temperature change information includes reducing the I parameter to reduce the acceleration when the acceleration increases. In this way, the I parameter of the PID controller can be dynamically modified based on the acceleration of the temperature change during operation, minimizing the increase in speed and thus facilitating energy conservation.
[0008] In some possible implementations, the first PID parameters include an I parameter. Determining a second PID parameter based on temperature change information includes increasing the I parameter to increase the acceleration of the change when acceleration decreases. In this way, the I parameter of the PID controller can be dynamically modified based on the acceleration of temperature changes during operation, increasing the magnitude of the speed increase to accelerate temperature changes.
[0009] In some possible implementations, determining the second PID parameter based on the temperature change information includes:
[0010] The actual temperature change rate and the first threshold are input into the first adjustment model, and the first adjustment model outputs the estimated P parameter to obtain the second PID parameter. In this way, the P parameter can be quickly corrected through the first adjustment model.
[0011] In some possible implementations, determining the second PID parameter based on the temperature change information includes inputting the change acceleration into a second adjustment model, which outputs a pre-estimated I parameter to obtain the second PID parameter. In this manner, the I parameter can be quickly corrected using the second adjustment model.
[0012] In some feasible implementations, modifying the configuration parameters of the PID controller from the first PID parameters to the second PID parameters further includes: inputting the second PID parameters into the PID controller; and the PID controller adjusting the PWM duty cycle based on the second PID parameters to change the fan speed. In this way, the PID algorithm parameters and temperature-dependent speed control curves of any fan type can be gradually optimized, achieving excellent fan regulation and heat dissipation performance even when fans of any type are mixed.
[0013] In a second aspect, an embodiment of the present application provides a server, comprising a fan control device and a fan as in the second aspect, wherein the fan control device is configured to execute any method as in the first aspect.
[0014] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program, the method as described in any one of the first aspects is implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a fan hybrid control device for executing any method as in the first aspect, the device comprising at least: a parameter reading module for obtaining a first PID parameter of a PID controller, the PID controller being used to control the fan speed; a speed feedback module for obtaining the actual temperature during operation and calculating temperature change information based on the actual temperature, the temperature change information including the actual temperature change speed and / or change acceleration; a parameter correction module for determining a second PID parameter based on the temperature change information; and a speed regulation module for modifying the configuration parameters of the PID controller from the first PID parameter to the second PID parameter.
[0016] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the method of any one of the first aspects is implemented.
[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements any method of the first aspect when executed by a computer. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the multiple embodiments disclosed in this specification, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings described below are only the multiple embodiments disclosed in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] The following is a brief introduction to the drawings required for describing the embodiments or prior art.
[0020] Figure 1 A control principle diagram of fan hybrid plug-in provided in this application;
[0021] Figure 2 A schematic diagram of a fan hybrid plug-in control method;
[0022] Figure 3 Schematic diagram of the fan hybrid plug-in control method provided in Example 1 of the present application;
[0023] Figure 4 Schematic diagram of the fan hybrid plug-in control method provided in Example 2 of the present application;
[0024] Figure 5 Schematic diagram of the fan hybrid plug-in control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
[0026] In the description of the embodiments of the present application, words such as "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of the present application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.
[0027] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, B exists alone, and A and B exist at the same time. In addition, unless otherwise specified, the term "plurality" means two or more. For example, "multiple systems" refers to two or more systems, and "multiple terminals" refers to two or more terminals.
[0028] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly identifying the technical features being referred to. Thus, features specified as "first" or "second" may explicitly or implicitly include one or more of such features. The terms "include," "comprising," "having," and their variations all mean "including but not limited to," unless otherwise specifically emphasized.
[0029] In the description of the embodiments of the present application, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
[0030] In the description of the embodiments of the present application, the terms "first\second\third, etc." or module A, module B, module C, etc. are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that the specific order or sequence can be interchanged where permitted so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0031] In the description of the embodiments of the present application, the numbers representing the steps, such as S110, S120, etc., do not necessarily mean that the steps must be executed in this manner. If permitted, the order of the previous and next steps can be interchanged, or they can be executed simultaneously.
[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0033] The PID algorithm is an algorithm that adjusts the proportional (P), integral (I) and differential (D) parameters based on the deviation.
[0034] A PID controller is a controller that uses the proportional (P), integral (I), and differential (D) of the deviation to form a control variable through a linear combination, and uses the control variable to control the controlled object.
[0035] When controlling mixed fan insertion, you typically need to first know the fan type. Then, based on the fan type, you need to match the corresponding PID algorithm parameters and the fan speed control curve for different temperature differences. Using these PID parameters and the corresponding speed control curve, you can control the fan speed to achieve the desired temperature control effect. Because the PID parameters and speed control curve are fixed, randomly inserting fans of different models will cause the PID controller to be unable to adapt to the fan model, resulting in poor temperature control.
[0036] To this end, the present application provides a control method for mixed fan insertion. Through mathematical modeling, the target speed of temperature change, the actual speed of temperature change and the acceleration are used as feedback sources of the PID controller. The PID parameters of the PID controller are dynamically corrected according to the actual speed of temperature change during operation, so that the PID algorithm parameters and actual temperature changes of any type of fan gradually approach the optimal, so that any type of fan mixed insertion can still have a good fan regulation and heat dissipation effect.
[0037] Figure 1 This is a control principle diagram of a fan hybrid plug-in provided by this application. Figure 1 As shown in the figure, the temperature sensor collects the actual temperature of a device in the server during operation in real time. The PID controller takes the actual temperature, target temperature, and PID parameters as input, and the controlled object is the fan speed. Through mathematical modeling, a PID parameter adjustment model is obtained and an appropriate feedback source is selected. The PID parameter adjustment model dynamically corrects the PID parameters based on the information fed back by the feedback source. The PID controller dynamically adjusts the pulse width modulation (PWM) duty cycle based on the corrected PID parameters to change the fan speed and match the PID parameters to the corresponding fan. The PWM duty cycle is used to adjust the fan speed. The larger the PWM duty cycle, the faster the fan speed. The target temperature can be within the set operating temperature range.
[0038] The information fed back by the feedback source includes the target speed, actual speed and acceleration of the temperature change. The target speed, actual speed and acceleration of the temperature change can be used as input parameters of the PID parameter adjustment model. The PID parameter adjustment model estimates the P and / or I parameters. The PID controller adjusts the PWM duty cycle according to the P and / or I parameters, thereby adjusting the fan speed. The technical solution of the present application is described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0039] Figure 2 Figure 1 is a schematic diagram of a fan hybrid plug-in control method. Figure 2 As shown, the method includes: obtaining a first PID parameter of a PID controller, the PID controller is used to control the fan speed; obtaining the actual temperature during operation, and calculating temperature change information based on the actual temperature, the temperature change information including the change speed and / or change acceleration of the actual temperature; determining a second PID parameter based on the temperature change information; and modifying the configuration parameters of the PID controller from the first PID parameter to the second PID parameter.
[0040] Specifically, an embodiment of the present application provides a method for controlling fan hybrid insertion, comprising the following steps:
[0041] S111, obtaining initial PID parameters of a PID controller, where the PID controller is used to control the fan speed; the initial PID parameters may be recorded as first PID parameters.
[0042] The initial PID parameters may be PID parameters read from a storage device, or factory PID parameters configured by a vendor, or PID parameters currently being used during server operation.
[0043] When the server starts, the PID controller controls the duty cycle of the output pulse width modulation (PWM) waveform according to the PID parameters read from the storage device or the factory PID parameters configured by the supplier to drive the fan to rotate.
[0044] S112, obtaining the actual temperature during the operation, and calculating temperature change information based on the actual temperature, where the temperature change information includes a change speed and / or a change acceleration of the actual temperature.
[0045] During the operation of the server, the temperature T is collected in real time by the temperature sensor. t is the actual temperature. Actual temperature T t It can be the current temperature of a device or board collected in real time by a temperature sensor, or it can be the ambient temperature of the area where multiple devices or boards are located collected in real time by a temperature sensor.
[0046] During server operation, different components have different operating temperature ranges. For example, the CPU operates in a temperature range of 60°C to 70°C, the network card in a temperature range of 35°C to 45°C, and the RAID card in a temperature range of 45°C to 55°C.
[0047] Target temperature T M The temperature range within which one or more components are designed to operate normally. For different components or boards in a server, fans are typically configured to dissipate heat to achieve or maintain the normal operating temperature. Multiple components or boards in the same area can also share a single fan to achieve or maintain the normal operating temperature.
[0048] At the actual temperature T t With the target temperature T M When the difference between the actual temperature and the actual temperature exceeds the set difference range, the actual temperature change rate Vt and / or change acceleration A of the actual temperature are calculated at the current fan speed.
[0049] For example, the target temperature T M and the actual temperature T t The difference is ΔT:
[0050] ΔT=T t -T N (1)
[0051] In formula (1), at the actual temperature T t The value is greater than the target temperature T M When the value of ΔT exceeds the set difference range, the actual temperature change rate Vt and acceleration A are calculated.
[0052] For example, the normal operating temperature range of the CPU is 60°C to 70°C, and the target temperature T can be set.M The setting range of the difference is -5℃~+5℃. t When the value of is 75°C, greater than 65°C, and the difference exceeds +5°C, calculate the actual temperature change rate Vt and / or change acceleration A at the current fan speed.
[0053] Actual speed V t The actual temperature T per unit time t Towards target temperature T M Approximate true speed:
[0054] V t =(T t2 -T t1 ) / (t2-t1) (2)
[0055] In formula (2), T t2 is the actual temperature at time t2, T t1 is the actual temperature at time t1, and (t2-t1) is the duration of the temperature change.
[0056] The acceleration of actual temperature change is the change in the average actual speed over a period of time, A. The acceleration A can be calculated based on the rate of change of the temperature change speed per unit time of the actual temperature at the previous moment:
[0057] A=(V t2 -V t1 ) / (t2-t1) (3)
[0058] In formula (3), V t2 is the value of the actual temperature change rate at time t2, V t1 is the actual temperature change rate at time t1, and (t2-t1) is the duration of the temperature change.
[0059] In some possible implementations, the acceleration A may be calculated based on the average actual speed of the temperature change over N unit times at the previous moment and the change in the average actual speed over the latest N unit times.
[0060] S113: Determine a second PID parameter based on the temperature change information.
[0061] The PID parameters are dynamically modified based on the actual temperature change rate and / or change acceleration. The modified PID parameters can be recorded as second PID parameters. The specific method of dynamically modifying the PID parameters is described in detail with reference to the following Examples 1 and 2.
[0062] S114: Modify the configuration parameters of the PID controller from the first PID parameters to the second PID parameters.
[0063] The PID controller adjusts the duty cycle of the output PWM according to the second PID parameter, changes the speed of the fan, and ultimately achieves a dynamic balance between the target speed Vp and the actual speed Vt.
[0064] The target speed Vp is the theoretical speed at which the actual temperature approaches the target temperature within a set unit time. The target speed Vp can be a set value or range, and the set target speed Vp is recorded as the first threshold.
[0065] For example, if the actual temperature is 47°C, the normal operating temperature range is 43-45°C, and the ideal cooling rate is to reduce the actual temperature to the target temperature of 45 within 1 minute, then the target speed Vp is set to 2-4°C / minute. The target speed Vp, which brings the actual temperature closer to the target temperature, is a cooling rate of 2-4°C per minute. If the current actual speed Vt is cooling by 1-1.5°C per minute, in order to make the current actual speed Vt consistent with the target speed Vp, the PID controller adjusts the output PWM duty cycle based on the second PID parameter, increasing the fan speed, ultimately achieving a dynamic balance between the actual speed Vt and the target speed Vp.
[0066] Example 1
[0067] Figure 3 This is a schematic diagram of the fan hybrid plug-in control method provided in Example 1 of the present application. Figure 3 As shown, based on the actual temperature change speed and / or change acceleration, a step-by-step method can be used for adjustment to dynamically correct the PID parameters, substitute the corrected PID parameters into the PID controller, output PWM, control the fan speed, and form a closed-loop system.
[0068] The control method for fan hybrid insertion provided in Example 1 of the present application includes:
[0069] S301, when the server starts, obtains initial PID parameters from the storage device.
[0070] The controller modulates the duty cycle of the pulse width modulation (PWM) waveform according to the initial PID parameters to drive the fan to rotate.
[0071] S302, obtaining the actual temperature T t , determine the actual temperature T t With the target temperature T M Whether the difference between the actual temperature T exceeds the set second threshold, if it exceeds the set second threshold, perform the following steps S303-S311; t With the target temperature T MIf the difference between the two does not exceed the set second threshold, it is considered that the current actual temperature is within a reasonable range and can be maintained. M and the actual temperature T t To calculate the difference ΔT, refer to formula (1).
[0072] S303: Obtain the values of the actual temperature change rate Vt and the change acceleration A. Hereinafter, the actual temperature change rate Vt is simplified as actual rate Vt.
[0073] To calculate the actual velocity Vt and acceleration A, please refer to formula (2) and formula (3), which will not be repeated here.
[0074] S304: Determine whether the actual speed Vt is greater than the target speed Vp.
[0075] When the target speed Vp is greater than the actual temperature change speed Vt, it means that the temperature drop speed is slower than the setting speed and the fan speed is too slow. The temperature should be lowered faster to achieve the set temperature control effect, and step S305 is executed.
[0076] When the target speed Vp is less than the actual speed Vt, it means that the temperature drops faster than the setting speed and the fan speed is too fast, which is not conducive to energy saving. The cooling speed should be slowed down to achieve the set temperature control effect, and step S306 is executed.
[0077] When the target speed Vp of the temperature change is equal to the actual speed Vt, the parameter is not corrected.
[0078] S305: Increase the P parameter to increase the actual speed Vt.
[0079] In some embodiments of the present application, the P parameter may be increased in fixed units, one step at a time, so that the speed of temperature change is gradually accelerated.
[0080] For example, the initial P=1.5, the step size is 0.2, and the P parameter is increased by one step every 0.1 second. After 0.1 second, P=1.7; after 0.2 seconds, P=1.9; ... after 1 second, P=3.5. The fan speed gradually increases with the step increase of the P parameter, so that the actual speed Vt gradually increases.
[0081] In some embodiments of the present application, the P parameter may be increased in N steps at a time according to a fixed unit to gradually accelerate the temperature change rate.
[0082] For example, the initial P=1.5, the step size is 0.2, and the P parameter is increased by 5 steps every 0.1 second. After 0.2 seconds, P=3.5. The fan speed increases rapidly with the P parameter, and the actual temperature change rate Vt accelerates rapidly.
[0083] S306: Reduce the P parameter to slow down the actual speed Vt.
[0084] In some embodiments of the present application, the P parameter may be reduced in fixed units, one step at a time, so that the rate of temperature change is gradually slowed down.
[0085] For example, the initial P=3.5, the step size is 0.2, and the P parameter is reduced by one step every 0.1 second. After 0.1 second, P=3.3; after 0.2 seconds, P=3.1; ..., after 1 second, P=1.5. The fan speed gradually slows down as the P parameter decreases, causing the actual speed Vt to gradually slow down.
[0086] In some embodiments of the present application, the P parameter may be reduced in N steps at a time according to a fixed unit to rapidly slow down the rate of temperature change.
[0087] For example, the initial P=3.5, the step size is 0.2, and the P parameter is reduced by 5 steps every 0.1 second. After 0.2 seconds, P=1.5, and the fan speed slows down rapidly along with the P parameter, causing the actual speed Vt to slow down rapidly.
[0088] In order to quantitatively describe how much adjustment has been made, the fixed unit refers to the smallest unit, such as unit time.
[0089] S307: Determine whether the acceleration increases.
[0090] When the value of speed A increases, S308 is executed; when the value of speed A decreases, S309 is executed; when the value of speed A remains unchanged, it is considered that the current actual temperature is within a reasonable range and the status quo can be maintained.
[0091] S308: Reduce the I parameter to reduce the acceleration of temperature change within a period of time.
[0092] In some embodiments of the present application, the I parameter may be reduced in fixed units, one step at a time, so that the acceleration of the temperature change gradually slows down.
[0093] In some embodiments of the present application, the I parameter may be reduced in fixed units, N steps at a time, to slow down the acceleration of the temperature change.
[0094] S309: Increase the I parameter to speed up the acceleration of temperature change within a period of time.
[0095] In some embodiments of the present application, the I parameter may be increased in fixed units, one step at a time, so that the acceleration of the temperature change is gradually accelerated.
[0096] In some embodiments of the present application, the I parameter may be increased in fixed units of N steps at a time to speed up the acceleration of the temperature change.
[0097] S310: Input the corrected P parameter and / or I parameter into the PID controller.
[0098] In some embodiments of the present application, the corrected P parameter and / or I parameter may be input into the PID controller one step at a time in a fixed unit, so that the speed of change and / or the acceleration of change of the actual temperature gradually become faster.
[0099] In some embodiments of the present application, the corrected P parameter and / or I parameter may be input into the PID controller in fixed units of N steps at a time, so as to increase the speed and / or acceleration of the actual temperature change.
[0100] S311, the PID controller adjusts the PWM duty cycle according to the corrected P parameter and / or I parameter to change the fan speed.
[0101] In some embodiments of the present application, the corrected P parameter can be input into a PID controller. The PID controller changes the fan speed according to the corrected P parameter and adjusts the PWM duty cycle, thereby changing the temperature of the corresponding device or board in the server.
[0102] The corrected I parameter can also be input into the PID controller. The PID controller adjusts the PWM duty cycle according to the corrected I parameter, changes the fan speed, and thus changes the temperature of the server.
[0103] The corrected P parameter and I parameter can also be input into the PID controller at the same time. The PID controller adjusts the PWM duty cycle according to the corrected P parameter and I parameter, changes the fan speed, and thus changes the temperature of the corresponding device or board in the server.
[0104] In some embodiments of the present application, the corrected PID parameters can be stored in a storage device with power-off protection, used directly at the next startup, and continue to be dynamically corrected.
[0105] The fan mixed insertion control method provided in Example 1 of the present application is applied to the fan control heat dissipation scenario in the server. The P, I, and D parameters after the storage PID self-adaptation is completed are dynamically adjusted according to the feedback source, and the corrected P, I, and D parameters are stored in a storage device for power-off protection. The P, I, and D parameters in the storage device are directly used at the next startup, and the P, I, and D parameters and the PWM output duty cycle are continuously dynamically adjusted to achieve a heat dissipation effect that meets the requirements.
[0106] Example 2
[0107] Figure 4This is a schematic diagram of the fan hybrid plug-in control method provided in Example 2 of this application. Figure 4 As shown, based on the actual temperature change rate and / or change acceleration, a PID parameter adjustment model derived through mathematical modeling can be used for adjustment. The PID parameters are dynamically modified, the new parameters are substituted into the PID controller, and a PWM output is output to form a closed-loop system. The PID parameter adjustment model includes a trained P parameter adjustment model and a trained I parameter adjustment model. The P parameter adjustment model is used to pre-estimate the value of the P parameter based on the first threshold value Vp of the actual temperature change and the actual speed Vt. The I parameter adjustment model is used to pre-estimate the value of the I parameter based on the actual temperature change acceleration.
[0108] The fan hybrid plug-in control method provided in Example 2 of the present application includes:
[0109] S401, when the server starts, obtains initial PID parameters from the storage device.
[0110] The duty cycle of the pulse width modulation (PWM) waveform output is modulated according to the initial PID parameters to control the fan speed.
[0111] S402, obtain the actual temperature T t , determine the actual temperature T t With the target temperature T M Whether the difference between the two exceeds the set second threshold, if it exceeds the set second threshold, execute step S403; at the actual temperature T t With the target temperature T M When the difference between the two does not exceed the set second threshold, it is considered that the current actual temperature is within a reasonable range and can be maintained.
[0112] According to the set target temperature T M and the actual temperature T t To calculate the difference ΔT, refer to formula (1).
[0113] S403, obtaining the values of the actual temperature change rate Vt and the change acceleration A.
[0114] To calculate the actual velocity Vt and acceleration A, please refer to formula (2) and formula (3), which will not be repeated here.
[0115] S404: Input the first threshold value Vp of the actual temperature and the value of the change rate Vt into the trained P parameter adjustment model, and the P parameter adjustment model outputs the estimated P parameter. The P parameter adjustment model can be recorded as a first adjustment model.
[0116] S405: Input the value of the change acceleration A into the trained I parameter adjustment model, and output the estimated I parameter. The I parameter adjustment model can be referred to as a second adjustment model.
[0117] S406: Input the pre-estimated P parameter and / or I parameter into the PID controller.
[0118] S407 , the PID controller adjusts the duty cycle of the PWM according to the pre-estimated P parameter and / or I parameter, changes the speed of the fan, and further changes the temperature of one or more components.
[0119] In some embodiments of the present application, the pre-estimated P parameter may be input into a PID controller, and the PID controller changes the speed of the fan according to the new P parameter and the adjusted PWM duty cycle.
[0120] The pre-estimated I parameter may also be input into a PID controller, and the PID controller adjusts the duty cycle of the PWM according to the new I parameter to change the speed of the fan.
[0121] The pre-estimated P parameter and I parameter may also be input into the PID controller at the same time, and the PID controller adjusts the duty cycle of the PWM according to the pre-estimated P parameter and I parameter to change the speed of the fan.
[0122] The fan mixed insertion control method provided in Example 2 of the present application can correct the P and I parameters according to the feedback of temperature changes during the operation of the server, dynamically and adaptively adjust the PID algorithm parameters and fan speed of any type of fan, so that the speed regulation curve gradually approaches the optimal one, thereby achieving a good heat dissipation effect when any type of fan is mixed.
[0123] A fan hybrid control method provided in an embodiment of the present application is based on a mathematical model designed based on the actual temperature change rate and acceleration. The model dynamically corrects the P and I parameters of the PID controller according to the changes in the actual temperature change rate and acceleration during operation, so that the control effect of the PID controller gradually improves, thereby achieving the effect of improving the fan regulation and heat dissipation.
[0124] A fan mixed insertion control method provided in an embodiment of the present application can solve the problems of poor fan regulation and heat dissipation in fan mixed insertion scenarios, and improve the fan temperature regulation and heat dissipation effects in fan mixed insertion scenarios.
[0125] Figure 5 Schematic diagram of the fan hybrid plug-in control device provided in the embodiment of the present application. Figure 5As shown, an embodiment of the present application provides a fan hybrid control device for executing the method described in any of the above embodiments. The device at least includes: a parameter reading module 51 for obtaining a first PID parameter of a PID controller, which is used to control the fan speed; a speed feedback module 52 for obtaining the actual temperature during operation and calculating temperature change information based on the actual temperature, the temperature change information including the actual temperature change speed and / or change acceleration; a parameter correction module 53 for determining a second PID parameter based on the temperature change information; and a speed regulation module 54 for modifying the configuration parameters of the PID controller from the first PID parameter to the second PID parameter. The fan speed can be changed in real time according to the corrected PID parameter.
[0126] An embodiment of the present application provides a server, including the fan hybrid plug-in control device and a fan as described above, wherein the fan hybrid plug-in control device is used to execute any one of the methods described above.
[0127] An embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program, the fan hybrid plug-in control method described in any one of the above items is implemented.
[0128] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, any of the above methods is implemented.
[0129] An embodiment of the present application provides a computer program product, including a computer program, which implements any of the methods described above when executed by a computer.
[0130] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0131] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0132] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted via the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)).
[0133] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.
Claims
1. A fan hybrid plug-in control method, characterized in that: Applicable to any type of fan mixed insertion scenario, the method includes: Obtaining a first PID parameter of a PID controller, the PID controller being used to control a fan speed; wherein the first PID parameter includes a P parameter and an I parameter; and the first PID parameter includes a PID parameter read from a storage device; Acquiring an actual temperature of the device during operation, and calculating temperature change information based on the actual temperature, the temperature change information including a change rate and acceleration of the actual temperature; Determining a second PID parameter based on the temperature change information includes: When the actual temperature change rate is greater than the target rate, the P parameter is reduced in fixed unit steps to gradually slow down the temperature change rate; When the actual temperature change rate is less than the target threshold, increasing the P parameter in fixed unit steps to gradually accelerate the temperature change rate; When the acceleration increases, the I parameter is reduced in fixed unit steps to gradually slow down the acceleration of temperature change. When the acceleration decreases, the I parameter is increased in fixed unit steps so that the acceleration of the temperature change gradually increases; the second PID parameter includes an updated P parameter and / or an updated I parameter; The configuration parameters of the PID controller are modified from the first PID parameters to the second PID parameters to adjust the fan speed.
2. The method according to claim 1, characterized in that The modifying the configuration parameters of the PID controller from the first PID parameters to the second PID parameters includes: inputting the second PID parameter into the PID controller; The PID controller adjusts the duty cycle of the PWM according to the second PID parameter to change the rotation speed of the fan.
3. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program, the method according to claim 1 or 2 is implemented.
Citation Information
Patent Citations
Fan rotational speed control method and device
CN111963471A
Control device and control method
WO2015045176A1