Fan control method and device, storage medium and control device

By periodically adjusting the duty cycle of the graphics card fan and adjusting the duty cycle of the fan drive signal according to the speed difference, the problem of inaccurate fan speed control in existing technologies is solved, achieving efficient heat dissipation and extended lifespan of the graphics card.

CN121879538APending Publication Date: 2026-04-17GUANGZHOUSNGKE INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOUSNGKE INFORMATION TECH
Filing Date
2025-12-31
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing technology makes it difficult to precisely control the speed of graphics card fans, resulting in poor heat dissipation and affecting the performance and lifespan of the graphics card.

Method used

By collecting the actual operating temperature of the graphics card, the target speed of the fan is determined, and the speed difference is calculated in the periodic adjustment. The duty cycle of the fan drive signal is adjusted according to the difference to gradually approach the target speed, which is suitable for fans in different usage conditions.

Benefits of technology

It improves the precision and stability of fan control, meets the heat dissipation requirements of the graphics card, extends the lifespan of the graphics card, and avoids overheating damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121879538A_ABST
    Figure CN121879538A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of temperature control, and particularly provides a fan control method and device, a storage medium and a control device. The target rotating speed of the fan can be determined according to the actual working temperature of the display card, and the duty ratio of the fan driving signal is adjusted through one or more adjusting periods. In each adjusting period, the actual rotating speed of the fan can be collected, the rotating speed difference value between the actual rotating speed and the target rotating speed is calculated, and the duty ratio adjusting amplitude corresponding to the current adjusting period is determined according to the rotating speed difference value. After the duty ratio adjusting amplitude is determined, the duty ratio of the fan driving signal can be adjusted according to the duty ratio adjusting amplitude. According to the scheme, the duty ratio adjusting amplitude of the fan driving signal is adjusted periodically according to the rotating speed difference value, the actual rotating speed of the fan can gradually approach the target rotating speed, and the scheme can be suitable for different fans under different use conditions, so that the fan control precision can be improved, and the heat dissipation requirement of a display card can be better met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of temperature control technology, and in particular to a fan control method, device, storage medium and control device. Background Technology

[0002] The graphics card is a crucial component in computer devices used for processing graphics and images. As graphics card performance increases, so does its power consumption and heat generation. The temperature of the graphics card components directly affects its performance. If the heat generated by the graphics card is not dissipated effectively and promptly, the temperature will continue to rise, leading to decreased performance, a shortened lifespan, and even hardware damage due to overheating. Therefore, to ensure graphics card performance and extend its lifespan, fans are needed for cooling. However, the inventors discovered that existing fan control schemes struggle to precisely control fan speed, resulting in poor control accuracy. Summary of the Invention

[0003] The purpose of this application is to at least solve one of the above-mentioned technical defects, especially the technical defect of poor control accuracy in the prior art, which makes it difficult to accurately control the fan speed.

[0004] In a first aspect, embodiments of this application provide a fan control method, including:

[0005] Collect the actual operating temperature of the graphics card and determine the target fan speed based on the actual operating temperature;

[0006] In response to the arrival of the current adjustment cycle, the actual speed of the fan is collected, and the speed difference of the current adjustment cycle is calculated based on the actual speed and the target speed.

[0007] The duty cycle adjustment range for the current adjustment cycle is determined based on the speed difference in the current adjustment cycle; wherein the duty cycle adjustment range is positively correlated with the speed difference.

[0008] The target duty cycle is calculated based on the duty cycle adjustment range of the current adjustment period and the current duty cycle of the fan drive signal, and the signal duty cycle of the fan drive signal is adjusted to the target duty cycle within the current adjustment period.

[0009] In some embodiments, determining the duty cycle adjustment range of the current adjustment period based on the speed difference of the current adjustment period includes:

[0010] The duty cycle adjustment range for the current adjustment period is determined based on the speed difference in the current adjustment period and a preset correspondence between multiple difference ranges; wherein, the correspondence between the difference ranges is used to describe the correspondence between the range of speed difference values ​​and the duty cycle adjustment range.

[0011] In some embodiments, determining the duty cycle adjustment range of the current adjustment period based on the speed difference of the current adjustment period includes:

[0012] The speed difference of the current adjustment cycle is used as the input data of the preset PID algorithm, and the initial duty cycle adjustment range output by the preset PID algorithm is obtained.

[0013] The duty cycle adjustment range for the current adjustment period is determined based on the initial duty cycle adjustment range.

[0014] In some embodiments, determining the duty cycle adjustment magnitude for the current adjustment period based on the initial duty cycle adjustment magnitude includes:

[0015] The dynamic compensation amount is calculated based on the speed difference of the current adjustment cycle and the preset weighting coefficient.

[0016] The sum of the initial duty cycle adjustment range and the dynamic compensation amount is taken as the duty cycle adjustment range for the current adjustment period.

[0017] In some embodiments, after determining the target fan speed based on the actual operating temperature, the method further includes:

[0018] The initial duty cycle is determined based on the target rotational speed, and the signal duty cycle of the fan drive signal is adjusted to the initial duty cycle.

