CN115013346B - Fan speed regulation method, device and medium based on device - Google Patents

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

Info

Publication number
CN115013346B
CN115013346B CN202210862617.9A CN202210862617A CN115013346B CN 115013346 B CN115013346 B CN 115013346B CN 202210862617 A CN202210862617 A CN 202210862617A CN 115013346 B CN115013346 B CN 115013346B
Authority
CN
China
Prior art keywords
temperature
value
temperature value
fan
determining
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
CN202210862617.9A
Other languages
Chinese (zh)
Other versions
CN115013346A (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.)
Inspur Network Technology Shandong Co ltd
Original Assignee
Inspur Network Technology Shandong 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 Network Technology Shandong Co ltd filed Critical Inspur Network Technology Shandong Co ltd
Priority to CN202210862617.9A priority Critical patent/CN115013346B/en
Publication of CN115013346A publication Critical patent/CN115013346A/en
Application granted granted Critical
Publication of CN115013346B publication Critical patent/CN115013346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

The application discloses a fan speed regulating method, equipment and medium based on equipment, wherein the method comprises the following steps: acquiring a plurality of first temperature values through a plurality of temperature sensors arranged on the equipment in a preset period; respectively carrying out jitter elimination treatment on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values; selecting a 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 to determine a temperature alarm level corresponding to the equipment; if the temperature alarm level is inconsistent 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 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 regulated 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 energy conservation and noise reduction are achieved.

Description

Fan speed regulation method, device and medium based on device
Technical Field
The application relates to the technical field of intelligent equipment, in particular to a fan speed regulating method, equipment and medium based on the equipment.
Background
With the development of communication network technology, network devices are increasingly used. The increase of the temperature of the equipment directly affects the performance of the equipment, and an important means for reducing the temperature is to increase the rotation 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 larger 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 is continuously and slowly increased, the rotation speed of the fan is also slowly increased, and the feedback of the heat dissipation effect is also slow. If the acquired temperature is suddenly changed due to the sensor, the fan rotation speed is suddenly adjusted up or down, 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 regulating method, equipment and medium based on equipment, which are used for solving the problem that a more efficient and stable fan speed regulating method is needed.
The embodiment of the application adopts the following technical scheme:
in one aspect, an embodiment of the present application provides a method for adjusting a speed of a fan based on equipment, the method including: acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment in a preset period; respectively carrying out jitter elimination treatment on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values; selecting a 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 to determine a temperature alarm level corresponding to the equipment; if the temperature alarm level is inconsistent 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 the fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
In one example, the performing the debouncing processing on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values specifically includes: determining a temperature sensor corresponding to the first temperature value; updating the window array by determining the corresponding window position of 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; sequencing the preset number of temperature values according to ascending order to obtain a sequenced temperature data queue; removing the maximum temperature value and the minimum temperature value from the ordered temperature data queue, and determining the rest temperature value; and averaging the rest temperature values, and taking the average value as a second temperature value of the first temperature value.
In one example, the determining the first temperature value in the window array corresponding to the temperature sensor, 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 a 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 position of the corresponding window of the first temperature value in the window array according to the expression.
In one example, the updating the window array by determining the window position corresponding to the first temperature value in the window array of the temperature sensor specifically includes: determining the position of a corresponding window in a window array of the temperature sensor of the first temperature value; and updating the window array by replacing the historical temperature value of the window position with the first temperature value.
In one example, determining, according to a preset mapping relationship, a fan rotation speed gear corresponding to the temperature alarm level specifically includes: if the temperature alarm level is a low level, determining that a fan rotating speed gear corresponding to the temperature alarm level is a low speed gear according to a preset mapping relation; if the temperature alarm level is a high level, determining that a fan rotating speed gear corresponding to the temperature alarm level is a high speed gear according to a preset mapping relation; if the temperature alarm level is a serious level, determining that a fan rotating speed gear corresponding to the temperature alarm level is 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.
In an example, before determining the fan rotation speed gear corresponding to the temperature alarm level according to the preset mapping relationship, the method further includes: converting a sample third 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 sample third temperature value and the sample fan rotating speed value; and determining a mapping relation table between the temperature alarm level and the fan rotating speed gear according to the fan rotating speed gear corresponding to the temperature alarm level corresponding to the sample third temperature value and the sample fan rotating speed value.
In one example, the controlling the fan on the device to perform speed regulation according to the fan rotation 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 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 level is consistent with the temperature alarm level of the previous period, keeping the current rotating speed value of the fan on the equipment unchanged.
In another aspect, an embodiment of the present application provides an apparatus-based fan speed regulation apparatus, 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, the instructions are executable by the at least one processor to enable the at least one processor to: acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment in a preset period; respectively carrying out jitter elimination treatment on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values; selecting a 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 to determine a temperature alarm level corresponding to the equipment; if the temperature alarm level is inconsistent 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 the 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 speed adjustment non-volatile computer storage medium storing computer-executable instructions configured to: acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment in a preset period; respectively carrying out jitter elimination treatment on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values; selecting a 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 to determine a temperature alarm level corresponding to the equipment; if the temperature alarm level is inconsistent 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 the fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
The above at least one technical scheme adopted by the embodiment of the application can achieve the following beneficial effects:
And the first temperature value is processed through a median filtering algorithm, so that the jitter of the temperature of the sensor can be filtered, and the acquired first temperature value is more accurate. After the filtering treatment, the third temperature value input to the fan control module is stable, the fan rotating speed is adjusted according to the third temperature value, the fan rotating speed is not dithered, the stability of the fan rotating speed adjustment is higher, and meanwhile, the energy consumption and the noise of equipment are reduced.
And according to the mapping relation between each alarm level and the fan rotating speed gear. And when the detected equipment temperature reaches the temperature threshold range, immediately adjusting the fan to the rotating speed value of the corresponding gear. The control flow is simplified, the speed regulation response of the fan is faster, and the heat dissipation effect of the equipment is fed back quickly.
Parameters affecting the speed regulating function of the fan are reduced to be only dependent 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 scenes. 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 illustrate the technical solution 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 flow chart of a fan speed regulating method based on equipment provided by an embodiment of the application;
FIG. 2 is an exemplary diagram of a median filtering process provided by an embodiment of the present application;
FIG. 3 is a flow chart of another fan speed regulation method based on equipment according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a fan speed regulating device based on the 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 clearly and completely described below with reference to specific embodiments and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
At present, the fan speed regulation has poor efficiency, the scheme control processing is not simplified enough, a step speed regulation mode and a return difference speed regulation mode are required to be selected, the fan speed is calculated according to the current temperature, the initial temperature, the temperature stepping value and the initial speed value, and the fan speed is set. When temperature slowly changes, then fan rotational speed adjustment also can be slow, and the radiating effect promotes not rapidly to the fan can produce the noise of continuous variation, also can influence user experience.
The fan speed regulation stability is poor, and the scheme does not carry out filtering treatment on the collected temperature data. When the temperature of the sensor is in instantaneous jitter, the acquired temperature data is not real, and after the temperature data is fed back to the fan control, the rotating speed of the fan can be regulated up or down, the regulation of the rotating speed of the fan can be unstable, and larger energy consumption and noise are generated.
The fan control universality is poor, the parameters such as the current temperature, the initial temperature, the temperature stepping value, the initial rotating speed value and the like are required to be associated, 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 regulating method based on equipment provided by an embodiment of the application. The process may be performed by computing devices in the respective areas, with some input parameters or intermediate results in the process allowing manual intervention adjustments to help improve accuracy.
The implementation of the analysis method according to the embodiment of the present application may be a terminal device or a server, which is not particularly limited in the present application. For ease of understanding and description, the following embodiments are described in detail with reference to a server.
It should be noted that the server may be a single device, or may be a system formed by a plurality of devices, that is, a distributed server, which is not particularly limited in the present application.
The flow in fig. 1 may include the following:
s102: and in a preset period, acquiring a plurality of first temperature values corresponding to the equipment 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, a service chip, and the like.
For example, the temperature acquisition module may acquire a temperature value from a temperature sensor on the switch device via a hardware bus.
S104: and respectively carrying out jitter elimination treatment 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 out unstable temperature data reported by the temperature sensor, and eliminate jitter of the temperature data. Generally, the temperature change of the device is linear, and the temperature value does not increase or decrease instantaneously in the process of timing sampling. In order to ensure the accuracy of the first temperature value acquired from the temperature sensor, the application eliminates the jitter of the first temperature value through a median filtering algorithm so as to improve the stability of fan control.
Because of the median filtering algorithm, the method has good filtering effect on nonlinear shot noise and good edge protection characteristic, but ordering statistics in the method have a certain influence on performance. The larger the data volume in the window is, the larger the overhead caused by the realization of the sorting is, and the real-time performance of the filtering processing is affected, so that the proper window data volume is required to be extracted according to the data characteristics of the actual application scene.
Specifically, a temperature sensor corresponding to the first temperature value is first 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. And then, acquiring a preset number of temperature values in the updated window array, and sequencing the preset number of temperature values according to ascending order to obtain a sequenced temperature data queue. And then, removing the maximum temperature value and the minimum temperature value in the ordered temperature data queue, and determining the rest temperature value. Finally, the remaining temperature values are averaged, and the average value is taken as a second temperature value of the first temperature value.
Further, when determining the corresponding window position, performing modular operation on the first temperature value according to the data capacity of the window array of the temperature sensor to obtain a remainder of the first temperature value. Then, according to a preset rule and a remainder, an expression of the first temperature value in the window array is determined. Then, according to the expression, determining the position of the corresponding window in the window array of the first temperature value.
When updating, the first temperature value is firstly determined to be at the corresponding window position in the window array of the temperature sensor, 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 is specific:
first, the maximum data capacity of the sliding window array is set to 5, the window array is expressed as Y [ ], and the number of elements is set to 5.
Then, for each acquired first temperature value Y, the current count statistic value count is reserved. Then, modulo operation is carried out on the count value count pair 5 of the collected first temperature value Y, and i is the remainder of count Mod 5. The calculated value i is input as a first temperature value Y to the window array index, that is, the position of the first temperature value Y in the window, and the range of the value i is [0,4]. Through the above-mentioned cyclic modular operation, the first temperature value of the A sensor acquired in a cyclic manner can be updated to the position of the window array Y [ i ] in turn. That is, Y [ i ] represents that the first temperature value is at the i-th position of the window array, thereby constructing the window array.
When the first temperature value is required to be acquired during the jitter elimination processing, 5 sample values { y [0], y [1], y [2], y [3], y [4] are taken from the window array, and then the 5 sample values are rapidly ordered in ascending order to sequentially obtain Yn-2, yn-1, yn, yn+1 and Yn+2.
That is, in fig. 2, the minimum value Yn-2 and the maximum value yn+2 are removed, the middle three values Yn-1, yn and yn+1 are reserved, and then, the three values Yn-1, yn and yn+1 are averaged, so that the average value is calculated as the filtered temperature output value, that is, the second temperature value.
S106: and selecting a 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 to determine a temperature alarm level corresponding to the equipment.
In some embodiments of the present application, the preset temperature threshold may include a low threshold, a medium threshold, and a high threshold by depending on 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 given when the third temperature value is smaller than the low threshold.
And if the temperature alarm level is consistent with the temperature alarm level of the previous period, keeping the current rotating speed value of the fan on the equipment unchanged.
If the temperature alarm level is inconsistent with the temperature alarm level of the previous cycle, the step S110 is continuously executed.
S110: and if the temperature alarm level is inconsistent 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.
The system is started, and then a temperature acquisition module and a fan control module are enabled. The fan control module adopts an improved control strategy to set three temperatures and four fan speed gears. And judging whether the acquired third temperature value reaches the condition of a set temperature threshold, and selecting the fan rotating speed of the corresponding gear.
In some embodiments of the application, the temperature alert levels include a low level, a high level, and a severity level for the span of the three temperature thresholds. The interval ranges of the three temperature thresholds correspond to a basic gear, a low-speed gear, a high-speed gear and a full-speed gear of the rotating speed of the fan respectively. That is, different temperature alert levels correspond to different fan speed gears. The basic gear is the normal basic rotation speed of the fan set by the system. The fan is guaranteed not to generate backflow, and noise influence is considered.
More intuitively, the mapping is shown in table 1.
Table 1:
alarm level Temperature threshold range Rotational speed gear Rotational speed of fan
T < low threshold Basic gear 40%
Low grade of The low threshold is less than or equal to T and less than the middle threshold Low gear 60%
High grade The middle threshold is less than or equal to T and less than the high threshold High speed gear 80%
Severity grade High threshold < T Full speed gear 100%
Specifically, if the temperature alarm level is a low level, determining that the fan rotation speed gear corresponding to the temperature alarm level is a low speed gear according to a preset mapping relation.
If the temperature alarm level is high, determining that the fan rotating speed gear corresponding to the temperature alarm level is high according to a preset mapping relation.
If the temperature alarm level is a serious level, determining that the fan rotating speed gear corresponding to the temperature alarm level is 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 the third temperature value, in the T-based gear, the rotational speed is 40% of the rotational speed value of the full-speed gear, in the T-low gear, the rotational speed is 60% of the rotational speed value of the full-speed gear, in the T-high gear, the rotational speed is 80% of the rotational speed value of the full-speed gear, in the T-full gear, the rotational speed is 100% of the rotational speed value of the full-speed gear.
When determining the mapping relationship, firstly converting the sample third 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 so as to determine the mapping relationship between the sample third temperature value and the sample fan rotating speed value. The calculation formula between the sample third temperature value and the sample pulse width modulation value of the fan is as follows: PWM value=4.54×t correction value. The T correction value 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 rotation speed gear corresponding to the fan rotation speed value of the sample, a mapping relation table between the temperature alarm level and the fan rotation speed gear, namely table 1, is determined.
That is, it is understood that the fan control module selects the fan speed gear of the corresponding temperature range according to the temperature change. When the temperature increases, the fan control module automatically increases the fan speed to a higher level. And then continuously monitoring the temperature change, and keeping the current rotating speed to stably run when the temperature does not rise to a higher threshold. The fan control module will also automatically adjust the fan to the corresponding rotational speed if the device temperature begins to drop to a lower threshold.
S112: and controlling the fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
Specifically, according to the fan rotation speed gear, a corresponding fan rotation speed value is determined. Then, the fan rotating speed value is converted into a pulse width modulation value, and the fan on the equipment is controlled to regulate the speed according to the pulse width modulation value. The calculation formula of the fan rotation speed value and the pulse width modulation value is as follows: fan speed value percentage = PWM value/255 x 100%. Wherein the PWM value is a pulse width modulation value.
It should be noted that, although the embodiment of the present application is described with reference to fig. 1 for sequentially describing steps S102 to S112, this does not represent that steps S102 to S112 must be performed in strict sequence. The steps S102 to S112 are sequentially described according to the sequence shown in fig. 1 according to the embodiment of the present application, so as to facilitate the understanding of the technical solution of the embodiment of the present application by those skilled in the art. In other words, in the embodiment of the present application, the sequence between the steps S102 to S112 may be appropriately adjusted according to the actual needs.
The method of fig. 1 simplifies the fan control process, and the third temperature value and the fan rotation speed are classified into a plurality of levels according to the severity by setting a temperature threshold and a fan rotation speed gear. And respectively calculating the mapping relation between each alarm level and the fan rotating speed gear in advance according to the calculation formulas of the temperature and the fan rotating speed. And when the detected equipment temperature reaches the temperature threshold range, immediately adjusting the fan to the rotating speed value of the corresponding gear. The fixed table adopted by the mapping relation between the alarm level and the fan rotating speed gear is directly checked, real-time calculation is not needed, complex arbitration logic is omitted, the control flow is simplified, the fan speed regulation response is faster, and the heat dissipation effect feedback of the equipment is rapid.
The fan speed regulation stability is higher, and the scheme adopts the median filtering algorithm to process the first temperature value, so that the shake of the temperature of the sensor can be filtered, and the acquired first temperature value is more accurate. After the filtering treatment, the third temperature value input to the fan control module is stable, the fan rotating speed is adjusted according to the third temperature value, the fan rotating speed is not dithered, the stability of the fan rotating speed adjustment is higher, and meanwhile, the energy consumption and the noise of equipment are reduced.
On different equipment platforms, the temperature threshold and the fan rotating speed gear are also different due to the differences of the hardware structure, the number of fans and the heat dissipation design of the equipment. The scheme reduces parameters affecting the speed regulating function of the fan to a speed gear which only depends on a temperature threshold. 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 scenes. 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 fan rotating speed is automatically adjusted according to the system temperature, and the fan cooling device 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 fan speed adjusting method based on the device provided by the application.
In fig. 3, when the system is started, the starting temperature is monitored and controlled by the fan, then a first temperature value is collected at fixed time, and a third temperature value is obtained for the first temperature value through a median filtering algorithm.
Then, whether the third temperature value changes is judged, and if not, the fan rotating speed is kept 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 speed gear of the fan 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, continuing to judge whether the serious threshold is exceeded, and if not, adjusting the fan rotating speed gear to be a high-speed gear. If yes, the fan rotating speed gear is adjusted to be a full speed gear.
Finally, controlling the speed regulation of the fan, and calculating the PWM value corresponding to the speed gear of the fan, so that the speed of the fan can be set.
Based on the same thought, some embodiments of the present application also 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
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor, the instructions are executable by the at least one processor to enable the at least one processor to:
Acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment in a preset period;
Respectively carrying out jitter elimination treatment on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values;
Selecting a 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 to determine a temperature alarm level corresponding to the equipment;
If the temperature alarm level is inconsistent 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 the 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 speed governing non-volatile computer storage medium storing computer executable instructions configured to:
Acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment in a preset period;
Respectively carrying out jitter elimination treatment on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values;
Selecting a 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 to determine a temperature alarm level corresponding to the equipment;
If the temperature alarm level is inconsistent 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 the fan on the equipment to regulate the speed according to the rotating speed gear of the fan.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the apparatus and medium embodiments, the description is relatively simple, as it is substantially similar to the method embodiments, with reference to the section of the method embodiments being relevant.
The devices and media provided in the embodiments of the present application are in one-to-one correspondence with the methods, so that the devices and media also have similar beneficial technical effects as the corresponding methods, and since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media are not repeated here.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
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 storage media for a computer 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, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the technical principle of the present application should fall within the protection scope of the present application.

Claims (7)

1.A method of regulating speed of a fan based on equipment, the method comprising:
Acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment in a preset period;
Respectively carrying out jitter elimination treatment on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values;
Selecting a 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 to determine a temperature alarm level corresponding to the equipment;
If the temperature alarm level is inconsistent 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;
Controlling a fan on the equipment to regulate the speed according to the fan rotating speed gear;
the method comprises the steps of respectively carrying out jitter elimination treatment on a plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values, and specifically comprises the following steps:
determining a temperature sensor corresponding to the first temperature value;
Updating the window array by determining the corresponding window position of 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;
Sequencing the preset number of temperature values according to ascending order to obtain a sequenced temperature data queue;
Removing the maximum temperature value and the minimum temperature value from the ordered temperature data queue, and determining the rest temperature value;
averaging the rest temperature values, and taking the average value as a second temperature value of the first temperature value;
The determining that the first temperature value is 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 a 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;
determining the position of the corresponding window of the first temperature value in the window array according to the expression;
The updating of the window array by determining the window position corresponding to the first temperature value in the window array of the temperature sensor specifically includes:
determining the position of a corresponding window in a window array of the temperature sensor of the first temperature value;
And updating the window array by replacing the historical temperature value of the window position with the first temperature value.
2. The method of claim 1, wherein determining the fan speed gear corresponding to the temperature alarm level according to the preset mapping relation specifically includes:
If the temperature alarm level is a low level, determining that a fan rotating speed gear corresponding to the temperature alarm level is a low speed gear according to a preset mapping relation;
if the temperature alarm level is a high level, determining that a fan rotating speed gear corresponding to the temperature alarm level is a high speed gear according to a preset mapping relation;
If the temperature alarm level is a serious level, determining that a fan rotating speed gear corresponding to the temperature alarm level is 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.
3. The method of claim 1, wherein before determining the fan speed gear corresponding to the temperature alarm level according to the preset mapping relationship, the method further comprises:
Converting a sample third 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 sample third temperature value and the sample fan rotating speed value;
And determining a mapping relation table between the temperature alarm level and the fan rotating speed gear according to the fan rotating speed gear corresponding to the temperature alarm level corresponding to the sample third temperature value and the sample fan rotating speed value.
4. The method according to claim 1, wherein controlling the fan on the device to speed according to the fan speed gear 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.
5. The method of claim 1, wherein after comparing the third temperature value with a set temperature threshold and determining a temperature alert level corresponding to the device, the method further comprises:
And if the temperature alarm level is consistent with the temperature alarm level of the previous period, keeping the current rotating speed value of the fan on the equipment unchanged.
6. An apparatus-based fan speed regulation apparatus, comprising:
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, the instructions are executable by the at least one processor to enable the at least one processor to:
Acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment in a preset period;
Respectively carrying out jitter elimination treatment on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values;
Selecting a 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 to determine a temperature alarm level corresponding to the equipment;
If the temperature alarm level is inconsistent 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;
Controlling a fan on the equipment to regulate the speed according to the fan rotating speed gear;
the method comprises the steps of respectively carrying out jitter elimination treatment on a plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values, and specifically comprises the following steps:
determining a temperature sensor corresponding to the first temperature value;
Updating the window array by determining the corresponding window position of 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;
Sequencing the preset number of temperature values according to ascending order to obtain a sequenced temperature data queue;
Removing the maximum temperature value and the minimum temperature value from the ordered temperature data queue, and determining the rest temperature value;
averaging the rest temperature values, and taking the average value as a second temperature value of the first temperature value;
The determining that the first temperature value is 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 a 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;
determining the position of the corresponding window of the first temperature value in the window array according to the expression;
The updating of the window array by determining the window position corresponding to the first temperature value in the window array of the temperature sensor specifically includes:
determining the position of a corresponding window in a window array of the temperature sensor of the first temperature value;
And updating the window array by replacing the historical temperature value of the window position with the first temperature value.
7. A device-based fan speed regulation non-volatile computer storage medium storing computer executable instructions, the computer executable instructions configured to:
Acquiring a plurality of first temperature values corresponding to equipment through a plurality of temperature sensors arranged on the equipment in a preset period;
Respectively carrying out jitter elimination treatment on the plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values;
Selecting a 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 to determine a temperature alarm level corresponding to the equipment;
If the temperature alarm level is inconsistent 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;
Controlling a fan on the equipment to regulate the speed according to the fan rotating speed gear;
the method comprises the steps of respectively carrying out jitter elimination treatment on a plurality of first temperature values through a preset median filtering algorithm to obtain a plurality of second temperature values, and specifically comprises the following steps:
determining a temperature sensor corresponding to the first temperature value;
Updating the window array by determining the corresponding window position of 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;
Sequencing the preset number of temperature values according to ascending order to obtain a sequenced temperature data queue;
Removing the maximum temperature value and the minimum temperature value from the ordered temperature data queue, and determining the rest temperature value;
averaging the rest temperature values, and taking the average value as a second temperature value of the first temperature value;
The determining that the first temperature value is 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 a 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;
determining the position of the corresponding window of the first temperature value in the window array according to the expression;
The updating of the window array by determining the window position corresponding to the first temperature value in the window array of the temperature sensor specifically includes:
determining the position of a corresponding window in a window array of the temperature sensor of the first temperature value;
And updating the window array by replacing the historical temperature value of the window position with the first temperature value.
CN202210862617.9A 2022-07-21 2022-07-21 Fan speed regulation method, device and medium based on device Active CN115013346B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=83081515

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN115013346B (en)

Families Citing this family (1)

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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258398A (en) * 2020-01-10 2020-06-09 安擎(天津)计算机有限公司 AI server fan speed adjusting method, system, terminal device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI489935B (en) * 2012-11-28 2015-06-21 Hon Hai Prec Ind Co Ltd Fan control system and fan control method
CN105402148B (en) * 2014-08-21 2019-01-04 中兴通讯股份有限公司 A kind of method and device of PTN device fan speed-regulating
CN106640716A (en) * 2015-07-31 2017-05-10 中兴通讯股份有限公司 Fan control method and device capable of giving consideration to all service panels
CN106050718B (en) * 2016-07-12 2017-12-01 邦彦技术股份有限公司 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
CN111749920B (en) * 2020-06-19 2021-11-26 烽火通信科技股份有限公司 Stepless speed regulation method and device for fan of electromechanical system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258398A (en) * 2020-01-10 2020-06-09 安擎(天津)计算机有限公司 AI server fan speed adjusting method, system, terminal device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于FPGA的防脉冲干扰温控调速直流风扇研究;潘银松等;微特电机;20150930(第9期);第97-99页 *

Also Published As

Publication number Publication date
CN115013346A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
CN110799757B (en) Fan control method, fan control device and electronic equipment
CN115013346B (en) Fan speed regulation method, device and medium based on device
AU2023387760A1 (en) Group Control Device Health Monitoring Method, Device, and Medium Based on Clustering Algorithm
CN111749920A (en) Stepless speed regulation method and device for fan of electromechanical system
CN110928341B (en) Temperature control method, device, equipment and storage medium
CN113203231A (en) Energy adjusting method and device of unit and unit
CN117570049B (en) Fan control method and device, baseboard management controller and server
CN111361458B (en) Power calculation method and device and electronic equipment
CN114459134B (en) Air conditioner control method, control terminal and computer readable storage medium
CN115680999A (en) Variable pitch control method, variable pitch controller and wind generating set
CN111985771A (en) Power grid frequency regulation and control method and system based on power grid frequency overshoot and undershoot analysis
CN114922842B (en) Fan speed regulation control method, device, equipment and readable storage medium
CN113685258B (en) Control method and terminal equipment of electronic water pump of engine
CN115864840A (en) Temperature control method, equipment and medium for MOS (metal oxide semiconductor) tube in DC/DC converter
CN114576816B (en) Air conditioner adjusting method and device based on infrared sensor
CN118139361A (en) Fan control method and device, electronic equipment and storage medium
CN115450943A (en) Intelligent fan speed regulating method and device for solving fuzzy temperature detection and storage medium
CN115079738B (en) Method, device, equipment and storage medium for regulating and controlling rotation speed of server fan
CN117311159B (en) Self-adaptive adjusting method and device of control system, storage medium and electronic equipment
CN112268010A (en) Fan control method, device and equipment and readable storage medium
CN106567846B (en) A kind of blower regulation method and apparatus of Advanced telecom computing architecture ATCA subrack
CN113796741B (en) Stewing control method of food processor
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
CN113007117B (en) Fan speed regulation method and device based on multiple temperature senses

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
CB02 Change of applicant information

Country or region after: China

Address after: 250101 s01-6 / F, No. 1036, Langchao Road, high tech Zone, Jinan City, Shandong Province

Applicant after: Inspur Network Technology (Shandong) Co.,Ltd.

Address before: 250101 s01-6 / F, No. 1036, Langchao Road, high tech Zone, Jinan City, Shandong Province

Applicant before: INSPUR CISCO NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant