Fan speed adjustment method, device, electronic equipment and storage medium

By adjusting the fan speed according to the current and historical temperatures in network equipment, the problem of fan noise pollution is solved, and the balance between cooling and noise control is achieved.

CN119737333APending Publication Date: 2025-04-01NEW H3C TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411948463.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

When the prior art adjusts the fan speed according to the temperature of the network equipment, the fan sound volume is high and noise pollution is caused.

Method used

By obtaining the current temperature of the target device and the current fan speed during the current adjustment period, if the speed is less than or equal to the preset threshold and the temperature is less than or equal to the first preset temperature threshold, the adjustment pulse width is determined based on the current temperature, historical temperature and the second preset temperature threshold, and the fan speed is adjusted; if the temperature is greater than the first preset temperature threshold or the rotation speed is greater than the preset threshold, the target speed is determined based on the preset temperature speed relationship.

Benefits of technology

While ensuring the target equipment cools quickly, the noise generated by the fan due to the high speed is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119737333A_ABST
    Figure CN119737333A_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, electronic device and storage medium for adjusting fan speed, which relate to the field of computer technology. The method comprises obtaining a current temperature of a target device in a current adjustment cycle, and a current speed of a fan in the target device, and further determining a target speed of the fan according to a relationship between the current speed and a preset speed threshold, and a relationship between the current temperature and a preset temperature threshold. When adjusting the speed of the target device, the speed is taken into consideration in addition to the temperature of the target device, and the speed of the target device is determined in combination with the relationship between the temperature, the speed, the preset speed threshold and the preset temperature threshold, so as to ensure rapid cooling of the target device and reduce the noise generated by the high speed of the fan.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of computer technology, and in particular relates to a method, device, electronic device and storage medium for adjusting fan speed. Background Art

[0002] As hardware devices that build and connect to form a network, network devices are used for data processing, storage, and forwarding in network communications. The temperature of network devices will gradually increase during operation. To reduce the temperature, the fan inside the network device can adjust the speed according to the temperature change to ensure the normal operation of the network device.

[0003] The speed of the fan is adjusted according to the temperature of the network device. When the temperature of the network device is high, the speed of the fan is also increased, resulting in a louder sound volume generated by the fan, thereby causing noise pollution to the environment where the network device is located. Summary of the invention

[0004] The present disclosure provides a method, device, electronic device and storage medium for adjusting fan speed.

[0005] A first aspect of the present disclosure provides a method for adjusting a fan speed, the method comprising:

[0006] Obtaining a current temperature of a target device in a current adjustment period and a current rotation speed of a fan in the target device;

[0007] If the current speed is less than or equal to the preset speed threshold, and the current temperature is less than or equal to the first preset temperature threshold, then determining the adjustment pulse width in the current adjustment period based on the current temperature, each historical temperature and the second preset temperature threshold, and adjusting the speed of the fan to reach the target speed based on the adjustment pulse width; the each historical temperature refers to the temperature corresponding to each historical adjustment period;

[0008] If the current temperature is greater than the first preset temperature threshold, or the current rotational speed is greater than the preset rotational speed threshold, the target rotational speed is determined based on a preset temperature-rotational speed relationship.

[0009] In an embodiment of the present disclosure, determining the adjustment pulse width in the current adjustment period based on the current temperature, each historical temperature and the second preset temperature threshold includes:

[0010] Based on the current temperature, the historical temperatures, the second preset temperature threshold and the preset coefficient, determine the pulse width of the current adjustment cycle; use the difference between the pulse width of the current adjustment cycle and the pulse width corresponding to the previous adjustment cycle as the adjustment pulse width; or,

[0011] The adjustment pulse width is determined based on the current temperature, the historical temperatures, the second preset temperature threshold, and a preset coefficient.

[0012] In the embodiment of the present disclosure, the preset coefficient includes a preset proportional term coefficient, a preset integral term coefficient, and a preset differential term coefficient, and the pulse width of the current adjustment cycle is determined based on the current temperature, the historical temperatures, the second preset temperature threshold, and the preset coefficient, including:

[0013] The proportional parameter is obtained according to the product of the first temperature parameter and the preset proportional term coefficient, wherein the first temperature parameter is the difference between the current temperature and the second preset temperature threshold value.

[0014] Obtaining an integral parameter according to a second temperature parameter and the preset integral term coefficient, wherein the second temperature parameter is the sum of each historical temperature and the current temperature;

[0015] Obtaining a differential parameter according to a third temperature parameter and the preset differential term coefficient, wherein the third temperature parameter is a difference between the current temperature and a temperature corresponding to a previous adjustment cycle;

[0016] The sum of the proportional parameter, the integral parameter and the differential parameter is used as the pulse width of the current adjustment cycle.

[0017] In an embodiment of the present disclosure, the preset coefficient includes a preset proportional term coefficient, a preset integral term coefficient, and a preset differential term coefficient, and the adjusting pulse width is determined based on the current temperature, the historical temperatures, the second preset temperature threshold, and the preset coefficient, including:

[0018] A proportional parameter is obtained according to the product of a first temperature parameter and the preset proportional term coefficient, wherein the first temperature parameter is the difference between a first temperature difference and a second temperature difference, the first temperature difference is the difference between the current temperature and the second preset temperature threshold, the second temperature difference is the difference between the temperature of a first adjustment period and the second preset temperature threshold, and the first adjustment period is the previous adjustment period of the current adjustment period;

[0019] Obtaining an integral parameter according to a second temperature parameter and the preset integral term coefficient, wherein the second temperature parameter is the first temperature difference;

[0020] A differential parameter is obtained according to a third temperature parameter and the preset differential term coefficient, wherein the third temperature parameter is the first temperature difference minus twice the second temperature difference plus a third temperature difference, the third temperature difference is the difference between the temperature of the second adjustment period and the second preset temperature threshold, and the second adjustment period is the previous adjustment period of the first adjustment period;

[0021] The sum of the proportional parameter, the integral parameter and the differential parameter is used as the adjusted pulse width.

[0022] In the disclosed embodiment, the preset temperature-rotation speed relationship is a linear relationship.

[0023] In the embodiment of the present disclosure, it also includes:

[0024] determining an operating mode of the target device;

[0025] Based on the mapping relationship between the working mode information and the device parameters, the target device parameters of the working mode information are determined, and the rotation speed of the target device is configured according to the target device parameters.

[0026] In an embodiment of the present disclosure, the working mode information includes a heat dissipation mode and a heat dissipation enhancement mode, and determining the working mode of the target device includes:

[0027] If the current temperature is less than or equal to a preset temperature threshold, determining that the working mode information is the heat dissipation mode;

[0028] If the current temperature is greater than a preset temperature threshold, the operating mode information is determined to be the heat dissipation enhancement mode.

[0029] An embodiment of a second aspect of the present disclosure provides a device for adjusting a fan speed, the device comprising:

[0030] An acquisition module, used to acquire the current temperature of the target device in the current adjustment period, and the current rotation speed of the fan in the target device;

[0031] A first speed determination module, configured to determine an adjustment pulse width within the current adjustment period based on the current temperature, each historical temperature and the second preset temperature threshold value if the current speed is less than or equal to a preset speed threshold value and the current temperature is less than or equal to a first preset temperature threshold value, and to adjust the speed of the fan to the target speed based on the adjustment pulse width; the each historical temperature refers to a temperature corresponding to each historical adjustment period;

[0032] The second speed determination module is used to determine the target speed based on a preset temperature-speed relationship if the current temperature is greater than the first preset temperature threshold, or the current speed is greater than the preset speed threshold.

[0033] An embodiment of the third aspect of the present disclosure provides an electronic device, including a fan, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect or any optional implementation manner of the first aspect.

[0034] An embodiment of the fourth aspect of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the method described in the first aspect and any optional implementation manner of the first aspect.

[0035] The technical solution provided in the embodiments of the present disclosure has at least the following technical effects or advantages:

[0036] The disclosed embodiment obtains the current temperature of the target device within the current adjustment period, and the current rotational speed of the fan in the target device, and further determines the target rotational speed of the fan based on the relationship between the current rotational speed and a preset rotational speed threshold, and the relationship between the current temperature and a preset temperature threshold. When adjusting the rotational speed of the target device, the rotational speed is taken into consideration in addition to the temperature of the target device, and the rotational speed of the target device is determined in combination with the relationship between the temperature, the rotational speed, the preset rotational speed threshold, and the preset temperature threshold. This ensures that the target device is cooled quickly while reducing the noise generated by the high rotational speed of the fan.

[0037] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will become apparent from the following description or be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] By reading the detailed description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not considered to be limitations of the present disclosure. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings.

[0039] In the attached picture:

[0040] Figure 1 A flow chart of a method for adjusting fan speed provided by an embodiment of the present disclosure is shown;

[0041] Figure 2 A schematic diagram showing a method for adjusting a fan speed provided by an embodiment of the present disclosure is shown;

[0042] Figure 3 A flow chart of a method for adjusting fan speed provided by an embodiment of the present disclosure is shown;

[0043] Figure 4 A schematic diagram showing a method for adjusting a fan speed provided by an embodiment of the present disclosure is shown;

[0044] Figure 5 A schematic diagram showing a method for adjusting a fan speed provided by another embodiment of the present disclosure is shown;

[0045] Figure 6 A schematic structural diagram of a fan speed adjustment device provided by another embodiment of the present disclosure is shown;

[0046] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown;

[0047] Figure 8 A schematic diagram of a storage medium provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0048] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, it can also be the internal communication of two elements, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0050] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0051] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in the present disclosure should have the common meanings understood by those skilled in the art to which the present disclosure belongs.

[0052] The following introduces the implementation scenarios and related technologies involved in the embodiments of the present disclosure.

[0053] As the core hardware device for building and connecting networks, network devices play a vital role in network communications. They are responsible for processing, storing and forwarding data to ensure smooth transmission of information. During the continuous operation of network devices, the temperature of internal electronic components will gradually rise. If the heat is not dissipated in time, the performance and stability of the device may be affected. In order to cope with this problem, network devices are usually equipped with an intelligent fan system, which can automatically adjust the fan speed according to the temperature changes of the network device to achieve the purpose of heat dissipation and cooling, thereby ensuring the continuous and stable operation of the network device.

[0054] However, this strategy of adjusting the fan speed according to the temperature, while effectively solving the heat dissipation problem, also brings about the problem of noise pollution to a certain extent. Especially in some places that are extremely sensitive to noise, such as hospitals and hotels, the noise generated by the operation of network equipment will not only affect the user's comfort and experience, but may also interfere with medical operations and guests' rest. Therefore, in these occasions, network equipment not only needs to have efficient heat dissipation capabilities, but also needs to achieve noise control.

[0055] In view of this, the embodiment of the present application discloses a method for adjusting the speed of a fan. The technical solution of the present disclosure is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0056] like Figure 1 As shown, the embodiment of the present disclosure provides a method for adjusting the fan speed, which can be applied to a processor carried by a network device itself, or to a server that is connected to the network device for communication. When the method for adjusting the fan speed is applied to the server, after reading the relevant parameters, the network device sends the parameters to the server, and the server calculates the corresponding target speed of the network device according to the relevant parameters.

[0057] Specifically, Figure 1 As shown, the fan speed adjustment method provided by the embodiment of the present disclosure includes the following steps:

[0058] In step S11, the current temperature of the target device in the current adjustment period and the current rotation speed of the fan in the target device are obtained.

[0059] Exemplarily, during the operation of the target device, the temperature of the target device and the speed of the fan can be periodically collected. Specifically, it can be obtained through the hardware monitoring tool in the target device, the system's own tools, and the Application Programming Interface (API) interface. For example, LM sensors (LM-Sensors) are used to read sensor data and display it through command line tools (such as sensors); hardware information viewer (HWiNFO) is used to read and display various hardware parameters, including temperature and fan speed; hardware monitor (Hwmonitor Monitor, Hwmonitor) is used to read and display detailed hardware status information.

[0060] In addition, you can also use the tools that come with the system to achieve this. For example, the WMI API provided by Windows can be used to query system hardware information, including temperature and fan speed. For example, you can use PowerShell scripts to query this information. The macOS system comes with some commands, such as iostat and sar, which can be used with third-party tools (such as osx-cpu-temp) to obtain temperature information. Fan speed information may be difficult to obtain directly, but it can be indirectly judged by monitoring the temperature.

[0061] You can also write custom programs to obtain temperature and speed according to actual needs. For example, determine the sensor interface used by the target device (such as I2C, SMBus, etc.). Make sure that the operating system or BIOS supports these sensor interfaces and loads the corresponding drivers. Write a program to read the sensor data. This may require the use of specific libraries or APIs, such as the LM-Sensors library under Linux. Convert the raw data read into meaningful temperature and speed values.

[0062] In step S12, if the current speed is less than or equal to the preset speed threshold, and the current temperature is less than or equal to the first preset temperature threshold, the adjustment pulse width within the current adjustment cycle is determined based on the current temperature, each historical temperature and the second preset temperature threshold, and the fan speed is adjusted to reach the target speed based on the adjustment pulse width; each historical temperature refers to the corresponding temperature within each historical adjustment cycle.

[0063] In step S13, if the current temperature is greater than the first preset temperature threshold, or the current rotational speed is greater than the preset rotational speed threshold, the target rotational speed is determined based on the preset temperature-rotational speed relationship.

[0064] Exemplarily, the preset speed threshold and the preset temperature threshold can be determined based on the heat dissipation requirements, noise control standards, and operating environment requirements of the device. The preset temperature threshold may include one or more temperature points for determining whether the current temperature is in a normal, warning, or dangerous state. The preset speed threshold may include a minimum speed and a maximum speed, which are used to limit the speed range of the fan to prevent too low or too high speed from causing insufficient heat dissipation or excessive noise.

[0065] The current temperature is compared with a preset temperature threshold, and the current rotation speed is compared with a preset rotation speed threshold to determine the relationship between them. For example, it is determined whether the current temperature is higher, equal to, or lower than the preset temperature threshold. It is determined whether the current rotation speed is close to, lower than, or higher than the preset rotation speed threshold.

[0066] The target speed of the fan is determined based on the comparison result. For example, if the current temperature is higher than the maximum temperature threshold: adjust the fan speed to the highest to ensure rapid heat dissipation. If the current temperature is within the normal range: maintain or fine-tune the fan speed based on the current speed and the preset speed range to balance heat dissipation and noise. If the current temperature is lower than the minimum temperature threshold: reduce the fan speed to the lowest to reduce noise and energy consumption. At the same time, the relationship between the current speed and the preset speed threshold needs to be considered to avoid frequent changes in the speed or exceeding the preset range. After the target speed is determined, the fan speed can be adjusted through the corresponding interface or API.

[0067] The fan speed adjustment method disclosed in the present invention obtains the current temperature of the target device within the current adjustment period, and the current speed of the fan in the target device, and further determines the target speed of the fan based on the relationship between the current speed and a preset speed threshold, and the relationship between the current temperature and a preset temperature threshold. When adjusting the speed of the target device, the speed is also taken into consideration in addition to the temperature of the target device, and the speed of the target device is determined in combination with the relationship between the temperature, the speed and the preset speed threshold, and the preset temperature threshold. While ensuring rapid cooling of the target device, the noise generated by the high speed of the fan is reduced.

[0068] Exemplarily, if the current speed is less than or equal to the preset speed threshold, and the current temperature is less than or equal to the first preset temperature threshold, the historical temperature records can be analyzed to calculate the trend of temperature change (for example, using methods such as moving average or exponential smoothing), and a suitable adjustment pulse width is determined based on the difference between the current temperature, the historical temperature, and the second preset temperature threshold. The adjustment pulse width can be expressed as an incremental value or a percentage for adjusting the fan speed. The target speed is calculated using the adjustment pulse width. The fan control interface is called to adjust the fan speed to the target speed.

[0069] If the current temperature is greater than the first preset temperature threshold, or the current rotational speed is greater than the preset rotational speed threshold, the corresponding temperature-rotational speed relationship can be a preset mapping table or function, which defines the relationship between temperature and rotational speed. Determine the target rotational speed based on the current temperature or the current rotational speed. Directly adjust the fan rotational speed to the target rotational speed. In this case, the adjustment of the pulse width can be not considered because a quick response is required in this case.

[0070] Furthermore, it is also necessary to add the current temperature to the historical temperature. It should be noted that if the length of the historical temperature (the number of adjustment cycles) exceeds the preset limit, the oldest temperature data is removed.

[0071] In addition, during the above adjustment process, it is necessary to consider using a smooth transition strategy to avoid the sudden change in rotational speed from causing an increase in device vibration or noise. Ensure that the fan rotational speed is not lower than the minimum safe rotational speed and does not exceed the maximum design rotational speed.

[0072] In some embodiments, the first preset temperature threshold can be set as the first preset sub-temperature (Tlow) and the second preset sub-temperature (Thigh). The preset rotational speed threshold can be the first rotational speed threshold (Nlow), the second rotational speed threshold (Nmid), and the third rotational speed threshold (Nhigh).

[0073] When Nlow ≤ N ≤ Nmid and T < Tlow, a Proportional-Integral-Derivative control (PID) strategy can be adopted to adjust the speed and obtain the target rotational speed. In other cases, a linear speed adjustment is adopted. When T < Tlow, the PID strategy is adopted for speed adjustment. The speed adjustment curve is as Figure 2 shown, where Tlow and Thigh can be determined according to the second preset temperature threshold, that is Figure 2 the SP in, and SP can be determined according to the optimal temperature point corresponding to the target device. Tlow is greater than the second preset temperature threshold. Ensure that when the temperature of the target device is near the second preset temperature threshold, the PID speed adjustment is adopted to reduce the noise impact caused by the fan rotation of the device.

[0074] When T < Tlow, the PID strategy enables the fan to maintain a lower rotational speed and keeps the device temperature fluctuating near the set optimal temperature point; compared with directly adopting linear speed adjustment, it can reduce the rotational speed and thus reduce the noise.

[0075] When T > Tlow, linear speed adjustment is adopted, and the speed adjustment response is positive to prevent the device from overheating.

[0076] In some embodiments, the above method for calculating the adjustment pulse width can include two types

[0077] The first method is: based on the current temperature, each historical temperature, the second preset temperature threshold and the preset coefficient, determine the pulse width of the current adjustment cycle; and use the difference between the pulse width of the current adjustment cycle and the pulse width corresponding to the previous adjustment cycle as the adjustment pulse width.

[0078] The second method is to determine the adjustment pulse width based on the current temperature, each historical temperature, a second preset temperature threshold and a preset coefficient.

[0079] Calculate the temperature deviation based on the difference between the current temperature and the average value of the historical temperature or a specific value (such as the temperature of the previous cycle). Multiply the temperature deviation by a preset coefficient to obtain a preliminary pulse width adjustment amount. Determine the pulse width of the current adjustment cycle based on the preliminary pulse width adjustment amount and possible constraints (such as minimum and maximum pulse widths). Get the pulse width of the previous cycle, compare the pulse width of the current adjustment cycle with the pulse width of the previous adjustment cycle, and calculate their difference. This difference is the adjustment pulse width, which is used to adjust the fan speed.

[0080] The speed of the fan is adjusted using the modulated pulse width. This may involve converting the modulated pulse width into a specific speed value or control signal and sending it to the fan controller.

[0081] The above-mentioned implementation method of determining the current pulse width can also be determined according to the above-mentioned PID strategy. For example, in some embodiments, the preset coefficient includes at least one of a preset proportional term coefficient, a preset integral term coefficient, and a preset differential term coefficient. Correspondingly, the first method can be:

[0082] The proportional parameter is obtained by multiplying the first temperature parameter by the preset proportional term coefficient, where the first temperature parameter is the difference between the current temperature and the second preset temperature threshold.

[0083] According to the second temperature parameter and the preset integral term coefficient, an integral parameter is obtained, wherein the second temperature parameter is the sum of each historical temperature and the current temperature;

[0084] According to the third temperature parameter and the preset differential term coefficient, a differential parameter is obtained, wherein the third temperature parameter is the difference between the current temperature and the temperature corresponding to the previous adjustment cycle;

[0085] The sum of the proportional parameter, the integral parameter and the differential parameter is used as the pulse width of the current adjustment cycle.

[0086] Exemplarily, the pulse width PWM(k) of the current adjustment cycle.

[0087]

[0088] Wherein, e(k) is the difference between the current temperature and the preset temperature threshold, e(k) = T(k) – SP. k, k-1, k-2, ..., respectively represent the current adjustment period k, the previous adjustment period k-1, the previous adjustment period k-2, .... Kp, Ki, Kd are the proportional term coefficient, the integral term coefficient, and the differential term coefficient, respectively.

[0089] After the pulse width of the current adjustment cycle is calculated, the adjustment pulse width that needs to be adjusted in the current adjustment cycle can be obtained according to the pulse width of the previous adjustment cycle.

[0090] The second method may be: obtaining the proportional parameter according to the product of the first temperature parameter and the preset proportional term coefficient, wherein the first temperature parameter is the difference between the first temperature difference and the second temperature difference, the first temperature difference is the difference between the current temperature and the second preset temperature threshold, the second temperature difference is the difference between the temperature of the first adjustment period and the second preset temperature threshold, and the first adjustment period is the previous adjustment period of the current adjustment period;

[0091] According to the second temperature parameter and the preset integral term coefficient, an integral parameter is obtained, wherein the second temperature parameter is the first temperature difference;

[0092] A differential parameter is obtained according to a third temperature parameter and a preset differential term coefficient, wherein the third temperature parameter is the first temperature difference minus twice the second temperature difference plus the third temperature difference, the third temperature difference is the difference between the temperature of the second adjustment period and the second preset temperature threshold, and the second adjustment period is the previous adjustment period of the first adjustment period;

[0093] The sum of the proportional parameter, the integral parameter and the differential parameter is used as the adjusted pulse width.

[0094] Exemplarily, the pulse width is adjusted to:

[0095] ΔPWM(k)=PWM(k)-PWM(k-1)=Kp[e(k)-e(k-1)]+Kie(k)+Kd[e(k)-2e(k-1)+e(k-2)]

[0096] In the second method, the adjustment pulse width can be directly calculated based on the data of the previous three adjustment cycles including the current adjustment cycle, without subtracting the pulse width corresponding to the previous adjustment cycle.

[0097] In actual application, this embodiment combines linear speed regulation with PID strategy speed regulation, which can quickly cool down the target device when the temperature is too high and reduce fan noise when the temperature is low. Figure 3The figure shows a fan speed adjustment flow chart of a specific embodiment of the present disclosure. First, read the speed N of the target device. When N≤Nmid and the temperature of the target device T≤Tlow, use the PID strategy to adjust the fan speed. When >Nmid, or the temperature of the target device T>Tlow, use linear speed regulation to quickly cool down the target device and ensure safe operation of the device.

[0098] Based on the above embodiment, the network device can also determine the target rotation speed by setting the working mode, for example, determining the working mode of the target device; based on the mapping relationship between the working mode information and the device parameters, determining the target device parameters of the working mode information, and configuring the rotation speed of the target device with the target device parameters.

[0099] Exemplarily, in the embodiments of the present disclosure, the working mode can be determined according to actual needs such as the use environment of the target device, for example, the working mode can be a heat dissipation mode or a heat dissipation enhancement mode. According to the working mode and parameter requirements of the device, a mapping table or model is established to convert the working mode information into corresponding device parameters. This mapping table or model can be formulated based on data provided by the device manufacturer, historical operation data or experimental data. According to the current working mode information, the corresponding device parameters are queried in the mapping table or model. If the mapping relationship directly gives the speed value, the value is used directly. If the mapping relationship gives other parameters (such as cutting speed, air volume, etc.), it is necessary to calculate the speed based on these parameters and the physical characteristics of the device (such as tool diameter, number of fan blades, etc.). The calculated speed value is input into the control system of the device to configure the actual speed of the device. This may involve adjusting the control panel of the device, sending a control signal to the driver of the device, or calling the API interface of the device.