[0019] In some embodiments, calculating the target duty cycle based on the duty cycle adjustment magnitude of the current adjustment period and the current duty cycle of the fan drive signal includes:

[0020] The duty cycle adjustment range of the current adjustment period and the sum of the current duty cycle of the fan drive signal are calculated to obtain the duty cycle to be verified.

[0021] If the duty cycle to be verified is less than the preset minimum duty cycle, then the minimum duty cycle is taken as the target duty cycle;

[0022] If the duty cycle to be verified is greater than the preset maximum duty cycle, then the maximum duty cycle is taken as the target duty cycle;

[0023] If the duty cycle to be verified is greater than or equal to the minimum duty cycle and less than or equal to the maximum duty cycle, then the duty cycle to be verified is taken as the target duty cycle.

[0024] In some embodiments, determining the target fan speed based on the actual operating temperature includes:

[0025] A target curve is determined from multiple temperature-speed-rotation curves; wherein, the multiple temperature-speed-rotation curves are preset by the user, and the temperature-speed-rotation curves are used to describe the correspondence between the operating temperature of the graphics card and the fan speed; the target curve is preset by the user.

[0026] The target rotational speed is determined based on the actual operating temperature and the target curve.

[0027] Secondly, embodiments of this application provide a fan control device, including:

[0028] The target speed determination module is used to collect the actual operating temperature of the graphics card and determine the target speed of the fan based on the actual operating temperature.

[0029] The speed difference calculation module is used to collect the actual speed of the fan in response to the arrival of the current adjustment cycle, and calculate the speed difference of the current adjustment cycle based on the actual speed and the target speed.

[0030] The duty cycle adjustment range calculation module is used to determine the duty cycle adjustment range of the current adjustment cycle based on the speed difference of the current adjustment cycle; wherein, the duty cycle adjustment range is positively correlated with the speed difference;

[0031] The duty cycle adjustment module is used to calculate the target duty cycle based on the duty cycle adjustment range of the current adjustment period and the current duty cycle of the fan drive signal, and to adjust the signal duty cycle of the fan drive signal to the target duty cycle within the current adjustment period.

[0032] Thirdly, embodiments of this application provide a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the fan control method described in any of the above embodiments.

[0033] Fourthly, embodiments of this application provide a control device for connecting a graphics card and a fan respectively;

[0034] The control device includes a processor and a memory, the memory storing computer-readable instructions; when the computer-readable instructions are executed by the processor, the steps of the fan control method described in any of the above embodiments are performed.

[0035] In the fan control method, apparatus, storage medium, and control device provided in some embodiments of this application, the target fan speed can be determined based on the actual operating temperature of the graphics card. Based on the target speed, the duty cycle of the fan drive signal is adjusted through one or more adjustment cycles. In each adjustment cycle, this application can collect the actual fan speed, calculate the speed difference between the actual speed and the target speed, and determine the duty cycle adjustment range corresponding to the current adjustment cycle according to the speed difference. The larger the speed difference, the larger the duty cycle adjustment range; conversely, the smaller the speed difference, the smaller the duty cycle adjustment range. After determining the duty cycle adjustment range, the duty cycle of the fan drive signal can be adjusted accordingly. By periodically adjusting and adjusting the duty cycle adjustment range of the fan drive signal based on the speed difference, the actual fan speed can gradually approach the target speed. This scheme is applicable to different fans under different usage conditions, thereby improving the accuracy of fan control and better meeting the heat dissipation requirements of the graphics card. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 This is one of the flowcharts illustrating a fan control method in some embodiments;

[0038] Figure 2 This is a second schematic flowchart of a fan control method in some embodiments;

[0039] Figure 3 This is a schematic diagram of the fan control device in some embodiments;

[0040] Figure 4 This is a schematic diagram of the connection of the control device in some embodiments. Detailed Implementation

[0041] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0042] As stated in the background section, existing technologies struggle to precisely control fan speed, resulting in poor control accuracy. The inventors' research revealed that this problem stems from the fact that individual fan differences, varying operating environments, and equipment aging can lead to variations in the PWM (Pulse Width Modulation) duty cycle for different fans operating at the same speed. In other words, using a PWM signal with the same duty cycle to control different fans may result in varying fan speeds. For example, a first fan operating at 1200 RPM might correspond to a 30% duty cycle, while a second fan operating at 1200 RPM might correspond to a 33% duty cycle. Therefore, directly controlling the fan using a fixed speed-duty cycle mapping relationship makes precise fan speed control difficult, resulting in poor control accuracy.

[0043] To address the aforementioned technical problems, this application provides a fan control method, apparatus, storage medium, and control device. By periodically adjusting the fan drive signal's duty cycle adjustment amplitude based on the speed difference, the actual fan speed can gradually approach the target speed. This solution is applicable to different fans under different usage conditions, thereby improving the accuracy of fan control and better meeting the heat dissipation requirements of graphics cards.

