CN109139524B - Method and device for regulating speed of fan and storage medium - Google Patents

Method and device for regulating speed of fan and storage medium Download PDF

Info

Publication number
CN109139524B
CN109139524B CN201710468996.2A CN201710468996A CN109139524B CN 109139524 B CN109139524 B CN 109139524B CN 201710468996 A CN201710468996 A CN 201710468996A CN 109139524 B CN109139524 B CN 109139524B
Authority
CN
China
Prior art keywords
pwm
fan
value
difference
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710468996.2A
Other languages
Chinese (zh)
Other versions
CN109139524A (en
Inventor
郑立博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201710468996.2A priority Critical patent/CN109139524B/en
Publication of CN109139524A publication Critical patent/CN109139524A/en
Application granted granted Critical
Publication of CN109139524B publication Critical patent/CN109139524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/004Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids by varying driving speed
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F05INDEXING SCHEMES RELATING TO ENGINES OR PUMPS IN VARIOUS SUBCLASSES OF CLASSES F01-F04
    • F05DINDEXING SCHEME FOR ASPECTS RELATING TO NON-POSITIVE-DISPLACEMENT MACHINES OR ENGINES, GAS-TURBINES OR JET-PROPULSION PLANTS
    • F05D2270/00Control
    • F05D2270/01Purpose of the control system
    • F05D2270/02Purpose of the control system to control rotational speed (n)
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F05INDEXING SCHEMES RELATING TO ENGINES OR PUMPS IN VARIOUS SUBCLASSES OF CLASSES F01-F04
    • F05DINDEXING SCHEME FOR ASPECTS RELATING TO NON-POSITIVE-DISPLACEMENT MACHINES OR ENGINES, GAS-TURBINES OR JET-PROPULSION PLANTS
    • F05D2270/00Control
    • F05D2270/30Control parameters, e.g. input parameters
    • F05D2270/303Temperature
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F05INDEXING SCHEMES RELATING TO ENGINES OR PUMPS IN VARIOUS SUBCLASSES OF CLASSES F01-F04
    • F05DINDEXING SCHEME FOR ASPECTS RELATING TO NON-POSITIVE-DISPLACEMENT MACHINES OR ENGINES, GAS-TURBINES OR JET-PROPULSION PLANTS
    • F05D2270/00Control
    • F05D2270/70Type of control algorithm
    • F05D2270/706Type of control algorithm proportional-integral-differential

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Electric Motors In General (AREA)
  • Control Of Positive-Displacement Air Blowers (AREA)
  • Control Of Temperature (AREA)
  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

The invention discloses a method and a device for regulating the speed of a fan and a storage medium, and belongs to the technical field of fan control. The method comprises the following steps: in the PID speed regulation period, acquiring the rotation speed increment of the fan at the previous moment; and adjusting the rotating speed increment according to the difference value between the current-time temperature value and the previous-time temperature value of the sampling point, wherein the adjusted rotating speed increment is the rotating speed increment of the fan at the current time. By adopting the invention, aiming at different situations of rapid and slow temperature rise, the over-speed phenomenon can be inhibited corresponding to different PWM speed regulation increments; corresponding to the scene that the fan speed regulation increment is reduced, a corresponding speed regulation strategy is formulated, and the PWM increment value is recovered or kept, so that the device can dissipate heat in time, and the power consumption is reduced.

Description

Method and device for regulating speed of fan and storage medium
Technical Field
The invention relates to the technical field of fan control, in particular to a fan speed regulation method, a fan speed regulation device and a storage medium.
Background
Proportional-integral-derivative (proportional-integral-derivative) algorithm is widely applied to systems with basically linear or dynamic characteristics not changing along with time, such as the field of industrial automatic control.
Please refer to fig. 1, which is a schematic diagram of the PID algorithm. In the figure, setpoint is an input set value, output is an actual output value of the system, process is a controlled object, and there is a deviation Error between the input set value and the actual output value. In the PID algorithm, a controlled variable is formed by linearly combining the proportion P, the integral I, and the derivative D of the deviation, and the controlled object is controlled by the controlled variable.
PID is a typical feedback loop consisting of a proportional coefficient, an integral time constant, and a derivative time constant. The PID controller is divided into a position type controller and an increment type controller, is applied to the field of fan speed regulation, and generally adopts increment type control. The specific implementation mode is as follows:
the PID algorithm inputs a sensor measurement temperature value at a certain moment, compares the difference with a target temperature value, and outputs an increment amplitude value of the fan through PID operation and Pulse Width Modulation (PWM). However, the fan speed regulation method in the prior art is easy to generate over-speed regulation and waste power consumption.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus and a system for configuring a radio channel, so as to solve the problem that the allocation of the radio channel in the prior art cannot be adjusted according to actual requirements.
The technical scheme adopted by the invention for solving the technical problems is as follows:
according to a first aspect of the present invention, there is provided a method of regulating speed of a fan, the method comprising:
in the PID speed regulation period, acquiring the rotation speed increment of the fan at the previous moment;
and adjusting the rotating speed increment according to the difference value between the current-time temperature value and the previous-time temperature value of the sampling point, wherein the adjusted rotating speed increment is the rotating speed increment of the fan at the current time.
Preferably, before the obtaining of the rotation speed increment of the fan at the previous time, the method further includes:
acquiring the difference between the current time temperature value and the target temperature value of the sampling point as PID algorithm input;
calculating the rotation speed increment of the fan according to the parameters of a sampling period T, a proportional coefficient KP, an integral time constant TI and a differential time constant TD;
the fan is a PWM speed control fan, and the rotating speed increment output is a PWM duty ratio.
Preferably, the adjusting the rotation speed increment according to the difference between the current temperature value and the previous temperature value of the sampling point includes:
calculating the difference value between the current time temperature value and the previous time temperature value of the sampling point;
if the difference is greater than or equal to B, increasing the rotating speed increment PWM of the previous momentT0Is PWMTTThe lifting amplitude is C;
if the difference is greater than or equal to D and less than B, PWM is promotedT0Is PWMTTThe lifting amplitude is E;
if the difference is less than D, reducing PWMT0Is PWMTTThe reduction amplitude is F;
wherein, PWMT0For speed increments at the previous moment, PWMTTFor the adjusted rotation speed increment, B and D are preset temperature difference values, C, E, F is a preset PWM adjustment amount, wherein C is larger than or equal to E.
Preferably, if the difference is smaller than the threshold, the PWM is decreasedT0Is PWMTTThereafter, the method further comprises:
keeping PWM of the fan from being adjusted at a time T1-T2, wherein the time T2 is the time after G seconds of delay of T1;
average value P of input power consumption curves of the whole machine between T0 and T1T1And the average value P of the input power consumption curve of the whole machine between the time T1 and the time T2T2
Calculating PT2And PT1A difference of (d);
if PT2And PT1Is greater than or equal to, the PWM of the fan is recovered to be PWMT0
If PT2And PT1Is less than H, and the PWM of the fan is maintained to be PWMTT
Wherein H is a preset threshold value.
Preferably, if there are a plurality of sampling points, the sampling temperatures at the respective sampling points are compared and the maximum value is taken.
According to a second aspect of the present invention, there is provided a fan speed regulation device, the device comprising:
the acquisition module is used for acquiring the rotating speed increment of the fan at the previous moment in the PID speed regulation period;
and the adjusting module is used for adjusting the rotating speed increment according to the difference value between the current-time temperature value and the previous-time temperature value of the sampling point, wherein the adjusted rotating speed increment is the rotating speed increment of the fan at the current time.
Preferably, the apparatus further comprises:
the temperature acquisition module is used for acquiring the difference between the current time temperature value of the sampling point and the target temperature value as PID algorithm input;
the PID algorithm module is used for calculating the rotating speed increment of the fan according to the parameters of a sampling period T, a proportional coefficient KP, an integral time constant TI and a differential time constant TD;
the fan is a PWM speed control fan, and the rotating speed increment output is a PWM duty ratio.
Preferably, the adjusting module includes:
the first calculation submodule is used for calculating the difference value between the current time temperature value and the previous time temperature value of the sampling point;
an adjusting submodule, configured to increase the rotation speed increment PWM at the previous moment when the difference is greater than or equal to B and the rotation speed increment at the previous moment is increasedT0Is PWMTTThe lifting amplitude is C, or when the difference is greater than or equal to D and less than D, lifting PWMT0Is PWMTTThe boost magnitude is E, or for reducing PWM if the difference is less thanT0Is PWMTTThe reduction amplitude is F;
wherein, PWMT0For speed increments at the previous moment, PWMTTIs T1And (4) increasing the rotating speed after the moment is adjusted, wherein B and D are preset temperature difference values, C, E, F is a preset PWM (pulse width modulation) adjustment amount, and C is larger than or equal to E.
Preferably, the adjusting module further includes a holding submodule, an input power consumption curve mean value obtaining submodule, and a second calculating submodule:
the holding submodule is further used for holding the PWM of the fan not to be adjusted at the time from T1 to T2 when the difference value is smaller than D, and the time T2 is the time after the delay of G seconds from T1;
the input power consumption curve mean value obtaining submodule is used for obtaining the input power consumption curve mean value P of the whole machine between T0 and T1T1And the average value P of the input power consumption curve of the whole machine between the time T1 and the time T2T2
The second calculation submodule is also used for calculating PT2And PT1A difference of (d);
the adjusting submodule is also used for PT2And PT1When the difference is greater than or equal to H, the PWM of the fan is recovered to be PWMT0Or for use in PT2And PT1When the difference value of (A) is less than H, the PWM of the fan is maintained to be PWMTT
Wherein H is a preset threshold value.
Preferably, the temperature acquisition module is further configured to compare sampling temperatures of the sampling points respectively and obtain a maximum value when a plurality of sampling points exist.
According to a third aspect of the present invention there is provided a storage medium storing one or more programs executable by one or more processors to perform the steps of the first aspect.
The method, the device and the storage medium for fan speed regulation can be used for corresponding to different PWM speed regulation increments aiming at different situations of temperature rise speed and inhibiting the over-speed regulation phenomenon; corresponding to the scene that the fan speed regulation increment is reduced, a corresponding speed regulation strategy is formulated, and the PWM increment value is recovered or kept, so that the device can dissipate heat in time, and the power consumption is reduced.
Drawings
FIG. 1 is a schematic diagram of a PID algorithm;
FIG. 2 is a flow chart of a method for regulating speed of a fan according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for applying the method to speed regulation of a wind turbine of a cloud infrastructure according to a first embodiment of the present invention;
fig. 4 is a schematic structural diagram of a module of a fan speed adjusting device according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
An embodiment of the present invention provides a method for regulating a speed of a fan, please refer to fig. 2, where the method includes:
s201, in a PID speed regulation period, acquiring a rotating speed increment of a fan at the previous moment;
s202, adjusting the rotating speed increment according to the difference value between the current-time temperature value and the previous-time temperature value of the sampling point, wherein the adjusted rotating speed increment is the rotating speed increment of the fan at the current time.
In practical applications, the sampling point refers to a key device that needs to be temperature controlled, such as a Central Processing Unit (CPU) of a server, a main chip, and the like.
In a possible solution, before step S201, the method further includes the following steps:
acquiring the difference between the current temperature value and the target temperature value of the sampling point as PID algorithm input;
calculating the rotation speed increment of the fan according to the parameters of the sampling period T, the proportional coefficient KP, the integral time constant TI and the differential time constant TD;
wherein the fan is a PWM speed-controlled fan, and the rotation speed increment output is a PWM duty ratio
In practical application, the difference Δ T between the time temperature value of the key device T of the equipment and the target temperature value can be taken as the input of the PID algorithm. If the equipment is provided with a plurality of chips, the temperature difference values of all the chips are read, the corresponding sampling period T, the proportional coefficient KP, the integral time constant TI and the differential time constant TD parameters of the corresponding chips in the system are called to obtain the amount of the change of the rotating speed of the fan, the maximum value of the increment of the rotating speed of the fan calculated by all the chips is taken for adjustment, and the output value is the rotating speed increment of the fan. For a PWM speed-controlled fan, this value is the duty cycle, which is divided by 255 from 0 to 100% duty. For convenience of description, the present invention simply refers to the rotation speed increment as PWM.
In an alternative, step S202 includes:
calculating CT1-CT0A difference of (d);
if CT1-CT0If not less than B, increasing PWMT0Is PWMTTThe lifting amplitude is C;
if D is less than or equal to CT1-CT0If < B, then PWM is increasedT0Is PWMTTThe lifting amplitude is E;
if CT1-CT0If < D, PWM is reducedT0Is PWMTTThe reduction amplitude is F;
wherein, CT1Is the current time of the sampling pointTemperature of T1, CT2Temperature, PWM, at a time T0 prior to the sample pointT0For speed increments at the previous moment, PWMTTFor the adjusted rotation speed increment, B and D are preset temperature difference values, C, E, F is a preset PWM adjustment amount, wherein C is larger than or equal to E.
In practical application, if CT1-CT0 < D, PWM is reducedT0Is PWMTTThereafter, the method further comprises:
keeping PWM of the fan from being adjusted from T1 to T2, wherein the T2 is the time after G seconds delay of T1;
average value P of input power consumption curves of the whole machine between T0 and T1T1And the average value P of the input power consumption curve of the whole machine between the time T1 and the time T2T2
Calculating PT2And PT1A difference of (d);
if PT2-PT1And recovering the PWM of the fan to be PWM when the speed is more than or equal to HT0
If PT2-PT1H, maintaining the PWM of the fan as PWMTT
In one possible scheme, if a plurality of sampling points exist, the sampling temperatures of the sampling points are compared respectively, and the maximum value is taken.
In practical application, when the critical device temperature rises sharply (C)T1-CT0B) or more, increasing the PWM increment of the fan; when the temperature slowly rises (D is less than or equal to C)T1-CT0If the PWM increment is less than B), the PWM increment of the fan is increased; when the temperature is stable (C)T1-CT0D), reducing the PWM of the fan, and particularly, if the power consumption of the whole equipment is not reduced when the PWM is reduced, recovering the high PWM value of the previous group; if the power consumption of the whole equipment is not reduced when the PWM is reduced, the current PWM increment value can be kept. Therefore, the over-speed regulation phenomenon can be inhibited corresponding to different PWM speed regulation increments aiming at different situations of high and low temperature rise; corresponding to the scene that the fan speed regulation increment is reduced, a corresponding speed regulation strategy is formulated, and the PWM increment value is recovered or kept, so that the device can dissipate heat in time, and the power consumption is reduced.
In this scenario, it is assumed that preset data is configured in advance, and the preset data includes an adjustment period, a sampling period, a delay time, a temperature difference interval range, a preset threshold of a total input power consumption curve mean difference value, a PWM adjustment amount, and the like. Referring to fig. 3, the method flow includes:
s301, obtaining T0CPU temperature value C of momentT0And PWMT0
In particular, if the CPU has a plurality of temperature values, CT0The maximum value should be taken.
S302, delaying for A seconds, and acquiring T1Time CPU temperature value CT1Obtaining and calculating T0~T1Mean value P of curve of input power consumption of complete machine at any momentT1
In practical application, the average value of the whole input power consumption curve can be calculated according to the following formula:
Figure BDA0001325725260000061
wherein P (t) is the input power consumption of the whole machine at the time t.
S303, calculating and calculating PT2And PT1And judging the value range of the difference, if C is the difference, judging the value range of the differenceT1-CT0If D is not more than C, executing step S304T1-CT0If < B, go to step S305, if CT1-CT0< D, step S306 is executed.
S304, PWM of the lifting fanT0The lifting amplitude is C, and the rotation speed increment after lifting is PWMTTThe process continues to step S301.
In practical application, the related data such as the temperature value and the rotating speed increment acquired each time can be recorded.
S305, PWM of numbered fans is promotedT0The lifting amplitude is E, and the rotation speed increment after lifting is PWMTT
S306, reducing the PWM of the numbered fan, wherein the reduction amplitude is F, and the reduced rotation speed increment is PWMTTExecute byStep S307.
S307, from T1And G seconds of delay is started at the moment, and PWM of the fan is kept not to be adjusted.
S308, delaying for G seconds, and acquiring T2Time CPU temperature value CT2Obtaining and calculating T1~T2Mean value P of curve of input power consumption of complete machine at any momentT2
In particular, T1~T2The average value of the input power consumption curve of the whole machine at the moment can be calculated by the following formula:
Figure BDA0001325725260000071
s309, calculating and judging PT2-PT1If so, go to step S310, otherwise, go to step S311.
S310, restoring PWM of the fan to PWMT0
In particular, if PT2-PT1If the PWM is not reduced, the power consumption is not reduced, and the PWM of the fan can be recovered to be PWMT0
S311, maintaining PWM of the fan as PWMTT
If PT2-PT1If the PWM is less than H, the power consumption is reduced when the PWM is reduced, and at the moment, the PWM of the fan can be maintained to be PWMTT
The steps are a speed regulation strategy in a complete speed regulation period of the fan, and the process can be repeated in each speed regulation period in the running speed regulation process of the fan.
The A, B, C, D, E, F, G, H can be set properly according to actual needs in practical applications.
According to the scene, the method can meet the basic speed regulation strategy of the cloud basic equipment fan PID, can improve the limitation on compatibility compared with the classical PID speed regulation scheme in the background technology, ensures the existing speed regulation strategy, enables the fan set to work in a more reasonable speed regulation interval, can better meet the noise requirement, is more beneficial to the heat dissipation of the whole machine, and indirectly prolongs the service life of the fan set. The fan speed regulation method takes the fan set speed increasing strategy corresponding to the CPU temperature rise and the speed reducing strategy when the CPU temperature is stable as the speed regulation basis of the fan, and can meet the requirement of long-term stable work of equipment.
On the basis of the above embodiments, a second embodiment of the present invention provides a device for regulating speed of a fan, referring to fig. 4, where the device includes:
an obtaining module 401, configured to obtain, in a period of PID speed adjustment, a rotation speed increment of a fan at a previous time;
and an adjusting module 402, configured to adjust the rotation speed increment according to a difference between the current temperature value and the previous temperature value of the sampling point.
In practical applications, the sampling point refers to a key device that needs to be temperature controlled, such as a Central Processing Unit (CPU) of a server, a main chip, and the like.
In one possible implementation, the apparatus further includes:
the temperature acquisition module is used for acquiring the difference between the current time temperature value of the sampling point and the target temperature value as PID algorithm input;
the PID algorithm module is used for calculating the rotating speed increment of the fan according to the parameters of the sampling period T, the proportional coefficient KP, the integral time constant TI and the differential time constant TD;
wherein, this fan is PWM accuse fast fan, and this rotational speed increment output is PWM duty cycle.
In practical application, the difference Δ T between the time temperature value of the key device T of the equipment and the target temperature value can be taken as the input of the PID algorithm. If the equipment is provided with a plurality of chips, the temperature difference values of all the chips are read, the corresponding sampling period T, the proportional coefficient KP, the integral time constant TI and the differential time constant TD parameters of the corresponding chips in the system are called to obtain the amount of the change of the rotating speed of the fan, the maximum value of the increment of the rotating speed of the fan calculated by all the chips is taken for adjustment, and the output value is the rotating speed increment of the fan. For a PWM speed-controlled fan, this value is the duty cycle, which is divided by 255 from 0 to 100% duty.
In one possible implementation, the adjusting module 402 includes:
a first calculation submodule for calculating CT1-CT0A difference of (d);
an adjustment submodule for adjusting if CT1-CT0When the Pulse Width Modulation (PWM) is not less than B, PWM is increasedT0Is PWMTTThe lifting amplitude is C, or D is less than or equal to CT1-CT0When < B, PWM is increasedT0Is PWMTTThe lifting amplitude is E, or for if CT1-CT0When < D, reduce PWMT0Is PWMTTThe reduction amplitude is F;
wherein, CT1Is the temperature, C, of the sampling point at the current time T1T2Temperature, PWM, at a time T0 prior to the sample pointT0For speed increments at the previous moment, PWMTTFor the adjusted rotation speed increment, B and D are preset temperature difference values, C, E, F is a preset PWM adjustment amount, wherein C is larger than or equal to E.
In a possible implementation, the adjusting module 402 further includes a holding sub-module, an input power consumption curve mean value obtaining sub-module, and a second calculating sub-module:
the holding submodule is also used for holding the PWM of the fan to be not adjusted at the time from T1 to T2, and the time T2 is the time after the delay of G seconds from T1;
the input power consumption curve mean value obtaining submodule is used for obtaining the input power consumption curve mean value P of the whole machine between T0 and T1T1And the average value P of the input power consumption curve of the whole machine between the time T1 and the time T2T2
The second calculation submodule is also used for calculating PT2And PT1A difference of (d);
the adjusting submodule is also used for PT2-PT1When the fan is not less than H, the PWM of the fan is recovered to be PWMT0Or for use in PT2-PT1When the frequency is less than H, the PWM of the fan is maintained to be PWMTT
In a possible scheme, the temperature acquisition module is further configured to compare sampling temperatures of the sampling points respectively and obtain a maximum value when a plurality of sampling points exist.
The fan speed regulation device of the embodiment can inhibit the over-speed regulation phenomenon corresponding to different PWM speed regulation increments aiming at different situations of temperature rise speed; corresponding to the scene that the fan speed regulation increment is reduced, a corresponding speed regulation strategy is formulated, and the PWM increment value is recovered or kept, so that the device can dissipate heat in time, and the power consumption is reduced.
On the basis of the foregoing embodiment, a third embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and the program, when running, controls a device on which the storage medium is located to perform the operations according to the first embodiment.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present invention are intended to be within the scope of the claims.