[0100] In some embodiments, the operating mode information includes a heat dissipation mode and a heat dissipation enhancement mode, and determining the operating mode of the target device includes:

[0101] If the current temperature is less than or equal to the preset temperature threshold, the working mode information is determined to be the heat dissipation mode; if the current temperature is greater than the preset temperature threshold, the working mode information is determined to be the heat dissipation enhancement mode.

[0102] For example, in some embodiments, the optimal temperature point of the target device can be determined according to the requirements. As shown in Table 1, the corresponding rotation speeds of the MAC chip at different ambient temperatures are given.

[0103] Table 1

[0104] Ambient temperature Linear speed regulation PID speed control 1 PID speed control 2 PID speed control 3 Combined speed regulation 25 degrees 40% 27% 24% 22% 27% 30 degrees 48% 30% 28% 24% 30% 35 degrees 59% 39% 31% 28% 39% 40 degrees 66% 60% 38% 31% 60% 45 degrees 79% 100% 60% 39% 60%

[0105] like Figure 4As shown in the figure, the temperature-speed relationship diagrams corresponding to the above-mentioned linear speed regulation, PID speed regulation 1, PID speed regulation 2, PID speed regulation 3 and combined speed regulation are shown. The second preset temperature threshold corresponding to PID speed regulation 1 is 75, the second preset temperature threshold corresponding to PID speed regulation 2 is 80, and the second preset temperature threshold corresponding to PID speed regulation 3 is 85. The combined speed regulation is the second preset temperature threshold of 75 combined with linear speed regulation. Different optimal temperature point settings of the target device affect the target device in

[0106] Depend on Figure 4 It can be seen that the fan speed adjustment method (combined speed regulation) in the embodiment of the present disclosure reduces the speed by 13% to 18% at room temperature compared with the linear speed regulation in the related art, and can reduce noise to a certain extent.

[0107] like Figure 5 The figure shows a comparison curve between the fan speed adjustment method in the embodiment of the present disclosure and the speed adjustment method in the related art. When the second preset temperature threshold is about 25 degrees, the noise reduction effect of the fan speed adjustment method in the embodiment of the present disclosure is about 15%; when the ambient temperature is about 35-50 degrees, the noise reduction effect of the fan speed adjustment method in the embodiment of the present disclosure is about 20% to 30%.

[0108] In summary, the embodiment of the present disclosure obtains the current temperature of the target device within the current adjustment period, and the current speed of the fan in the target device, and further determines the target speed of the fan based on the relationship between the current speed and the preset speed threshold, and the relationship between the current temperature and the preset temperature threshold. When adjusting the speed of the target device, the speed is also taken into consideration in addition to the temperature of the target device, and the speed is determined in combination with the relationship between the temperature, the speed and the preset speed threshold, and the preset temperature threshold. While ensuring that the target device is cooled quickly, the noise generated by the high speed of the fan is reduced.

[0109] correspond Figure 1 The fan speed adjustment method is shown in the figure. The embodiment of the present disclosure also provides a fan speed adjustment device, such as Figure 6 As shown, the device comprises:

[0110] The acquisition module 601 is used to acquire the current temperature of the target device and the current rotation speed of the fan in the target device in the current adjustment period;

[0111] A first speed determination module 602 is used to determine the adjustment pulse width in the current adjustment period based on the current temperature, each historical temperature and the second preset temperature threshold if the current speed is less than or equal to the preset speed threshold and the current temperature is less than or equal to the first preset temperature threshold, and adjust the speed of the fan to the target speed based on the adjustment pulse width; the each historical temperature refers to the temperature corresponding to each historical adjustment period;

[0112] The second speed determination module 603 is used to determine the target speed based on a preset temperature-speed relationship if the current temperature is greater than the first preset temperature threshold, or the current speed is greater than the preset speed threshold.

[0113] In the embodiment of the present disclosure, the first speed determination module is further configured to:

[0114] Based on the current temperature, the historical temperatures, the second preset temperature threshold and the preset coefficient, determine the pulse width of the current adjustment cycle; use the difference between the pulse width of the current adjustment cycle and the pulse width corresponding to the previous adjustment cycle as the adjustment pulse width; or,

[0115] The adjustment pulse width is determined based on the current temperature, the historical temperatures, the second preset temperature threshold, and a preset coefficient.

[0116] In the embodiment of the present disclosure, the preset coefficients include preset proportional term coefficients, preset integral term coefficients and preset differential term coefficients. The first speed determination module is further configured to:

[0117] The proportional parameter is obtained according to the product of the first temperature parameter and the preset proportional term coefficient, wherein the first temperature parameter is the difference between the current temperature and the second preset temperature threshold value.

