A device-based fan speed regulation method, device and medium

The median filter algorithm is used to process the temperature data and adjust the fan speed gear, which solves the problem of unstable fan speed regulation and improves the heat dissipation effect and adaptability of the device.

CN115013346BActive Publication Date: 2024-09-03INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210862617.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-21
Publication Date
2024-09-03
Estimated Expiration
2042-07-21

AI Technical Summary

Technical Problem

In the existing technology, the fan speed regulation is unstable, resulting in increased equipment energy consumption and noise, and it is difficult to adapt to different equipment platforms.

Method used

The median filter algorithm is used to process the temperature sensor data, determine the temperature alarm level, and adjust the fan speed gear according to the mapping relationship to achieve fan speed regulation.

Benefits of technology

It improves the stability of fan speed, reduces equipment energy consumption and noise, simplifies the control process, and adapts to different equipment platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115013346B
    Figure CN115013346B
Patent Text Reader

Abstract

The present application discloses a device-based fan speed regulation method, device and medium, the method comprising: obtaining multiple first temperature values ​​through multiple temperature sensors set on the device within a preset period; performing debounce processing on the multiple first temperature values ​​respectively through a preset median filtering algorithm to obtain multiple second temperature values; selecting the temperature value with the highest temperature value among the multiple second temperature values, and taking the temperature value with the highest temperature value as the third temperature value; comparing the third temperature value with the set temperature threshold to determine the temperature alarm level corresponding to the device; if the temperature alarm level is inconsistent with the temperature alarm level of the previous cycle, determining the fan speed gear corresponding to the temperature alarm level according to the preset mapping relationship; and controlling the fan on the device to regulate the speed according to the fan speed gear. Automatically adjusting the fan speed through the first temperature value can effectively reduce the energy consumption of the device, reduce the noise of the device, and achieve the purpose of energy saving and noise reduction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent devices, and in particular to a device-based fan speed regulation method, device and medium. Background Art

[0002] With the development of communication network technology, network equipment is being used more and more widely. The increase in equipment temperature will directly affect the performance of the equipment, and an important means to reduce the temperature is to increase the fan speed to improve the heat dissipation effect. Generally speaking, the higher the fan speed, the better the heat dissipation effect, but it will also generate greater energy consumption and noise. If the fan speed is adjusted linearly according to the temperature change, although the heat dissipation effect can be improved,

[0003] However, if the temperature continues to rise slowly, the fan speed will also increase slowly, and the cooling effect feedback will also be slow. If the collected temperature changes suddenly due to sensor reasons, the fan speed will also change suddenly and be adjusted up or down unsteadily, causing the equipment to consume more energy and make more noise.

[0004] Therefore, a more efficient and stable fan speed regulation method is needed. Summary of the invention

[0005] The embodiments of the present application provide a device-based fan speed regulation method, device and medium, which are used to solve the problem of needing a more efficient and stable fan speed regulation method.

[0006] The present application embodiment adopts the following technical solutions:

[0007] On the one hand, an embodiment of the present application provides a device-based fan speed regulation method, the method comprising: within a preset period, obtaining multiple first temperature values ​​corresponding to the device through multiple temperature sensors arranged on the device; using a preset median filtering algorithm, respectively performing de-jitter processing on the multiple first temperature values ​​to obtain multiple second temperature values; among the multiple second temperature values, selecting the temperature value with the highest temperature value, and taking the temperature value with the highest temperature value as the third temperature value; comparing the third temperature value with the set temperature threshold to determine the temperature alarm level corresponding to the device; if the temperature alarm level is inconsistent with the temperature alarm level of the previous period, determining the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship; and controlling the fan on the device to regulate its speed according to the fan speed gear.

[0008] In one example, the preset median filtering algorithm is used to de-jitter the multiple first temperature values ​​respectively to obtain multiple second temperature values, specifically including: determining the 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 includes several historical temperature values; in the updated window array, obtaining a preset number of temperature values; sorting the preset number of temperature values ​​in 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 to determine the remaining temperature values; averaging the remaining temperature values ​​and taking the average value as the second temperature value of the first temperature value.

[0009] In one example, determining the window position corresponding to the first temperature value in the window array corresponding to the temperature sensor specifically includes: performing a modulo 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.

[0010] In one example, the window array is updated by determining a window position corresponding to the first temperature value in the window array of the temperature sensor, specifically including: determining a window position corresponding to the first temperature value in the window array of the temperature sensor; and updating the window array by replacing a historical temperature value of the window position with the first temperature value.

[0011] In one example, the fan speed gear corresponding to the temperature alarm level is determined according to a preset mapping relationship, specifically including: if the temperature alarm level is a low level, then according to the preset mapping relationship, the fan speed gear corresponding to the temperature alarm level is determined to be a low speed gear; if the temperature alarm level is a high level, then according to the preset mapping relationship, the fan speed gear corresponding to the temperature alarm level is determined to be a high speed gear; if the temperature alarm level is a serious level, then according to the preset mapping relationship, the fan speed gear corresponding to the temperature alarm level is determined to be a full speed gear; wherein the speed value of the low speed gear is less than the speed value of the high speed gear, and the speed value of the high speed gear is less than the speed value of the full speed gear.

[0012] In one example, before determining the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship, the method also includes: 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 speed value to determine the mapping relationship between the sample third temperature value and the sample fan speed value; determining a mapping relationship table between the temperature alarm level and the fan speed gear according to the temperature alarm level corresponding to the sample third temperature value and the fan speed gear corresponding to the sample fan speed value.

[0013] In one example, controlling the speed of the fan on the device to adjust according to the fan speed gear specifically includes: determining a corresponding fan speed value according to the fan speed gear; converting the fan speed value into a pulse width modulation value, and controlling the speed of the fan on the device to adjust according to the pulse width modulation value.

[0014] In one example, after comparing the third temperature value with the set temperature threshold to determine the temperature alarm level corresponding to the device, the method further includes: if the temperature alarm level is consistent with the temperature alarm level of the previous cycle, keeping the current speed value of the fan on the device unchanged.

[0015] On the other hand, an embodiment of the present application provides a device-based fan speed regulation device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: within a preset period, obtain multiple first temperature values ​​corresponding to the device through multiple temperature sensors arranged on the device; perform de-jitter processing on the multiple first temperature values ​​respectively through a preset median filtering algorithm to obtain multiple second temperature values; among the multiple second temperature values, select the temperature value with the highest temperature value, and use the temperature value with the highest temperature value as the third temperature value; compare the third temperature value with the set temperature threshold to determine the temperature alarm level corresponding to the device; if the temperature alarm level is inconsistent with the temperature alarm level of the previous period, determine the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship; and control the fan on the device to regulate its speed according to the fan speed gear.

[0016] On the other hand, an embodiment of the present application provides a device-based fan speed regulation non-volatile computer storage medium, which stores computer executable instructions, and the computer executable instructions are set to: within a preset period, obtain multiple first temperature values ​​corresponding to the device through multiple temperature sensors arranged on the device; through a preset median filtering algorithm, respectively de-jitter the multiple first temperature values ​​to obtain multiple second temperature values; among the multiple second temperature values, select the temperature value with the highest temperature value, and use the temperature value with the highest temperature value as the third temperature value; compare the third temperature value with the set temperature threshold to determine the temperature alarm level corresponding to the device; if the temperature alarm level is inconsistent with the temperature alarm level of the previous period, determine the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship; according to the fan speed gear, control the fan on the device to adjust the speed.

[0017] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:

[0018] By processing the first temperature value through the median filtering algorithm, the jitter of the sensor temperature will be filtered out, making the collected first temperature value more accurate. After filtering, the third temperature value input to the fan control module is stable, and there will be no jitter when adjusting the fan speed according to the third temperature value. The fan speed adjustment is more stable, and the energy consumption and noise of the equipment are also reduced.

[0019] According to the mapping relationship between each alarm level and the fan speed gear, when the detected device temperature reaches the temperature threshold range, the fan speed value of the corresponding gear is immediately adjusted. The control process is simplified, the fan speed regulation response is fast, and the heat dissipation effect of the device is quickly fed back.

[0020] The parameters that affect the fan speed control function are reduced to only the temperature threshold and speed gear. The temperature threshold and speed are set to different levels, and the values ​​in the temperature threshold and fan speed mapping table can be flexibly set according to the application device scenario. Therefore, the fan control strategy in this solution can be adapted to different device platforms, and the module transplantation is more convenient and more versatile. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] 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 in conjunction with the accompanying drawings, in which:

[0022] Figure 1 A schematic diagram of a flow chart of a device-based fan speed regulation method provided in an embodiment of the present application;

[0023] Figure 2 An example diagram of a median filtering process provided in an embodiment of the present application;

[0024] Figure 3 A schematic diagram of a flow chart of another device-based fan speed regulation method provided in an embodiment of the present application;

[0025] Figure 4 A schematic diagram of the structure of a device-based fan speed regulation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0027] At present, the fan speed regulation efficiency is poor, and the solution control processing is not streamlined enough. It is necessary to select the step speed regulation mode and the hysteresis speed regulation mode, and calculate the fan speed and set the fan speed according to the current temperature, starting temperature, temperature step value and starting speed value. When the temperature changes slowly, the fan speed adjustment will also be slow, the heat dissipation effect will not improve quickly, and the fan will produce continuously changing noise, which will also affect the user experience.

[0028] The fan speed regulation is not stable, and the solution does not filter the collected temperature data. When the sensor temperature fluctuates instantaneously, the collected temperature data is not real, and after being fed back to the fan control, the fan speed will be increased or decreased. The fan speed adjustment will be unstable and generate greater energy consumption and noise.

[0029] The fan control has poor versatility. The above solution needs to associate parameters such as the current temperature, starting temperature, temperature step value, and starting speed value. When the device environment scenario of the application changes, the required modifications are relatively large, and the versatility of the application on different device platforms is poor.

[0030] Some embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0031] Figure 1 A schematic diagram of a device-based fan speed control method provided in an embodiment of the present application. The process can be executed by a computing device in a corresponding field, and some input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.

[0032] The analysis method involved in the embodiments of the present application can be implemented by a terminal device or a server, and the present application does not impose any special restrictions on this. For the convenience of understanding and description, the following embodiments are described in detail by taking a server as an example.

[0033] It should be noted that the server may be a single device or a system consisting of multiple devices, that is, a distributed server, and this application does not make any specific limitation on this.

[0034] Figure 1 The processes in may include the following processes:

[0035] S102: within a preset period, obtaining a plurality of first temperature values ​​corresponding to the device through a plurality of temperature sensors disposed on the device.

[0036] The device may be a switch device, and the switch device has a plurality of temperature sensors distributed on various hardware modules of the switch device, such as a power module, a CPU chip, and a service chip.

[0037] For example, the temperature acquisition module can obtain the temperature value from the temperature sensor on the switch device through the hardware bus.

[0038] S104: De-jittering the plurality of first temperature values ​​respectively by using a preset median filtering algorithm to obtain a plurality of second temperature values.

[0039] In some embodiments of the present application, a median filter algorithm is used to filter out unstable temperature data reported by the temperature sensor and eliminate the jitter of the temperature data. Generally speaking, the temperature change of the device is linear, and the temperature value will not increase or decrease instantaneously during the timed sampling process. In order to ensure the accuracy of the first temperature value collected from the temperature sensor, the present application uses a median filter algorithm to eliminate the jitter of the first temperature value to improve the stability of the fan control.

[0040] The median filter algorithm has a good filtering effect on nonlinear shot noise and has good edge preservation characteristics, but the sorting statistics have a certain impact on performance. The larger the amount of data in the window, the greater the overhead caused by sorting, which will affect the real-time performance of the filtering process. Therefore, it is necessary to extract the appropriate amount of window data according to the data characteristics of the actual application scenario.

[0041] Specifically, first determine the temperature sensor corresponding to the first temperature value, and update the window array by determining the window position corresponding to the first temperature value in the window array of the temperature sensor. The window array includes several historical temperature values. Then, in the updated window array, obtain a preset number of temperature values, sort the preset number of temperature values ​​in ascending order, and obtain a sorted temperature data queue. Then, in the sorted temperature data queue, remove the maximum temperature value and the minimum temperature value to determine the remaining temperature values. Finally, average the remaining temperature values, and use the average value as the second temperature value of the first temperature value.

[0042] Furthermore, when determining the corresponding window position, 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. Then, according to the preset rule and the remainder, an expression of the first temperature value in the window array is determined. Then, according to the expression, the window position corresponding to the first temperature value in the window array is determined.

[0043] During the update, the window position corresponding to the first temperature value in the window array of the temperature sensor is first determined, and then the window array is updated by replacing the historical temperature value of the window position with the first temperature value.

[0044] More intuitively, Figure 2 An example diagram of a median filtering process provided in an embodiment of the present application.

[0045] like Figure 2 As shown, for sensor A, in constructing the window array of sensor A, the details are as follows:

[0046] 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 5.

[0047] Then, for each collected first temperature value Y, its current count statistic value count is retained. Then, the count value count of the collected first temperature value Y is modulo 5, and i is the remainder of count Mod5. The calculated value i is input into the window array subscript as the first temperature value Y, that is, the position of the first temperature value Y in the window, and the range of i value is [0, 4]. Through the above-mentioned cyclic modulo operation, the first temperature value of sensor A collected in the cycle can be updated to the position of window array Y[i] in sequence. In other words, Y[i] represents the first temperature value at the i-th position of the window array, thereby constructing the window array.

[0048] When debouncing the first temperature value, each time the first temperature value needs to be obtained, 5 sample values ​​{y[0], y[1], y[2], y[3], y[4]} are taken from the window array, and then these 5 sample values ​​are quickly sorted in ascending order to obtain Yn-2, Yn-1, Yn, Yn+1, and Yn+2 respectively.

[0049] That is to say, Figure 2 , remove the minimum value Yn-2 and the maximum value Yn+2, retain the three middle values ​​Yn-1, Yn and Yn+1, then take the average of the three values ​​Yn-1, Yn and Yn+1, and the average value is the filtered temperature output value, that is, the second temperature value.

[0050] S106: Select a temperature value with a highest temperature value from among the multiple second temperature values, and use the temperature value with the highest temperature value as the third temperature value.

[0051] S108: Compare the third temperature value with a set temperature threshold to determine a temperature alarm level corresponding to the device.

[0052] In some embodiments of the present application, the pre-set temperature threshold may include a low threshold, a middle threshold, and a high threshold according to the severity of the third temperature value. The range of these three temperature thresholds corresponds to different temperature alarm levels. It should be noted that no alarm is issued when the third temperature value is less than the low threshold.

[0053] If the temperature alarm level is consistent with the temperature alarm level of the previous cycle, the current speed value of the fan on the device is kept unchanged.

[0054] If the temperature alarm level is inconsistent with the temperature alarm level of the previous cycle, continue to execute step S110.

[0055] S110: If the temperature alarm level is inconsistent with the temperature alarm level of the previous cycle, determine the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship.

[0056] Among them, after the system starts, the temperature acquisition module and the fan control module are enabled. This is equivalent to the fan control module adopting an improved control strategy to set three temperatures and four fan speed gears. By judging whether the collected third temperature value reaches the set temperature threshold, the fan speed of the corresponding gear is selected.

[0057] In some embodiments of the present application, the temperature alarm levels of the three temperature threshold intervals include low level, high level and severe level. The three temperature threshold intervals correspond to the basic gear, low speed gear, high speed gear and full speed gear of the fan speed, respectively. In other words, different temperature alarm levels correspond to different fan speed gears. The basic gear is the normal basic speed of the fan set by the system. Ensure that the fan does not generate backflow and take into account the noise impact.

[0058] More intuitively, the mapping relationship is shown in Table 1.

[0059] Table 1:

[0060] Alarm level Temperature threshold range Speed ​​gear Fan speed T<low threshold Basic gear 40% Low level Low threshold ≤ T < medium threshold Low speed gear 60% High Level Middle threshold ≤ T < high threshold High speed gear 80% Severity Level High threshold<T Full speed gear 100%

[0061] Specifically, if the temperature alarm level is a low level, then according to a preset mapping relationship, it is determined that the fan speed gear corresponding to the temperature alarm level is a low speed gear.

[0062] If the temperature alarm level is a high level, then according to a preset mapping relationship, it is determined that the fan speed gear corresponding to the temperature alarm level is a high speed gear.

[0063] If the temperature alarm level is a serious level, the fan speed gear corresponding to the temperature alarm level is determined to be a full speed gear according to a preset mapping relationship, wherein the speed value of the low speed gear is less than the speed value of the high speed gear, and the speed value of the high speed gear is less than the speed value of the full speed gear.

[0064] It should be noted that T represents the third temperature value. When T is the basic gear, the speed is 40% of the full-speed gear speed value. When T is the low-speed gear, the speed is 60% of the full-speed gear speed value. When T is the high-speed gear, the speed is 80% of the full-speed gear speed value. When T is the full-speed gear, the speed is 100% of the full-speed gear speed value.

[0065] When determining the mapping relationship, the sample third temperature value is first converted into a sample pulse width modulation value of the fan, and the sample pulse width modulation value is converted into a sample fan speed value to determine the mapping relationship between the sample third temperature value and the sample fan speed value. The calculation formula between the sample third temperature value and the sample pulse width modulation value of the fan is: PWM value = 4.54*T correction value. The T correction value is the filtered sample third temperature value, and the PWM value is the sample pulse width modulation value.

[0066] Then, according to the temperature alarm level corresponding to the sample third temperature value and the fan speed level corresponding to the sample fan speed value, a mapping relationship table between the temperature alarm level and the fan speed level is determined, that is, Table 1.

[0067] That is, it can be understood that the fan control module selects the fan speed gear of the corresponding temperature range according to the temperature change. When the temperature rises, the fan control module automatically increases the fan speed to a higher gear. Then continue to monitor the temperature change, and when the temperature does not rise to a higher threshold, the fan will maintain the current speed and run stably. If the device temperature starts to drop to a lower threshold, the fan control module will also automatically adjust the fan to the corresponding speed.

[0068] S112: According to the fan speed gear, controlling the fan on the device to adjust the speed.

[0069] Specifically, according to the fan speed gear, the corresponding fan speed value is determined. Then, the fan speed value is converted into a pulse width modulation value, and the fan on the device is controlled to adjust the speed according to the pulse width modulation value. Among them, the calculation formula of the fan speed value and the pulse width modulation value is as follows: fan speed value percentage = PWM value / 255*100%. Among them, the PWM value is the pulse width modulation value.

[0070] It should be noted that although the embodiments of the present application are based on Figure 1 Steps S102 to S112 are described in sequence, but this does not mean that steps S102 to S112 must be performed in a strict order. Figure 1 The order shown in the figure is to introduce and explain step S102 to step S112 in sequence, in order to facilitate those skilled in the art to understand the technical solution of the embodiment of the present application. In other words, in the embodiment of the present application, the order between step S102 to step S112 can be appropriately adjusted according to actual needs.

[0071] pass Figure 1 The fan control process is more streamlined. The solution adopts the method of setting temperature thresholds and fan speed gears, and divides the third temperature value and fan speed into multiple levels according to the severity. According to the calculation formula of temperature and fan speed, the mapping relationship between each alarm level and fan speed gear is calculated in advance. When the detected device temperature reaches the temperature threshold range, the fan is immediately adjusted to the speed value of the corresponding gear. The mapping relationship between the alarm level and the fan speed gear adopts a fixed table. Direct table lookup does not require real-time calculation, and the complex arbitration logic is omitted. The control process is simplified, the fan speed regulation responds quickly, and the heat dissipation effect of the equipment is quickly fed back.

[0072] The fan speed regulation is more stable. The solution uses a median filtering algorithm to process the first temperature value, which will filter out the jitter of the sensor temperature and make the collected first temperature value more accurate. After filtering, the third temperature value input to the fan control module is stable, and there will be no jitter when adjusting the fan speed according to the third temperature value. The fan speed adjustment is more stable, and the energy consumption and noise of the equipment are also reduced.

[0073] On different device platforms, the temperature threshold and fan speed gear are different due to differences in the hardware structure, number of fans and heat dissipation design of the device. This solution reduces the parameters that affect the fan speed regulation function to only rely on the temperature threshold and speed gear. The temperature threshold and speed are set to different levels, and the values ​​in the temperature threshold and fan speed mapping table can be flexibly set according to the application device scenario. Therefore, the fan control strategy in this solution can be adapted to different device platforms, and the module transplantation is more convenient and has better versatility.

[0074] In summary, automatically adjusting the fan speed according to the system temperature has the advantages of high efficiency, stability and versatility. It can effectively reduce equipment energy consumption, reduce equipment noise, and achieve the purpose of energy saving and noise reduction.

[0075] More intuitively, Figure 3 A schematic diagram of a flow chart of another device-based fan speed regulation method provided in this application.

[0076] exist Figure 3 When the system starts, temperature monitoring and fan control are started, and then the first temperature value is collected regularly, and the first temperature value is filtered through a median filter algorithm to obtain a third temperature value.

[0077] Then, it is determined whether the third temperature value has changed, and if not, the fan speed is kept unchanged. In other words, it is determined whether the temperature threshold range corresponding to the third temperature value has changed.

[0078] If so, enter the speed adjustment selection and continue to determine whether it exceeds the low threshold. If not, adjust the fan speed gear to the basic gear.

[0079] If so, continue to determine whether it exceeds the high threshold, if not, adjust the fan speed gear to a low speed gear.

[0080] If yes, then continue to determine whether it exceeds the critical threshold, if not, adjust the fan speed gear to a high speed gear. If yes, adjust the fan speed gear to a full speed gear.

[0081] Finally, the fan speed is controlled and the PWM value corresponding to the fan speed gear is calculated so that the fan speed can be set.

[0082] Based on the same idea, some embodiments of the present application also provide devices and non-volatile computer storage media corresponding to the above methods.

[0083] Figure 4 A schematic structural diagram of a device-based fan speed control device provided in an embodiment of the present application includes:

[0084] at least one processor; and,

[0085] a memory communicatively connected to the at least one processor; wherein,

[0086] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0087] Within a preset period, obtaining a plurality of first temperature values ​​corresponding to the device through a plurality of temperature sensors arranged on the device;

[0088] De-jittering the plurality of first temperature values ​​respectively by using a preset median filtering algorithm to obtain a plurality of second temperature values;

[0089] Selecting a temperature value with the highest temperature value among the plurality of second temperature values, and using the temperature value with the highest temperature value as the third temperature value;

[0090] Comparing the third temperature value with a set temperature threshold to determine a temperature alarm level corresponding to the device;

[0091] If the temperature alarm level is inconsistent with the temperature alarm level of the previous cycle, determining the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship;

[0092] According to the fan speed gear, the fan on the device is controlled to adjust the speed.

[0093] Some embodiments of the present application provide a device-based fan speed control non-volatile computer storage medium, which stores computer executable instructions, and the computer executable instructions are configured to:

[0094] Within a preset period, obtaining a plurality of first temperature values ​​corresponding to the device through a plurality of temperature sensors arranged on the device;

[0095] De-jittering the plurality of first temperature values ​​respectively by using a preset median filtering algorithm to obtain a plurality of second temperature values;

[0096] Selecting a temperature value with the highest temperature value among the plurality of second temperature values, and using the temperature value with the highest temperature value as the third temperature value;

[0097] Comparing the third temperature value with a set temperature threshold to determine a temperature alarm level corresponding to the device;

[0098] If the temperature alarm level is inconsistent with the temperature alarm level of the previous cycle, determining the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship;

[0099] According to the fan speed gear, the fan on the device is controlled to adjust the speed.

[0100] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0101] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0102] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0103] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0104] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0105] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0106] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0107] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0108] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0109] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0110] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the technical principle of the present application should all fall within the protection scope of the present application.

Claims

1. A device-based fan speed control method, It is characterized in that The method comprises: Within a preset period, obtaining a plurality of first temperature values ​​corresponding to the device through a plurality of temperature sensors arranged on the device; De-jittering the plurality of first temperature values ​​respectively by using a preset median filtering algorithm to obtain a plurality of second temperature values; Selecting a temperature value with the highest temperature value among the plurality of second temperature values, and using the temperature value with the highest temperature value as the third temperature value; Comparing the third temperature value with a set temperature threshold to determine a temperature alarm level corresponding to the device; If the temperature alarm level is inconsistent with the temperature alarm level of the previous cycle, determining the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship; According to the fan speed gear, controlling the fan on the device to adjust the speed; The de-jittering process is performed on the plurality of first temperature values ​​respectively by using a preset median filtering algorithm to obtain a plurality of second temperature values, specifically including: Determine a temperature sensor corresponding to the first temperature value; By determining a window position corresponding to the first temperature value in a window array of the temperature sensor, the window array is updated; wherein the window array includes a plurality of historical temperature values; In the updated window array, obtain a preset number of temperature values; Sorting the preset number of temperature values ​​in ascending order to obtain a sorted temperature data queue; In the sorted temperature data queue, remove the maximum temperature value and the minimum temperature value to determine the remaining temperature values; averaging the remaining temperature values, and using the average value as the second temperature value of the first temperature value; The determining of a window position corresponding to the first temperature value in a window array corresponding to the temperature sensor specifically includes: performing a modulo 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; Determine an expression of the first temperature value in the window array according to a preset rule and the remainder; According to the expression, determining a window position corresponding to the first temperature value in the window array; The updating of the window array by determining a window position corresponding to the first temperature value in the window array of the temperature sensor specifically includes: Determine a window position corresponding to the first temperature value in a window array of the temperature sensor; The window array is updated by replacing the historical temperature value of the window position with the first temperature value.

2. The method according to claim 1, It is characterized in that The step of determining the fan speed level corresponding to the temperature alarm level according to the preset mapping relationship specifically includes: If the temperature alarm level is a low level, then according to a preset mapping relationship, determining that the fan speed gear corresponding to the temperature alarm level is a low speed gear; If the temperature alarm level is a high level, then according to a preset mapping relationship, determining that the fan speed gear corresponding to the temperature alarm level is a high speed gear; If the temperature alarm level is a serious level, then according to the preset mapping relationship, the fan speed gear corresponding to the temperature alarm level is determined to be the full speed gear; wherein the speed value of the low speed gear is smaller than the speed value of the high speed gear, and the speed value of the high speed gear is smaller than the speed value of the full speed gear.

3. The method according to claim 1, It is characterized in that Before determining the fan speed gear corresponding to the temperature alarm level according to the preset mapping relationship, the method further includes: 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 speed value, so as to determine a mapping relationship between the sample third temperature value and the sample fan speed value; According to the temperature alarm level corresponding to the sample third temperature value and the fan speed gear corresponding to the sample fan speed value, a mapping relationship table between the temperature alarm level and the fan speed gear is determined.

4. The method according to claim 1, It is characterized in that The controlling the fan on the device to adjust the speed according to the fan speed gear specifically includes: Determining a corresponding fan speed value according to the fan speed gear; The fan speed value is converted into a pulse width modulation value, and the fan on the device is controlled to adjust the speed according to the pulse width modulation value.

5. The method according to claim 1, It is characterized in that After comparing the third temperature value with the set temperature threshold to determine the temperature alarm level corresponding to the device, the method further includes: If the temperature alarm level is consistent with the temperature alarm level of the previous cycle, the current rotation speed value of the fan on the device is kept unchanged.

6. A device-based fan speed control device, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Within a preset period, obtaining a plurality of first temperature values ​​corresponding to the device through a plurality of temperature sensors arranged on the device; De-jittering the plurality of first temperature values ​​respectively by using a preset median filtering algorithm to obtain a plurality of second temperature values; Selecting a temperature value with the highest temperature value among the plurality of second temperature values, and using the temperature value with the highest temperature value as the third temperature value; Comparing the third temperature value with a set temperature threshold to determine a temperature alarm level corresponding to the device; If the temperature alarm level is inconsistent with the temperature alarm level of the previous cycle, determining the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship; According to the fan speed gear, controlling the fan on the device to adjust the speed; The de-jittering process is performed on the plurality of first temperature values ​​respectively by using a preset median filtering algorithm to obtain a plurality of second temperature values, specifically including: Determine a temperature sensor corresponding to the first temperature value; By determining a window position corresponding to the first temperature value in a window array of the temperature sensor, the window array is updated; wherein the window array includes a plurality of historical temperature values; In the updated window array, obtain a preset number of temperature values; Sorting the preset number of temperature values ​​in ascending order to obtain a sorted temperature data queue; In the sorted temperature data queue, remove the maximum temperature value and the minimum temperature value to determine the remaining temperature values; averaging the remaining temperature values, and using the average value as the second temperature value of the first temperature value; The determining of a window position corresponding to the first temperature value in a window array corresponding to the temperature sensor specifically includes: performing a modulo 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; Determine an expression of the first temperature value in the window array according to a preset rule and the remainder; According to the expression, determining a window position corresponding to the first temperature value in the window array; The updating of the window array by determining a window position corresponding to the first temperature value in the window array of the temperature sensor specifically includes: Determine a window position corresponding to the first temperature value in a window array of the temperature sensor; The window array is updated by replacing the historical temperature value of the window position with the first temperature value.

7. A device-based fan speed control non-volatile computer storage medium storing computer executable instructions, It is characterized in that The computer executable instructions are configured to: Within a preset period, obtaining a plurality of first temperature values ​​corresponding to the device through a plurality of temperature sensors arranged on the device; De-jittering the plurality of first temperature values ​​respectively by using a preset median filtering algorithm to obtain a plurality of second temperature values; Selecting a temperature value with the highest temperature value among the plurality of second temperature values, and using the temperature value with the highest temperature value as the third temperature value; Comparing the third temperature value with a set temperature threshold to determine a temperature alarm level corresponding to the device; If the temperature alarm level is inconsistent with the temperature alarm level of the previous cycle, determining the fan speed gear corresponding to the temperature alarm level according to a preset mapping relationship; According to the fan speed gear, controlling the fan on the device to adjust the speed; The de-jittering process is performed on the plurality of first temperature values ​​respectively by using a preset median filtering algorithm to obtain a plurality of second temperature values, specifically including: Determine a temperature sensor corresponding to the first temperature value; By determining a window position corresponding to the first temperature value in a window array of the temperature sensor, the window array is updated; wherein the window array includes a plurality of historical temperature values; In the updated window array, obtain a preset number of temperature values; Sorting the preset number of temperature values ​​in ascending order to obtain a sorted temperature data queue; In the sorted temperature data queue, remove the maximum temperature value and the minimum temperature value to determine the remaining temperature values; averaging the remaining temperature values, and using the average value as the second temperature value of the first temperature value; The determining of a window position corresponding to the first temperature value in a window array corresponding to the temperature sensor specifically includes: performing a modulo 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; Determine an expression of the first temperature value in the window array according to a preset rule and the remainder; According to the expression, determining a window position corresponding to the first temperature value in the window array; The updating of the window array by determining a window position corresponding to the first temperature value in the window array of the temperature sensor specifically includes: Determine a window position corresponding to the first temperature value in a window array of the temperature sensor; The window array is updated by replacing the historical temperature value of the window position with the first temperature value.