Fan control method, device, electronic device and storage medium

By obtaining the server's temperature and speed logs, the fan PID regulation coefficient is automatically optimized, which solves the problem of low efficiency in manual tuning in the existing technology, and achieves efficient fan regulation.

CN116025581BActive Publication Date: 2025-09-02INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211617181.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-15
Publication Date
2025-09-02
Estimated Expiration
2042-12-15

AI Technical Summary

Technical Problem

In the prior art, fan regulation efficiency is low, and PID parameter adjustment is required manually, which consumes a lot of manpower and material resources.

Method used

By obtaining the temperature log and fan speed log of the control components in the server, the PID regulation coefficient is automatically optimized, including proportional, integral and differential coefficients, and adaptive regulation is achieved.

Benefits of technology

Automatically optimize fan PID control parameters, improve fan control efficiency and save manpower and material resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116025581B_ABST
    Figure CN116025581B_ABST
Patent Text Reader

Abstract

The present invention provides a fan control method, device, electronic device, and storage medium, relating to the field of automated control technology. The method comprises: obtaining a temperature log of a control component in a server during a current cycle, as well as a speed log of a fan in the server during the current cycle; obtaining a PID control coefficient corresponding to the current cycle based on the temperature and speed logs and the PID control coefficient corresponding to the previous cycle; and controlling the fan speed based on the PID control coefficient corresponding to the current cycle. The present invention uses code to automatically implement repeated iterations in the PID control parameter tuning process for server fans, automatically optimizing the fan PID control parameters for fan control, and thus saving manpower.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automation control technology, and in particular to a fan control method, device, electronic equipment and storage medium. Background Art

[0002] The fan speed control mechanism in current air-cooled servers mostly uses PID (Proportion-Integration-Differential) control. A PID controller is a common closed-loop controller composed of proportional, integral, and differential components, which determine the control system's response speed, steady-state error, and overshoot, respectively. Due to its simple structure, robustness to model errors, ease of operation, and ease of tuning in practical applications, PID control is widely used in industrial process control.

[0003] When designing a PID controller for an air-cooled server fan speed control system, the most important step is to determine the coefficients of proportion (P), integration (I), and differentiation (D), also known as PID parameter tuning.

[0004] In current server testing, PID parameter tuning is a difficult process. The three parameters P, I, and D need to be manually modified multiple times, and the server's heat dissipation test needs to be manually performed after each parameter modification to evaluate whether the parameter settings are reasonable. This leads to low fan control efficiency and consumes a lot of manpower and material resources in actual projects. Summary of the Invention

[0005] The present invention provides a fan control method, device, electronic device and storage medium, which are used to solve the defects in the prior art of manual PID parameter setting, resulting in low fan control efficiency and the need to consume a large amount of manpower and material resources, and realize automatic optimization of fan PID control parameters to automatically and efficiently perform fan control.

[0006] The present invention provides a fan control method, comprising:

[0007] Obtaining a temperature log of a control component in a server during a current cycle, and a rotation speed log of a fan in the server during the current cycle;

[0008] Obtaining the PID control coefficient corresponding to the current cycle according to the temperature log, the speed log, and the PID control coefficient corresponding to the previous cycle;

[0009] The rotation speed of the fan is regulated according to the PID control coefficient corresponding to the current cycle.

[0010] According to a fan control method provided by the present invention, obtaining the PID control coefficient corresponding to the current cycle based on the temperature log, the speed log, and the PID control coefficient corresponding to the previous cycle includes:

[0011] According to the temperature log, obtaining the highest temperature within the target time period of the current cycle;

[0012] comparing the maximum temperature with a reference temperature in the server;

[0013] When it is determined that the maximum temperature is greater than or equal to the reference temperature, the proportional coefficient of the PID control coefficient corresponding to the previous cycle is used as the proportional coefficient of the PID control coefficient corresponding to the current cycle;

[0014] Obtaining a speed standard deviation within the target time period according to the speed log;

[0015] Obtaining a temperature standard deviation within the target time period according to the temperature log;

[0016] According to the speed standard deviation and the temperature standard deviation, and the PID control coefficient corresponding to the previous cycle, the integral coefficient and the differential coefficient in the PID control coefficient corresponding to the current cycle are obtained.

[0017] According to a fan control method provided by the present invention, the method further includes:

[0018] When it is determined that the maximum temperature is less than the reference temperature, adding the proportional coefficient of the PID control coefficient corresponding to the previous cycle to a first preset value, and obtaining the proportional coefficient of the PID control coefficient corresponding to the current cycle according to the addition result;

[0019] Using the integral coefficient of the PID control coefficient corresponding to the previous cycle as the integral coefficient of the PID control coefficient corresponding to the current cycle;

[0020] The differential coefficient of the PID control coefficient corresponding to the previous cycle is used as the differential coefficient of the PID control coefficient corresponding to the current cycle.

[0021] According to a fan control method provided by the present invention, obtaining the integral coefficient and the differential coefficient of the PID control coefficient corresponding to the current cycle based on the speed standard deviation and the temperature standard deviation, and the PID control coefficient corresponding to the previous cycle, includes:

[0022] comparing the rotation speed standard deviation with a first threshold, and comparing the temperature standard deviation with a second threshold;

[0023] When it is determined that the speed standard deviation is less than or equal to the first threshold value, and the temperature standard deviation is less than or equal to the second threshold value, using the integral coefficient of the PID control coefficient corresponding to the previous cycle as the integral coefficient of the PID control coefficient corresponding to the current cycle;

[0024] According to the temperature log, obtaining the highest temperature in the current period;

[0025] The differential coefficient of the PID control coefficient corresponding to the current cycle is obtained according to the highest temperature in the current cycle, the reference temperature, and the differential coefficient of the PID control coefficient corresponding to the previous cycle.

[0026] According to a fan control method provided by the present invention, the method further includes:

[0027] When it is determined that the speed standard deviation is greater than the first threshold value, and / or the temperature standard deviation is greater than the second threshold value, adding the integral coefficient of the PID control coefficient corresponding to the previous cycle to a second preset value, and obtaining the integral coefficient of the PID control coefficient corresponding to the current cycle according to the addition result;

[0028] The differential coefficient of the PID control coefficient corresponding to the previous cycle is used as the differential coefficient of the PID control coefficient corresponding to the current cycle.

[0029] According to a fan control method provided by the present invention, obtaining the differential coefficient of the PID control coefficient corresponding to the current cycle based on the maximum temperature in the current cycle, the reference temperature, and the differential coefficient of the PID control coefficient corresponding to the previous cycle includes:

[0030] subtracting the maximum temperature in the current period from the reference temperature, and dividing the subtraction result by the reference temperature;

[0031] comparing the division result with a third threshold;

[0032] When it is determined that the division result is less than or equal to the third threshold, the differential coefficient of the PID control coefficient corresponding to the previous cycle is used as the differential coefficient of the PID control coefficient corresponding to the current cycle.

[0033] According to a fan control method provided by the present invention, the method further includes:

[0034] When it is determined that the division result is greater than the third threshold, the differential coefficient in the PID control coefficient corresponding to the previous cycle is divided by the third preset value, and the differential coefficient in the PID control coefficient corresponding to the current cycle is obtained according to the division result.

[0035] According to a fan control method provided by the present invention, the fan speed is controlled according to the PID control coefficient corresponding to the current cycle, including:

[0036] Calculating a speed control value of the fan in the current cycle based on a proportional coefficient, an integral coefficient, and a differential coefficient in the PID control coefficient corresponding to the current cycle and the speed of the fan in the previous cycle;

[0037] The speed of the fan is regulated according to the speed adjustment control value.

[0038] The present invention also provides a fan control device, comprising:

[0039] A first acquisition module is configured to acquire a temperature log of a control component in a server in a current cycle, and a rotation speed log of a fan in the server in the current cycle;

[0040] A second acquisition module is configured to acquire the PID control coefficient corresponding to the current cycle based on the temperature log, the speed log, and the PID control coefficient corresponding to the previous cycle;

[0041] The control module is used to control the rotation speed of the fan according to the PID control coefficient corresponding to the current cycle.

[0042] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-described fan control methods is implemented.

[0043] The present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the fan control method described above is implemented.

[0044] The present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned fan control methods.

[0045] The fan control method, device, electronic device, and storage medium provided by the present invention obtain the PID control coefficient corresponding to the current cycle based on the temperature log of the control component in the server and the speed log of the fan in the server during the current cycle, so as to adaptively control the fan speed. The code automates the repeated iterations in the PID control parameter setting link of the server fan, automatically optimizes the fan PID control parameters, and automatically and efficiently performs fan control, saving manpower. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 This is one of the flow charts of the fan control method provided by the present invention;

[0048] Figure 2 This is the second flow chart of the fan control method provided by the present invention;

[0049] Figure 3 Schematic diagram of memory temperature versus time curve and speed versus time curve in the fan control method provided by the present invention;

[0050] Figure 4 It is a structural schematic diagram of the fan control device provided by the present invention;

[0051] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0052] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0053] PID control is the most commonly used control method in industrial production, which consists of proportional control, integral control and differential control.

[0054] Among them, proportional control is the simplest control method. The output of its controller is proportional to the input error signal. Therefore, when only proportional control is used, there will be a steady-state error in the system output.

[0055] In integral control, the controller output is proportional to the integral of the input error signal. If a steady-state error persists after an automatic control system reaches steady-state, it is said to have a steady-state error, or simply a differential system. To eliminate this steady-state error, an integral term must be introduced into the controller. The integral term integrates the error over time, increasing with time. Thus, even with a small error, the integral term will increase over time, driving the controller output higher and further reducing the steady-state error until it reaches zero. Therefore, a proportional + integral controller can eliminate steady-state error after the system reaches steady-state.

[0056] In differential control, the controller output is proportional to the differential of the input error signal (i.e., the rate of change of the error). Automatic control systems may experience oscillation or even instability during the error adjustment process. This is due to the presence of large inertial components (links) or hysteresis components, which act to suppress the error and whose changes always lag behind the change in the error. The solution is to advance the change in the error suppression effect. That is, when the error approaches zero, the error suppression effect should be zero. This means that simply introducing a proportional term into the controller is often insufficient, as the proportional term only amplifies the error amplitude. Instead, a differential term is needed to predict the error trend. Thus, a controller with both proportional and differential functions can proactively set the error suppression effect to zero, or even negative, thereby avoiding severe overshoot of the controlled variable. Therefore, for controlled objects with large inertia or hysteresis, a proportional-plus-differential controller can improve the dynamic characteristics of the system during regulation.

[0057] PID parameter tuning is the process of determining the values ​​of the three control parameters of PID control. In practical applications, PID parameter tuning can be done by theoretical calculation or engineering tuning.

[0058] The following combination Figure 1 The fan control method of this embodiment is described. The fan control method can automatically adjust the fan PID control parameters in a Linux environment, greatly improving the efficiency of heat dissipation testing in the server field and reducing manpower investment.

[0059] like Figure 1 FIG. 1 is a flow chart of a fan control method provided in this embodiment, which includes:

[0060] Step 101: Obtain a temperature log of a control component in a server in a current cycle, and a rotation speed log of a fan in the server in the current cycle;

[0061] The server includes fans and control components.

[0062] The control component is a component in the server that requires temperature control. The control component can be a power-consuming component such as a CPU (Central Processing Unit), memory, or hard disk, whose temperature data can be read within the system. This embodiment does not specifically limit the type of control component.

[0063] The time period i may be a period for recording log data. For example, the log data may be fan speed information of the server or temperature information of a control component of the server.

[0064] The duration T of each time period can be set according to actual scenarios and requirements. For example, the duration T of the time period for information recording in this embodiment can be set to 25 minutes.

[0065] The time step of each cycle is the time interval ΔT between each sampling, which can be set according to the actual needs of the sampled data. For example, the time step ΔT for sampling in this embodiment can be set to be less than or equal to 3 seconds.

[0066] Optionally, in the current cycle, after the control component in the server is subjected to data load pressure, the log data of the current cycle is recorded according to the set time step.

[0067] When the fan needs to be regulated to control the temperature of the control component in the server, the temperature log of the control component in the current cycle and the speed log of the fan in the current cycle are obtained from the Log data of the current cycle.

[0068] It should be noted that the data load pressure can be applied to data transmission using a regulating component, data storage using a regulating component, or data reading, which is not specifically limited in this embodiment.

[0069] Step 102: Obtain the PID control coefficient corresponding to the current cycle based on the temperature log, the speed log, and the PID control coefficient corresponding to the previous cycle;

[0070] The PID control coefficients include the proportional coefficient, integral coefficient, and differential coefficient for controlling the fan speed. The PID control coefficients can be initialized according to the actual scenario. For example, in this embodiment, when the cycle is i = 0 (i.e., the initial cycle), the proportional coefficient of the PID control coefficient can be set to P(i) = 2, the integral coefficient to I(i) = 0.5, and the differential coefficient to D(i) = 10.

[0071] Optionally, when the temperature log and speed log are obtained, the temperature data can be obtained by parsing the temperature log of the current cycle of the control component, and judging whether the temperature data of the current cycle meets the pre-set conditions, so as to obtain the result of the conditional judgment on the temperature data of the current cycle.

[0072] Similarly, the speed data of the fan is obtained by parsing the speed log of the current cycle, and it is determined whether the speed data of the current cycle meets the pre-set conditions, and the result of the conditional judgment on the speed data of the current cycle is obtained.

[0073] Then, based on the PID parameter adjustment logic corresponding to the result of the conditional judgment on the temperature data and the result of the conditional judgment on the speed data, the PID parameters corresponding to the previous cycle are adaptively adjusted to obtain the PID control coefficient corresponding to the current cycle. Exemplarily, the PID parameter adjustment logic may be, based on the conditional judgment result of the speed data of the current cycle and the conditional judgment result of the temperature data of the current cycle, adding the PID parameter corresponding to the previous cycle to a preset value to obtain the PID control coefficient corresponding to the current cycle, or multiplying the PID parameter corresponding to the previous cycle by a preset ratio to obtain the PID control coefficient corresponding to the current cycle, or directly using the PID parameter corresponding to the previous cycle as the PID control coefficient corresponding to the current cycle. This embodiment does not specifically limit the PID parameter adjustment logic.

[0074] Step 103: Control the rotation speed of the fan according to the PID control coefficient corresponding to the current cycle.

[0075] Optionally, after obtaining the PID control coefficient corresponding to the current cycle in step 102, the PID control coefficient can be sent to the logic calculation unit of the server, and the logic calculation unit calculates the corresponding speed control value according to the internal fan control logic rules to control the speed of the fan.

[0076] It should be noted that the above fan control method can be applied to cyclically control the fan in each cycle to optimize the temperature of each control component in the server. The fan control steps of each cycle can be referred to steps 101 to 103 and will not be repeated here.

[0077] In this embodiment, the PID control coefficient corresponding to the current cycle is obtained based on the temperature log of the control component in the server in the current cycle and the speed log of the fan in the server in the current cycle, so as to adaptively control the fan speed. The PID control parameter setting link of the server fan is repeatedly iterated through code automation, and the fan PID control parameters are automatically optimized to automatically and efficiently perform fan control, saving manpower.

[0078] Based on the above embodiments, the method of obtaining the PID control coefficient corresponding to the current cycle according to the temperature log and the speed log, and the PID control coefficient corresponding to the previous cycle in this embodiment includes: obtaining the maximum temperature within the target time period of the current cycle according to the temperature log; comparing the maximum temperature with the reference temperature in the server; when it is determined that the maximum temperature is greater than or equal to the reference temperature, using the proportional coefficient in the PID control coefficient corresponding to the previous cycle as the proportional coefficient in the PID control coefficient corresponding to the current cycle; obtaining the speed standard deviation within the target time period according to the speed log; obtaining the temperature standard deviation within the target time period according to the temperature log; obtaining the integral coefficient and differential coefficient in the PID control coefficient corresponding to the current cycle according to the speed standard deviation and the temperature standard deviation, and the PID control coefficient corresponding to the previous cycle.

[0079] The target time period of the current cycle is the time period selected for tuning the PID control coefficient. To more accurately adjust the fan speed, that is, to ensure that the read data is stable, the target time period of the current cycle can be set to a time period when the data tends to be relatively stable. For example, in this embodiment, the target time period of the current cycle can be set to the last 5 minutes of the current cycle.

[0080] Optionally, all temperature data within the target time period of the current cycle are first obtained from the temperature log, and the obtained temperature data within the target time period of the current cycle are compared to obtain the highest temperature within the target time period of the current cycle.

[0081] The reference temperature is a temperature reference point used in server fan PID control. The reference temperature can be preset manually or determined based on temperature data from the control component's temperature log from the previous cycle. This embodiment does not specifically limit how the reference temperature is obtained.

[0082] Then, the obtained maximum temperature within the target time period of the current cycle is compared with the reference temperature in the server to determine whether the maximum temperature within the target time period of the current cycle is greater than or equal to the reference temperature in the server.

[0083] When it is determined that the maximum temperature is greater than or equal to the reference temperature, the proportional coefficient P(i+1) in the PID control coefficient corresponding to the current cycle is determined to be the proportional coefficient P(i) in the PID control coefficient corresponding to the previous cycle, that is, P(i+1)=P(i); otherwise, according to the PID parameter adjustment logic corresponding to the comparison result, the proportional coefficient in the PID control coefficient corresponding to the previous cycle is logically calculated and adjusted to obtain the proportional coefficient in the PID control coefficient corresponding to the current cycle.

[0084] In addition, when it is determined that the maximum temperature is greater than or equal to the reference temperature, it is also necessary to obtain all speed data in the speed log within the target time period of the fan's current cycle, so as to obtain the speed standard deviation within the target time period through calculation, judge whether the speed standard deviation within the target time period meets the preset conditions, and obtain the result of the conditional judgment on the speed standard deviation.

[0085] Similarly, it is determined whether the temperature standard deviation of the control component within the target time period of the current cycle meets the preset condition, so as to obtain the result of the conditional determination of the temperature standard deviation.

[0086] Then, according to the PID parameter adjustment logic corresponding to the result of the conditional judgment on the speed standard deviation and / or the result of the conditional judgment on the temperature standard deviation, the integral coefficient in the PID control coefficient corresponding to the previous cycle is adjusted, and the differential coefficient in the PID control coefficient corresponding to the previous cycle is adjusted.

[0087] In this embodiment, first, the maximum temperature in the target time period is obtained according to the temperature log of the current cycle of the control component, and the maximum temperature is compared with the reference temperature preset in the server to determine whether the maximum temperature is greater than or equal to the reference temperature; when the maximum temperature is greater than or equal to the reference temperature, the proportional coefficient in the PID control coefficient corresponding to the previous cycle is obtained as the proportional coefficient in the PID control coefficient corresponding to the current cycle; then, according to the speed log and the temperature log, the speed standard deviation and the temperature standard deviation in the target time period are obtained respectively, and conditional judgment is performed respectively; finally, according to the result of the conditional judgment, the integral coefficient and the differential coefficient in the PID control coefficient corresponding to the current cycle are obtained to determine the PID control coefficient corresponding to the current cycle, so as to realize automatic optimization of the fan PID control parameters and automatically and efficiently perform fan control.

[0088] Based on the above embodiment, the method described in this embodiment further includes: when it is determined that the maximum temperature is lower than the reference temperature, adding the proportional coefficient in the PID control coefficient corresponding to the previous cycle to a first preset value, and obtaining the proportional coefficient in the PID control coefficient corresponding to the current cycle according to the addition result; using the integral coefficient in the PID control coefficient corresponding to the previous cycle as the integral coefficient in the PID control coefficient corresponding to the current cycle; and using the differential coefficient in the PID control coefficient corresponding to the previous cycle as the differential coefficient in the PID control coefficient corresponding to the current cycle.

[0089] The first preset value is used to assist in adjusting the proportional coefficient of the PID control coefficient corresponding to the previous cycle to obtain the value of the proportional coefficient of the PID control coefficient corresponding to the current cycle. Optionally, the first preset value can be a suitable increment of a numerical value preset in advance. For example, 1 can be selected as the first preset value in this embodiment.

[0090] Exemplarily, when it is determined that the maximum temperature of the control component within the target time period is lower than the reference temperature, the proportional coefficient in the PID control coefficient corresponding to the current cycle is the proportional coefficient in the PID control coefficient corresponding to the previous cycle plus the first preset value, that is, P(i+1)=P(i)+1; the result of the addition P(i+1) is obtained, that is, the proportional coefficient in the PID control coefficient corresponding to the current cycle.

[0091] At the same time, the integral coefficient I(i) in the PID control coefficient corresponding to the previous cycle is directly used as the integral coefficient I(i+1) in the PID control coefficient corresponding to the current cycle, that is, I(i+1)=I(i).

[0092] Similarly, the differential coefficient D(i) in the PID control coefficient corresponding to the previous cycle is directly used as the differential coefficient D(i+1) in the PID control coefficient corresponding to the current cycle, that is, D(i+1)=D(i), to complete the acquisition of the PID control coefficient corresponding to the current cycle.

[0093] In this embodiment, when the maximum temperature of the control component within the target time period is lower than the reference temperature, the proportional coefficient of the PID control coefficient corresponding to the current cycle is the sum of the proportional coefficient of the PID control coefficient corresponding to the previous cycle and the first preset value; then, the differential coefficient of the PID control coefficient corresponding to the previous cycle is directly obtained as the differential of the PID control coefficient corresponding to the current cycle, and the integral coefficient of the PID control coefficient corresponding to the previous cycle is obtained as the integral coefficient of the PID control coefficient corresponding to the current cycle, so as to automatically and accurately obtain all PID control coefficients corresponding to the current cycle.

[0094] Based on the above embodiment, the method of obtaining the integral coefficient and differential coefficient in the PID control coefficient corresponding to the current cycle according to the speed standard deviation and the temperature standard deviation, and the PID control coefficient corresponding to the previous cycle in this embodiment includes: comparing the speed standard deviation with a first threshold value, and comparing the temperature standard deviation with a second threshold value; when it is determined that the speed standard deviation is less than or equal to the first threshold value, and the temperature standard deviation is less than or equal to the second threshold value, using the integral coefficient in the PID control coefficient corresponding to the previous cycle as the integral coefficient in the PID control coefficient corresponding to the current cycle; obtaining the maximum temperature in the current cycle according to the temperature log; and obtaining the differential coefficient in the PID control coefficient corresponding to the current cycle according to the maximum temperature in the current cycle, the reference temperature, and the differential coefficient in the PID control coefficient corresponding to the previous cycle.

[0095] The first threshold is a value used to assist in comparing and judging the standard deviation of the fan speed within the target time period. Optionally, the first threshold can be a suitable percentage of a preset value. For example, 5% can be selected as the first threshold in this embodiment.

[0096] Similarly, the second threshold value is a value used to assist in comparing and judging the temperature standard deviation of the control component within the target time period. Optionally, the second threshold value can be a suitable percentage of a preset value. For example, 5% can be selected as the second threshold value in this embodiment.

[0097] Optionally, a rotation speed standard deviation obtained from the rotation speed log of the fan within the target time period is compared with a first threshold to obtain a comparison result.

[0098] Likewise, the temperature standard deviation obtained from the temperature log of the control component within the target time period is compared with the second threshold value to obtain a comparison result.

[0099] According to the comparison result, when it is determined that the speed standard deviation is less than or equal to the first threshold and the temperature standard deviation is less than or equal to the second threshold, the integral coefficient in the PID control coefficient corresponding to the previous cycle is used as the integral coefficient in the PID control coefficient corresponding to the current cycle, that is, I(i+1)=I(i); otherwise, the integral coefficient in the PID control coefficient corresponding to the current cycle is the integral coefficient in the PID control coefficient corresponding to the previous cycle obtained by adjusting the PID parameter adjustment logic calculation corresponding to the current comparison result. Similarly, the differential coefficient in the PID control coefficient corresponding to the current cycle can also be obtained by adjusting the PID parameter adjustment logic calculation corresponding to the current comparison result.

[0100] Optionally, when it is determined that the speed standard deviation is less than or equal to the first threshold and the temperature standard deviation is less than or equal to the second threshold, it is also necessary to obtain all temperature data of the control component in the current cycle, and compare the obtained temperature data in the current cycle to obtain the highest temperature in the current cycle.

[0101] Based on the reference temperature, it is judged whether the maximum temperature of the current cycle meets the pre-set condition, and the result of the condition judgment on the maximum temperature of the current cycle is obtained.

[0102] Optionally, the differential coefficient in the PID control coefficient corresponding to the current cycle may be obtained by adjusting the differential coefficient in the PID control coefficient corresponding to the previous cycle based on the PID parameter adjustment logic corresponding to the result of the conditional judgment on the maximum temperature.

[0103] In this embodiment, the fan speed standard deviation within the target time period is first compared with the first threshold, and the temperature standard deviation of the control component within the target time period is compared with the second threshold, and comparison results are respectively obtained; when the comparison result is that the speed standard deviation is less than or equal to the first threshold, and the temperature standard deviation is less than or equal to the second threshold, the integral coefficient in the PID control coefficient corresponding to the previous cycle is obtained as the integral coefficient in the PID control coefficient corresponding to the current cycle; then, the highest temperature in the current cycle is obtained according to the temperature log and a conditional judgment is performed; according to the result of the conditional judgment, the differential coefficient in the PID control coefficient corresponding to the current cycle is obtained to automatically and accurately determine the PID control coefficient corresponding to the current cycle.

[0104] Based on the above embodiment, the method described in this embodiment further includes: when it is determined that the speed standard deviation is greater than the first threshold value, and / or the temperature standard deviation is greater than the second threshold value, adding the integral coefficient in the PID control coefficient corresponding to the previous cycle to a second preset value, and obtaining the integral coefficient in the PID control coefficient corresponding to the current cycle according to the addition result; and using the differential coefficient in the PID control coefficient corresponding to the previous cycle as the differential coefficient in the PID control coefficient corresponding to the current cycle.

[0105] The second preset value is used to assist in adjusting the integral coefficient of the PID control coefficient corresponding to the previous cycle to obtain the value of the integral coefficient of the PID control coefficient corresponding to the current cycle. Optionally, the second preset value can be a suitable increment of a numerical value preset in advance. For example, 0.5 can be selected as the second preset value in this embodiment.

[0106] Exemplarily, when it is determined that the standard deviation of the fan speed within the target time period is greater than the first threshold, and / or the standard deviation of the temperature within the target time period of the control component is greater than the second threshold, the integral coefficient in the PID control coefficient corresponding to the current cycle is the integral coefficient in the PID control coefficient corresponding to the previous cycle plus the second preset value, that is, I(i+1)=I(i)+0.5, and the result of the addition I(i+1) is obtained, that is, the integral coefficient in the PID control coefficient corresponding to the current cycle.

[0107] At this time, the differential coefficient of the PID control coefficient corresponding to the previous cycle is directly used as the differential coefficient of the PID control coefficient corresponding to the current cycle, that is, D(i+1)=D(i), to complete the acquisition of the PID control coefficient corresponding to the current cycle.

[0108] In this embodiment, when the standard deviation of the fan speed within the target time period is greater than the first threshold value, and / or the standard deviation of the temperature of the control component within the target time period is greater than the second threshold value, the integral coefficient of the PID control coefficient corresponding to the current cycle is the integral coefficient of the PID control coefficient corresponding to the previous cycle plus the second preset value; then, the integral coefficient of the PID control coefficient corresponding to the previous cycle is directly obtained as the integral coefficient of the PID control coefficient corresponding to the current cycle, so as to automatically and accurately obtain all PID control coefficients corresponding to the current cycle.

[0109] Based on the above embodiment, in this embodiment, obtaining the differential coefficient of the PID control coefficient corresponding to the current cycle based on the maximum temperature in the current cycle, the reference temperature, and the differential coefficient of the PID control coefficient corresponding to the previous cycle includes: subtracting the maximum temperature in the current cycle from the reference temperature, and dividing the subtraction result by the reference temperature; comparing the division result with a third threshold; and when it is determined that the division result is less than or equal to the third threshold, using the differential coefficient of the PID control coefficient corresponding to the previous cycle as the differential coefficient of the PID control coefficient corresponding to the current cycle.

[0110] The third threshold value is used as an auxiliary value for comparing and judging the maximum temperature of the fan in the current cycle. Optionally, the third threshold value can be a suitable percentage of a preset value. For example, 10% can be selected as the third threshold value in this embodiment.

[0111] Optionally, the obtained maximum temperature of the control component in the current cycle is subtracted from the reference temperature, and the subtraction result is divided by the reference temperature to calculate the division result;

[0112] A division result calculated based on the maximum temperature in the current cycle and the reference temperature is compared with the third threshold to obtain a comparison result.

[0113] According to the comparison result, when it is determined that the division result is less than or equal to the third threshold, the differential coefficient of the PID control coefficient corresponding to the previous cycle is used as the differential coefficient of the PID control coefficient corresponding to the current cycle, that is, D(i+1)=D(i); otherwise, the differential coefficient of the PID control coefficient corresponding to the current cycle is the differential coefficient of the PID control coefficient corresponding to the previous cycle obtained by adjusting the PID parameter adjustment logic calculation corresponding to the comparison result.

[0114] In this embodiment, first, the reference temperature is subtracted from the obtained maximum temperature of the control component in the current cycle, and the subtraction result is divided by the reference temperature to calculate the division result; then the division result is compared with a third threshold to obtain a comparison result; when the comparison result is that the division result is less than or equal to the third threshold, the differential coefficient of the PID control coefficient corresponding to the previous cycle is obtained as the differential coefficient of the PID control coefficient corresponding to the current cycle, so as to automatically and accurately determine the PID control coefficient corresponding to the current cycle.

[0115] Based on the above embodiment, the method described in this embodiment further includes: when it is determined that the division result is greater than the third threshold, dividing the differential coefficient in the PID control coefficient corresponding to the previous cycle by a third preset value, and obtaining the differential coefficient in the PID control coefficient corresponding to the current cycle according to the division result.

[0116] The third preset value is used to assist in adjusting the differential coefficient of the PID control coefficient corresponding to the previous cycle to obtain the value of the differential coefficient of the PID control coefficient corresponding to the current cycle. Optionally, the third preset value can be a pre-set appropriate divisor. For example, 2 can be selected as the third preset value in this embodiment.

[0117] For example, when it is determined that the division result obtained by calculating the maximum temperature in the current cycle and the reference temperature is greater than the third threshold, the differential coefficient in the PID control coefficient corresponding to the previous cycle is divided by the third preset value to obtain the division result D(i) / 2.

[0118] According to the division result, the differential coefficient D(i+1) in the PID control coefficient corresponding to the current cycle is obtained.

[0119] In this embodiment, when the comparison result is that the division result obtained by calculating the maximum temperature in the current cycle and the reference temperature is greater than the third threshold value, the differential coefficient in the PID control coefficient corresponding to the previous cycle is divided by the third preset value to obtain a division result; based on the division result, the differential coefficient in the PID control coefficient corresponding to the current cycle is obtained to obtain all PID control coefficients corresponding to the current cycle.

[0120] Based on the above embodiments, the fan speed is controlled according to the PID control coefficient corresponding to the current cycle in this embodiment, including: calculating the speed control value of the fan in the current cycle according to the proportional coefficient, integral coefficient and differential coefficient in the PID control coefficient corresponding to the current cycle, and the speed of the fan in the previous cycle; and controlling the fan speed according to the speed control value.

[0121] Optionally, based on the proportional coefficient, integral coefficient and differential coefficient in the PID control coefficient corresponding to the current cycle, the fan speed in the previous cycle is used as the basis, and the wind speed control logic rules pre-set in the logic calculation unit are used for calculation to obtain the speed control value of the fan in the current cycle.

[0122] According to the speed control value, the reasonable speed of the fan in the current cycle is obtained, and the speed of the fan is regulated based on this.

[0123] In this embodiment, the proportional coefficient, integral coefficient and differential coefficient in the PID control coefficient corresponding to the current cycle are obtained, and the fan speed in the previous cycle is used as the basis for calculation to obtain the speed control value of the fan in the current cycle; based on the obtained speed control value, the reasonable fan speed for the current cycle is obtained and the fan speed is regulated, so as to achieve the purpose of automatically and efficiently regulating the fan speed by adjusting the PID parameters.

[0124] Based on the above embodiments, Figure 2 The fan control method in this embodiment is described.

[0125] like Figure 2 FIG. 2 is a second flow chart of the fan control method provided in this embodiment, and the method includes:

[0126] Step 201: Switch the fan control mode of the server to the automatic control mode.

[0127] Switching the fan speed control mode of the server to the automatic speed control mode can be performed by using a command. For example, the command used in this embodiment can be "ipmitool raw0x3c 0x2f 0x0".

[0128] Step 202: Set the initial value of the PID control coefficient of the server.

[0129] The initial values ​​of the PID control coefficients of the server can be manually set to appropriate parameter values. For example, when period i = 0, the proportional parameter P(i) = 2, the integral parameter I(i) = 0.5, and the differential parameter D(i) = 10 can be set as the PID control coefficients of the server in this embodiment.

[0130] Step 203: Pressurize the server components that require temperature control.

[0131] Among them, the components of the server that require temperature control are regulating components.

[0132] Optionally, the pressurization may be the server transmitting data, the server storing data, or the server reading data from a hard disk, which is not specifically limited in this embodiment.

[0133] Step 204 : Record the fan speed and temperature information of the control components of the server during the current time period according to the time step ΔT.

[0134] Optionally, the duration T of each time period may be set according to actual scenarios and requirements. For example, the time period for information recording in this embodiment may be set to T=25 minutes.

[0135] The time step ΔT is the time interval between each sampling, which can be set according to the actual needs of the sampled data. For example, the time step ΔT for sampling in this embodiment can be set to be less than or equal to 3 seconds.

[0136] Step 205: Output component temperature-time curve and fan speed-time curve;

[0137] like Figure 3 The following is a schematic diagram of the output memory temperature-time curve and speed-time curve. It can be seen that the memory temperature-time curve and speed-time curve begin to stabilize around the 20th minute of the current cycle. That is, relatively stable temperature data and speed data within the current cycle can be obtained in the last five minutes, providing more accurate data support for fan speed control.

[0138] Step 206: Calculate the maximum temperature within the target time period in the Log data. If the maximum temperature is greater than or equal to the setpoint (reference temperature), output the coefficient of the proportional term P(i+1)=P(i), and determine the integral term coefficient. Otherwise, the proportional coefficient of the PID control coefficient corresponding to the current cycle is the sum of the proportional coefficient of the PID control coefficient corresponding to the previous cycle and the first preset value, and the integral term and differential term coefficients remain unchanged, and go to step 202 to continue the calculation.

[0139] Optionally, the target time period of the current cycle can be set to a time period when data tends to be relatively stable. For example, the target time period of the current cycle in this embodiment can be set to the last 5 minutes of the current cycle.

[0140] Optionally, the first preset value may be an appropriate increment of a numerical value preset in advance. For example, 1 may be selected as the first preset value in this embodiment, that is, the integral coefficient in the PID control coefficient corresponding to the current cycle may be P(i+1)=P(i)+1.

[0141] Step 207: Calculate whether the speed standard deviation of the speed data in the last 5 minutes of the target time period in the log data is less than or equal to the first threshold value, and at the same time determine whether the temperature standard deviation of the temperature data in the last 5 minutes is less than or equal to the second threshold value; if the requirements are met, output the coefficient I(i) of the integral term, and perform a judgment on the final differential term D; if the requirements are not met, the integral coefficient in the PID control coefficient corresponding to the current cycle is the integral coefficient in the PID control coefficient corresponding to the previous cycle plus the second preset value, and the proportional term and differential term coefficients remain unchanged, and the value is output to step 202 for loop testing;

[0142] Optionally, the first threshold value may be a percentage of a numerical value preset in advance. For example, 5% may be selected as the first threshold value in this embodiment.

[0143] Similarly, 5% may be selected as the second threshold in this embodiment.

[0144] Optionally, the second preset value may be an appropriate increment of a numerical value preset in advance. For example, 0.5 may be selected as the second preset value in this embodiment, that is, the integral coefficient in the PID control coefficient corresponding to the current cycle may be I(i+1)=I(i)+0.5.

[0145] Step 208: Calculate the maximum temperature Tmax in the Log data. If the result of dividing (Tmax-setpoint) / setpoint is less than the third threshold, output the differential coefficient D(i). Otherwise, divide the differential coefficient of the PID control coefficient corresponding to the previous cycle by the third preset value to obtain the differential coefficient D(i+1) of the PID control coefficient corresponding to the current cycle, and then go to step 202 to perform a loop test.

[0146] Optionally, the third threshold value may be a percentage of a numerical value preset in advance. For example, 10% may be selected as the third threshold value in this embodiment.

[0147] Optionally, the third preset value may be a suitable divisor preset in advance. For example, 2 may be selected as the third preset value in this embodiment, that is, the differential coefficient in the PID control coefficient corresponding to the current cycle may be D(i+1)=D(i) / 2.

[0148] Step 209: End fan control.

[0149] The fan control device provided by the present invention is described below. The fan control device described below and the fan control method described above can be referenced to each other.

[0150] like Figure 4 As shown, this embodiment provides a database backup system, which includes:

[0151] A first acquisition module 401, a second acquisition module 402 and a control module 403, wherein:

[0152] The first acquisition module 401 is used to obtain the temperature log of the control component in the server in the current cycle, and the speed log of the fan in the server in the current cycle;

[0153] The second acquisition module 402 is configured to acquire the PID control coefficient corresponding to the current cycle based on the temperature log, the speed log, and the PID control coefficient corresponding to the previous cycle;

[0154] The control module 403 is configured to control the rotation speed of the fan according to the PID control coefficient corresponding to the current cycle.

[0155] The fan control device provided in this embodiment obtains the PID control coefficient corresponding to the current cycle based on the temperature log of the control component in the server and the speed log of the fan in the server in the current cycle, so as to adaptively control the fan speed. The code automates the repeated iterations in the PID control parameter setting process of the server fan, automatically optimizes the fan PID control parameters, and automatically and efficiently performs fan control, saving manpower.

[0156] Based on the above embodiment, the proportional module in the second acquisition module in this embodiment is used to: obtain the maximum temperature within the target time period of the current cycle according to the temperature log; compare the maximum temperature with the reference temperature in the server; when it is determined that the maximum temperature is greater than or equal to the reference temperature, use the proportional coefficient in the PID control coefficient corresponding to the previous cycle as the proportional coefficient in the PID control coefficient corresponding to the current cycle; obtain the speed standard deviation within the target time period according to the speed log; obtain the temperature standard deviation within the target time period according to the temperature log; obtain the integral coefficient and differential coefficient in the PID control coefficient corresponding to the current cycle based on the speed standard deviation and the temperature standard deviation, as well as the PID control coefficient corresponding to the previous cycle.

[0157] Based on the above embodiment, the proportional module in the second acquisition module in this embodiment is further used to: when it is determined that the maximum temperature is lower than the reference temperature, add the proportional coefficient in the PID control coefficient corresponding to the previous cycle to a first preset value, and obtain the proportional coefficient in the PID control coefficient corresponding to the current cycle according to the addition result; use the integral coefficient in the PID control coefficient corresponding to the previous cycle as the integral coefficient in the PID control coefficient corresponding to the current cycle; and use the differential coefficient in the PID control coefficient corresponding to the previous cycle as the differential coefficient in the PID control coefficient corresponding to the current cycle.

[0158] Based on the above embodiment, the integration module in the second acquisition module in this embodiment is used to: compare the speed standard deviation with a first threshold, and compare the temperature standard deviation with a second threshold; when it is determined that the speed standard deviation is less than or equal to the first threshold, and the temperature standard deviation is less than or equal to the second threshold, use the integral coefficient of the PID control coefficient corresponding to the previous cycle as the integral coefficient of the PID control coefficient corresponding to the current cycle; obtain the maximum temperature in the current cycle according to the temperature log; and obtain the differential coefficient of the PID control coefficient corresponding to the current cycle according to the maximum temperature in the current cycle, the reference temperature, and the differential coefficient of the PID control coefficient corresponding to the previous cycle.

[0159] Based on the above embodiment, the integration module in the second acquisition module in this embodiment is further used to: when it is determined that the speed standard deviation is greater than the first threshold value and / or the temperature standard deviation is greater than the second threshold value, add the integral coefficient in the PID control coefficient corresponding to the previous cycle to a second preset value, and obtain the integral coefficient in the PID control coefficient corresponding to the current cycle according to the addition result; and use the differential coefficient in the PID control coefficient corresponding to the previous cycle as the differential coefficient in the PID control coefficient corresponding to the current cycle.

[0160] Based on the above embodiment, the differential module in the second acquisition module in this embodiment is configured to: subtract the maximum temperature in the current cycle from the reference temperature, and divide the subtraction result by the reference temperature; compare the division result with a third threshold; and, if it is determined that the division result is less than or equal to the third threshold, use the differential coefficient of the PID control coefficient corresponding to the previous cycle as the differential coefficient of the PID control coefficient corresponding to the current cycle.

[0161] Based on the above embodiment, the differential module in the second acquisition module in this embodiment is further configured to: when it is determined that the division result is greater than the third threshold, divide the differential coefficient in the PID control coefficient corresponding to the previous cycle by a third preset value, and obtain the differential coefficient in the PID control coefficient corresponding to the current cycle according to the division result.

[0162] Based on the above embodiments, the control module in this embodiment is also used to: calculate the speed control value of the fan in the current cycle based on the proportional coefficient, integral coefficient and differential coefficient in the PID control coefficient corresponding to the current cycle, and the speed of the fan in the previous cycle; and control the speed of the fan according to the speed control value.

[0163] Figure 5 An example of a physical structure diagram of an electronic device is shown below. Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other via the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute a fan control method, which includes: obtaining a temperature log of a control component in a server during a current cycle, and a speed log of a fan in the server during the current cycle; obtaining a PID control coefficient corresponding to the current cycle based on the temperature log and the speed log, as well as the PID control coefficient corresponding to the previous cycle; and controlling the speed of the fan based on the PID control coefficient corresponding to the current cycle.

[0164] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0165] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the fan control method provided by the above methods, and the method includes: obtaining the temperature log of the control component in the server in the current cycle, and the speed log of the fan in the server in the current cycle; obtaining the PID control coefficient corresponding to the current cycle based on the temperature log and the speed log, and the PID control coefficient corresponding to the previous cycle; and controlling the speed of the fan based on the PID control coefficient corresponding to the current cycle.

[0166] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the fan control method provided by the above methods, and the method includes: obtaining the temperature log of the control component in the server in the current cycle, and the speed log of the fan in the server in the current cycle; obtaining the PID control coefficient corresponding to the current cycle based on the temperature log and the speed log, and the PID control coefficient corresponding to the previous cycle; and controlling the speed of the fan based on the PID control coefficient corresponding to the current cycle.

[0167] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0168] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0169] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A fan control method, characterized in that: include: Obtaining a temperature log of a control component in a server during a current cycle, and a rotation speed log of a fan in the server during the current cycle; Obtaining the PID control coefficient corresponding to the current cycle according to the temperature log, the speed log, and the PID control coefficient corresponding to the previous cycle; Controlling the fan speed according to the PID control coefficient corresponding to the current cycle; The obtaining of the PID control coefficient corresponding to the current cycle according to the temperature log, the speed log, and the PID control coefficient corresponding to the previous cycle includes: According to the temperature log, obtaining the highest temperature within the target time period of the current cycle; comparing the maximum temperature with a reference temperature in the server; When it is determined that the maximum temperature is greater than or equal to the reference temperature, the proportional coefficient of the PID control coefficient corresponding to the previous cycle is used as the proportional coefficient of the PID control coefficient corresponding to the current cycle; Obtaining a speed standard deviation within the target time period according to the speed log; Obtaining a temperature standard deviation within the target time period according to the temperature log; According to the speed standard deviation and the temperature standard deviation, and the PID control coefficient corresponding to the previous cycle, the integral coefficient and the differential coefficient in the PID control coefficient corresponding to the current cycle are obtained.

2. The fan control method according to claim 1, wherein: The method further comprises: When it is determined that the maximum temperature is less than the reference temperature, adding the proportional coefficient of the PID control coefficient corresponding to the previous cycle to a first preset value, and obtaining the proportional coefficient of the PID control coefficient corresponding to the current cycle according to the addition result; Using the integral coefficient of the PID control coefficient corresponding to the previous cycle as the integral coefficient of the PID control coefficient corresponding to the current cycle; The differential coefficient of the PID control coefficient corresponding to the previous cycle is used as the differential coefficient of the PID control coefficient corresponding to the current cycle.

3. The fan control method according to claim 1, wherein: The obtaining, based on the speed standard deviation and the temperature standard deviation, and the PID control coefficient corresponding to the previous cycle, of the integral coefficient and the differential coefficient of the PID control coefficient corresponding to the current cycle includes: comparing the rotation speed standard deviation with a first threshold, and comparing the temperature standard deviation with a second threshold; When it is determined that the speed standard deviation is less than or equal to the first threshold value, and the temperature standard deviation is less than or equal to the second threshold value, using the integral coefficient of the PID control coefficient corresponding to the previous cycle as the integral coefficient of the PID control coefficient corresponding to the current cycle; According to the temperature log, obtaining the highest temperature in the current period; The differential coefficient of the PID control coefficient corresponding to the current cycle is obtained according to the highest temperature in the current cycle, the reference temperature, and the differential coefficient of the PID control coefficient corresponding to the previous cycle.

4. The fan control method according to claim 3, wherein: The method further comprises: When it is determined that the speed standard deviation is greater than the first threshold value, and / or the temperature standard deviation is greater than the second threshold value, adding the integral coefficient of the PID control coefficient corresponding to the previous cycle to a second preset value, and obtaining the integral coefficient of the PID control coefficient corresponding to the current cycle according to the addition result; The differential coefficient of the PID control coefficient corresponding to the previous cycle is used as the differential coefficient of the PID control coefficient corresponding to the current cycle.

5. The fan control method according to claim 3, wherein: The obtaining, based on the maximum temperature in the current cycle, the reference temperature, and the differential coefficient of the PID control coefficient corresponding to the previous cycle, of the differential coefficient of the PID control coefficient corresponding to the current cycle includes: subtracting the maximum temperature in the current period from the reference temperature, and dividing the subtraction result by the reference temperature; comparing the division result with a third threshold; When it is determined that the division result is less than or equal to the third threshold, the differential coefficient of the PID control coefficient corresponding to the previous cycle is used as the differential coefficient of the PID control coefficient corresponding to the current cycle.

6. The fan control method according to claim 5, characterized in that: The method further comprises: When it is determined that the division result is greater than the third threshold, the differential coefficient in the PID control coefficient corresponding to the previous cycle is divided by the third preset value, and the differential coefficient in the PID control coefficient corresponding to the current cycle is obtained according to the division result.

7. The fan control method according to any one of claims 1 to 6, characterized in that: The controlling of the fan speed according to the PID control coefficient corresponding to the current cycle includes: Calculating a speed control value of the fan in the current cycle based on a proportional coefficient, an integral coefficient, and a differential coefficient in the PID control coefficient corresponding to the current cycle and the speed of the fan in the previous cycle; The speed of the fan is regulated according to the speed adjustment control value.

8. A fan control device, characterized in that: include: A first acquisition module is configured to acquire a temperature log of a control component in a server in a current cycle, and a rotation speed log of a fan in the server in the current cycle; A second acquisition module is configured to acquire the PID control coefficient corresponding to the current cycle based on the temperature log, the speed log, and the PID control coefficient corresponding to the previous cycle; a control module, configured to control the speed of the fan according to a PID control coefficient corresponding to the current cycle; The proportion module in the second acquisition module is used to: obtain the maximum temperature within the target time period of the current cycle according to the temperature log; and compare the maximum temperature with the reference temperature in the server; When it is determined that the maximum temperature is greater than or equal to the reference temperature, the proportional coefficient of the PID control coefficient corresponding to the previous cycle is used as the proportional coefficient of the PID control coefficient corresponding to the current cycle; Obtaining a speed standard deviation within the target time period according to the speed log; According to the temperature log, the temperature standard deviation within the target time period is obtained; according to the speed standard deviation and the temperature standard deviation, and the PID control coefficient corresponding to the previous cycle, the integral coefficient and the differential coefficient in the PID control coefficient corresponding to the current cycle are obtained.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the fan control method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the fan control method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method, device and system of server fan speed regulation

    CN110345099A