Claims (9)

1. A method for regulating the speed of a fan is characterized by comprising the following steps:
in the period of proportional-integral-differential PID speed regulation, acquiring the rotation speed increment of the fan at the previous moment;
adjusting the rotation speed increment according to the difference value between the current time temperature value and the previous time temperature value of the sampling point, wherein the adjusted rotation speed increment is the rotation speed increment of the fan at the current time;
the adjusting the rotation speed increment according to the difference value between the temperature value of the sampling point at the current moment and the temperature value of the sampling point at the previous moment comprises the following steps:
calculating the difference value between the current time temperature value and the previous time temperature value of the sampling point;
if the difference is less than D, reducing PWMT0Is PWMTTReduced by the magnitude F, wherein PWMT0For speed increments at the previous moment, PWMTTThe rotating speed increment after the adjustment at the time T1 is obtained, D is a preset temperature difference value, and F is a preset PWM adjustment amount;
keeping PWM of the fan from being adjusted at a time T1-T2, wherein the time T2 is the time after G seconds of delay of T1;
acquiring an input power consumption curve mean value P T1 of the whole machine between the moments T0 and T1 and an input power consumption curve mean value P T2 of the whole machine between the moments T1 and T2;
calculating the difference between P T2 and P T1;
if the difference value between P T2 and P T1 is larger than or equal to H, recovering the PWM of the fan to be PWMT0
If the difference value between P T2 and P T1 is smaller than H, the PWM of the fan is maintained to be PWMTT
Wherein H is a preset threshold value.
2. The method of claim 1, wherein prior to obtaining the increase in the rotational speed of the wind turbine at the previous time, the method further comprises:
acquiring the difference between the current time temperature value and the target temperature value of the sampling point as PID algorithm input;
calculating the rotation speed increment of the fan according to the parameters of a sampling period T, a proportional coefficient KP, an integral time constant TI and a differential time constant TD;
the fan is a Pulse Width Modulation (PWM) speed control fan, and the rotating speed increment output is a PWM duty ratio.
3. The method as claimed in claim 2, wherein after calculating the difference between the temperature value at the current moment and the temperature value at the previous moment of the sampling point, the method comprises:
if the difference is greater than or equal to B, increasing the rotating speed increment PWM of the previous momentT0Is PWMTTThe lifting amplitude is C;
if the difference is greater than or equal to D and less than B, PWM is promotedT0Is PWMTT, the lifting amplitude is E;
wherein B is a preset temperature difference value, C, E is a preset PWM adjustment value, and C is more than or equal to E.
4. A method as claimed in any one of claims 1 to 3, wherein, if there are a plurality of sampling points, the sampling temperatures at the respective sampling points are compared and taken to a maximum value.
5. A fan speed regulation device, characterized in that, the device includes:
the acquisition module is used for acquiring the rotating speed increment of the fan at the previous moment in the PID speed regulation period;
the adjusting module is used for adjusting the rotating speed increment according to the difference value between the current-time temperature value and the previous-time temperature value of the sampling point, and the adjusted rotating speed increment is the rotating speed increment of the fan at the current time;
the first calculation submodule is used for calculating the difference value between the current time temperature value and the previous time temperature value of the sampling point;
an adjustment submodule for reducing PWM if the difference is less than DT0Is PWMTTReduced by the magnitude F, wherein PWMT0For speed increments at the previous moment, PWMTTThe rotating speed increment after the adjustment at the time T1 is obtained, D is a preset temperature difference value, and F is a preset PWM adjustment amount;
the adjusting module further comprises a holding submodule, an input power consumption curve mean value obtaining submodule and a second calculating submodule:
the holding submodule is further used for holding the PWM of the fan not to be adjusted at the time from T1 to T2 when the difference value is smaller than D, and the time T2 is the time after the delay of G seconds from T1;
the input power consumption curve mean value obtaining submodule is used for obtaining an input power consumption curve mean value P T1 of the whole machine between T0 and T1 and an input power consumption curve mean value PT2 of the whole machine between T1 and T2;
the second calculation submodule is also used for calculating the difference value between P T2 and P T1;
the adjusting submodule is further used for restoring the PWM of the fan to be PWM when the difference value between P T2 and P T1 is larger than or equal to HT0Or when the difference between P T2 and P T1 is smaller than H, the PWM of the fan is maintained to be PWMTT
Wherein H is a preset threshold value.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the temperature acquisition module is used for acquiring the difference between the current moment temperature value and the target temperature value of the sampling point as PID algorithm input;
the PID algorithm module is used for calculating the rotating speed increment of the fan according to the parameters of a sampling period T, a proportional coefficient KP, an integral time constant TI and a differential time constant TD;
the fan is a PWM speed control fan, and the rotating speed increment output is a PWM duty ratio.
7. The apparatus of claim 6, wherein the adjustment module comprises:
an adjusting submodule, configured to increase the rotation speed increment PWM at the previous moment when the difference is greater than or equal to B and the rotation speed increment at the previous moment is increasedT0Is PWMTTThe lifting amplitude is C, or the lifting PWM is used for lifting PWM when the difference value is larger than or equal to D and smaller than BT0Is PWMTTThe lifting amplitude is E;
wherein B is a preset temperature difference value, C, E is a preset PWM adjustment value, and C is more than or equal to E.
8. The device according to any one of claims 6 to 7, wherein the temperature acquisition module is further configured to compare the sampling temperatures of the sampling points respectively and take the maximum value when a plurality of sampling points exist.
9. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of any of claims 1-4.
CN201710468996.2A 2017-06-19 2017-06-19 Method and device for regulating speed of fan and storage medium Active CN109139524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710468996.2A CN109139524B (en) 2017-06-19 2017-06-19 Method and device for regulating speed of fan and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710468996.2A CN109139524B (en) 2017-06-19 2017-06-19 Method and device for regulating speed of fan and storage medium