[0044] In some embodiments, this application provides a fan control method for precisely controlling the cooling fan of a graphics card. For example... Figure 1 As shown, the fan control method of this application may include S102, S104, S106 and S108.

[0045] S102: Collect the actual operating temperature of the graphics card and determine the target fan speed based on the actual operating temperature.

[0046] Specifically, during fan speed control, the fan speed needs to be adjusted based on the actual operating temperature of the graphics card. This allows the fan to effectively and promptly dissipate heat from the graphics card, preventing its temperature from continuously rising. Therefore, the actual operating temperature of the graphics card can be collected first during the control process. It is understood that this application can employ various methods to collect the graphics card temperature, and this application does not impose any specific limitations. For example, the actual operating temperature of the GPU (Graphics Processing Unit) can be collected by communicating with it. Alternatively, a temperature sensor can be installed on the graphics card, and the actual operating temperature of the graphics card can be collected by communicating with the temperature sensor.

[0047] After obtaining the actual operating temperature of the graphics card, this application can determine the target fan speed accordingly. The target speed can be the fan speed that allows the graphics card to maintain a suitable operating temperature under the current cooling requirements of the graphics card. In other words, if the actual fan speed is adjusted to the target speed, the actual operating temperature of the graphics card can be kept within a suitable temperature range, thereby preventing performance degradation and extending the lifespan of the graphics card as much as possible.

[0048] It should be noted that this application can determine the target fan speed using one of several methods. For example, this application can pre-set a correspondence between graphics card temperature and fan speed. By searching through various correspondences based on the actual operating temperature, the fan speed corresponding to the actual operating temperature, i.e., the target fan speed, can be obtained. Alternatively, this application can construct a mapping relationship between temperature and fan speed (e.g., functional relationship, neural network model, etc.) through methods such as pre-setting or model learning. The fan speed corresponding to the actual operating temperature, i.e., the target fan speed, can be obtained through this mapping relationship.

[0049] S104: In response to the arrival of the current adjustment cycle, the actual speed of the fan is collected, and the speed difference of the current adjustment cycle is calculated based on the actual speed and the target speed.

[0050] Specifically, this application can adjust the fan speed at regular intervals. Within each adjustment cycle, this application can execute steps S104 to S108 to adjust the signal duty cycle of the fan drive signal according to the actual fan speed and the target speed, so that the actual fan speed can approach the target speed.

[0051] When the current adjustment cycle arrives, this application can collect the actual fan speed R during the current adjustment cycle. 实际 And according to R 实际 and target speed R 目标 Calculate the fan speed difference during the current adjustment cycle. The speed difference describes the degree of deviation between the actual fan speed and the target speed within the current adjustment cycle.

[0052] It is understood that this application may use one of several methods to calculate the speed difference ΔR. For example, ΔR = R 目标 -R 实际 In this case, if the speed difference is positive, it means the actual fan speed is lower than the target speed; if the speed difference is negative, it means the actual fan speed is higher than the target speed; if the speed difference is zero, it means the actual fan speed is equal to the target speed. For example, ΔR = R 实际 -R 目标For example, this application can preset a speed compensation value. The speed difference of the fan can be calculated using the speed compensation value, the actual speed, and the target speed. For ease of explanation, some embodiments of this application use ΔR=R 目标 -R 实际 Described as an example.

[0053] Furthermore, this application can employ various feasible methods to acquire fan speed data, and this application does not impose any specific limitations on these methods. For example, the TACH signal output by the fan can be sampled, and the actual fan speed can be determined through the TACH signal.

[0054] S106: Determine the duty cycle adjustment range of the current adjustment cycle based on the speed difference of the current adjustment cycle; wherein the duty cycle adjustment range is positively correlated with the speed difference.

[0055] In this step, after determining the speed difference for the current adjustment cycle, the duty cycle adjustment range corresponding to the current adjustment cycle can be further determined based on the speed difference. The larger the speed difference, the larger the duty cycle adjustment range. Conversely, the smaller the speed difference, the smaller the duty cycle adjustment range. For example, when the speed difference is 1000 rpm, the duty cycle adjustment range can be 1.33%; when the speed difference is 200 rpm, the duty cycle adjustment range is 0.66%; and when the speed difference is -1000 rpm, the duty cycle adjustment range is -1.33%.

[0056] Duty cycle adjustment range refers to the adjustment range required for the duty cycle of the fan drive signal. Since the duty cycle adjustment range is positively correlated with the speed difference, a large speed difference indicates a significant deviation between the actual and target fan speeds. In this case, a larger duty cycle adjustment range is needed to quickly bring the actual speed closer to the target speed. Conversely, a small speed difference indicates a smaller deviation between the actual and target speeds, requiring only a smaller duty cycle adjustment range to bring the actual speed closer to the target speed.

[0057] It is understood that the duty cycle adjustment range can be determined in various ways. This embodiment does not impose specific limitations on this, as long as the duty cycle adjustment range is positively correlated with the speed difference.

[0058] S108: Calculate the target duty cycle based on the duty cycle adjustment range of the current adjustment period and the current duty cycle of the fan drive signal, and adjust the signal duty cycle of the fan drive signal to the target duty cycle within the current adjustment period.

[0059] The fan drive signal is the signal used to drive the fan to rotate, and its duty cycle affects the fan speed. A larger duty cycle results in a higher fan speed; conversely, a smaller duty cycle results in a lower fan speed. The target duty cycle refers to the adjusted duty cycle value of the fan drive signal, used to bring the fan speed closer to the target speed.

[0060] Specifically, within the current adjustment period, after determining the duty cycle adjustment range, this application can calculate the target duty cycle based on the duty cycle adjustment range and the duty cycle of the fan drive signal before adjustment (i.e., the current duty cycle), and adjust the signal duty cycle of the fan drive signal to the target duty cycle to change the fan speed and make it approach the target speed. For example, if the signal duty cycle of the fan drive signal before adjustment is the first duty cycle within the current adjustment period, then this application can adjust the signal duty cycle of the fan drive signal from the first duty cycle to the target duty cycle.

[0061] Since the duty cycle adjustment range is positively correlated with the speed difference, the greater the difference between the actual and target speeds, the faster the duty cycle of the fan drive signal changes. Conversely, the smaller the difference between the actual and target speeds, the slower the duty cycle of the fan drive signal changes.

[0062] It is understood that this application can employ various methods to calculate the target duty cycle. For example, this application can use the sum of the duty cycle adjustment range and the current duty cycle as the target duty cycle, or it can substitute the duty cycle adjustment range and the current duty cycle into a pre-constructed functional relationship to calculate the target duty cycle.

[0063] After completing the adjustment for the current adjustment cycle, this application can continue to wait until the next adjustment cycle arrives, and repeat steps S104 to S108 when the next adjustment cycle arrives. It should be noted that the duration of the adjustment cycle can be determined according to the actual situation, for example, it can be 1ms, 5ms, 500ms, etc., and this application does not impose specific limitations on it. Taking a cycle duration of 1ms as an example, this application can change the signal duty cycle of the fan drive signal every 1ms.

[0064] In this application, the target fan speed can be determined based on the actual operating temperature of the graphics card. Based on the target speed, the duty cycle of the fan drive signal is adjusted through one or more adjustment cycles. In each adjustment cycle, the actual fan speed is collected, the speed difference between the actual speed and the target speed is calculated, and the duty cycle adjustment range corresponding to the current adjustment cycle is determined according to the speed difference. The larger the speed difference, the larger the duty cycle adjustment range; conversely, the smaller the speed difference, the smaller the duty cycle adjustment range. After determining the duty cycle adjustment range, the duty cycle of the fan drive signal can be adjusted accordingly. Through periodic adjustments and adjusting the duty cycle adjustment range of the fan drive signal based on the speed difference, the actual fan speed can gradually approach the target speed. This scheme is applicable to different fans under different usage conditions, thereby improving the accuracy of fan control and better meeting the heat dissipation requirements of the graphics card.

[0065] In some embodiments, determining the duty cycle adjustment range of the current adjustment period based on the speed difference of the current adjustment period includes:

[0066] The duty cycle adjustment range for the current adjustment period is determined based on the speed difference in the current adjustment period and a preset correspondence between multiple difference ranges; wherein, the correspondence between the difference ranges is used to describe the correspondence between the range of speed difference values ​​and the duty cycle adjustment range.

[0067] In this embodiment, the duty cycle adjustment range of the current adjustment cycle can be quickly determined by a pre-set difference range correspondence, thereby improving the adjustment efficiency of the fan speed.

[0068] Specifically, this application can pre-set multiple difference magnitude correspondences, which can describe the duty cycle adjustment magnitude corresponding to the speed difference in different value ranges. For example, the first difference magnitude correspondence can be that when the speed difference falls into the range of 0~10, the duty cycle adjustment magnitude is 0.13%; the second difference magnitude correspondence can be that when the speed difference falls into the range of 10~200, the duty cycle adjustment magnitude is 1.3%; and the third difference magnitude correspondence can be that when the speed difference is greater than 200, the duty cycle adjustment magnitude is 2.6%. Within the current adjustment cycle, after determining the speed difference, this application can determine the duty cycle adjustment magnitude corresponding to that speed difference from multiple difference magnitude correspondences, thereby obtaining the duty cycle adjustment magnitude for the current adjustment cycle.

[0069] In some embodiments, determining the duty cycle adjustment range of the current adjustment period based on the speed difference of the current adjustment period includes:

[0070] The speed difference of the current adjustment cycle is used as the input data of the preset PID algorithm, and the initial duty cycle adjustment range output by the preset PID algorithm is obtained.

[0071] The duty cycle adjustment range for the current adjustment period is determined based on the initial duty cycle adjustment range.

[0072] In this embodiment, a preset PID (proportional-integral-derivative) algorithm can be used to determine the duty cycle adjustment range. By leveraging the synergy of the proportional, integral, and derivative terms, the impact of steady-state deviation can be reduced, thus adapting to dynamic load changes such as graphics card power consumption fluctuations during gaming. This allows for better adaptation to dynamic changes in graphics card load, improving the precision and stability of fan control and providing more effective heat dissipation for the graphics card.

