CN115013346A - Fan speed regulation method based on equipment, equipment and medium - Google Patents

Fan speed regulation method based on equipment, equipment and medium Download PDF

Info

Publication number
CN115013346A
CN115013346A CN202210862617.9A CN202210862617A CN115013346A CN 115013346 A CN115013346 A CN 115013346A CN 202210862617 A CN202210862617 A CN 202210862617A CN 115013346 A CN115013346 A CN 115013346A
Authority
CN
China
Prior art keywords
temperature
value
fan
temperature value
equipment
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.)
Pending
Application number
CN202210862617.9A
Other languages
Chinese (zh)
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.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking Technology Co Ltd
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 Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN202210862617.9A priority Critical patent/CN115013346A/en
Publication of CN115013346A publication Critical patent/CN115013346A/en
Pending legal-status Critical Current

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
    • 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
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D29/00Details, component parts, or accessories
    • F04D29/66Combating cavitation, whirls, noise, vibration or the like; Balancing
    • F04D29/661Combating cavitation, whirls, noise, vibration or the like; Balancing especially adapted for elastic fluid pumps
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a fan speed regulation method, equipment and a medium based on the equipment, wherein the method comprises the following steps: in a preset period, acquiring a plurality of first temperature values through a plurality of temperature sensors arranged on equipment; respectively carrying out jitter elimination processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values; selecting the temperature value with the highest temperature value from the plurality of second temperature values, and taking the temperature value with the highest temperature value as a third temperature value; comparing the third temperature value with a set temperature threshold, and determining a temperature alarm grade corresponding to the equipment; if the temperature alarm level is inconsistent with the temperature alarm level in the previous period, determining a fan rotating speed gear corresponding to the temperature alarm level according to a preset mapping relation; and controlling the fan on the equipment to regulate the speed according to the rotating speed gear of the fan. The rotating speed of the fan is automatically adjusted through the first temperature value, so that the energy consumption of equipment can be effectively reduced, the noise of the equipment is reduced, and the purposes of saving energy and reducing noise are achieved.

Description

Fan speed regulation method based on equipment, equipment and medium
Technical Field
The application relates to the technical field of intelligent equipment, in particular to a fan speed regulation method, equipment and a medium based on the equipment.
Background
With the development of communication network technology, network devices are applied more and more widely. The performance of the equipment is directly affected by the rise of the temperature of the equipment, and the important means for reducing the temperature is to increase the rotating speed of the fan so as to improve the heat dissipation effect. Generally, the higher the rotation speed of the fan, the better the heat dissipation effect, but at the same time, the higher the energy consumption and noise are generated. If the rotation speed of the fan is linearly adjusted according to the temperature change, although the heat dissipation effect can be improved,
however, if the temperature continues to rise slowly, the rotation speed of the fan will rise slowly, and the feedback of the heat dissipation effect will be slow. If the acquired temperature is suddenly changed due to the sensor, the rotating speed of the fan is suddenly increased or decreased to generate unstable change, and the equipment generates larger energy consumption and noise.
Therefore, a more efficient and stable fan speed regulation method is needed.
Disclosure of Invention
The embodiment of the application provides a fan speed regulation method, equipment and a medium based on equipment, and aims to solve the problem that a more efficient and more stable fan speed regulation method is needed.
The embodiment of the application adopts the following technical scheme:
in one aspect, an embodiment of the present application provides a fan speed regulation method based on a device, where the method includes: in a preset period, acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment; respectively carrying out jitter elimination processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values; selecting the temperature value with the highest temperature value from the plurality of second temperature values, and taking the temperature value with the highest temperature value as a third temperature value; comparing the third temperature value with a set temperature threshold, and determining a temperature alarm level corresponding to the equipment; if the temperature alarm level is not consistent with the temperature alarm level of the previous period, determining a fan rotating speed gear corresponding to the temperature alarm level according to a preset mapping relation; and controlling a fan on the equipment to regulate the speed according to the fan speed gear.
In one example, the obtaining a plurality of second temperature values by performing jitter elimination on the plurality of first temperature values respectively through a preset median filtering algorithm specifically includes: determining a temperature sensor corresponding to the first temperature value; updating the window array by determining the window position corresponding to the first temperature value in the window array of the temperature sensor; wherein the window array comprises a plurality of historical temperature values; acquiring a preset number of temperature values in the updated window array; sorting the preset number of temperature values in an ascending order to obtain a sorted temperature data queue; in the sorted temperature data queue, removing the maximum temperature value and the minimum temperature value, and determining the residual temperature value; and averaging the rest temperature values, and taking the average value as a second temperature value of the first temperature value.
In an example, the determining the first temperature value in the window array corresponding to the temperature sensor and the corresponding window position specifically includes: performing modular operation on the first temperature value according to the data capacity of the window array of the temperature sensor to obtain the remainder of the first temperature value; determining an expression of the first temperature value in the window array according to a preset rule and the remainder; and determining the window position corresponding to the first temperature value in the window array according to the expression.
In one example, the updating the window array by determining a window position corresponding to the first temperature value in the window array of the temperature sensor specifically includes: determining a window position corresponding to the first temperature value in a window array of the temperature sensor; updating the window array by replacing the historical temperature values for the window locations with the first temperature values.
In one example, the determining, according to a preset mapping relationship, a fan speed gear corresponding to the temperature alarm level specifically includes: if the temperature alarm level is a low level, determining a fan rotating speed gear corresponding to the temperature alarm level as a low speed gear according to a preset mapping relation; if the temperature alarm level is a high level, determining a fan rotating speed gear corresponding to the temperature alarm level as a high-speed gear according to a preset mapping relation; if the temperature alarm level is a serious level, determining a fan rotating speed gear corresponding to the temperature alarm level as a full-speed gear according to a preset mapping relation; and the rotating speed value of the low-speed gear is smaller than that of the high-speed gear, and the rotating speed value of the high-speed gear is smaller than that of the full-speed gear.
In one example, before determining the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship, the method further includes: converting the third sample temperature value into a sample pulse width modulation value of the fan, and converting the sample pulse width modulation value into a sample fan rotating speed value to determine a mapping relation between the third sample temperature value and the sample fan rotating speed value; and determining a mapping relation table between the temperature alarm grade and the fan rotating speed gear according to the temperature alarm grade corresponding to the third temperature value of the sample and the fan rotating speed gear corresponding to the fan rotating speed value of the sample.
In one example, the controlling a fan on the device to adjust the speed according to the fan speed gear specifically includes: determining a corresponding fan rotating speed value according to the fan rotating speed gear; and converting the fan rotating speed value into a pulse width modulation value, and controlling a fan on the equipment to regulate the speed according to the pulse width modulation value.
In one example, after the comparing the third temperature value with the set temperature threshold and determining the temperature alarm level corresponding to the device, the method further includes: and if the temperature alarm grade is consistent with the temperature alarm grade in the previous period, keeping the current rotating speed value of the fan on the equipment unchanged.
On the other hand, the embodiment of the present application provides a fan speed regulation device based on a device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to: in a preset period, acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment; respectively carrying out jitter elimination processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values; selecting the temperature value with the highest temperature value from the plurality of second temperature values, and taking the temperature value with the highest temperature value as a third temperature value; comparing the third temperature value with a set temperature threshold, and determining a temperature alarm level corresponding to the equipment; if the temperature alarm level is not consistent with the temperature alarm level of the previous period, determining a fan rotating speed gear corresponding to the temperature alarm level according to a preset mapping relation; and controlling a fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
In another aspect, an embodiment of the present application provides a device-based fan governor nonvolatile computer storage medium, which stores computer-executable instructions configured to: in a preset period, acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment; respectively carrying out jitter elimination processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values; selecting the temperature value with the highest temperature value from the plurality of second temperature values, and taking the temperature value with the highest temperature value as a third temperature value; comparing the third temperature value with a set temperature threshold, and determining a temperature alarm level corresponding to the equipment; if the temperature alarm level is not consistent with the temperature alarm level of the previous period, determining a fan rotating speed gear corresponding to the temperature alarm level according to a preset mapping relation; and controlling a fan on the equipment to regulate the speed according to the fan speed gear.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
through a median filtering algorithm, the first temperature value is processed, the temperature jitter of the sensor can be filtered out, and the collected first temperature value is more accurate. After the filtering processing, the third temperature value input to the fan control module is stable, the fan rotating speed can not shake when being adjusted according to the third temperature value, the stability of the adjustment of the fan rotating speed is higher, and meanwhile, the energy consumption and the noise of equipment are also reduced.
And according to the mapping relation between each alarm grade and the fan rotating speed gear. When the detected temperature of the equipment reaches the temperature threshold range, the rotating speed value of the fan is immediately adjusted to the rotating speed value of the corresponding gear. The control flow is simplified, the speed regulation response of the fan is quick, and the heat dissipation effect of the equipment is quick to feed back.
Parameters influencing the speed regulating function of the fan are reduced to only depend on a temperature threshold and a rotating speed gear. The temperature threshold and the rotating speed are set to different levels, and the values in the temperature threshold and the fan rotating speed mapping table can be flexibly set according to the applied equipment scene. Therefore, the fan control strategy in the scheme can be suitable for different equipment platforms, and the module is more convenient to transplant and has better universality.
Drawings
In order to more clearly explain the technical solutions of the present application, some embodiments of the present application will be described in detail below with reference to the accompanying drawings, in which:
fig. 1 is a schematic flowchart of a method for regulating speed of a fan based on a device according to an embodiment of the present disclosure;
fig. 2 is a diagram illustrating an example of a median filtering process according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating another method for regulating fan speed based on equipment according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a fan speed regulation device based on a device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following embodiments and accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, the fan speed regulation efficiency is poor, the scheme control processing is not simple enough, a step speed regulation mode and a return difference speed regulation mode need to be selected, the fan speed is calculated according to the current temperature, the initial temperature, the temperature stepping value and the initial rotating speed value, and the fan speed is set. When the temperature slowly changes, the adjustment of the rotating speed of the fan is slow, the heat dissipation effect is not rapidly improved, the fan generates continuously changing noise, and the user experience is also influenced.
The fan speed regulation stability is poor, and the scheme does not carry out filtering processing on the acquired temperature data. When the temperature of the sensor is in instantaneous jitter, the acquired temperature data is not real temperature data, and then the rotating speed of the fan is also increased or decreased after the fan is fed back to control, so that the adjustment of the rotating speed of the fan is unstable, and greater energy consumption and noise are generated.
The control universality of the fan is poor, the scheme needs to associate parameters such as the current temperature, the initial temperature, the temperature stepping value, the initial rotating speed value and the like, when the environment scene of the applied equipment changes, the related modification is large, and the universality of the application on different equipment platforms is poor.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a fan speed control method based on a device according to an embodiment of the present disclosure. The process may be performed by computing devices in the respective domains, with certain input parameters or intermediate results in the process allowing for manual intervention adjustments to help improve accuracy.
The analysis method according to the embodiment of the present application may be implemented by a terminal device or a server, and the present application is not limited to this. For convenience of understanding and description, the following embodiments are described in detail by taking a server as an example.
It should be noted that the server may be a single device, or may be a system composed of multiple devices, that is, a distributed server, which is not specifically limited in this application.
The process in fig. 1 may include the following processes:
s102: in a preset period, a plurality of first temperature values corresponding to the equipment are obtained through a plurality of temperature sensors arranged on the equipment.
The device may be a switch device, and the switch device has a plurality of temperature sensors distributed on each hardware module of the switch device, for example, a power module, a CPU chip, and a service chip.
For example, the temperature acquisition module may acquire the temperature value from a temperature sensor on the switch device through a hardware bus.
S104: and respectively carrying out jitter elimination processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values.
In some embodiments of the present application, a median filtering algorithm is used to filter unstable temperature data reported by the temperature sensor, and eliminate jitter of the temperature data. Generally, the temperature change of the equipment is in a linear trend, and the temperature value does not increase or decrease instantaneously in the timing sampling process. In order to guarantee the accuracy of the first temperature value acquired from the temperature sensor, the jitter of the first temperature value is eliminated through a median filtering algorithm, so that the stability of fan control is improved.
Due to the median filtering algorithm, the method has a good filtering effect on nonlinear shot noise and has a good edge-preserving characteristic, but the ordering statistics in the method have certain influence on the performance. The larger the data volume in the window is, the larger the overhead caused by realizing the sorting is, which may affect the real-time performance of the filtering process, so that an appropriate window data volume needs to be extracted according to the data characteristics of the actual application scene.
Specifically, a temperature sensor corresponding to the first temperature value is determined, and the window array is updated by determining the window position corresponding to the first temperature value in the window array of the temperature sensor. Wherein, the window array comprises a plurality of historical temperature values. Then, in the updated window array, a preset number of temperature values are obtained, and the preset number of temperature values are sorted according to an ascending order to obtain a sorted temperature data queue. Then, in the sorted temperature data queue, the maximum temperature value and the minimum temperature value are removed, and the remaining temperature value is determined. And finally, averaging the rest temperature values, and taking the average value as a second temperature value of the first temperature value.
Further, when the corresponding window position is determined, firstly, according to the data capacity of the window array of the temperature sensor, a modulo operation is performed on the first temperature value to obtain the remainder of the first temperature value. And then, determining an expression of the first temperature value in the window array according to a preset rule and the remainder. Then, according to the expression, the window position corresponding to the first temperature value in the window array is determined.
When updating, the first temperature value is firstly determined in the window array of the temperature sensor, the corresponding window position is determined, and then the window array is updated by replacing the historical temperature value of the window position with the first temperature value.
More intuitively, fig. 2 is an exemplary diagram of a median filtering process provided in an embodiment of the present application.
As shown in fig. 2, for the a sensor, in constructing the window array of the a sensor, the following are specific:
first, the maximum data capacity of the sliding window array is set to 5, the window array is represented as Y [ ], and the number of elements is set to 5.
Then, for each collected first temperature value Y, its current count value count is retained. Then, a modulo operation is performed on the count value count of the acquired first temperature value Y to 5, where i is a remainder of the count Mod 5. The calculated value i is input as the first temperature value Y to the window array subscript, that is, the value of i ranges from 0 to 4 at the position of the window of the first temperature value Y. Through the cyclic modular operation, the first temperature values of the sensor A which are cyclically acquired can be sequentially updated to the position of the window array Y [ i ]. That is, Y [ i ] represents the first temperature value at the ith position of the window array, thereby constructing the window array.
When the first temperature value is processed by jitter elimination, 5 sampling point values { y 0, y 1, y 2, y 3, y 4 } are taken from the window array every time the first temperature value is needed to be obtained, and then the 5 sampling point values are rapidly sorted according to ascending order, and Yn-2, Yn-1, Yn +1 and Yn +2 are obtained in sequence.
That is, in fig. 2, the minimum value Yn-2 and the maximum value Yn +2 are removed, the three values Yn-1, Yn, and Yn +1 in the middle are retained, then the three values Yn-1, Yn, and Yn +1 are averaged, and the average value is calculated as the filtered temperature output value, i.e., the second temperature value.
S106: and selecting the temperature value with the highest temperature value from the plurality of second temperature values, and taking the temperature value with the highest temperature value as a third temperature value.
S108: and comparing the third temperature value with a set temperature threshold, and determining the temperature alarm level corresponding to the equipment.
In some embodiments of the present application, the predetermined temperature thresholds may include a low threshold, a medium threshold, and a high threshold by the severity of the third temperature value. The interval ranges of the three temperature thresholds correspond to different temperature alarm levels. It should be noted that no alarm is performed when the third temperature value is less than the low threshold.
And if the temperature alarm level is consistent with the temperature alarm level in the previous period, keeping the current rotating speed value of the fan on the equipment unchanged.
If the temperature alarm level is not consistent with the temperature alarm level of the previous period, the step S110 is continuously executed.
S110: and if the temperature alarm level is not consistent with the temperature alarm level in the previous period, determining a fan rotating speed gear corresponding to the temperature alarm level according to a preset mapping relation.
The system is started and then the temperature acquisition module and the fan control module are enabled. The method is equivalent to that the fan control module adopts an improved control strategy and sets three temperatures and four fan speed gears. And selecting the fan rotating speed of the corresponding gear by judging whether the acquired third temperature value reaches the condition of the set temperature threshold.
In some embodiments of the present application, the temperature alarm levels include a low level, a high level, and a severity level. The three temperature threshold interval ranges respectively correspond to a basic gear, a low gear, a high gear and a full-speed gear of the fan rotating speed. That is, different temperature alert levels correspond to different fan speed steps. The basic gear is the normal basic speed of the fan set by the system. The fan is ensured not to generate backflow, and noise influence is considered.
More intuitively, the mapping relationship is shown in table 1.
Table 1:
alarm rating Temperature threshold range Speed gear Rotating speed of fan
T < low threshold Basic gear 40%
Low grade T is less than or equal to the lower threshold and less than the middle threshold Low gear 60%
High grade T is less than or equal to middle threshold and less than high threshold High-speed gear 80%
Severity level High threshold < T Full speed gear 100%
Specifically, if the temperature alarm level is a low level, the fan speed gear corresponding to the temperature alarm level is determined to be a low speed gear according to the preset mapping relationship.
And if the temperature alarm level is high, determining the fan rotating speed gear corresponding to the temperature alarm level as a high-speed gear according to a preset mapping relation.
And if the temperature alarm level is a serious level, determining the fan rotating speed gear corresponding to the temperature alarm level as a full-speed gear according to a preset mapping relation. The rotating speed value of the low-speed gear is smaller than that of the high-speed gear, and the rotating speed value of the high-speed gear is smaller than that of the full-speed gear.
It should be noted that T represents a third temperature value, where T is a basic gear, the rotation speed is 40% of the rotation speed value of the full-speed gear, T is a low-speed gear, the rotation speed is 60% of the rotation speed value of the full-speed gear, T is a high-speed gear, the rotation speed is 80% of the rotation speed value of the full-speed gear, and T is a full-speed gear, and the rotation speed is 100% of the rotation speed value of the full-speed gear.
When the mapping relation is determined, the third temperature value of the sample is converted into a sample pulse width modulation value of the fan, and the sample pulse width modulation value is converted into a sample fan rotating speed value, so that the mapping relation between the third temperature value of the sample and the sample fan rotating speed value is determined. Wherein, the calculation formula between the third temperature value of the sample and the pulse width modulation value of the fan is as follows: the PWM value is 4.54T corrected value. The corrected value T is a filtered sample third temperature value, and the PWM value is a sample pulse width modulation value.
Then, according to the temperature alarm level corresponding to the third temperature value of the sample and the fan speed gear corresponding to the fan speed value of the sample, a mapping relation table between the temperature alarm level and the fan speed gear, namely table 1, is determined.
That is, it can be appreciated that the fan control module selects a fan speed gear for a corresponding temperature range based on the temperature change. When the temperature rises, the fan control module can automatically increase the rotating speed of the fan to a higher first gear. And then continuously monitoring the temperature change, and when the temperature does not rise to a higher threshold, keeping the current rotating speed of the fan to stably operate. If the device temperature begins to drop below the lower threshold, the fan control module will also automatically adjust the fan to the corresponding speed.
S112: and controlling a fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
Specifically, according to the fan speed gear, a corresponding fan speed value is determined. And then, converting the rotating speed value of the fan into a pulse width modulation value, and controlling the fan on the equipment to regulate the speed according to the pulse width modulation value. The calculation formula of the fan rotating speed value and the pulse width modulation value is as follows: the fan speed value percentage is PWM value/255 100%. Wherein the PWM value is a pulse width modulation value.
It should be noted that, although the embodiment of the present application describes steps S102 to S112 sequentially with reference to fig. 1, this does not mean that steps S102 to S112 must be executed in strict sequence. The embodiment of the present application is described by sequentially describing step S102 to step S112 according to the sequence shown in fig. 1, so as to facilitate those skilled in the art to understand the technical solutions of the embodiment of the present application. In other words, in the embodiment of the present application, the sequence between step S102 and step S112 may be appropriately adjusted according to actual needs.
Through the method of fig. 1, the fan control processing is more simplified, and the scheme adopts a mode of setting a temperature threshold and a fan speed gear to divide the third temperature value and the fan speed into a plurality of grades according to the severity. And respectively calculating the mapping relation between each alarm grade and the fan rotating speed gear in advance according to a calculation formula of the temperature and the fan rotating speed. When the detected temperature of the equipment reaches the temperature threshold range, the rotating speed value of the fan is immediately adjusted to the rotating speed value of the corresponding gear. The mapping relation between the alarm level and the fan rotating speed gear adopts a fixed table, the table is directly looked up without real-time calculation, complex arbitration logic is omitted, the control flow is simplified, the fan speed regulation response is fast, and the heat dissipation effect feedback of the equipment is fast.
The fan speed regulation stability is higher, and the scheme adopts median filtering algorithm, handles first temperature value, can filter the shake of sensor temperature, makes the first temperature value of gathering more accurate. After the filtering processing, the third temperature value input to the fan control module is stable, the fan rotating speed cannot shake when being adjusted according to the third temperature value, the stability of the fan rotating speed adjustment is higher, and meanwhile, the energy consumption and the noise of equipment are also reduced.
On different equipment platforms, due to the difference of hardware structures, the number of fans and heat dissipation design of the equipment, the temperature threshold and the gear of the fan rotating speed are also different. The scheme reduces the parameters influencing the speed regulation function of the fan to the values only depending on the temperature threshold and the speed gear. The temperature threshold and the rotating speed are set to different levels, and the values in the temperature threshold and the fan rotating speed mapping table can be flexibly set according to the applied equipment scene. Therefore, the fan control strategy in the scheme can be suitable for different equipment platforms, and the module is more convenient to transplant and has better universality.
In conclusion, the rotating speed of the fan is automatically adjusted according to the system temperature, and the method has the advantages of high efficiency, stability and universality. The energy consumption of the equipment can be effectively reduced, the noise of the equipment is reduced, and the purposes of energy conservation and noise reduction are achieved.
More intuitively, fig. 3 is a schematic flow chart of another method for regulating the speed of a fan based on a device according to the present application.
In fig. 3, when the system is started, the start temperature is monitored and the fan is controlled, then the first temperature value is collected at regular time, and the third temperature value is obtained by the median filtering algorithm for the first temperature value.
And then, judging whether the third temperature value changes, and if not, keeping the rotating speed of the fan unchanged. That is, it is determined whether the temperature threshold range corresponding to the third temperature value is changed.
If yes, entering speed regulation selection, continuously judging whether the speed exceeds a low threshold, and if not, adjusting the fan rotating speed gear to be a basic gear.
If yes, continuously judging whether the speed exceeds a high threshold, and if not, adjusting the speed gear of the fan to be a low speed gear.
If yes, whether the serious threshold is exceeded or not is continuously judged, and if not, the fan rotating speed gear body is adjusted to be a high-speed gear. If yes, the rotating speed gear of the fan is adjusted to be a full-speed gear.
And finally, controlling the fan to regulate the speed, and calculating the PWM value of the gear corresponding to the rotating speed of the fan, so that the rotating speed of the fan can be set.
Based on the same idea, some embodiments of the present application further provide a device and a non-volatile computer storage medium corresponding to the above method.
Fig. 4 is a schematic structural diagram of a fan speed regulating device based on a device according to an embodiment of the present application, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
in a preset period, acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment;
respectively carrying out jitter elimination processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values;
selecting the temperature value with the highest temperature value from the plurality of second temperature values, and taking the temperature value with the highest temperature value as a third temperature value;
comparing the third temperature value with a set temperature threshold, and determining a temperature alarm level corresponding to the equipment;
if the temperature alarm level is not consistent with the temperature alarm level of the previous period, determining a fan rotating speed gear corresponding to the temperature alarm level according to a preset mapping relation;
and controlling a fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
Some embodiments of the present application provide a device-based fan throttling non-volatile computer storage medium storing computer-executable instructions configured to:
in a preset period, acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment;
respectively carrying out jitter elimination processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values;
selecting the temperature value with the highest temperature value from the plurality of second temperature values, and taking the temperature value with the highest temperature value as a third temperature value;
comparing the third temperature value with a set temperature threshold, and determining a temperature alarm level corresponding to the equipment;
if the temperature alarm level is not consistent with the temperature alarm level of the previous period, determining a fan rotating speed gear corresponding to the temperature alarm level according to a preset mapping relation;
and controlling a fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the technical principle of the present application shall fall within the protection scope of the present application.

