TWI726175B - Fan control method - Google Patents

Fan control method Download PDF

Info

Publication number
TWI726175B
TWI726175B TW106142610A TW106142610A TWI726175B TW I726175 B TWI726175 B TW I726175B TW 106142610 A TW106142610 A TW 106142610A TW 106142610 A TW106142610 A TW 106142610A TW I726175 B TWI726175 B TW I726175B
Authority
TW
Taiwan
Prior art keywords
value
temperature
pulse width
temperature difference
width modulation
Prior art date
Application number
TW106142610A
Other languages
Chinese (zh)
Other versions
TW201925631A (en
Inventor
陳釗
張連飛
薛冬銳
Original Assignee
英業達股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW106142610A priority Critical patent/TWI726175B/en
Publication of TW201925631A publication Critical patent/TW201925631A/en
Application granted granted Critical
Publication of TWI726175B publication Critical patent/TWI726175B/en

Links

Images

Landscapes

  • Control Of Electric Motors In General (AREA)
  • Control Of Positive-Displacement Air Blowers (AREA)

Abstract

A fan control method comprises: determining whether a processor power load of a processor is larger a load threshold; determining whether a processor temperature of a processor is larger than a temperature threshold; choosing a set of PID parameter according to the aforementioned determination wherein the set of PID parameter includes a proportion coefficient and a corresponding integration coefficient; obtaining a temperature difference of the processor; generating a first pulse width modulation value according to the temperature value and the set of PID parameter; receiving an operation temperature of at least one electronic component on a mainboard to generate a plurality of second pulse width modulation value, and comparing the first pulse width modulation value and the plurality of second pulse width modulation value to obtain the maximum for generating a fan control signal to control the fan.

Description

風扇控制方法 Fan control method

本發明係關於一種風扇控制方法,特別是一種適應性的風扇控制方法。 The present invention relates to a fan control method, especially an adaptive fan control method.

傳統風扇控速策略常採用一般的比例積分微分(proportion integration differentiation,PID)控速或是線性控速。但是,一般的比例積分微分控速在系統元件功耗變化劇烈的時候不能即時地響應,容易造成元件瞬間溫度過高;而對於線性控速來說,線性控速這種控制方式的適用性較差,且容易浪費功耗。 Traditional fan speed control strategies often use general proportional integration differentiation (PID) speed control or linear speed control. However, the general proportional-integral-differential speed control cannot respond immediately when the power consumption of the system components changes drastically, which will easily cause the components to be overheated at an instant. For linear speed control, the applicability of linear speed control is poor. , And it is easy to waste power consumption.

本發明在於提供一種風扇控制方法,以克服以往的比例積分微分控速與線性控速的缺點。 The present invention is to provide a fan control method to overcome the shortcomings of the conventional proportional-integral-differential speed control and linear speed control.

本發明揭露了一種風扇控制方法。所述的風扇控制方法適用於一主機板。該主機板設置有一處理器且電性連接一風扇以對該主機板進行散熱。此風扇控制方法包括:判斷該處理器的一處理器功率負載值是否大於一負載門檻值,並據以產生一負載判斷結果;判斷該處理器的一處理器溫度是否不大於於一溫度門檻值,並據以產生一溫度判斷結果;依據該負載判斷結果與該溫度判斷結果對應選取一組PID係數,該組PID係數包括一比例係數與一對應的積分係數;獲取該處理器的一溫差值,並依據該溫差值與該組PID係數產生一第一脈波寬度調變值;以及接收該主機板上的至少一電子元件的一工作溫度計算產生複數個第二脈波寬度調變值,將該第一脈波寬度調變值與該複數個第二脈波寬度調變值對比並獲取其中之最大值以產生一風扇控制信號以控制該風扇運行。 The invention discloses a fan control method. The described fan control method is suitable for a motherboard. The motherboard is provided with a processor and is electrically connected to a fan to dissipate heat from the motherboard. The fan control method includes: determining whether a processor power load value of the processor is greater than a load threshold value, and generating a load determination result accordingly; determining whether a processor temperature of the processor is not greater than a temperature threshold value , And generate a temperature judgment result accordingly; select a set of PID coefficients corresponding to the load judgment result and the temperature judgment result, the set of PID coefficients including a proportional coefficient and a corresponding integral coefficient; obtain a temperature difference value of the processor , And generate a first pulse width modulation value according to the temperature difference value and the set of PID coefficients; and receive a working temperature of at least one electronic component on the motherboard to calculate and generate a plurality of second pulse width modulation values, The first pulse width modulation value is compared with the plurality of second pulse width modulation values and the maximum value is obtained to generate a fan control signal to control the operation of the fan.

以上之關於本揭露內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。 The above description of the disclosure and the following description of the implementation manners are used to demonstrate and explain the spirit and principle of the present invention, and to provide a further explanation of the patent application scope of the present invention.

圖1係為根據本發明一實施例所繪示之風扇控制方法的步驟流程圖。 FIG. 1 is a flowchart of the steps of a fan control method according to an embodiment of the present invention.

圖2係為根據本發明另一實施例所繪示之風扇控制方法的部分步驟的步驟流程圖。 FIG. 2 is a step flow chart of some steps of a fan control method according to another embodiment of the present invention.

圖3係為根據本發明另一實施例所繪示之風扇控制方法的部分步驟的步驟流程圖。 FIG. 3 is a step-by-step flowchart of some steps of a fan control method according to another embodiment of the present invention.

圖4係為根據本發明另一實施例所繪示之風扇控制方法的部分步驟的步驟流程圖。 FIG. 4 is a step flow chart of some steps of a fan control method according to another embodiment of the present invention.

圖5係為根據本發明另一實施例所繪示之風扇控制方法的部分步驟的步驟流程圖。 FIG. 5 is a step flow chart of some steps of a fan control method according to another embodiment of the present invention.

圖6A係為根據本發明一實施例所繪示之風扇控制方法的部份步驟的方法流程圖。 FIG. 6A is a method flowchart of some steps of a fan control method according to an embodiment of the present invention.

圖6B係為根據本發明一實施例所繪示之風扇控制方法的另一部分步驟的方法流程圖。 6B is a method flowchart of another part of the steps of the fan control method according to an embodiment of the present invention.

圖6C係為根據本發明一實施例所繪示之風扇控制方法的又一部份的方法流程圖。 FIG. 6C is a method flowchart of another part of the fan control method according to an embodiment of the present invention.

圖7A係為根據本發明一實施例所繪示之風扇控制方法的實驗結果示意圖。 FIG. 7A is a schematic diagram of experimental results of a fan control method according to an embodiment of the present invention.

圖7B係為根據一對照實施例所繪示之風扇控制方法的實驗結果示意圖。 FIG. 7B is a schematic diagram of experimental results of the fan control method according to a comparative embodiment.

圖7C係為根據本發明另一實施例所繪示之風扇控制方法的實驗結果示意圖。 FIG. 7C is a schematic diagram of experimental results of the fan control method according to another embodiment of the present invention.

圖7D係為根據另一對照實施例所繪示之風扇控制方法的實驗結果示意圖。 FIG. 7D is a schematic diagram of experimental results of the fan control method according to another comparative embodiment.

圖7E係為根據本發明更一實施例所繪示之風扇控制方法的實驗結果示意圖。 FIG. 7E is a schematic diagram of experimental results of the fan control method according to another embodiment of the present invention.

圖7F係為根據更一對照實施例所繪示之風扇控制方法的實驗結果示意圖。 FIG. 7F is a schematic diagram of the experimental results of the fan control method according to a further comparative embodiment.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。 The detailed features and advantages of the present invention will be described in detail in the following embodiments. The content is sufficient to enable anyone familiar with the relevant art to understand the technical content of the present invention and implement it accordingly, and according to the content disclosed in this specification, the scope of patent application and the drawings. Anyone who is familiar with relevant skills can easily understand the purpose and advantages of the present invention. The following examples further illustrate the viewpoints of the present invention in detail, but do not limit the scope of the present invention by any viewpoint.

請參照圖1,圖1係為根據本發明一實施例所繪示之風扇控制方法的步驟流程圖。本發明提供了一種風扇控制方法,此風扇控制方法適用於一主機板。此主機板設置有一處理器,且此主機板電性連接一風扇以對主機板進行散熱。本發明所提供的風扇控制方法例如可用於主機板上的控制晶片,但不以此為限。如圖1所示,此風扇控制方法包括:於步驟S101中,判斷該處理器的一處理器功率負載值是否大於一負載門檻值,並據以產生一負載判斷結果;於步驟S103中,判斷該處理器的一處理器溫度是否不大於一溫度門檻值,並據以產生一溫度判斷結果;於步驟S105中,依據該負載判斷結果與該溫度判斷結果對應選取一組PID係數,該組PID係數至少包括一比例係數與一對應的積分係數;於步驟S107中,獲取該處理器的一溫差值,並依據該溫差值與該組PID係數產生一第一脈波寬度調變值;於步驟S109中,接收該主機板上的至少一電子元件的一工作 溫度計算產生複數個第二脈波寬度調變值,將該第一脈波寬度調變值與該複數個第二脈波寬度調變值進行比對,並獲取該第一脈波寬度調變值與該複數個第二脈波寬度調變值中之最大值以產生一風扇控制信號以控制該風扇運行。 Please refer to FIG. 1. FIG. 1 is a flowchart of the steps of a fan control method according to an embodiment of the present invention. The present invention provides a fan control method, which is suitable for a motherboard. The motherboard is provided with a processor, and the motherboard is electrically connected with a fan to dissipate the motherboard. The fan control method provided by the present invention can be used for, for example, a control chip on a motherboard, but is not limited to this. As shown in FIG. 1, the fan control method includes: in step S101, determining whether a processor power load value of the processor is greater than a load threshold value, and generating a load determination result accordingly; in step S103, determining Whether a processor temperature of the processor is not greater than a temperature threshold, and a temperature judgment result is generated accordingly; in step S105, a group of PID coefficients is selected according to the load judgment result and the temperature judgment result, and the group PID The coefficient includes at least a proportional coefficient and a corresponding integral coefficient; in step S107, a temperature difference value of the processor is obtained, and a first pulse width modulation value is generated according to the temperature difference value and the set of PID coefficients; in step In S109, receiving a job of at least one electronic component on the motherboard A plurality of second pulse width modulation values are generated by temperature calculation, the first pulse width modulation value is compared with the plurality of second pulse width modulation values, and the first pulse width modulation value is obtained The maximum value of the second pulse width modulation value and the plurality of second pulse width modulation values is used to generate a fan control signal to control the operation of the fan.

除了上述的步驟之外,本發明所提供的風扇控制方法更包括其他的步驟。請一併參照圖2至圖5,圖2至圖5係分別為根據本發明的四個實施例所繪示之風扇控制方法的部分步驟的步驟流程圖。 In addition to the above steps, the fan control method provided by the present invention further includes other steps. Please refer to FIGS. 2 to 5 altogether. FIGS. 2 to 5 are respectively a step-by-step flowchart of partial steps of a fan control method according to four embodiments of the present invention.

如圖2所示,在步驟S201中,當負載判斷結果為否且該溫度判斷結果為是時,依據對應選取的該組PID係數設定該比例係數為第一常數值,並設定該積分係數為第一積分值;在步驟S203中,當該負載判斷結果為否且該溫度判斷結果為否時,依據對應選取的該組PID係數設定該比例係數為第二常數值,並設定該積分係數為第一積分值,其中,該第一常數值與該第二常數值為不同數值。 As shown in FIG. 2, in step S201, when the load judgment result is no and the temperature judgment result is yes, the proportional coefficient is set as the first constant value according to the corresponding selected group of PID coefficients, and the integral coefficient is set as The first integral value; in step S203, when the load judgment result is no and the temperature judgment result is no, the proportional coefficient is set to the second constant value according to the corresponding selected group of PID coefficients, and the integral coefficient is set to The first integral value, wherein the first constant value and the second constant value are different values.

如圖3所示,在步驟S301中,判斷該溫差值是否小於一溫差門檻值;在步驟S303中,當負載判斷結果為否且該溫度判斷結果為是時,該溫差門檻值設定為一第一溫差門檻值;在步驟S305中,當該溫差值不小於該第一溫差門檻值時,調整該溫差值的數值為該第一溫差門檻值;在步驟S307中,當該負載判斷結果為否且該溫度判斷結果為否時,該溫差門檻值設定為一第二溫差門檻值;在步驟S309中,當該溫差值不小於該第二溫差門檻值時,調整該溫差值的數值為該第二溫差門檻值;在步驟S311中,依據調整後的該溫差值與該組PID係數產生該第一脈波寬度調變值。 As shown in FIG. 3, in step S301, it is determined whether the temperature difference is less than a temperature difference threshold; in step S303, when the load judgment result is no and the temperature judgment result is yes, the temperature difference threshold is set to a first A temperature difference threshold value; in step S305, when the temperature difference value is not less than the first temperature difference threshold value, adjust the value of the temperature difference value to the first temperature difference threshold value; in step S307, when the load judgment result is no And when the temperature judgment result is no, the temperature difference threshold value is set as a second temperature difference threshold value; in step S309, when the temperature difference value is not less than the second temperature difference threshold value, the value of the temperature difference value is adjusted to the first temperature difference value. Two temperature difference threshold values; in step S311, the first pulse width modulation value is generated according to the adjusted temperature difference value and the set of PID coefficients.

如圖4所示,在步驟S401中,依據該溫差值與該組PID係數產生一佔空比(duty cycle)增加量,該佔空比增加量關聯於該風扇控制信號的佔空比;在步驟S403中,依據於一設定時間內於處理器負載值的至少一歷史數值判斷該處理器負載值的變換趨勢是否呈漸增趨勢;在步驟 S405中,當該變換趨勢為一漸增趨勢且對應該設定時間內產生的該佔空比增加量存在負值時,去除複數個該佔空比增加量中的負值;在步驟S407中,依據去除負值的該佔空比增加量產生該第一脈波寬度調變值。 As shown in FIG. 4, in step S401, a duty cycle increase is generated according to the temperature difference value and the set of PID coefficients, and the duty cycle increase is related to the duty cycle of the fan control signal; In step S403, it is determined whether the changing trend of the processor load value shows a gradual increase trend according to at least one historical value of the processor load value within a set time; In S405, when the transformation trend is an increasing trend and there is a negative value corresponding to the increase in the duty cycle generated within the set time, the negative values in the increase in the duty cycle are removed; in step S407, The first pulse width modulation value is generated according to the increase in the duty cycle after the negative value is removed.

如圖5所示,在步驟S501中,依據該溫差值與該組PID係數產生一當前脈波寬度調變信號;在步驟S503中,獲取該風扇控制信號的至少一歷史控制信號,將該至少一歷史控制信號與該當前脈波寬度調變信號進行平均以產生該第一脈波寬度調變信號。 As shown in FIG. 5, in step S501, a current pulse width modulation signal is generated according to the temperature difference value and the set of PID coefficients; in step S503, at least one historical control signal of the fan control signal is acquired, and the at least A historical control signal and the current pulse width modulation signal are averaged to generate the first pulse width modulation signal.

請一併參照圖6A至6C以更進一步地說明風扇控制方法,圖6至圖6C係為根據本發明一實施例所繪示之風扇控制方法的方法流程圖。於實務上,主機板可能設置有一或多個處理器,在圖6A至圖6C所示的實施例中係舉主機板上具有二處理器為例進行說明。 Please also refer to FIGS. 6A to 6C to further explain the fan control method. FIGS. 6 to 6C are flowcharts of the fan control method according to an embodiment of the present invention. In practice, the motherboard may be provided with one or more processors. In the embodiments shown in FIGS. 6A to 6C, two processors on the motherboard are taken as an example for description.

於步驟S601中,係取得處理器的各項相關參數,例如處理器當前的處理器功率負載值、處理器的額定功率以及處理器的溫度值,但不以此為限。 In step S601, various relevant parameters of the processor are obtained, such as the current processor power load value of the processor, the rated power of the processor, and the temperature value of the processor, but not limited to this.

在步驟S603中,係比較處理器功率負載值是否大於負載門檻值。所述的負載門檻值例如為處理器的額定功率乘上一倍率。在此實施例中,負載門檻值例如微處理器的額定功率乘上0.92。當判斷所述的二處理器其中之一的處理器功率負載值不大於負載門檻值時,進行步驟S605;反之,當判斷所述的二處理器其中之一的處理器功率負載值大於負載門檻值時,進行步驟S627。 In step S603, it is compared whether the processor power load value is greater than the load threshold value. The load threshold is, for example, the rated power of the processor multiplied by a factor. In this embodiment, the load threshold value is, for example, the rated power of the microprocessor multiplied by 0.92. When it is determined that the processor power load value of one of the two processors is not greater than the load threshold value, proceed to step S605; otherwise, when it is determined that the processor power load value of one of the two processors is greater than the load threshold value When the value is set, step S627 is performed.

在步驟S605中更判斷處理器溫度是否小於溫度門檻值。溫度門檻值例如為處理器的工作溫度上限加上一補償值或是扣除一補償值。在此實施例中,所述的溫度門檻值為處理器的工作溫度上限減5度(攝氏,Celsius)。當判斷處理器溫度小於溫度門檻值時,進行步驟S607。而當判斷處理器溫度不小於溫度門檻值時,進行步驟S609。 In step S605, it is further determined whether the processor temperature is less than the temperature threshold. The temperature threshold is, for example, the upper limit of the working temperature of the processor plus a compensation value or subtracting a compensation value. In this embodiment, the temperature threshold is the upper limit of the working temperature of the processor minus 5 degrees (Celsius). When it is determined that the processor temperature is less than the temperature threshold, step S607 is performed. When it is determined that the processor temperature is not less than the temperature threshold, step S609 is performed.

在步驟S607中,係判斷處理器的一溫差值是否小於一第一 參考值。於實務上,溫差值可以是當前的處理器溫度與一歷史溫度的差值。而所述的歷史溫度例如是一預設時間前的處理器溫度。在此實施例中,溫差值例如為當前的處理器溫度與1秒前的處理器溫度的差值,而第一參考值例如為5度(攝氏)。當判斷處理器的溫差值小於第一參考值時,進行步驟S611。當判斷處理器的溫差值不小於第一參考值時,進行步驟S613。 In step S607, it is determined whether a temperature difference value of the processor is less than a first Reference. In practice, the temperature difference may be the difference between the current processor temperature and a historical temperature. The historical temperature is, for example, the processor temperature before a preset time. In this embodiment, the temperature difference value is, for example, the difference between the current processor temperature and the processor temperature 1 second ago, and the first reference value is, for example, 5 degrees (Celsius). When it is determined that the temperature difference value of the processor is smaller than the first reference value, step S611 is performed. When it is determined that the temperature difference value of the processor is not less than the first reference value, step S613 is performed.

在步驟S609中,係判斷所述的處理器的一溫差值是否小於一第二參考值。溫差值的相關細節係如前述,於此不再贅述。在此實施例中,第二參考值例如為10度。當判斷處理器的溫差值小於第二參考值時,進行步驟S615。當判斷處理器的溫差值不小於第二參考值時,進行步驟S617。 In step S609, it is determined whether a temperature difference value of the processor is smaller than a second reference value. The relevant details of the temperature difference value are as described above, and will not be repeated here. In this embodiment, the second reference value is, for example, 10 degrees. When it is determined that the temperature difference value of the processor is smaller than the second reference value, step S615 is performed. When it is determined that the temperature difference value of the processor is not less than the second reference value, step S617 is performed.

在步驟S611中,係依據對應選取的PID係數設定比例係數為第一常數值,並設定積分係數為第一積分值。在此實施例中,第一常數值為3.5,第一積分值為0.5。 In step S611, the proportional coefficient is set as the first constant value according to the correspondingly selected PID coefficient, and the integral coefficient is set as the first integral value. In this embodiment, the first constant value is 3.5, and the first integral value is 0.5.

在步驟S613中,係將溫差值調整為第一溫差門檻值。 In step S613, the temperature difference value is adjusted to the first temperature difference threshold value.

在步驟S615中,依據對應選取的PID係數設定比例係數為第二常數值,並設定該積分係數為第一積分值,其中,該第一常數值與該第二常數值為不同數值。在此實施例中,第二常數值為2。 In step S615, the proportional coefficient is set as a second constant value according to the correspondingly selected PID coefficient, and the integral coefficient is set as a first integral value, wherein the first constant value and the second constant value are different values. In this embodiment, the second constant value is 2.

在步驟S617中,係將溫差值調整為第二溫差門檻值。 In step S617, the temperature difference value is adjusted to the second temperature difference threshold value.

在步驟S619中,係依據溫差值與所選擇的PID參數產生當前脈波寬度調變值。 In step S619, the current pulse width modulation value is generated according to the temperature difference value and the selected PID parameter.

在步驟S621中,係將至少一歷史脈波寬度調變值與該當前脈波寬度調變值進行平均以產生第一脈波寬度調變值。所述的歷史脈波寬度調變值例如為之前算出的當前脈波寬度調變值。在此實施例係舉將當前脈波寬度調變值與兩個歷史脈波寬度調變值進行平均,但是進行平均運算所採用的歷史脈波寬度調變值的數量並不以此為限。 In step S621, at least one historical pulse width modulation value and the current pulse width modulation value are averaged to generate a first pulse width modulation value. The historical pulse width modulation value is, for example, the current pulse width modulation value calculated before. In this embodiment, the current pulse width modulation value and two historical pulse width modulation values are averaged, but the number of historical pulse width modulation values used for averaging is not limited to this.

在步驟S623中,係將第一脈波寬度調變值與多個第二脈波 寬度調變值對比並獲取其中之最大值以產生一風扇控制信號以控制風扇運行。所述的各第二脈波寬度調變值例如分別關聯於主機板上除了處理器以外的至少一電子元件的電源相對應的脈波寬度調變值。所述的至少一電子元件例如為NVMe介面、記憶體或是硬碟,但不以此為限。 In step S623, the first pulse width modulation value is combined with a plurality of second pulse waves The width modulation value is compared and the maximum value is obtained to generate a fan control signal to control the operation of the fan. Each of the second pulse width modulation values is, for example, respectively associated with the pulse width modulation value corresponding to the power supply of at least one electronic component on the motherboard except the processor. The at least one electronic component is, for example, an NVMe interface, a memory, or a hard disk, but it is not limited to this.

當由步驟S623進入步驟S625中時,係輸出步驟S623中所選擇的脈波寬度調變值至電源模組以產生相應的脈波寬度調變信號以做為風扇控制信號。在一實施例中,所述的風扇控制信號為脈波寬度調變信號,所述的脈波寬度調變值例如為佔空比(duty cycle)增加量,此佔空比增加量關聯於風扇控制信號的佔空比。在一實施例中,更依據於一設定時間內於處理器負載值的至少一歷史數值判斷該處理器負載值的變換趨勢是否呈漸增趨勢。當該變換趨勢為一漸增趨勢且對應該設定時間內產生的該佔空比增加量存在負值時,去除複數個該佔空比增加量中的負值;以及依據去除負值的該佔空比增加量產生該第一脈波寬度調變值。在一實施態樣中,當處理器的耗能大於設定值時,將當下的處理器耗能(或是系統的總耗能)與前一時刻(例如為前一秒)取得的處理器耗能(或是系統的總耗能)進行比對。當下的處理器耗能(或是系統的總耗能)大於前一時刻取得的處理器耗能(或是系統的總耗能)時,即判斷為漸增趨勢,並進行相應的處理。 When entering step S625 from step S623, the pulse width modulation value selected in step S623 is output to the power module to generate a corresponding pulse width modulation signal as a fan control signal. In one embodiment, the fan control signal is a pulse width modulation signal, and the pulse width modulation value is, for example, a duty cycle increase, and the duty cycle increase is related to the fan The duty cycle of the control signal. In one embodiment, it is determined whether the changing trend of the processor load value shows an increasing trend based on at least one historical value of the processor load value within a set time. When the transformation trend is a gradually increasing trend and there is a negative value corresponding to the increase in the duty cycle generated within the set time, remove a plurality of negative values in the increase in the duty cycle; and remove the negative value according to the account The increase in the empty ratio generates the first pulse width modulation value. In an implementation aspect, when the energy consumption of the processor is greater than the set value, the current processor energy consumption (or the total energy consumption of the system) is compared with the processor consumption obtained at the previous moment (for example, the previous second). Energy (or the total energy consumption of the system) for comparison. When the current processor energy consumption (or the total energy consumption of the system) is greater than the processor energy consumption (or the total energy consumption of the system) obtained at the previous moment, it is judged as an increasing trend, and corresponding processing is performed.

請再回頭參照圖6A的步驟S603。如前述地,當在步驟S603中判斷所述的二處理器其中之一的處理器功率負載值大於負載門檻值時,進行步驟S627。 Please refer back to step S603 in FIG. 6A again. As mentioned above, when it is determined in step S603 that the processor power load value of one of the two processors is greater than the load threshold value, step S627 is performed.

請接著參照圖6B,在步驟S627中,係判斷處理器溫度是否小於溫度門檻值,相關細節係相仿於步驟S605,於此不再贅述。當於步驟S627中判斷處理器溫度小於溫度門檻值時,進行步驟S631。而當判斷處理器溫度不小於溫度門檻值時,進行步驟S629。 Please refer to FIG. 6B. In step S627, it is determined whether the processor temperature is less than the temperature threshold. The relevant details are similar to step S605, and will not be repeated here. When it is determined in step S627 that the processor temperature is less than the temperature threshold, step S631 is performed. When it is determined that the processor temperature is not less than the temperature threshold, step S629 is performed.

在步驟S629中,係依據對應選取的PID係數設定比例係數 為第三常數值,並設定積分係數為第一積分值。在此實施例中,第三常數值為2,但不以此為限。 In step S629, the proportional coefficient is set according to the corresponding selected PID coefficient Is the third constant value, and set the integral coefficient to the first integral value. In this embodiment, the third constant value is 2, but not limited to this.

在步驟S631中,係依據對應選取的PID係數設定比例係數為第四常數值,並設定積分係數為第一積分值。在此實施例中,第四常數值為6,但不以此為限。 In step S631, the proportional coefficient is set as the fourth constant value according to the correspondingly selected PID coefficient, and the integral coefficient is set as the first integral value. In this embodiment, the fourth constant value is 6, but not limited to this.

在步驟S633中,係依據溫差值與所選擇的PID參數產生當前脈波寬度調變值。 In step S633, the current pulse width modulation value is generated according to the temperature difference value and the selected PID parameter.

在步驟S635中,係將至少一歷史脈波寬度調變值與該當前脈波寬度調變值進行平均以產生第一脈波寬度調變值。相關細節係相仿於步驟S621,於此不再贅述。 In step S635, at least one historical pulse width modulation value and the current pulse width modulation value are averaged to generate a first pulse width modulation value. The relevant details are similar to step S621, and will not be repeated here.

在步驟S637中,係將第一脈波寬度調變值與多個第二脈波寬度調變值對比並獲取其中之最大值以產生一風扇控制信號以控制風扇運行。相關細節係相仿於步驟S623,於此不再贅述。 In step S637, the first pulse width modulation value is compared with a plurality of second pulse width modulation values and the maximum value is obtained to generate a fan control signal to control the operation of the fan. The relevant details are similar to step S623, and will not be repeated here.

當由步驟S637進入步驟S625中時,係輸出步驟S637中所選擇的脈波寬度調變值至電源模組以產生相應的脈波寬度調變信號以做為風扇控制信號。 When entering step S625 from step S637, the pulse width modulation value selected in step S637 is output to the power module to generate a corresponding pulse width modulation signal as a fan control signal.

在圖6C中更揭示了步驟S639與步驟S641。在步驟S639中係取得前述的主機板上除了處理器以外的至少一電子元件的工作溫度。於步驟S641中,係依據所述的至少一電子元件的工作溫度取得前述的第二脈波寬度調變值,以供步驟S623與步驟S637使用。 Steps S639 and S641 are further disclosed in FIG. 6C. In step S639, the operating temperature of at least one electronic component on the motherboard except the processor is obtained. In step S641, the aforementioned second pulse width modulation value is obtained according to the operating temperature of the at least one electronic component for use in step S623 and step S637.

請接著參照圖7A至圖7F,圖7A係為根據本發明一實施例所繪示之風扇控制方法的實驗結果示意圖,圖7B係為根據一對照實施例所繪示之風扇控制方法的實驗結果示意圖,圖7C係為根據本發明另一實施例所繪示之風扇控制方法的實驗結果示意圖,圖7D係為根據另一對照實施例所繪示之風扇控制方法的實驗結果示意圖,圖7E係為根據本發明更一實施例所繪示之風扇控制方法的實驗結果示意圖,圖7F係為根據更一對 照實施例所繪示之風扇控制方法的實驗結果示意圖。在圖7A至圖7F中係以主機板上具有處理器A與處理器B為例進行實驗。 Please refer to FIGS. 7A to 7F. FIG. 7A is a schematic diagram of the experimental result of the fan control method according to an embodiment of the present invention, and FIG. 7B is the experimental result of the fan control method according to a comparative embodiment. Fig. 7C is a schematic diagram of the experimental results of the fan control method according to another embodiment of the present invention, Fig. 7D is a schematic diagram of the experimental results of the fan control method according to another comparative embodiment, and Fig. 7E is In order to illustrate the experimental results of the fan control method according to another embodiment of the present invention, FIG. 7F is based on a pair of A schematic diagram of the experimental results of the fan control method shown in the embodiment. In FIGS. 7A to 7F, experiments are carried out by taking the processor A and the processor B on the motherboard as an example.

圖7A與圖7B所對應的測項係為瞬間提升處理器的功耗,以瞬間提升處理器溫度至工作溫度上限,藉以測試本發明所提供之風扇控制方法與習知技術的效果差異。圖7A對應於本發明所提供的風扇控制方法,圖7B則對應於習知技術。由圖7B可見,在習知技術之下,處理器溫度的曲線在響應時間30至100之間有明顯的波峰,比穩定狀態溫度高出很多,並接近一系統警示溫度值Tjmax。所述的系統警示溫度值Tjmax例如為處理器能夠正常運作下的最高溫度,當處理器的溫度大於此系統警示溫度值Tjmax時,處理器會被強迫降頻以降低處理器溫度。同時,在圖7B中,風扇的響應時間較長,響應速度較慢,容易降溫不及而導致元件過熱。而如圖7A所示,在本發明所提供的風扇控制方法之下,處理器溫度的曲線無明顯波峰溫度,最終穩定在所欲的目標值,而且響應時間與響應速度遠優於習知技術。換句話說,本發明所提供的風扇控制方法在功耗劇烈變化時可以防止元件因為快速上升的溫度而過熱。 The measurement items corresponding to FIGS. 7A and 7B are to instantly increase the power consumption of the processor, so as to instantly increase the temperature of the processor to the upper limit of the operating temperature, so as to test the effect difference between the fan control method provided by the present invention and the conventional technology. FIG. 7A corresponds to the fan control method provided by the present invention, and FIG. 7B corresponds to the conventional technology. It can be seen from FIG. 7B that, under the conventional technology, the processor temperature curve has an obvious peak between the response time of 30 to 100, which is much higher than the steady state temperature, and is close to a system warning temperature T jmax . The system warning temperature value T jmax is, for example, the highest temperature at which the processor can operate normally. When the temperature of the processor is greater than the system warning temperature value T jmax , the processor will be forced to reduce the frequency to reduce the processor temperature. At the same time, in FIG. 7B, the response time of the fan is relatively long, and the response speed is relatively slow. As shown in FIG. 7A, under the fan control method provided by the present invention, the processor temperature curve has no obvious peak temperature, and finally stabilizes at the desired target value, and the response time and response speed are far superior to the conventional technology. . In other words, the fan control method provided by the present invention can prevent the component from overheating due to the rapidly rising temperature when the power consumption changes drastically.

圖7C與圖7D所對應的測項係為先提升一部分功耗再繼續緩慢提升處理器功耗,以漸進地提升處理器溫度。如圖7D可見,習知技術在功耗逐漸改變的情況下,響應速度緩慢,且處理器溫度的曲線有明顯的波峰。對比可見,本發明所提供的風扇控制方法所對應的處理器溫度的曲線的超調量(overshoot)小於習知技術的超調量,並能較快回應溫度變化。 The measurement items corresponding to FIG. 7C and FIG. 7D are to first increase a part of the power consumption and then continue to slowly increase the processor power consumption, so as to gradually increase the processor temperature. As shown in Fig. 7D, the conventional technology has a slow response speed when the power consumption gradually changes, and the processor temperature curve has obvious peaks. By comparison, it can be seen that the overshoot of the processor temperature curve corresponding to the fan control method provided by the present invention is smaller than the overshoot of the conventional technology, and can respond to temperature changes more quickly.

圖7E與圖7F則對應於低功耗測試。如圖7E與圖7F所示,在本發明所提供的風扇控制方法之下,處理器溫度的曲線的穩定時間更短,且超調量也更小。 Figure 7E and Figure 7F correspond to low power consumption tests. As shown in FIG. 7E and FIG. 7F, under the fan control method provided by the present invention, the stabilization time of the processor temperature curve is shorter, and the overshoot is also smaller.

綜合以上所述,本發明提供了一種風扇控制方法,依據第一脈波寬度調變值與第二脈波寬度調變值當中最大者來產生風扇控制信號。 其中,第一脈波寬度調變值關聯於處理器功率負載與處理器溫度,而第二脈波寬度調變值關聯於主機板上的其他電子元件的工作溫度。藉此,融合了PID控速與線性控速,而且兼具了PID控速與線性控速的優點且不具有反應過慢與浪費功耗的問題,相當具有實用性。 In summary, the present invention provides a fan control method, which generates a fan control signal according to the largest of the first pulse width modulation value and the second pulse width modulation value. Wherein, the first pulse width modulation value is related to the processor power load and the processor temperature, and the second pulse width modulation value is related to the operating temperature of other electronic components on the motherboard. In this way, PID speed control and linear speed control are combined, and the advantages of PID speed control and linear speed control are combined, and there is no problem of slow response and waste of power consumption, which is quite practical.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。 Although the present invention is disclosed in the foregoing embodiments, it is not intended to limit the present invention. All changes and modifications made without departing from the spirit and scope of the present invention fall within the scope of the patent protection of the present invention. For the scope of protection defined by the present invention, please refer to the attached scope of patent application.

Claims (8)

一種風扇控制方法,適用於一主機板,該主機板設置有一處理器且電性連接一風扇以對該主機板進行散熱,包括:判斷該處理器的一處理器功率負載值是否大於一負載門檻值,並據以產生一負載判斷結果;判斷該處理器的一處理器溫度是否不大於一溫度門檻值,並據以產生一溫度判斷結果;依據該負載判斷結果與該溫度判斷結果對應選取一組PID係數,該組PID係數包括一比例係數與一對應的積分係數;獲取該處理器的一溫差值,並依據該溫差值與該組PID係數產生一第一脈波寬度調變值;以及接收該主機板上的至少一電子元件的一工作溫度計算產生複數個第二脈波寬度調變值,將該第一脈波寬度調變值與該複數個第二脈波寬度調變值對比並獲取其中之最大值以產生一風扇控制信號以控制該風扇運行。 A fan control method is applicable to a motherboard provided with a processor and electrically connected to a fan to dissipate the motherboard, including: determining whether a processor power load value of the processor is greater than a load threshold According to the value, a load judgment result is generated; it is judged whether a processor temperature of the processor is not greater than a temperature threshold value, and a temperature judgment result is generated accordingly; a temperature judgment result is selected according to the load judgment result and the temperature judgment result. A group of PID coefficients, the group of PID coefficients including a proportional coefficient and a corresponding integral coefficient; obtaining a temperature difference value of the processor, and generating a first pulse width modulation value according to the temperature difference value and the group of PID coefficients; and Receive a working temperature of at least one electronic component on the motherboard to calculate and generate a plurality of second pulse width modulation values, and compare the first pulse width modulation value with the plurality of second pulse width modulation values The maximum value is obtained to generate a fan control signal to control the operation of the fan. 如請求項1所述之風扇控制方法,其中,當負載判斷結果為否且該溫度判斷結果為是時,依據對應選取的該組PID係數設定該比例係數為一第一常數值,並設定該積分係數為一第一積分值;當該負載判斷結果為否且該溫度判斷結果為否時,依據對應選取的該組PID係數設定該比例係數為一第二常數值,並設定該積分係數為該第一積分值,其中,該第一常數值與該第二常數值為不同數值。 The fan control method according to claim 1, wherein when the load judgment result is no and the temperature judgment result is yes, the proportional coefficient is set to a first constant value according to the corresponding selected group of PID coefficients, and the The integral coefficient is a first integral value; when the load judgment result is no and the temperature judgment result is no, the proportional coefficient is set to a second constant value according to the corresponding selected group of PID coefficients, and the integral coefficient is set to The first integral value, wherein the first constant value and the second constant value are different values. 如請求項1所述之風扇控制方法,其中,更包括判斷該溫差值是否小於一溫差門檻值;當負載判斷結果為否且該溫度判斷結果為是時,該溫差門檻值設定為一第一溫差門檻值;當該溫差值不小於該第一溫差門檻值時,調整該溫差值的值為該第一溫差門檻值;當該負載判斷結果為否且該溫度判斷結果為否時,該溫差門檻值設定為一第二溫差門檻值;當該溫差值不小於該第二溫差門檻值時,調整該溫差值的值為該第二溫差門檻值;以及依據調整後的該溫差值與該組PID係數產生該第一脈波寬度調變值。 The fan control method of claim 1, further comprising determining whether the temperature difference value is less than a temperature difference threshold; when the load determination result is no and the temperature determination result is yes, the temperature difference threshold is set to a first Temperature difference threshold value; when the temperature difference value is not less than the first temperature difference threshold value, adjust the value of the temperature difference value to the first temperature difference threshold value; when the load judgment result is no and the temperature judgment result is no, the temperature difference The threshold value is set as a second temperature difference threshold value; when the temperature difference value is not less than the second temperature difference threshold value, the value of the temperature difference value is adjusted to the second temperature difference threshold value; and the adjusted temperature difference value is compared with the group The PID coefficient generates the first pulse width modulation value. 如請求項1所述之風扇控制方法,其中,當該負載判斷結果為是時,根據該溫度判斷結果的不同對應選取不同組的該組PID係數從而計算產生該第一脈波寬度調變值。 The fan control method according to claim 1, wherein, when the load judgment result is yes, different sets of the PID coefficients are selected according to the temperature judgment results to calculate and generate the first pulse width modulation value . 如請求項1所述之風扇控制方法,其中,當該負載判斷結果為是且該溫度判斷結果為否時,依據對應選取的該組PID係數設定該比例係數為一第二常數值,並設定該積分係數為一第一積分值。 The fan control method according to claim 1, wherein when the load judgment result is yes and the temperature judgment result is no, the proportional coefficient is set to a second constant value according to the corresponding selected group of PID coefficients, and set The integral coefficient is a first integral value. 如請求項1所述之風扇控制方法,其中,當該負載判斷結果為是且該溫度判斷結果為是時,依據對應選取的該組PID係數設定該比例係數為一第三常數值,並設定該積分係數為一第一積分值。 The fan control method according to claim 1, wherein when the load judgment result is yes and the temperature judgment result is yes, the proportional coefficient is set to a third constant value according to the corresponding selected group of PID coefficients, and set The integral coefficient is a first integral value. 如請求項5與請求項6其中任一所述之風扇控制方法,其中該風扇控制信號為一脈波寬度調變信號,該風扇控制方法更包括: 依據該溫差值與該組PID係數產生一佔空比(duty cycle)增加量,該佔空比增加量關聯於該風扇控制信號的佔空比;依據於一設定時間內於一處理器負載值的至少一歷史數值判斷該處理器負載值的變換趨勢是否呈漸增趨勢;當該變換趨勢為一漸增趨勢且對應該設定時間內產生的該佔空比增加量存在負值時,去除複數個該佔空比增加量中的負值;以及依據去除負值的該佔空比增加量產生該第一脈波寬度調變值。 For the fan control method according to any one of claim 5 and claim 6, wherein the fan control signal is a pulse width modulation signal, the fan control method further includes: A duty cycle increase is generated according to the temperature difference value and the set of PID coefficients, and the duty cycle increase is related to the duty cycle of the fan control signal; according to a processor load value within a set time Determine whether the transformation trend of the processor load value shows an increasing trend; when the transformation trend is an increasing trend and there is a negative value corresponding to the increase in the duty cycle generated within the set time, remove the plural A negative value in the increase in the duty cycle; and the first pulse width modulation value is generated according to the increase in the duty cycle from which the negative value is removed. 如請求項1所述之風扇控制方法,其中,於依據該溫差值與該組PID係數產生該第一脈波寬度調變值的步驟中,更包括:依據該溫差值與該組PID係數產生一當前脈波寬度調變值;以及獲取至少一歷史脈波寬度調變值信號,將該至少一歷史脈波寬度調變值信號與該當前脈波寬度調變值進行平均以產生該第一脈波寬度調變值。 The fan control method according to claim 1, wherein the step of generating the first pulse width modulation value according to the temperature difference value and the set of PID coefficients further includes: generating according to the temperature difference value and the set of PID coefficients A current pulse width modulation value; and acquiring at least one historical pulse width modulation value signal, and averaging the at least one historical pulse width modulation value signal and the current pulse width modulation value to generate the first Pulse width modulation value.
TW106142610A 2017-12-05 2017-12-05 Fan control method TWI726175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106142610A TWI726175B (en) 2017-12-05 2017-12-05 Fan control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106142610A TWI726175B (en) 2017-12-05 2017-12-05 Fan control method

Publications (2)

Publication Number Publication Date
TW201925631A TW201925631A (en) 2019-07-01
TWI726175B true TWI726175B (en) 2021-05-01

Family

ID=68048838

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106142610A TWI726175B (en) 2017-12-05 2017-12-05 Fan control method

Country Status (1)

Country Link
TW (1) TWI726175B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110836197B (en) * 2019-11-05 2021-05-25 英业达科技有限公司 Strategy for automatically optimizing energy consumption

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130228632A1 (en) * 2012-03-02 2013-09-05 Apple Inc. Controlling a cooling system for a computer system
TW201416561A (en) * 2012-09-26 2014-05-01 Hon Hai Prec Ind Co Ltd Control circuit for fan
US9207732B1 (en) * 2015-02-25 2015-12-08 Quanta Computer Inc. Optimized fan duty control for computing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130228632A1 (en) * 2012-03-02 2013-09-05 Apple Inc. Controlling a cooling system for a computer system
TW201416561A (en) * 2012-09-26 2014-05-01 Hon Hai Prec Ind Co Ltd Control circuit for fan
US9207732B1 (en) * 2015-02-25 2015-12-08 Quanta Computer Inc. Optimized fan duty control for computing device

Also Published As

Publication number Publication date
TW201925631A (en) 2019-07-01

Similar Documents

Publication Publication Date Title
CN110543196B (en) Control method and control device for heat dissipation element
TWI430081B (en) Method, apparatus and system for intervention of independent self-regulation of power consumption devices
JP6874216B2 (en) Server fan speed control
KR102664836B1 (en) Thermal throttling of electronic devices
TWI394033B (en) Fan control system and method for a computer system available in different altitudes
TWI291609B (en) Methods of controlling fan speed
EP3299744A1 (en) Frequency control method and system for variable frequency compressor of heat pump hot water machine
US20120329377A1 (en) Fan control system, computer system, and method for controlling fan speed thereof
JP2018532185A (en) Thermal sensor placement for hot spot interpolation
CN103790846B (en) Fan rotational frequency control method and device
JP2018005569A (en) Semiconductor device and control method of semiconductor device
TWI726175B (en) Fan control method
TW201122747A (en) Temperature control method and electric device thereof
CN114734847B (en) Fan speed regulation control method and related device
CN107989816B (en) Control method for fan
CN110873069B (en) Method and device for controlling fan parameters
CN115492674A (en) Control method and device for electric water pump and cooling fan
TW201445295A (en) System and method of controlling fan speed
EP3704562B1 (en) Advanced power based thermal control systems
CN110725806A (en) Fan rotating speed control method and device and server
CN109185209B (en) Fan rotating speed adjusting method and device
CN109600977B (en) Heat dissipation control method and electronic equipment
JP6375826B2 (en) Supply power control device
TW201813279A (en) Fan controlling method of electronic device
CN115126711A (en) Method and device for regulating and controlling rotating speed of fan, electronic equipment and storage medium