[0118] Obtaining an integral parameter according to a second temperature parameter and the preset integral term coefficient, wherein the second temperature parameter is the sum of each historical temperature and the current temperature;

[0119] Obtaining a differential parameter according to a third temperature parameter and the preset differential term coefficient, wherein the third temperature parameter is a difference between the current temperature and a temperature corresponding to a previous adjustment cycle;

[0120] The sum of the proportional parameter, the integral parameter and the differential parameter is used as the pulse width of the current adjustment cycle.

[0121] In the embodiment of the present disclosure, the preset coefficients include preset proportional term coefficients, preset integral term coefficients and preset differential term coefficients. The first speed determination module is further configured to:

[0122] A proportional parameter is obtained according to the product of a first temperature parameter and the preset proportional term coefficient, wherein the first temperature parameter is the difference between a first temperature difference and a second temperature difference, the first temperature difference is the difference between the current temperature and the second preset temperature threshold, the second temperature difference is the difference between the temperature of a first adjustment period and the second preset temperature threshold, and the first adjustment period is the previous adjustment period of the current adjustment period;

[0123] Obtaining an integral parameter according to a second temperature parameter and the preset integral term coefficient, wherein the second temperature parameter is the first temperature difference;

[0124] A differential parameter is obtained according to a third temperature parameter and the preset differential term coefficient, wherein the third temperature parameter is the first temperature difference minus twice the second temperature difference plus a third temperature difference, the third temperature difference is the difference between the temperature of the second adjustment period and the second preset temperature threshold, and the second adjustment period is the previous adjustment period of the first adjustment period;

[0125] The sum of the proportional parameter, the integral parameter and the differential parameter is used as the adjusted pulse width.

[0126] In the disclosed embodiment, the preset temperature-rotation speed relationship is a linear relationship.

[0127] In the disclosed embodiment, the apparatus is further used to: determine the working mode of the target device;

[0128] Based on the mapping relationship between the working mode information and the device parameters, the target device parameters of the working mode information are determined, and the rotation speed of the target device is configured according to the target device parameters.

[0129] In an embodiment of the present disclosure, the working mode information includes a heat dissipation mode and a heat dissipation enhancement mode, and the device is further used to: if the current temperature is less than or equal to a preset temperature threshold, determine that the working mode information is the heat dissipation mode;

[0130] If the current temperature is greater than a preset temperature threshold, the operating mode information is determined to be the heat dissipation enhancement mode.

[0131] The fan speed adjustment device provided in the above-mentioned embodiment of the present disclosure and the fan speed adjustment method provided in the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0132] The disclosed embodiment also provides an electronic device to implement a method for adjusting the speed of a fan. Figure 7 , which shows a schematic diagram of an electronic device provided by some embodiments of the present disclosure. Figure 7 As shown, the electronic device 7 includes: a processor 700, a memory 701, a bus 702 and a communication interface 703, wherein the processor 700, the communication interface 703 and the memory 701 are connected via the bus 702; the memory 701 stores a computer program that can be run on the processor 700, and when the processor 700 runs the computer program, the fan speed adjustment method provided in any of the aforementioned embodiments of the present disclosure is executed.

[0133] The memory 701 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the virtual devices of the system is realized through at least one communication interface 703 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0134] The bus 702 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 701 is used to store a program, and the processor 700 executes the program after receiving an execution instruction. The fan speed adjustment method disclosed in any implementation of the aforementioned embodiment of the present disclosure may be applied to the processor 700, or implemented by the processor 700.

[0135] The processor 700 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 700 or the instruction in the form of software. The above processor 700 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 701, and the processor 700 reads the content in the memory 701 and completes the steps of the above method in combination with its hardware.

[0136] The electronic device provided by the embodiment of the present disclosure and the method for adjusting the fan speed provided by the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented by them.

[0137] The present disclosure also provides a computer-readable storage medium corresponding to the fan speed adjustment method provided in the above embodiment. Figure 8 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a microprocessor, the fan speed adjustment method provided in any of the aforementioned embodiments will be executed.

[0138] It should be noted that examples of the computer-readable storage medium may also 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 optical or magnetic storage media, which are not listed here one by one.

[0139] The computer-readable storage medium provided in the above-mentioned embodiment of the present disclosure and the fan speed adjustment method provided in the embodiment of the present disclosure are based on the same inventive concept, and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0140] Although the optional embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present disclosure.

[0141] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present disclosure. It should be understood that the above description is only the specific implementation method of the present disclosure and is not intended to limit the protection scope of the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present disclosure should be included in the protection scope of the present invention.

Claims

1. A method for adjusting fan speed, characterized in that: The method comprises: Obtaining a current temperature of a target device in a current adjustment period and a current rotation speed of a fan in the target device; If the current speed is less than or equal to the preset speed threshold, and the current temperature is less than or equal to the first preset temperature threshold, then determining the adjustment pulse width in the current adjustment period based on the current temperature, each historical temperature and the second preset temperature threshold, and adjusting the speed of the fan to reach the target speed based on the adjustment pulse width; the each historical temperature refers to the temperature corresponding to each historical adjustment period; If the current temperature is greater than the first preset temperature threshold, or the current rotational speed is greater than the preset rotational speed threshold, a target rotational speed is determined based on a preset temperature-rotational speed relationship.

2. The method according to claim 1, characterized in that The determining the adjustment pulse width in the current adjustment period based on the current temperature, each historical temperature and the second preset temperature threshold comprises: Based on the current temperature, the historical temperatures, the second preset temperature threshold and the preset coefficient, determine the pulse width of the current adjustment cycle; use the difference between the pulse width of the current adjustment cycle and the pulse width corresponding to the previous adjustment cycle as the adjustment pulse width; or, The adjustment pulse width is determined based on the current temperature, the historical temperatures, the second preset temperature threshold, and a preset coefficient.

3. The method according to claim 2, characterized in that The preset coefficients include a preset proportional term coefficient, a preset integral term coefficient, and a preset differential term coefficient. The pulse width of the current adjustment cycle is determined based on the current temperature, the historical temperatures, the second preset temperature threshold, and the preset coefficients, including: Obtaining a proportional parameter according to a product of a first temperature parameter and the preset proportional term coefficient, wherein the first temperature parameter is a difference between the current temperature and the second preset temperature threshold; Obtaining an integral parameter according to a second temperature parameter and the preset integral term coefficient, wherein the second temperature parameter is the sum of each historical temperature and the current temperature; Obtaining a differential parameter according to a third temperature parameter and the preset differential term coefficient, wherein the third temperature parameter is a difference between the current temperature and a temperature corresponding to a previous adjustment cycle; The sum of the proportional parameter, the integral parameter and the differential parameter is used as the pulse width of the current adjustment cycle.

4. The method according to claim 2, characterized in that: The preset coefficients include a preset proportional term coefficient, a preset integral term coefficient, and a preset differential term coefficient. The adjusting pulse width is determined based on the current temperature, the historical temperatures, the second preset temperature threshold, and the preset coefficients, including: A proportional parameter is obtained according to the product of a first temperature parameter and the preset proportional term coefficient, wherein the first temperature parameter is the difference between a first temperature difference and a second temperature difference, the first temperature difference is the difference between the current temperature and the second preset temperature threshold, the second temperature difference is the difference between the temperature of a first adjustment period and the second preset temperature threshold, and the first adjustment period is the previous adjustment period of the current adjustment period; Obtaining an integral parameter according to a second temperature parameter and the preset integral term coefficient, wherein the second temperature parameter is the first temperature difference; A differential parameter is obtained according to a third temperature parameter and the preset differential term coefficient, wherein the third temperature parameter is the first temperature difference minus twice the second temperature difference plus a third temperature difference, the third temperature difference is the difference between the temperature of the second adjustment period and the second preset temperature threshold, and the second adjustment period is the previous adjustment period of the first adjustment period; The sum of the proportional parameter, the integral parameter and the differential parameter is used as the adjusted pulse width.

5. The method according to claim 1, characterized in that The preset temperature-rotation speed relationship is a linear relationship.

6. The method according to claim 1, characterized in that Also includes: Determining an operating mode of the target device; Based on the mapping relationship between the working mode information and the device parameters, the target device parameters of the working mode information are determined, and the rotation speed of the target device is configured according to the target device parameters.

7. The method according to claim 6, characterized in that The working mode information includes a heat dissipation mode and a heat dissipation enhancement mode, and determining the working mode of the target device includes: If the current temperature is less than or equal to a preset temperature threshold, determining that the working mode information is the heat dissipation mode; If the current temperature is greater than a preset temperature threshold, the operating mode information is determined to be the heat dissipation enhancement mode.

8. A fan speed adjustment device, characterized in that: The device comprises: An acquisition module, used to acquire the current temperature of the target device in the current adjustment period, and the current rotation speed of the fan in the target device; A first speed determination module, for determining an adjustment pulse width within the current adjustment period based on the current temperature, each historical temperature and a second preset temperature threshold if the current speed is less than or equal to a preset speed threshold and the current temperature is less than or equal to a first preset temperature threshold, and adjusting the speed of the fan to a target speed based on the adjustment pulse width; the each historical temperature refers to a temperature corresponding to each historical adjustment period; The second speed determination module is used to determine the target speed based on a preset temperature-speed relationship if the current temperature is greater than the first preset temperature threshold, or the current speed is greater than the preset speed threshold.

9. An electronic device comprising a fan, a memory, a processor, and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Server fan control system and method

    CN120949909A

  • Method and device for detecting rotating speed of fan and electronic equipment

    CN121299155A

  • Fan speed control method and fan speed control module

    TWI939189B