Claims (10)

1. An apparatus-based fan speed regulation method, the method comprising:
in a preset period, acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment;
respectively carrying out jitter elimination processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values;
selecting the temperature value with the highest temperature value from the plurality of second temperature values, and taking the temperature value with the highest temperature value as a third temperature value;
comparing the third temperature value with a set temperature threshold, and determining a temperature alarm level corresponding to the equipment;
if the temperature alarm level is not consistent with the temperature alarm level of the previous period, determining a fan rotating speed gear corresponding to the temperature alarm level according to a preset mapping relation;
and controlling a fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
2. The method according to claim 1, wherein the obtaining a plurality of second temperature values by performing jitter elimination on the plurality of first temperature values through a preset median filtering algorithm includes:
determining a temperature sensor corresponding to the first temperature value;
updating the window array by determining the window position corresponding to the first temperature value in the window array of the temperature sensor; wherein the window array comprises a plurality of historical temperature values;
acquiring a preset number of temperature values in the updated window array;
sorting the preset number of temperature values in an ascending order to obtain a sorted temperature data queue;
in the sorted temperature data queue, removing the maximum temperature value and the minimum temperature value, and determining the residual temperature value;
and averaging the rest temperature values, and taking the average value as a second temperature value of the first temperature value.
3. The method according to claim 2, wherein the determining the first temperature value in the window array corresponding to the temperature sensor and the corresponding window position specifically includes:
performing modular operation on the first temperature value according to the data capacity of the window array of the temperature sensor to obtain the remainder of the first temperature value;
determining an expression of the first temperature value in the window array according to a preset rule and the remainder;
and determining the window position corresponding to the first temperature value in the window array according to the expression.
4. The method of claim 2, wherein the updating the window array by determining a corresponding window position of the first temperature value in the window array of the temperature sensor comprises:
determining a window position corresponding to the first temperature value in a window array of the temperature sensor;
updating the window array by replacing the historical temperature values for the window locations with the first temperature values.
5. The method according to claim 1, wherein the determining a fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship specifically includes:
if the temperature alarm level is a low level, determining a fan rotating speed gear corresponding to the temperature alarm level as a low speed gear according to a preset mapping relation;
if the temperature alarm level is a high level, determining a fan rotating speed gear corresponding to the temperature alarm level as a high-speed gear according to a preset mapping relation;
if the temperature alarm level is a serious level, determining a fan rotating speed gear corresponding to the temperature alarm level as a full-speed gear according to a preset mapping relation; and the rotating speed value of the low-speed gear is smaller than that of the high-speed gear, and the rotating speed value of the high-speed gear is smaller than that of the full-speed gear.
6. The method according to claim 1, wherein before determining the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship, the method further comprises:
converting the third sample temperature value into a sample pulse width modulation value of the fan, and converting the sample pulse width modulation value into a sample fan rotating speed value to determine a mapping relation between the third sample temperature value and the sample fan rotating speed value;
and determining a mapping relation table between the temperature alarm grade and the fan rotating speed gear according to the temperature alarm grade corresponding to the third temperature value of the sample and the fan rotating speed gear corresponding to the fan rotating speed value of the sample.
7. The method according to claim 1, wherein controlling the fan on the device to adjust the speed according to the fan speed gear specifically comprises:
determining a corresponding fan rotating speed value according to the fan rotating speed gear;
and converting the fan rotating speed value into a pulse width modulation value, and controlling a fan on the equipment to regulate the speed according to the pulse width modulation value.
8. The method of claim 1, wherein after comparing the third temperature value with a set temperature threshold and determining a temperature alarm level corresponding to the device, the method further comprises:
and if the temperature alarm level is consistent with the temperature alarm level in the previous period, keeping the current rotating speed value of the fan on the equipment unchanged.
9. An apparatus-based fan governor apparatus, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
in a preset period, acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment;
respectively carrying out jitter elimination processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values;
selecting the temperature value with the highest temperature value from the plurality of second temperature values, and taking the temperature value with the highest temperature value as a third temperature value;
comparing the third temperature value with a set temperature threshold, and determining a temperature alarm level corresponding to the equipment;
if the temperature alarm level is not consistent with the temperature alarm level of the previous period, determining a fan rotating speed gear corresponding to the temperature alarm level according to a preset mapping relation;
and controlling a fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
10. A device-based fan throttle non-volatile computer storage medium storing computer-executable instructions configured to:
in a preset period, acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment;
respectively carrying out jitter elimination processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values;
selecting the temperature value with the highest temperature value from the plurality of second temperature values, and taking the temperature value with the highest temperature value as a third temperature value;
comparing the third temperature value with a set temperature threshold, and determining a temperature alarm level corresponding to the equipment;
if the temperature alarm level is not consistent with the temperature alarm level of the previous period, determining a fan rotating speed gear corresponding to the temperature alarm level according to a preset mapping relation;
and controlling a fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
CN202210862617.9A 2022-07-21 2022-07-21 Fan speed regulation method based on equipment, equipment and medium Pending CN115013346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210862617.9A CN115013346A (en) 2022-07-21 2022-07-21 Fan speed regulation method based on equipment, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210862617.9A CN115013346A (en) 2022-07-21 2022-07-21 Fan speed regulation method based on equipment, equipment and medium

Publications (1)

Publication Number Publication Date
CN115013346A true CN115013346A (en) 2022-09-06

Family

ID=83081515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210862617.9A Pending CN115013346A (en) 2022-07-21 2022-07-21 Fan speed regulation method based on equipment, equipment and medium

Country Status (1)

Country Link
CN (1) CN115013346A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115992830A (en) * 2022-11-04 2023-04-21 深圳市极米软件科技有限公司 Control method, device and equipment for cooling system fan and computer storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140148954A1 (en) * 2012-11-28 2014-05-29 Hon Hai Precision Industry Co., Ltd. Fan control system and fan contol method
WO2015131723A1 (en) * 2014-08-21 2015-09-11 中兴通讯股份有限公司 Method and apparatus for regulating speed of ptn device fan
CN106050718A (en) * 2016-07-12 2016-10-26 邦彦技术股份有限公司 Intelligent fan control method and system
WO2017020696A1 (en) * 2015-07-31 2017-02-09 中兴通讯股份有限公司 Fan control method and device for multiple service boards
CN110345100A (en) * 2019-07-19 2019-10-18 苏州浪潮智能科技有限公司 Monitoring method, device, equipment and the readable storage medium storing program for executing of server fan rotating speed
CN111258398A (en) * 2020-01-10 2020-06-09 安擎(天津)计算机有限公司 AI server fan speed adjusting method, system, terminal device and storage medium
CN111749920A (en) * 2020-06-19 2020-10-09 烽火通信科技股份有限公司 Stepless speed regulation method and device for fan of electromechanical system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140148954A1 (en) * 2012-11-28 2014-05-29 Hon Hai Precision Industry Co., Ltd. Fan control system and fan contol method
WO2015131723A1 (en) * 2014-08-21 2015-09-11 中兴通讯股份有限公司 Method and apparatus for regulating speed of ptn device fan
CN105402148A (en) * 2014-08-21 2016-03-16 中兴通讯股份有限公司 Method and device for adjusting speed of packet transport network (PTN) equipment fan
WO2017020696A1 (en) * 2015-07-31 2017-02-09 中兴通讯股份有限公司 Fan control method and device for multiple service boards
CN106640716A (en) * 2015-07-31 2017-05-10 中兴通讯股份有限公司 Fan control method and device capable of giving consideration to all service panels
CN106050718A (en) * 2016-07-12 2016-10-26 邦彦技术股份有限公司 Intelligent fan control method and system
CN110345100A (en) * 2019-07-19 2019-10-18 苏州浪潮智能科技有限公司 Monitoring method, device, equipment and the readable storage medium storing program for executing of server fan rotating speed
CN111258398A (en) * 2020-01-10 2020-06-09 安擎(天津)计算机有限公司 AI server fan speed adjusting method, system, terminal device and storage medium
CN111749920A (en) * 2020-06-19 2020-10-09 烽火通信科技股份有限公司 Stepless speed regulation method and device for fan of electromechanical system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
潘银松等: "基于FPGA的防脉冲干扰温控调速直流风扇研究", 微特电机, no. 9, 30 September 2015 (2015-09-30), pages 97 - 99 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115992830A (en) * 2022-11-04 2023-04-21 深圳市极米软件科技有限公司 Control method, device and equipment for cooling system fan and computer storage medium
CN115992830B (en) * 2022-11-04 2023-10-31 深圳市极米软件科技有限公司 Control method, device and equipment for cooling system fan and computer storage medium

Similar Documents

Publication Publication Date Title
CN107423433B (en) Data sampling rate control method and device
CN115013346A (en) Fan speed regulation method based on equipment, equipment and medium
CN111503038B (en) Method and device for regulating speed of fan
CN116994416B (en) Fan operation fault early warning method and system based on artificial intelligence
CN103428102A (en) Dynamic load balance achieving method and system in distributed network
CN110928341B (en) Temperature control method, device, equipment and storage medium
CN113203231A (en) Energy adjusting method and device of unit and unit
CN115774652A (en) Cluster control equipment health monitoring method, equipment and medium based on clustering algorithm
CN111985771B (en) Power grid frequency regulation and control method and system based on power grid frequency overshoot and undershoot analysis
CN115680999A (en) Variable pitch control method, variable pitch controller and wind generating set
CN111361458B (en) Power calculation method and device and electronic equipment
CN116449081A (en) Data acquisition system, device and storage medium with self-adaptive regulation and control function
CN111024410B (en) Power overrun fault detection method and device for vehicle, vehicle and storage medium
JP6985180B2 (en) Numerical control device
CN114922842B (en) Fan speed regulation control method, device, equipment and readable storage medium
CN113685258A (en) Control method and terminal equipment of electronic water pump of engine
CN111536068B (en) Fan rotating speed control method and device and head-mounted equipment
CN114459134B (en) Air conditioner control method, control terminal and computer readable storage medium
CN112178862A (en) Method for controlling air purifier, air purifier and storage medium
CN117318681B (en) Self-adaptive adjustment method, system and storage medium of PWM generator
CN114909753B (en) Air purifier, control method and device of air purifier
CN111258264B (en) Filtering method and device for field noise, storage medium and processor
CN115079738B (en) Method, device, equipment and storage medium for regulating and controlling rotation speed of server fan
CN113267679B (en) Phase signal detection/control method, circuit, control device and medium
CN117419434B (en) Control method and control device of photovoltaic air conditioner, storage medium and photovoltaic air conditioner

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