[0073] Specifically, the PID algorithm can output a control quantity (i.e., the initial duty cycle adjustment) based on the input error (i.e., the speed difference) through calculations in three parts: proportional, integral, and derivative. The proportional component responds proportionally to the speed difference, enabling the system to react quickly to deviations. The integral component eliminates the system's steady-state error, continuously adjusting the output to reduce the error over time. The derivative component predicts the error's changing trend based on its rate of change, thus adjusting the output in advance to suppress further error increases.

[0074] After obtaining the initial duty cycle adjustment range output by the preset PID algorithm, this application can determine the final duty cycle adjustment range accordingly. For example, the initial duty cycle adjustment range can be limited to avoid excessively large or small adjustment ranges, which could lead to excessively drastic fluctuations in fan speed or untimely adjustments. Furthermore, this application can appropriately modify the initial duty cycle adjustment range based on factors such as fan characteristics and operating environment to improve control accuracy and stability.

[0075] In some embodiments, determining the duty cycle adjustment magnitude for the current adjustment period based on the initial duty cycle adjustment magnitude includes:

[0076] The dynamic compensation amount is calculated based on the speed difference of the current adjustment cycle and the preset weighting coefficient.

[0077] The sum of the initial duty cycle adjustment range and the dynamic compensation amount is taken as the duty cycle adjustment range for the current adjustment period.

[0078] In this embodiment, dynamic compensation can effectively address sudden load changes, thereby further expanding the duty cycle adjustment range when the speed difference is too large, shortening the response time of the fan speed adjustment, and providing more effective heat dissipation for the graphics card.

[0079] Specifically, this application pre-sets a weighting coefficient and determines the dynamic compensation amount for the current adjustment period based on the difference between the weighting coefficient and the speed in the current adjustment period. This weighting coefficient can be a value greater than 0, such as 0.02. This application uses the product of the weighting coefficient and the speed difference as the dynamic compensation amount; the larger the speed difference, the larger the dynamic compensation amount; the smaller the speed difference, the smaller the dynamic compensation amount. After obtaining the dynamic compensation amount, this application sums the dynamic compensation amount with the initial duty cycle adjustment range output by the preset PID algorithm to obtain the final duty cycle adjustment range for the current adjustment period. This allows the actual fan speed to quickly catch up with the target speed when the speed difference is too large, balancing control accuracy and response speed.

[0080] In some embodiments, this application can combine the two methods described above for determining the duty cycle adjustment range. This application can determine the current operating condition of the graphics card. If the graphics card is currently in a relatively stable operating condition, a preset difference range correspondence is used to quickly determine the duty cycle adjustment range, thereby improving adjustment efficiency. If the graphics card is currently in a scenario where the load changes dynamically and frequently, a preset PID algorithm can be used to determine the duty cycle adjustment range, thereby improving control stability and adaptability. By flexibly applying different methods, the fan control strategy can be further optimized to meet the heat dissipation requirements of different scenarios.

[0081] In some embodiments, calculating the target duty cycle based on the duty cycle adjustment magnitude of the current adjustment period and the current duty cycle of the fan drive signal includes:

[0082] The duty cycle adjustment range of the current adjustment period and the sum of the current duty cycle of the fan drive signal are calculated to obtain the duty cycle to be verified.

[0083] If the duty cycle to be verified is less than the preset minimum duty cycle, then the minimum duty cycle is taken as the target duty cycle;

[0084] If the duty cycle to be verified is greater than the preset maximum duty cycle, then the maximum duty cycle is taken as the target duty cycle;

[0085] If the duty cycle to be verified is greater than or equal to the minimum duty cycle and less than or equal to the maximum duty cycle, then the duty cycle to be verified is taken as the target duty cycle.

[0086] In this embodiment, in order to avoid the signal duty cycle of the fan drive signal exceeding a reasonable range, which would affect the normal operation and service life of the fan, this application can calculate the duty cycle to be verified based on the duty cycle adjustment range of the current adjustment cycle and the current duty cycle of the fan drive signal, and use preset minimum and maximum duty cycles for verification, so as to ensure heat dissipation effect and extend the service life of the fan.

[0087] Specifically, this application sums the duty cycle adjustment range of the current adjustment cycle and the current duty cycle of the fan drive signal to obtain the duty cycle to be verified, and then compares the duty cycle to be verified with the minimum duty cycle and the maximum duty cycle. Since the minimum duty cycle and the maximum duty cycle define the reasonable range of signal duty cycle values, the reasonableness of the value of the duty cycle to be verified can be verified by the comparison results, thereby determining the final target duty cycle to be used.

[0088] When the duty cycle to be verified is less than the minimum duty cycle, it indicates that the duty cycle to be verified is too small. If the fan is driven using the duty cycle to be verified, it may cause problems such as the fan failing to start, stopping after starting, motor stalling, motor burnout, and abnormal noise caused by fan resonance, affecting the graphics card's heat dissipation performance, the fan's lifespan, and the user experience. Therefore, when the duty cycle to be verified is less than the minimum duty cycle, this application can directly use the minimum duty cycle as the target duty cycle to avoid problems caused by an excessively small duty cycle value.

[0089] When the duty cycle to be verified is greater than the maximum duty cycle, it indicates that the duty cycle to be verified is too large. If this duty cycle to be verified is used, the fan speed may be too high, which will not only generate more noise, but may also increase fan wear. Therefore, when the duty cycle to be verified is greater than the maximum duty cycle, this application can directly use the maximum duty cycle as the target duty cycle to ensure that the fan operates within a safe and reasonable speed range.

[0090] When the duty cycle to be verified is between the minimum and maximum duty cycles, it indicates that the duty cycle to be verified is reasonable and can be directly used as the target duty cycle. Through this verification mechanism, the duty cycle of the fan drive signal can always be within a reasonable range, further improving the stability and reliability of fan control and better ensuring the heat dissipation effect of the graphics card.

[0091] It is understood that the minimum and maximum duty cycles of this application can be flexibly adjusted according to the heat dissipation requirements of different graphics cards and the performance characteristics of the fans, so that the fan control device can be adapted to more different types of graphics cards and fans. This application does not impose any specific restrictions on this.

[0092] In some embodiments, determining the target fan speed based on the actual operating temperature includes:

[0093] A target curve is determined from multiple temperature-speed-rotation curves; wherein, the multiple temperature-speed-rotation curves are preset by the user, and the temperature-speed-rotation curves are used to describe the correspondence between the operating temperature of the graphics card and the fan speed; the target curve is preset by the user.

[0094] The target rotational speed is determined based on the actual operating temperature and the target curve.

[0095] In this embodiment, the user can set multiple temperature-speed curves according to actual application needs to meet the usage requirements in different scenarios. For example, the first temperature-speed curve has the advantage of low noise, the second temperature-speed curve has the advantage of balancing heat dissipation and noise, and the third temperature-speed curve has the best heat dissipation effect. The user can determine the target curve from the preset multiple temperature-speed curves according to their current usage needs, and control the fan speed according to the relationship shown by the target curve.

[0096] During the fan speed control process, this application can determine the fan speed corresponding to the actual operating temperature of the graphics card based on the target curve selected by the user and the correspondence between the graphics card temperature and the fan speed set by the user, thereby obtaining the target fan speed.

[0097] In this way, on the one hand, users can flexibly choose the appropriate temperature-speed curve to control the fan speed according to their own usage scenarios and needs, so that the fan speed can better match the working state of the graphics card. On the other hand, this user-configurable temperature-speed curve greatly improves the flexibility and personalization of fan control, adapting to the different requirements of different users for graphics card heat dissipation and noise reduction.

[0098] In some embodiments, such as Figure 2 As shown, this application provides a fan control method, which may include S202, S204, S206, S208 and S210.

[0099] S202: Collect the actual operating temperature of the graphics card and determine the target fan speed based on the actual operating temperature.

[0100] For details regarding this step, please refer to the description of step S102 above; this application will not repeat them here.

[0101] S204: Determine the initial duty cycle based on the target rotational speed, and adjust the signal duty cycle of the fan drive signal to the initial duty cycle.

[0102] In this step, given a target rotational speed, this application can determine the initial duty cycle based on the target rotational speed and adjust the signal duty cycle of the fan drive signal from the original duty cycle to the initial duty cycle. It can be understood that the initial duty cycle can be the signal duty cycle corresponding to the target rotational speed, and this application can determine the initial duty cycle in various ways. For example, a correspondence between rotational speed and duty cycle can be preset, and the initial duty cycle can be obtained by looking up this correspondence.

[0103] S206: In response to the arrival of the current adjustment cycle, the actual speed of the fan is collected, and the speed difference of the current adjustment cycle is calculated based on the actual speed and the target speed.

[0104] After adjusting the duty cycle of the fan drive signal to the initial duty cycle, considering factors such as individual fan differences, usage environment differences, and equipment aging, the actual fan speed may not necessarily equal the target speed. Therefore, this application can precisely adjust the fan speed through multiple adjustment cycles, so that the actual fan speed can approach the target speed. In each adjustment cycle, this application can execute steps S206 to S210. The relevant explanation of this step can be found in the description of step S104 above, and will not be repeated here.

[0105] S208: Determine the duty cycle adjustment range of the current adjustment cycle based on the speed difference of the current adjustment cycle; wherein the duty cycle adjustment range is positively correlated with the speed difference.

[0106] For details regarding this step, please refer to the description of step S106 above; this application will not repeat them here.

[0107] S210: Calculate the target duty cycle based on the duty cycle adjustment range of the current adjustment period and the current duty cycle of the fan drive signal, and adjust the signal duty cycle of the fan drive signal to the target duty cycle within the current adjustment period.

[0108] For details regarding this step, please refer to the description of step S108 above; this application will not repeat them here.

[0109] This embodiment first adjusts the duty cycle of the fan drive signal to the initial duty cycle corresponding to the target speed, and then precisely adjusts the actual fan speed through multiple adjustment cycles, which can shorten the adjustment time of the fan speed and improve the response speed.

[0110] The fan control device provided in the embodiments of this application is described below. The fan control device described below can be referred to in correspondence with the fan control method described above.

[0111] In some embodiments, such as Figure 3 As shown, this application provides a fan control device 300, including:

[0112] The target speed determination module 302 is used to collect the actual operating temperature of the graphics card and determine the target speed of the fan based on the actual operating temperature.

[0113] The speed difference calculation module 304 is used to collect the actual speed of the fan in response to the arrival of the current adjustment cycle, and calculate the speed difference of the current adjustment cycle based on the actual speed and the target speed.

[0114] The duty cycle adjustment range calculation module 306 is used to determine the duty cycle adjustment range of the current adjustment cycle based on the speed difference of the current adjustment cycle; wherein, the duty cycle adjustment range is positively correlated with the speed difference.

[0115] The duty cycle adjustment module 308 is used to calculate the target duty cycle based on the duty cycle adjustment range of the current adjustment period and the current duty cycle of the fan drive signal, and adjust the signal duty cycle of the fan drive signal to the target duty cycle within the current adjustment period.

[0116] In some embodiments, the duty cycle adjustment range calculation module 306 of this application includes:

[0117] The first amplitude determination unit is used to determine the duty cycle adjustment amplitude of the current adjustment cycle based on the speed difference of the current adjustment cycle and a preset correspondence between multiple difference amplitudes; wherein, the correspondence between the difference amplitudes is used to describe the correspondence between the value range of the speed difference and the duty cycle adjustment amplitude.

[0118] In some embodiments, the duty cycle adjustment range calculation module 306 of this application includes:

[0119] The initial amplitude acquisition unit is used to take the speed difference of the current adjustment cycle as the input data of the preset PID algorithm and obtain the initial duty cycle adjustment amplitude output by the preset PID algorithm.

[0120] The second amplitude determination unit is used to determine the duty cycle adjustment amplitude of the current adjustment period based on the initial duty cycle adjustment amplitude.

[0121] In some embodiments, the second amplitude determination unit of this application includes:

[0122] The dynamic compensation calculation unit is used to calculate the dynamic compensation amount based on the speed difference of the current adjustment cycle and the preset weighting coefficient.

[0123] The dynamic compensation unit is used to take the sum of the initial duty cycle adjustment range and the dynamic compensation amount as the duty cycle adjustment range of the current adjustment period.

[0124] In some embodiments, the fan control device 300 of this application further includes:

[0125] The initial duty cycle adjustment module is used to determine the initial duty cycle based on the target speed of the fan after the step of determining the target speed of the fan based on the actual operating temperature, and the signal duty cycle of the fan drive signal is adjusted to the initial duty cycle.

[0126] In some embodiments, the duty cycle adjustment module 308 of this application includes:

[0127] The summation unit is used to calculate the sum of the duty cycle adjustment magnitude of the current adjustment cycle and the current duty cycle of the fan drive signal to obtain the duty cycle to be verified.

[0128] The first target duty cycle determination unit is used to determine the minimum duty cycle as the target duty cycle if the duty cycle to be verified is less than the preset minimum duty cycle.

[0129] The second target duty cycle determination unit is used to determine the target duty cycle if the duty cycle to be verified is greater than the preset maximum duty cycle.

[0130] The third target duty cycle determination unit is used to determine the target duty cycle if the duty cycle to be verified is greater than or equal to the minimum duty cycle and less than or equal to the maximum duty cycle.

[0131] In some embodiments, the target rotation speed determination module 302 of this application includes:

[0132] The target curve determination unit is used to determine a target curve from multiple temperature-speed curves; wherein, the multiple temperature-speed curves are preset by the user, and the temperature-speed curves are used to describe the correspondence between the operating temperature of the graphics card and the fan speed; the target curve is preset by the user.

[0133] The target speed determination unit is used to determine the target speed based on the actual operating temperature and the target curve.

[0134] In one embodiment, this application also provides a storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the fan control method as described in any embodiment.

[0135] In some embodiments, such as Figure 4 As shown, this application provides a control device 400, which can be used to connect a graphics card 500 and a fan 600 respectively. For example, the control device 400 can connect to the GPU of the graphics card 500 via an I2C (Inter-Integrated Circuit, two-wire serial bus) interface and read the actual operating temperature of the GPU via I2C.

[0136] The control device 400 includes a processor and a memory. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, they perform the steps of the fan 600 control method described in any of the above embodiments.

[0137] In some existing solutions, the GPU of graphics card 500 can directly control the speed of fan 600. However, because the BIOS (Basic Input Output System) limits the maximum speed of fan 600, the GPU cannot drive fan 600 with a 100% duty cycle drive signal, thus limiting the upper limit of fan 600's speed. This application uses a control device 400 independent of graphics card 500 to control the speed of fan 600, thereby overcoming the BIOS's speed limit and allowing fan 600 to be driven with a 100% duty cycle drive signal, enabling fan 600 to reach speeds of over 3500 RPM. Furthermore, under the architecture of this application, graphics card 500 does not need to continuously maintain the speed control program, reducing the consumption of system resources.

[0138] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. In this document, "a," "an," "the," "the," and "its" may also include plural forms unless the context clearly indicates otherwise. "Multiple" refers to at least two, such as 2, 3, 5, or 8, etc. "And / or" includes any and all combinations of the related listed items.

[0139] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.

[0140] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A fan control method characterized by, include: Collect the actual operating temperature of the graphics card and determine the target fan speed based on the actual operating temperature; In response to the arrival of the current adjustment cycle, the actual speed of the fan is collected, and the speed difference of the current adjustment cycle is calculated based on the actual speed and the target speed. The duty cycle adjustment range for the current adjustment cycle is determined based on the speed difference in the current adjustment cycle; wherein the duty cycle adjustment range is positively correlated with the speed difference. The target duty cycle is calculated based on the duty cycle adjustment range of the current adjustment period and the current duty cycle of the fan drive signal, and the signal duty cycle of the fan drive signal is adjusted to the target duty cycle within the current adjustment period.

2. The method of claim 1, wherein, The step of determining the duty cycle adjustment range for the current adjustment period based on the speed difference of the current adjustment period includes: The duty cycle adjustment range for the current adjustment period is determined based on the speed difference in the current adjustment period and a preset correspondence between multiple difference ranges; wherein, the correspondence between the difference ranges is used to describe the correspondence between the range of speed difference values ​​and the duty cycle adjustment range.

3. The method according to claim 1, characterized in that, The step of determining the duty cycle adjustment range for the current adjustment period based on the speed difference of the current adjustment period includes: The speed difference of the current adjustment cycle is used as the input data of the preset PID algorithm, and the initial duty cycle adjustment range output by the preset PID algorithm is obtained. The duty cycle adjustment range for the current adjustment period is determined based on the initial duty cycle adjustment range.

4. The method according to claim 3, characterized in that, The step of determining the duty cycle adjustment range for the current adjustment period based on the initial duty cycle adjustment range includes: The dynamic compensation amount is calculated based on the speed difference of the current adjustment cycle and the preset weighting coefficient. The sum of the initial duty cycle adjustment range and the dynamic compensation amount is taken as the duty cycle adjustment range for the current adjustment period.

5. The method according to claim 1, characterized in that, After determining the target fan speed based on the actual operating temperature, the method further includes: The initial duty cycle is determined based on the target rotational speed, and the signal duty cycle of the fan drive signal is adjusted to the initial duty cycle.

6. The method according to any one of claims 1 to 5, characterized in that, The step of calculating the target duty cycle based on the duty cycle adjustment magnitude of the current adjustment period and the current duty cycle of the fan drive signal includes: Calculate the sum of the duty cycle adjustment range of the current adjustment cycle and the current duty cycle of the fan drive signal to obtain the duty cycle to be verified; If the duty cycle to be verified is less than the preset minimum duty cycle, then the minimum duty cycle is taken as the target duty cycle; If the duty cycle to be verified is greater than the preset maximum duty cycle, then the maximum duty cycle is taken as the target duty cycle; If the duty cycle to be verified is greater than or equal to the minimum duty cycle and less than or equal to the maximum duty cycle, then the duty cycle to be verified is taken as the target duty cycle.

7. The method according to any one of claims 1 to 5, characterized in that, Determining the target fan speed based on the actual operating temperature includes: A target curve is determined from multiple temperature-speed-rotation curves; wherein, the multiple temperature-speed-rotation curves are preset by the user, and the temperature-speed-rotation curves are used to describe the correspondence between the graphics card's operating temperature and the fan speed; the target curve is preset by the user. The target rotational speed is determined based on the actual operating temperature and the target curve.

8. A fan control device, characterized in that, include: The target speed determination module is used to collect the actual operating temperature of the graphics card and determine the target speed of the fan based on the actual operating temperature. The speed difference calculation module is used to collect the actual speed of the fan in response to the arrival of the current adjustment cycle, and calculate the speed difference of the current adjustment cycle based on the actual speed and the target speed. The duty cycle adjustment range calculation module is used to determine the duty cycle adjustment range of the current adjustment cycle based on the speed difference of the current adjustment cycle; wherein, the duty cycle adjustment range is positively correlated with the speed difference; The duty cycle adjustment module is used to calculate the target duty cycle based on the duty cycle adjustment range of the current adjustment period and the current duty cycle of the fan drive signal, and to adjust the signal duty cycle of the fan drive signal to the target duty cycle within the current adjustment period.

9. A storage medium, characterized in that, The storage medium stores computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the fan control method as described in any one of claims 1 to 7.

10. A control device, characterized in that, The control device is used to connect the graphics card and the fan respectively; The control device includes a processor and a memory, the memory storing computer-readable instructions; when the computer-readable instructions are executed by the processor, they perform the steps of the fan control method as described in any one of claims 1 to 7.