Publications (2)

Publication Number Publication Date
CN109139524A CN109139524A (en) 2019-01-04
CN109139524B true CN109139524B (en) 2022-04-22

Family

ID=64804629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710468996.2A Active CN109139524B (en) 2017-06-19 2017-06-19 Method and device for regulating speed of fan and storage medium

Country Status (1)

Country Link
CN (1) CN109139524B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111720352B (en) * 2019-03-19 2022-07-15 西安诺瓦星云科技股份有限公司 Fan control method, device and system
CN110173454A (en) * 2019-06-18 2019-08-27 珠海格力电器股份有限公司 The control method for fan, device and fan of wind speed can be automatically adjusted
CN111255726B (en) * 2020-03-03 2022-03-25 上海度普新能源科技有限公司 Fan control method and device
CN112268405A (en) * 2020-10-23 2021-01-26 Tcl家用电器(合肥)有限公司 Control method and device of refrigeration fan, refrigeration equipment and storage medium
CN113849055B (en) * 2021-09-17 2024-04-26 山东云海国创云计算装备产业创新中心有限公司 Server fan control system and method
CN114992804A (en) * 2022-05-31 2022-09-02 青岛海尔空调电子有限公司 Method and device for controlling indoor fan of air conditioner, air conditioner and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2862170Y (en) * 2005-11-04 2007-01-24 保锐科技股份有限公司 Fan rotary speed control device
CN103603820A (en) * 2013-11-25 2014-02-26 浪潮电子信息产业股份有限公司 Fan control method based on NUMA computer system structure
CN104121213A (en) * 2013-04-24 2014-10-29 加弘科技咨询(上海)有限公司 Method and system for fan control
CN104391555A (en) * 2014-12-05 2015-03-04 浪潮集团有限公司 Server fan speed adjusting method
CN104454616A (en) * 2014-12-26 2015-03-25 浪潮电子信息产业股份有限公司 Method for accurately regulating and controlling rotating speed of fan
CN105587681A (en) * 2015-12-10 2016-05-18 浪潮电子信息产业股份有限公司 Fan regulation and control method applied to SmartRack cabinet based on PID algorithm
CN105822580A (en) * 2016-04-01 2016-08-03 浪潮电子信息产业股份有限公司 Speed regulation method and device for server fan and 64-CPU server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106594963B (en) * 2016-11-04 2019-05-07 珠海格力电器股份有限公司 A kind of air conditioning control method, control device and air conditioner

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2862170Y (en) * 2005-11-04 2007-01-24 保锐科技股份有限公司 Fan rotary speed control device
CN104121213A (en) * 2013-04-24 2014-10-29 加弘科技咨询(上海)有限公司 Method and system for fan control
CN103603820A (en) * 2013-11-25 2014-02-26 浪潮电子信息产业股份有限公司 Fan control method based on NUMA computer system structure
CN104391555A (en) * 2014-12-05 2015-03-04 浪潮集团有限公司 Server fan speed adjusting method
CN104454616A (en) * 2014-12-26 2015-03-25 浪潮电子信息产业股份有限公司 Method for accurately regulating and controlling rotating speed of fan
CN105587681A (en) * 2015-12-10 2016-05-18 浪潮电子信息产业股份有限公司 Fan regulation and control method applied to SmartRack cabinet based on PID algorithm
CN105822580A (en) * 2016-04-01 2016-08-03 浪潮电子信息产业股份有限公司 Speed regulation method and device for server fan and 64-CPU server

Also Published As

Publication number Publication date
CN109139524A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109139524B (en) Method and device for regulating speed of fan and storage medium
CN105587681B (en) Fan regulation and control method applied to SmartRack cabinet based on PID algorithm
Joseph et al. Cohen-coon PID tuning method; A better option to Ziegler Nichols-PID tuning method
US11452233B2 (en) Method and apparatus for controlling fan speed
CN110206747B (en) Server fan regulation and control method and system based on component power consumption
CN103452608B (en) A kind of control gear for condensate system and controlling method
CN106773652B (en) PID system and automatic parameter adjusting method thereof
JPWO2016056142A1 (en) Electric motor control device
JP2018536381A (en) Method and system for controlling an electric motor
CN113883008A (en) Fuzzy self-adaptive variable-pitch control method for fan capable of inhibiting multiple disturbance factors
CN110725806A (en) Fan rotating speed control method and device and server
CN111350686B (en) Control method and control device
CN111580628A (en) Temperature control system, method and device, electronic equipment and storage medium
CN105138036A (en) Temperature control method and apparatus for integrated circuit
CN112068691B (en) Fan rotating speed regulation and control method and system introducing power algorithm
CN112994551B (en) Servo motor torque compensation method
US20190163247A1 (en) Fan control method
CN108448977B (en) direct current motor flux weakening control method and device
CN110069117A (en) A kind of server fan regulation method and system
CN114837977B (en) Fan speed regulating method and device
JP2018019462A (en) Servo motor control device, servo motor control method, and program for servo motor control
CN114167963B (en) Fan control management method, device, equipment and machine-readable storage medium
CN116025581A (en) Fan regulation and control method and device, electronic equipment and storage medium
CN114576186A (en) Fan speed regulation and control method and related assembly
CN115126711A (en) Method and device for regulating and controlling rotating speed of fan, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant